/* ============================================
   GLOBAL CSS — Explore Jordan Website
   Foundation styles, nav, footer, shared components
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

body:not(.home-page) .map-header,
body:not(.home-page) .accommodation-header,
body:not(.home-page) .calendar-header,
body:not(.home-page) .auth-brand,
body:not(.home-page) a[title="Home"].fixed,
body:not(.home-page) img[src$="assets/logo/logo.png"],
body:not(.home-page) img[src$="/assets/logo/logo.png"],
body:not(.home-page) div:has(> img[src$="assets/logo/logo.png"]),
body:not(.home-page) div:has(> img[src$="/assets/logo/logo.png"]) {
    display: none !important;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --font-en:        'Inter', 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-ar:        'Cairo', 'Tajawal', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --primary:       #B8844D;
    --primary-dark:  #8B6F47;
    --primary-light: #D4A574;
    --primary-pale:  #F5EDE3;
    --primary-accent:#BF6430;
    --bg-light:      #F8FAFC;
    --text-dark:     #1f1713;
    --text-muted:    #6b7280;
    --glass-bg:      rgba(255, 255, 255, 0.75);
    --glass-border:  rgba(255, 255, 255, 0.5);
    --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md:     0 8px 32px rgba(0, 0, 0, 0.06);
    --shadow-lg:     0 16px 48px rgba(0, 0, 0, 0.1);
    --radius-sm:     12px;
    --radius-md:     20px;
    --radius-lg:     28px;
    --radius-full:   50px;
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth:   cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out:      cubic-bezier(0.4, 0, 0.2, 1);

    /* Cross-faded navbar theme layers */
    --nav-theme-duration: 800ms;
    --nav-theme-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-glass-base: rgba(5, 17, 8, 0.74);
    --nav-light-glass-layer: linear-gradient(
        135deg,
        rgba(66, 24, 11, 0.96) 0%,
        rgba(98, 42, 20, 0.90) 100%
    );
    --nav-pill-base: linear-gradient(
        135deg,
        rgba(110, 170, 48, 0.24) 0%,
        rgba(12, 54, 24, 0.36) 100%
    );
    --nav-light-pill-layer: linear-gradient(
        135deg,
        rgba(126, 61, 30, 0.96) 0%,
        rgba(78, 28, 12, 0.94) 100%
    );
    --nav-glass-border: rgba(255, 202, 160, 0.16);
    --nav-glass-shadow: rgba(46, 13, 3, 0.62);
    --nav-glass-highlight: rgba(255, 225, 199, 0.15);
    --nav-glass-caustic: rgba(255, 132, 60, 0.10);
    --nav-pill-shadow:
        0 8px 28px rgba(41, 11, 2, 0.54),
        inset 0 1px 1px rgba(255, 224, 196, 0.16),
        0 0 15px rgba(255, 129, 57, 0.12);
    --nav-icon-color: #c9a38e;
    --nav-icon-active: #ffc48d;
    --nav-divider: rgba(255, 226, 205, 0.13);
    --nav-reflection-start: rgba(255, 231, 211, 0.12);
    --nav-reflection-end: rgba(255, 231, 211, 0);
    --nav-glare: rgba(255, 151, 82, 0.18);
    --nav-dropdown-bg: rgba(35, 15, 8, 0.985);
    --nav-dropdown-border: rgba(255, 203, 163, 0.17);
    --nav-dropdown-text: #f5e4d8;
    --nav-dropdown-title: #c7aa96;
    --nav-dropdown-muted: #c4a790;
    --nav-dropdown-icon-bg: rgba(255, 196, 141, 0.11);
    --nav-dropdown-icon: #ffc48d;
    --nav-dropdown-hover: rgba(255, 196, 141, 0.075);
    --nav-dropdown-shadow: rgba(30, 7, 2, 0.72);
    --nav-dropdown-scroll-track: rgba(255, 255, 255, 0.035);
    --nav-dropdown-scroll-thumb: rgba(255, 196, 141, 0.25);
    --image-loader-bg: rgba(255, 253, 249, 0.94);
    --image-loader-dot: #bf6430;
    --image-loader-shadow: rgba(92, 36, 14, 0.12);
}

