/* CSS Variables for Colors and Fonts */
:root {
    --primary-color: #064562;
    --secondary-color: #007bff;
    --accent-color: #0056b3;
    --text-dark: #333;
    --text-light: #666;
    --text-white: #fff;
    --text-primary: #064562;
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --bg-dark: #064562;
    --border-light: rgba(255, 255, 255, 0.2);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --overlay-light: rgba(0, 0, 0, 0.8);
    --gradient-primary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --gradient-overlay: linear-gradient(var(--overlay-dark), var(--overlay-dark));
    /* Font Variables */
    --font-heading: 'aktiv-grotesk', 'Inter', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-margin-top: 120px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typography */
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 30px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Button hover effects */
.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover {
        background-color: #007bff;
        border-color: #007bff;
        transform: translateY(-2px);
    }

.btn-light {
    background-color: white;
    border-color: white;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

    .btn-light:hover {
        background-color: #f8f9fa;
        border-color: #f8f9fa;
        transform: translateY(-2px);
    }

.navbar-toggler:focus {
    box-shadow:none !important
}
/* Modal Custom Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

    .modal-header .btn-close {
        filter: invert(1);
        opacity: 0.8;
    }

        .modal-header .btn-close:hover {
            opacity: 1;
        }

.modal-title {
    font-family: var(--font-heading);
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

    .modal-body p{font-size:13px}
    .modal-body ul li{font-size:13px}

    .transport-item {
        padding: 1rem;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .transport-item:hover {
        border-color: var(--primary-color);
        box-shadow: 0 5px 15px rgba(6, 69, 98, 0.1);
    }

    .transport-item h6 {
        font-family: var(--font-heading);
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 2rem;
}

    .modal-footer .btn {
        border-radius: 50px;
        padding: 0.75rem 2rem;
        font-weight: 500;
        color: white;
        transition: all 0.3s ease;
    }

    .modal-footer .btn-primary {
        background: linear-gradient(180deg, #1175a4, #064562);
        border: none;
    }

        .modal-footer .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(6, 69, 98, 0.3);
        }

.modal-dialog {
    max-width: 800px;
}

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-nav {
    direction: rtl;
}

[dir="rtl"] .navbar-nav .nav-link {
    margin: 0 0.5rem;
    font-size: 11.2px;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .hero-subtitle {
    text-align: right;
}

/* RTL Hero Caption Positioning */
[dir="rtl"] .hero-title {
    left: auto;
    right: 105px;
}

[dir="rtl"] .hero-subtitle {
    left: auto;
    right: 105px;
}

[dir="rtl"] .section-title {
    text-align: right;
}

[dir="rtl"] .intro-content p {
    text-align: right;
}

[dir="rtl"] .hotel-content {
    text-align: right;
}

[dir="rtl"] .attractions-list {
    text-align: right;
}

[dir="rtl"] .attractions-list ul {
    text-align: right;
}

[dir="rtl"] .attractions-list li {
    text-align: right;
}

[dir="rtl"] .event-overlay h4,
[dir="rtl"] .event-overlay h5 {
    text-align: right;
}

[dir="rtl"] .event-description p {
    text-align: right;
}

[dir="rtl"] .itinerary-content h4 {
    text-align: right;
}

[dir="rtl"] .reach-content h4 {
    text-align: right;
}

[dir="rtl"] .reach-content p {
    text-align: right;
}

[dir="rtl"] .modal-body {
    text-align: right;
}

[dir="rtl"] .modal-body h6 {
    text-align: right;
}

[dir="rtl"] .modal-body p {
    text-align: right;
}

[dir="rtl"] .modal-body ul {
    text-align: right;
}

[dir="rtl"] .modal-body li {
    text-align: right;
}

[dir="rtl"] .card-body {
    text-align: right;
}

[dir="rtl"] .card-title {
    text-align: right;
}

[dir="rtl"] .card-text {
    text-align: right;
}

[dir="rtl"] .list-unstyled {
    text-align: right;
}

[dir="rtl"] .list-unstyled li {
    text-align: right;
}

/* RTL adjustments for Bootstrap classes */
[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

/* RTL Button Icon Adjustments */
[dir="rtl"] .btn-icon {
    margin-left: 0 !important;
    margin-right: 8px !important;
    transform: scaleX(-1); /* Flip arrow direction for RTL */
}

/* RTL Modal Close Button Positioning */
[dir="rtl"] .modal-header .btn-close {
    margin-left: 0;
    margin-right: auto;
    order: -1;
}

[dir="rtl"] .modal-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-title {
    margin-left: 0;
    margin-right: auto;
}

/* RTL Footer Layout */
[dir="rtl"] .safooter .row {
    justify-content: space-between;
}

[dir="rtl"] .safooter .col-sm-6:first-child {
    text-align: right;
}

[dir="rtl"] .safooter .col-sm-6:last-child {
    text-align: left;
}

/* RTL Send Query Button Positioning */
[dir="rtl"] .sqbtn {
    left: auto;
    right: 0px;
    transform: rotate(0deg); /* Remove rotation for RTL */
}

/* RTL Offcanvas Styling */
[dir="rtl"] .offcanvas-end {
    right: 0;
    left: auto;
}

[dir="rtl"] .offcanvas-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .offcanvas-header .btn-close {
    margin-left: 0;
    margin-right: auto;
}

/* RTL Modal Button Layout */
[dir="rtl"] .modal-footer {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-footer .btn {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .modal-footer .btn:first-child {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .modal-footer .btn i {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* RTL adjustments for flexbox */
[dir="rtl"] .d-flex {
    direction: rtl;
}

/* RTL Navbar Toggler Positioning */
[dir="rtl"] .navbar-toggler {
    position: absolute;
    right: 15px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
}

/* Custom Toggler with Cross Icon */
.custom-toggler {
    border: none;
    background: transparent;
    position: relative;
}

.toggler-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    position: relative;
    transition: all 0.3s ease;
}

.toggler-icon::before,
.toggler-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.toggler-icon::before {
    top: -8px;
}

.toggler-icon::after {
    top: 8px;
}

/* Cross icon when menu is open */
.custom-toggler[aria-expanded="true"] .toggler-icon {
    background-color: transparent;
}

.custom-toggler[aria-expanded="true"] .toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.custom-toggler[aria-expanded="true"] .toggler-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Menu Scroll Fix */
@media (max-width: 991px) {
    .navbar-collapse {
        max-height: 95vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-nav {
        max-height: 95vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

[dir="rtl"] .justify-content-start {
    justify-content: flex-end !important;
}

[dir="rtl"] .justify-content-end {
    justify-content: flex-start !important;
}

/* RTL adjustments for positioning */
[dir="rtl"] .left-0 {
    left: auto !important;
    right: 0 !important;
}

[dir="rtl"] .right-0 {
    right: auto !important;
    left: 0 !important;
}

/* RTL adjustments for transforms */
[dir="rtl"] .translateX-50 {
    transform: translateX(50%) !important;
}

[dir="rtl"] .translateX--50 {
    transform: translateX(-50%) !important;
}

/* RTL Slider Adjustments */
[dir="rtl"] .slick-slider {
    direction: rtl;
}

[dir="rtl"] .slick-slide {
    direction: rtl;
}

[dir="rtl"] .slick-prev {
    right: -25px;
    left: auto;
}

[dir="rtl"] .slick-next {
    left: -25px;
    right: auto;
}

[dir="rtl"] .slick-prev:before {
    content: "→";
}

[dir="rtl"] .slick-next:before {
    content: "←";
}

/* RTL Hero Slider Adjustments */
[dir="rtl"] .hero-slider .slick-prev {
    right: 40px;
    left: auto;
}

[dir="rtl"] .hero-slider .slick-next {
    left: 40px;
    right: auto;
}

/* RTL Hotels Slider Adjustments */
[dir="rtl"] .hotels-slider .slick-prev {
    right: 108%;
    left: auto;
    transform: scaleX(-1);
}

[dir="rtl"] .hotels-slider .slick-next {
    left: -7%;
    right: auto;
    transform: scaleX(-1);   
}