html[data-theme="dark"] {
    --bg-color: #020803;
    --blob-1: #c4ff38;
    --blob-2: #35d04f;
    --blob-3: #087a38;
    --blob-opacity: 0.58;

    --glass-bg: rgba(5, 18, 9, 0.72);
    --glass-border: rgba(196, 255, 56, 0.12);
    --glass-shadow: rgba(0, 0, 0, 0.78);
    --glass-highlight: rgba(196, 255, 56, 0.10);
    --glass-caustic: rgba(53, 208, 79, 0.10);
    --reflection-start: rgba(207, 255, 126, 0.11);
    --reflection-end: rgba(207, 255, 126, 0);
    --glare-color: rgba(89, 255, 101, 0.20);
    --pill-bg: linear-gradient(
        135deg,
        rgba(110, 170, 48, 0.24) 0%,
        rgba(12, 54, 24, 0.36) 100%
    );
    --pill-shadow:
        0 8px 32px rgba(0, 0, 0, 0.55),
        inset 0 1px 1px rgba(211, 255, 149, 0.16),
        0 0 15px rgba(196, 255, 56, 0.14);
    --icon-color: #92a99a;
    --icon-active: #c4ff38;
    --divider: rgba(196, 255, 56, 0.10);

    --nav-glass-border: rgba(190, 255, 96, 0.15);
    --nav-glass-shadow: rgba(0, 8, 2, 0.82);
    --nav-glass-highlight: rgba(224, 255, 198, 0.14);
    --nav-glass-caustic: rgba(68, 214, 73, 0.12);
    --nav-pill-shadow:
        0 8px 32px rgba(0, 9, 2, 0.62),
        inset 0 1px 1px rgba(224, 255, 198, 0.18),
        0 0 18px rgba(169, 255, 55, 0.17);
    --nav-icon-color: #92a99a;
    --nav-icon-active: #c4ff38;
    --nav-divider: rgba(206, 255, 177, 0.12);
    --nav-reflection-start: rgba(222, 255, 194, 0.12);
    --nav-reflection-end: rgba(222, 255, 194, 0);
    --nav-glare: rgba(190, 255, 62, 0.24);
    --nav-dropdown-bg: rgba(1, 15, 8, 0.985);
    --nav-dropdown-border: rgba(196, 255, 56, 0.16);
    --nav-dropdown-text: #e1e8e3;
    --nav-dropdown-title: #99a69d;
    --nav-dropdown-muted: #9eaca2;
    --nav-dropdown-icon-bg: rgba(196, 255, 56, 0.105);
    --nav-dropdown-icon: #c4ff38;
    --nav-dropdown-hover: rgba(196, 255, 56, 0.07);
    --nav-dropdown-shadow: rgba(0, 5, 1, 0.78);
    --nav-dropdown-scroll-track: rgba(255, 255, 255, 0.03);
    --nav-dropdown-scroll-thumb: rgba(196, 255, 56, 0.23);
    --image-loader-bg: rgba(4, 15, 8, 0.94);
    --image-loader-dot: #c4ff38;
    --image-loader-shadow: rgba(196, 255, 56, 0.12);
}

/* ============================================
   GLOBAL RESET
   ============================================ */
*,
*::before,
*::after {
    font-family: inherit;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html:not([data-language="ar"]) .ar {
    display: none !important;
}

html[data-language="ar"] .en {
    display: none !important;
}

body {
    font-family: var(--font-en);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    animation: pageEnter 0.6s var(--ease-smooth) forwards;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[lang="ar"] body,
html[dir="rtl"] body,
html[data-language="ar"] body {
    font-family: var(--font-ar);
    direction: rtl;
    text-align: right;
}

html[lang="en"] body,
html[dir="ltr"] body,
html:not([data-language="ar"]) body {
    font-family: var(--font-en);
    direction: ltr;
    text-align: left;
}

.ar,
[lang="ar"] {
    font-family: var(--font-ar);
    direction: rtl;
    letter-spacing: 0;
}

.en,
[lang="en"] {
    font-family: var(--font-en);
}

button,
input,
select,
textarea,
.glass-panel,
.unified-site-nav,
.language-selector,
.booking-card,
.booking-modal {
    font-family: inherit;
}

.bilingual {
    display: inline-flex;
    flex-direction: column;
    align-items: inherit;
    gap: 0.08em;
}

.bilingual-block,
.bilingual-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bilingual-copy .ar,
.bilingual-block .ar {
    color: inherit;
    line-height: 1.9;
}

.ar-muted {
    color: var(--text-muted);
}

.legal-page .glass-panel {
    text-align: start;
}

.legal-pair {
    margin-bottom: 1.35rem;
}

.legal-pair .en {
    color: #555;
    line-height: 1.85;
}

.legal-pair .ar {
    color: #4f4f4f;
    line-height: 2;
    font-size: 1.05em;
}

.bilingual-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.bilingual-list li .ar {
    display: block;
    margin-top: 0.15rem;
}

.policy-list li .ar,
.term-list li .ar,
.faq-content li .ar {
    display: block;
    margin-top: 0.18rem;
}

.language-selector {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2000;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(184, 132, 77, 0.08);
}

.language-option {
    min-width: 42px;
    height: 32px;
    padding: 0 11px;
    border: 0;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    pointer-events: auto;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.language-option[data-lang="ar"] {
    font-family: var(--font-ar);
    font-size: 15px;
}

.language-option[data-lang="en"] {
    min-width: 68px;
}

.language-option.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 6px 18px rgba(184, 132, 77, 0.28);
}

html[dir="rtl"] .language-selector {
    direction: ltr;
}

.language-selector {
    display: none;
}

body.exiting {
    animation: pageExit 0.3s ease forwards;
    pointer-events: none;
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */
@keyframes pageEnter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pageExit {
    from {
        opacity: 1;
        filter: blur(0);
    }
    to {
        opacity: 0;
        filter: blur(3px);
    }
}

/* ============================================
   GLASS PANEL
   ============================================ */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .glass-panel {
        border-radius: 32px;
    }
}

@media (min-width: 768px) {
    .language-selector {
        top: 24px;
        right: 24px;
    }
}

/* ============================================
   FLOATING LOGO — TOP LEFT (all screens)
   ============================================ */
.floating-logo {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(184, 132, 77, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.65);
    transition: all 0.35s var(--ease-spring);
    cursor: pointer;
}

.floating-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(184, 132, 77, 0.18);
    background: rgba(255, 255, 255, 0.95);
}

.floating-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.floating-logo-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    letter-spacing: -0.2px;
}

@media (max-width: 380px) {
    .floating-logo {
        padding: 8px 12px;
    }
    .floating-logo-text {
        display: none;
    }
}

@media (min-width: 768px) {
    .floating-logo {
        top: 24px;
        left: 24px;
        padding: 10px 20px;
        gap: 10px;
    }
    .floating-logo img {
        width: 30px;
        height: 30px;
    }
    .floating-logo-text {
        font-size: 14px;
    }
}

/* ============================================
   FLOATING NAV — BOTTOM RIGHT (all screens)
   About & Contact buttons
   ============================================ */
.floating-nav {
    position: fixed;
    bottom: 18px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(184, 132, 77, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

nav[aria-label="Site Navigation"].fixed {
    left: 50%;
    right: auto;
    translate: -50% 0;
    max-width: calc(100vw - 20px);
    overflow-x: auto;
}

nav[aria-label="Site Navigation"].fixed > * {
    flex: 0 0 auto;
}

.unified-site-nav {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 18px;
    z-index: 5000;
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: calc(100vw - 20px);
    overflow: visible;
    translate: -50% 0;
    padding: 8px 12px;
    border: 1px solid var(--nav-glass-border);
    border-radius: 24px;
    background: var(--nav-glass-base);
    box-shadow:
        0 30px 60px -15px var(--nav-glass-shadow),
        inset 0 1px 2px var(--nav-glass-highlight),
        inset 0 -1px 3px var(--nav-glass-caustic);
    backdrop-filter: blur(40px) saturate(220%);
    -webkit-backdrop-filter: blur(40px) saturate(220%);
    isolation: isolate;
    transition:
        border-color var(--nav-theme-duration) var(--nav-theme-ease),
        box-shadow var(--nav-theme-duration) var(--nav-theme-ease);
}

.unified-site-nav::before {
    content: '';
    position: absolute;
    top: 1px;
    right: 1px;
    left: 1px;
    height: 40%;
    z-index: 0;
    border-radius: 23px 23px 12px 12px;
    background: linear-gradient(180deg, var(--nav-reflection-start) 0%, var(--nav-reflection-end) 100%);
    pointer-events: none;
    transition: background var(--nav-theme-duration) var(--nav-theme-ease);
}

.unified-site-nav::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    opacity: 1;
    background:
        linear-gradient(180deg, rgba(255, 231, 211, 0.12) 0%, rgba(255, 231, 211, 0) 40%),
        var(--nav-light-glass-layer);
    pointer-events: none;
    transition: opacity var(--nav-theme-duration) var(--nav-theme-ease);
}

html[data-theme="dark"] .unified-site-nav::after {
    opacity: 0;
}

.unified-nav-glare {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.unified-nav-glare::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle 120px at var(--nav-glare-x, 50%) var(--nav-glare-y, 50%), var(--nav-glare) 0%, transparent 100%);
    mix-blend-mode: overlay;
    transition: opacity var(--nav-theme-duration) var(--nav-theme-ease);
}

.unified-site-nav:hover .unified-nav-glare::before {
    opacity: 1;
}

.unified-nav-items {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.unified-nav-pill {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 0;
    height: 44px;
    border-radius: 16px;
    opacity: 0;
    overflow: hidden;
    background: var(--nav-pill-base);
    box-shadow: var(--nav-pill-shadow);
    pointer-events: none;
    transition:
        transform 450ms cubic-bezier(0.16, 1, 0.3, 1),
        width 450ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 180ms ease,
        box-shadow var(--nav-theme-duration) var(--nav-theme-ease);
}

.unified-nav-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 1;
    background: var(--nav-light-pill-layer);
    transition: opacity var(--nav-theme-duration) var(--nav-theme-ease);
}

html[data-theme="dark"] .unified-nav-pill::before {
    opacity: 0;
}

.unified-nav-pill.is-visible {
    opacity: 1;
}

.unified-site-nav.has-open-menu {
    overflow: visible;
}

.unified-nav-btn {
    position: relative;
    z-index: 2;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    color: var(--nav-icon-color);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
    outline: none;
    transition:
        color 300ms ease,
        transform 180ms ease;
}

.unified-nav-btn:hover,
.unified-nav-btn:focus-visible {
    color: var(--nav-icon-active);
}

.unified-nav-btn:active {
    transform: scale(0.94);
}

.unified-nav-btn.is-active {
    color: var(--nav-icon-active);
    background: transparent;
    box-shadow: none;
}

.unified-nav-btn.is-active .material-icons {
    color: var(--nav-icon-active);
    text-shadow: 0 0 12px currentColor;
    transition:
        color var(--nav-theme-duration) var(--nav-theme-ease),
        text-shadow var(--nav-theme-duration) var(--nav-theme-ease);
}

.unified-nav-btn > .material-icons:not(.nav-caret) {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-grid;
    place-items: center;
    font-size: 18px;
    line-height: 1;
}

.unified-nav-menu {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.unified-nav-trigger {
    cursor: pointer;
}

.unified-nav-trigger,
.unified-nav-trigger:hover,
.unified-nav-trigger:focus-visible,
.unified-nav-trigger.is-active,
.unified-nav-menu.is-open .unified-nav-trigger {
    background: transparent;
    box-shadow: none;
}

.unified-nav-trigger .nav-caret {
    margin-left: -3px;
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    font-size: 16px;
    line-height: 1;
    opacity: 0.76;
    transition: transform 260ms ease, opacity 260ms ease;
}

.unified-nav-menu.is-open .nav-caret {
    transform: rotate(180deg);
    opacity: 1;
}

.unified-nav-dropdown {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 100;
    width: 282px;
    min-width: 282px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 20px 16px;
    border: 1px solid var(--nav-dropdown-border);
    border-radius: 22px;
    background: var(--nav-dropdown-bg);
    box-shadow:
        0 24px 54px -18px var(--nav-dropdown-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(30px) saturate(170%);
    -webkit-backdrop-filter: blur(30px) saturate(170%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px) scale(0.975);
    transform-origin: bottom center;
    transition:
        opacity 190ms ease,
        transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 260ms,
        background var(--nav-theme-duration) var(--nav-theme-ease),
        border-color var(--nav-theme-duration) var(--nav-theme-ease),
        box-shadow var(--nav-theme-duration) var(--nav-theme-ease);
}

.unified-nav-dropdown::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 16px;
    height: 16px;
    border-right: 1px solid var(--nav-dropdown-border);
    border-bottom: 1px solid var(--nav-dropdown-border);
    background: var(--nav-dropdown-bg);
    transform: translateX(-50%) rotate(45deg);
    transition:
        background var(--nav-theme-duration) var(--nav-theme-ease),
        border-color var(--nav-theme-duration) var(--nav-theme-ease);
}

.unified-nav-menu.is-open .unified-nav-dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
    transition-delay: 0s;
}

.unified-dropdown-title {
    padding: 1px 2px 10px;
    color: var(--nav-dropdown-title);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.85px;
    text-transform: uppercase;
    transition: color var(--nav-theme-duration) var(--nav-theme-ease);
}

.unified-dropdown-item {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 8px 4px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--nav-dropdown-text);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition:
        background 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.unified-dropdown-item.language-option {
    height: auto;
}

.unified-dropdown-item:hover,
.unified-dropdown-item:focus-visible,
.unified-dropdown-item.is-active {
    background: var(--nav-dropdown-hover);
    color: var(--nav-icon-active);
}

.unified-dropdown-item:active {
    transform: scale(0.985);
}

.unified-dropdown-icon-badge {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: var(--nav-dropdown-icon-bg);
    color: var(--nav-dropdown-icon);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    transition:
        background var(--nav-theme-duration) var(--nav-theme-ease),
        color var(--nav-theme-duration) var(--nav-theme-ease);
}

.unified-dropdown-icon {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
}

.unified-dropdown-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.unified-dropdown-label {
    color: currentColor;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    white-space: normal;
}

.unified-dropdown-note {
    color: var(--nav-dropdown-muted);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
    transition: color var(--nav-theme-duration) var(--nav-theme-ease);
}

.unified-dropdown-item:hover .unified-dropdown-note,
.unified-dropdown-item:focus-visible .unified-dropdown-note,
.unified-dropdown-item.is-active .unified-dropdown-note {
    color: var(--nav-dropdown-text);
}

.unified-blogs-dropdown,
.unified-about-dropdown {
    width: 300px;
    min-width: 300px;
}

.unified-language-dropdown {
    width: 318px;
    min-width: 318px;
    max-height: 390px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--nav-dropdown-scroll-thumb) var(--nav-dropdown-scroll-track);
}

.unified-language-dropdown::-webkit-scrollbar {
    width: 6px;
}

.unified-language-dropdown::-webkit-scrollbar-track {
    background: var(--nav-dropdown-scroll-track);
    border-radius: 10px;
}

.unified-language-dropdown::-webkit-scrollbar-thumb {
    background: var(--nav-dropdown-scroll-thumb);
    border-radius: 10px;
}

.unified-language-dropdown .language-option[data-lang="ar"] .unified-dropdown-label,
.unified-language-dropdown .language-option[data-lang="ar"] .unified-dropdown-note,
.unified-language-dropdown .language-option[data-lang="fa"] .unified-dropdown-label,
.unified-language-dropdown .language-option[data-lang="fa"] .unified-dropdown-note {
    font-family: var(--font-ar);
}

.unified-nav-separator {
    position: relative;
    z-index: 2;
    width: 1px;
    height: 20px;
    flex: 0 0 auto;
    background-color: var(--nav-divider);
    transition: background-color var(--nav-theme-duration) var(--nav-theme-ease);
}

.unified-theme-btn {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background-color: transparent;
    color: var(--nav-icon-color);
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        color var(--nav-theme-duration) var(--nav-theme-ease),
        background-color var(--nav-theme-duration) var(--nav-theme-ease),
        transform 180ms ease;
}

.unified-theme-btn:hover,
.unified-theme-btn:focus-visible {
    color: var(--nav-icon-active);
    background-color: var(--nav-glass-border);
}

.unified-theme-btn:active {
    transform: scale(0.86);
}

.unified-theme-btn .material-icons {
    position: absolute;
    font-size: 19px;
    transition:
        opacity var(--nav-theme-duration) var(--nav-theme-ease),
        transform var(--nav-theme-duration) var(--nav-theme-ease),
        color var(--nav-theme-duration) var(--nav-theme-ease);
}

.unified-theme-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.unified-theme-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

html[data-theme="dark"] .unified-theme-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

html[data-theme="dark"] .unified-theme-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

@media (min-width: 768px) {
    .unified-site-nav {
        bottom: 28px;
        padding-right: 14px;
        padding-left: 14px;
    }
}

@media (max-width: 1080px) {
    .unified-nav-btn {
        padding-right: 11px;
        padding-left: 11px;
        font-size: 13px;
    }
}

@media (max-width: 760px) {
    .unified-site-nav {
        bottom: 18px;
        gap: 7px;
        max-width: calc(100vw - 16px);
        padding-right: 9px;
        padding-left: 9px;
    }

    .unified-nav-items {
        width: calc(100vw - 88px);
        max-width: calc(100vw - 88px);
        flex: 0 1 calc(100vw - 88px);
        gap: 4px;
        overflow-x: auto;
        overflow-y: visible;
        overscroll-behavior-x: contain;
        scroll-behavior: smooth;
        scrollbar-width: none;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
    }

    .unified-site-nav.has-open-menu .unified-nav-items {
        overflow: visible;
        touch-action: auto;
    }

    .unified-nav-items::-webkit-scrollbar {
        display: none;
    }

    .unified-nav-menu {
        flex: 0 0 auto;
    }

    .unified-nav-btn > span:not(.material-icons) {
        display: inline !important;
    }

    .unified-nav-btn {
        width: auto;
        min-width: max-content;
        height: 42px;
        min-height: 42px;
        gap: 5px;
        padding: 0 10px;
        border-radius: 14px;
        font-size: 12px;
        letter-spacing: 0.1px;
    }

    .unified-nav-btn > .material-icons:not(.nav-caret) {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        font-size: 16px;
    }

    .unified-nav-trigger .nav-caret {
        position: static;
        right: auto;
        bottom: auto;
        width: 11px;
        height: 11px;
        margin-left: -2px;
        flex: 0 0 11px;
        font-size: 11px;
    }

    .unified-nav-separator {
        height: 18px;
    }

    .unified-nav-pill {
        height: 42px;
        border-radius: 14px;
    }

    .unified-nav-dropdown {
        position: fixed;
        left: 50%;
        right: auto;
        bottom: 72px;
        max-width: calc(100vw - 28px);
        transform: translate(-50%, 8px) scale(0.975);
    }

    .unified-nav-menu.is-open .unified-nav-dropdown {
        transform: translate(-50%, 0) scale(1);
    }
}

@media (max-width: 520px) {
    .unified-language-dropdown {
        width: 318px;
        min-width: min(318px, calc(100vw - 28px));
    }

    .unified-blogs-dropdown,
    .unified-about-dropdown {
        width: 300px;
        min-width: min(300px, calc(100vw - 28px));
    }

    .unified-booking-dropdown {
        width: 282px;
        min-width: min(282px, calc(100vw - 28px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .unified-site-nav,
    .unified-site-nav::before,
    .unified-site-nav::after,
    .unified-site-nav *,
    .unified-site-nav *::before,
    .unified-site-nav *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

@media (min-width: 768px) {
    .floating-nav {
        bottom: 28px;
        gap: 8px;
        padding: 9px 14px;
    }
}

/* Individual nav button */
.fn-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    color: var(--primary);
    transition: all 0.35s var(--ease-spring);
    white-space: nowrap;
    border: none;
    background: transparent;
    cursor: pointer;
}

.fn-btn .material-icons {
    font-size: 17px;
    flex-shrink: 0;
}

.fn-btn:hover {
    background: rgba(184, 132, 77, 0.1);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Active / current page state */
.fn-btn.fn-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    box-shadow: 0 6px 20px rgba(184, 132, 77, 0.35);
}

.fn-btn.fn-active .material-icons,
.fn-btn.fn-active span {
    color: white;
}

/* Divider */
.fn-divider {
    width: 1px;
    height: 20px;
    background: rgba(184, 132, 77, 0.2);
    flex-shrink: 0;
}

/* Mobile: hide labels on tiny screens */
@media (max-width: 380px) {
    .fn-btn {
        padding: 8px 10px;
    }
    .fn-btn-label {
        display: none;
    }
}

@media (min-width: 481px) {
    .fn-btn {
        font-size: 13px;
        gap: 7px;
    }
    .fn-btn .material-icons {
        font-size: 18px;
    }
}

@media (min-width: 768px) {
    .fn-btn {
        padding: 9px 18px;
        font-size: 13px;
    }
}

/* ============================================
   BADGE
   ============================================ */
.badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(184, 132, 77, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(184, 132, 77, 0.15);
}

/* ============================================
   DOWNLOAD BUTTONS (shared)
   ============================================ */
.download-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-button {
    background: #111;
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 50px;
    flex: 1;
    min-width: 148px;
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.store-button:hover {
    background: #222;
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.store-button img {
    object-fit: contain;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-text .ar {
    text-align: right;
}

.btn-label {
    font-size: 9px;
    opacity: 0.75;
    text-transform: uppercase;
    line-height: 1;
}

.btn-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.nav-copy {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.08;
}

.nav-copy .ar {
    font-size: 0.92em;
}

@media (max-width: 380px) {
    .nav-copy.hidden {
        display: none !important;
    }
}

@media (min-width: 381px) {
    .nav-copy {
        display: inline-flex !important;
    }
}

@media (min-width: 768px) {
    .download-buttons {
        gap: 16px;
    }
    .store-button {
        padding: 11px 22px;
        min-width: 166px;
        flex: none;
        border-radius: 14px;
    }
    .btn-label {
        font-size: 10px;
    }
    .btn-name {
        font-size: 15px;
    }
}

/* ============================================
   MAIN CONTENT WRAPPER
   ============================================ */
.main-content-wrapper {
    background-color: var(--bg-light);
    min-height: 100vh;
    padding-bottom: 100px;
}

/* ============================================
   IMAGE LOADING
   Theme-aware bouncing dots for static and dynamic public images.
   ============================================ */
img.ej-image-managed {
    transition: opacity 320ms var(--ease-smooth);
}

img.ej-image-loading {
    color: transparent;
    object-position: 9999px 9999px !important;
    background-color: var(--image-loader-bg);
    background-image:
        radial-gradient(circle, var(--image-loader-dot) 0 4px, transparent 4.5px),
        radial-gradient(circle, var(--image-loader-dot) 0 4px, transparent 4.5px),
        radial-gradient(circle, var(--image-loader-dot) 0 4px, transparent 4.5px),
        radial-gradient(circle, var(--image-loader-dot) 0 4px, transparent 4.5px),
        radial-gradient(circle, var(--image-loader-dot) 0 4px, transparent 4.5px);
    background-repeat: no-repeat;
    background-size: 10px 10px;
    background-position:
        calc(50% - 36px) 50%,
        calc(50% - 18px) 50%,
        50% 50%,
        calc(50% + 18px) 50%,
        calc(50% + 36px) 50%;
    animation: ejImageDotsBounce 1s ease-in-out infinite;
}

img.ej-image-loading.ej-image-loader-compact {
    background-image:
        radial-gradient(circle, var(--image-loader-dot) 0 2.5px, transparent 3px),
        radial-gradient(circle, var(--image-loader-dot) 0 2.5px, transparent 3px),
        radial-gradient(circle, var(--image-loader-dot) 0 2.5px, transparent 3px);
    background-size: 7px 7px;
    background-position:
        calc(50% - 12px) 50%,
        50% 50%,
        calc(50% + 12px) 50%;
    animation-name: ejImageDotsBounceCompact;
}

img.ej-image-reveal {
    opacity: 0.12;
}

img.ej-image-error {
    opacity: 0;
    pointer-events: none;
}

@keyframes ejImageDotsBounce {
    0%, 20%, 40%, 60%, 80%, 100% {
        background-position:
            calc(50% - 36px) 50%,
            calc(50% - 18px) 50%,
            50% 50%,
            calc(50% + 18px) 50%,
            calc(50% + 36px) 50%;
    }
    10% {
        background-position:
            calc(50% - 36px) calc(50% - 12px),
            calc(50% - 18px) 50%,
            50% 50%,
            calc(50% + 18px) 50%,
            calc(50% + 36px) 50%;
    }
    30% {
        background-position:
            calc(50% - 36px) 50%,
            calc(50% - 18px) calc(50% - 12px),
            50% 50%,
            calc(50% + 18px) 50%,
            calc(50% + 36px) 50%;
    }
    50% {
        background-position:
            calc(50% - 36px) 50%,
            calc(50% - 18px) 50%,
            50% calc(50% - 12px),
            calc(50% + 18px) 50%,
            calc(50% + 36px) 50%;
    }
    70% {
        background-position:
            calc(50% - 36px) 50%,
            calc(50% - 18px) 50%,
            50% 50%,
            calc(50% + 18px) calc(50% - 12px),
            calc(50% + 36px) 50%;
    }
    90% {
        background-position:
            calc(50% - 36px) 50%,
            calc(50% - 18px) 50%,
            50% 50%,
            calc(50% + 18px) 50%,
            calc(50% + 36px) calc(50% - 12px);
    }
}

@keyframes ejImageDotsBounceCompact {
    0%, 32%, 66%, 100% {
        background-position:
            calc(50% - 12px) 50%,
            50% 50%,
            calc(50% + 12px) 50%;
    }
    16% {
        background-position:
            calc(50% - 12px) calc(50% - 7px),
            50% 50%,
            calc(50% + 12px) 50%;
    }
    49% {
        background-position:
            calc(50% - 12px) 50%,
            50% calc(50% - 7px),
            calc(50% + 12px) 50%;
    }
    83% {
        background-position:
            calc(50% - 12px) 50%,
            50% 50%,
            calc(50% + 12px) calc(50% - 7px);
    }
}

@media (prefers-reduced-motion: reduce) {
    img.ej-image-managed {
        transition: none;
    }

    img.ej-image-loading {
        animation: none;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 28px 16px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-top: 48px;
    color: #999;
    font-size: 13px;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 4px;
}

.footer-links a {
    color: #bbb;
    font-size: 12px;
    text-decoration: none;
    padding: 2px 8px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a + a::before {
    content: '\2022';
    margin-right: 12px;
    color: #ddd;
    pointer-events: none;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 40px 20px 20px;
        margin-top: 64px;
        font-size: 14px;
    }
    .footer-links a {
        font-size: 13px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary-desert {
    color: var(--primary);
}

.bg-primary-desert {
    background-color: var(--primary);
}

/* Accessibility */
:focus-visible {
    outline: 2.5px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

a,
button {
    transition: all 0.25s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #f0ede8;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
