/* =====================================================================
   Crique El Haouaria — High-End Boutique Magazine design system
   Inspired by the El Haouaria coast: limestone, deep azure, sand,
   terracotta and muted olive. Mobile-first, editorial and conversion-led.
   ===================================================================== */

:root {
    --surface: #fbf9f4;
    --surface-dim: #dbdad5;
    --surface-bright: #fbf9f4;
    --surface-lowest: #ffffff;
    --surface-low: #f5f3ee;
    --surface-container: #f0eee9;
    --surface-high: #eae8e3;
    --surface-highest: #e4e2dd;

    --ink: #1a1c1e;
    --ink-soft: #43474f;
    --outline: #737780;
    --outline-soft: #c3c6d1;

    --azure-deep: #003366;
    --azure-dark: #001e40;
    --azure-light: #d5e3ff;
    --sand: #d2b48c;
    --sand-soft: #fbdbb0;
    --terracotta: #e07a5f;
    --terracotta-dark: #7c2e19;
    --olive: #556b2f;
    --error: #ba1a1a;
    --error-soft: #ffdad6;

    --radius-xs: 2px;
    --radius: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --pill: 9999px;

    --shadow-soft: 0 10px 34px rgba(0, 51, 102, 0.08);
    --shadow-float: 0 18px 54px rgba(0, 51, 102, 0.12);
    --shadow-hero: 0 24px 80px rgba(0, 30, 64, 0.18);

    --container: 1200px;
    --content-narrow: 780px;
    --header-h: 72px;
    --space-section: 72px;

    --font-display-ltr: "Playfair Display", Georgia, serif;
    --font-body-ltr: "Inter", "Segoe UI", Arial, sans-serif;
    --font-display-rtl: "Noto Naskh Arabic", "Tajawal", serif;
    --font-body-rtl: "Noto Sans Arabic", "Tajawal", Arial, sans-serif;
}

/* ---------- Reset / foundation ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    -webkit-text-size-adjust: 100%;
    background: var(--surface);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body-rtl);
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

html[dir="ltr"] body { font-family: var(--font-body-ltr); }

::selection { background: var(--sand-soft); color: var(--azure-dark); }

img { max-width: 100%; display: block; }
a { color: var(--azure-deep); text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
    margin: 0;
    color: var(--azure-dark);
    font-family: var(--font-display-rtl);
    font-weight: 700;
    line-height: 1.22;
}

html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] .brand-name {
    font-family: var(--font-display-ltr);
}

p { margin-top: 0; }

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute;
    inset-inline-start: -9999px;
    top: 0;
    z-index: 3000;
    background: var(--azure-dark);
    color: #fff;
    padding: 12px 18px;
    border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { inset-inline-start: 16px; }

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--terracotta) 70%, white);
    outline-offset: 3px;
}

/* ---------- Layout ---------- */
.container {
    width: min(100%, var(--container));
    margin-inline: auto;
    padding-inline: 24px;
}
.container-narrow { max-width: var(--content-narrow); }

.section {
    position: relative;
    padding-block: var(--space-section);
}
.section[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.section-alt { background: var(--surface-low); }

.section-title {
    position: relative;
    max-width: 820px;
    margin: 0 auto 18px;
    padding-top: 20px;
    text-align: center;
    font-size: clamp(2rem, 7vw, 2.75rem);
    letter-spacing: -0.02em;
}

.section-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 48px;
    height: 2px;
    transform: translateX(-50%);
    background: var(--sand);
}

.section-title-sm {
    font-size: clamp(1.45rem, 4.5vw, 1.9rem);
    margin-bottom: 18px;
}

.section-lead {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--ink-soft);
    text-align: center;
    font-size: 1.04rem;
    line-height: 1.8;
}

.section-lead small { color: var(--outline); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
    text-align: center;
    transition: transform 300ms ease, background-color 300ms ease, color 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 54px; padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .56; cursor: not-allowed; transform: none; }

.btn-primary {
    background: var(--azure-deep);
    color: var(--surface);
    box-shadow: 0 8px 24px rgba(0, 51, 102, .12);
}
.btn-primary:hover { background: var(--azure-dark); box-shadow: var(--shadow-soft); }

.btn-conversion {
    background: var(--terracotta);
    color: #fff;
    box-shadow: 0 10px 28px rgba(224, 122, 95, .22);
}
.btn-conversion:hover { background: #c9664d; box-shadow: 0 14px 34px rgba(224, 122, 95, .28); }

.btn-ghost {
    background: transparent;
    color: var(--azure-deep);
    border-color: color-mix(in srgb, var(--azure-deep) 58%, transparent);
}
.btn-ghost:hover { background: var(--azure-deep); border-color: var(--azure-deep); color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(249, 247, 242, .82);
    border-bottom: 1px solid rgba(210, 180, 140, .32);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 0 6px 28px rgba(0, 51, 102, .035);
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-logo { line-height: 0; flex: 0 0 auto; }
.brand-logo svg { width: 38px; height: 38px; }
.brand-name {
    color: var(--azure-dark);
    font-family: var(--font-display-rtl);
    font-size: 1.13rem;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.header-tools { display: inline-flex; align-items: center; gap: 10px; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(0, 51, 102, .10);
    border-radius: var(--pill);
    background: rgba(255, 255, 255, .58);
}
.lang-link {
    padding: 7px 10px;
    border-radius: var(--pill);
    color: var(--ink-soft);
    font-size: .77rem;
    font-weight: 700;
    line-height: 1;
    transition: 300ms ease;
}
.lang-link:hover { background: var(--surface-container); color: var(--azure-deep); }
.lang-link.is-active { background: var(--azure-deep); color: #fff; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
    position: relative;
    padding: 10px 10px;
    color: var(--ink-soft);
    font-size: .88rem;
    font-weight: 600;
    transition: color 300ms ease, background-color 300ms ease;
}
.main-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    inset-inline: 10px;
    bottom: 5px;
    height: 1px;
    background: var(--sand);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 300ms ease;
}
.main-nav a:not(.nav-cta):hover { color: var(--azure-deep); }
.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.main-nav .nav-cta {
    margin-inline-start: 5px;
    padding: 10px 15px;
    border-radius: var(--radius);
    background: var(--terracotta);
    color: #fff;
}
.main-nav .nav-cta:hover { background: #c9664d; color: #fff; }

.nav-close {
    display: none;
    background: transparent;
    border: 0;
    color: var(--azure-dark);
    font-family: var(--font-body-ltr);
    font-size: 2rem;
    line-height: 1;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 9px;
    border: 0;
    background: transparent;
}
.nav-toggle span { width: 24px; height: 1.5px; background: var(--azure-dark); transition: 300ms ease; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: min(88svh, 860px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--azure-dark);
    color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center 44%; transform: scale(1.01); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 30, 64, .06) 0%, rgba(0, 30, 64, .18) 42%, rgba(0, 30, 64, .86) 100%),
        linear-gradient(90deg, rgba(0, 30, 64, .72) 0%, rgba(0, 30, 64, .16) 62%, rgba(0, 30, 64, .04) 100%);
}
html[dir="rtl"] .hero-overlay {
    background:
        linear-gradient(180deg, rgba(0, 30, 64, .06) 0%, rgba(0, 30, 64, .18) 42%, rgba(0, 30, 64, .86) 100%),
        linear-gradient(270deg, rgba(0, 30, 64, .72) 0%, rgba(0, 30, 64, .16) 62%, rgba(0, 30, 64, .04) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 120px;
    padding-bottom: 58px;
    text-align: start;
}

.hero-content::before {
    content: "EL HAOUARIA · TUNISIA";
    display: block;
    margin-bottom: 14px;
    color: #f5ddbb;
    font-family: var(--font-body-ltr);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    direction: ltr;
}
html[lang="ar"] .hero-content::before { content: "EL HAOUARIA · TUNISIA"; }

.hero-title {
    max-width: 790px;
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(2.55rem, 10vw, 4.8rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.05;
    text-shadow: 0 6px 26px rgba(0, 0, 0, .18);
}
html[lang="ar"] .hero-title { letter-spacing: 0; line-height: 1.18; }

.hero-subtitle {
    max-width: 690px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, .90);
    font-size: clamp(1.02rem, 3.5vw, 1.2rem);
    line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
html[dir="rtl"] .hero-actions { justify-content: flex-start; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .76); color: #fff; background: rgba(255,255,255,.05); backdrop-filter: blur(8px); }
.hero .btn-ghost:hover { background: #fff; color: var(--azure-dark); border-color: #fff; }

.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    max-width: 760px;
    margin-top: 28px;
    color: rgba(255,255,255,.78);
    font-size: .83rem;
    font-weight: 600;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span { color: #f5ddbb; }

/* ---------- Editorial cards ---------- */
.cards-grid { display: grid; gap: 18px; }
.cards-3, .cards-4 { grid-template-columns: 1fr; }

.info-card,
.service-card,
.why-card {
    position: relative;
    background: var(--surface-lowest);
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.info-card,
.service-card {
    padding: 26px 24px 28px;
    text-align: start;
}

.info-icon,
.service-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 1px solid rgba(0, 51, 102, .12);
    border-radius: var(--pill);
    background: var(--surface-low);
    font-size: 1.25rem;
    filter: grayscale(.55) saturate(.7);
}

.info-card h3,
.service-card h3 {
    margin-bottom: 9px;
    font-size: 1.35rem;
}

.info-card p,
.service-card p { margin: 0; color: var(--ink-soft); font-size: .93rem; line-height: 1.75; }

.brand-promise {
    position: relative;
    max-width: 820px;
    margin: 56px auto 0;
    padding-inline: 38px;
    color: var(--azure-deep);
    font-family: var(--font-display-rtl);
    font-size: clamp(1.3rem, 4.5vw, 1.85rem);
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
}
html[dir="ltr"] .brand-promise { font-family: var(--font-display-ltr); }
.brand-promise::before, .brand-promise::after { position: absolute; top: -.2em; color: var(--sand); font-family: Georgia, serif; font-size: 2.6em; opacity: .72; }
.brand-promise::before { content: "“"; inset-inline-start: 0; }
.brand-promise::after { content: "”"; inset-inline-end: 0; }

/* ---------- Highlights ---------- */
.highlight-box {
    max-width: 820px;
    margin: 16px auto 0;
    padding: 15px 18px;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 700;
    text-align: center;
}
.highlight-primary { background: var(--azure-deep); color: var(--surface); box-shadow: var(--shadow-soft); }
.highlight-soft { background: var(--sand-soft); color: #584324; }

/* ---------- Kayak editorial feature ---------- */
.kayak-card {
    position: relative;
    display: grid;
    gap: 20px;
    align-items: center;
    padding: 30px 26px;
    overflow: hidden;
    background: var(--surface-lowest);
    border-radius: var(--radius);
    box-shadow: var(--shadow-float);
    text-align: start;
}
.kayak-card::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 7px;
    background: linear-gradient(var(--sand), var(--terracotta));
}
.kayak-icon {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 51, 102, .12);
    border-radius: 50%;
    background: var(--surface-low);
    font-size: 1.75rem;
    filter: grayscale(.45);
}
.kayak-body h2 { margin-bottom: 10px; font-size: clamp(1.7rem, 5vw, 2.25rem); }
.kayak-body p { margin-bottom: 14px; color: var(--ink-soft); }
.kayak-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-soft); font-size: .9rem; }
.kayak-meta strong { color: var(--azure-deep); }

/* ---------- Timeline ---------- */
.timeline {
    list-style: none;
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}
.timeline::before {
    content: "";
    position: absolute;
    inset-inline-start: 21px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(var(--sand), var(--azure-deep));
}
.timeline li { position: relative; display: flex; gap: 18px; align-items: flex-start; padding-block: 8px; }
.tl-num {
    z-index: 1;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sand);
    border-radius: 50%;
    background: var(--surface-low);
    color: var(--azure-deep);
    font-size: .82rem;
    font-weight: 700;
}
.tl-body {
    flex: 1;
    padding: 10px 0 16px;
    border-bottom: 1px solid rgba(115, 119, 128, .18);
}
.tl-body h3 { font-family: var(--font-body-rtl); font-size: 1rem; font-weight: 600; color: var(--ink); }
html[dir="ltr"] .tl-body h3 { font-family: var(--font-body-ltr); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gallery-item {
    position: relative;
    min-height: 190px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-xs);
    background: var(--surface-high);
    box-shadow: none;
}
.gallery-item picture, .gallery-item img { width: 100%; height: 100%; }
.gallery-item img { object-fit: cover; transition: transform 700ms cubic-bezier(.2,.75,.25,1), filter 300ms ease; }
.gallery-item:hover img { transform: scale(1.035); filter: saturate(1.06); }
.gallery-item span {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 24px 14px 12px;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    text-align: start;
    background: linear-gradient(transparent, rgba(0, 30, 64, .72));
}

/* ---------- Why / trust cards ---------- */
.why-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    text-align: start;
}
.why-card span {
    display: flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-low);
    font-size: 1rem;
    filter: grayscale(.7);
}
.why-card p { margin: 2px 0 0; color: var(--ink-soft); font-size: .91rem; font-weight: 600; line-height: 1.6; }

/* ---------- Booking form ---------- */
#booking { background: var(--surface); }
.booking-wrap { max-width: 760px; margin: 0 auto; }
.booking-form {
    position: relative;
    padding: 30px 24px;
    border: 0;
    border-radius: var(--radius);
    background: var(--surface-lowest);
    box-shadow: var(--shadow-float);
}
.booking-form::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--azure-deep), var(--sand), var(--terracotta));
}

.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 22px; }
.field label {
    display: block;
    margin-bottom: 3px;
    color: var(--azure-dark);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
html[lang="ar"] .field label { letter-spacing: 0; text-transform: none; font-size: .82rem; }
.field label small { color: var(--outline); font-weight: 500; }
.req { color: var(--terracotta); }

.field input,
.field textarea,
.field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 2px 9px;
    border: 0;
    border-bottom: 1.5px solid rgba(0, 51, 102, .42);
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: .97rem;
    transition: border-color 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8d9095; opacity: .75; }
.field input:focus, .field textarea:focus, .field select:focus {
    border-bottom-color: var(--azure-deep);
    box-shadow: 0 2px 0 var(--azure-deep);
    background: linear-gradient(to bottom, transparent 70%, rgba(213, 227, 255, .18));
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: 0 1px 0 var(--error); }
.field-error { min-height: 1px; margin: 6px 0 0; color: var(--error); font-size: .79rem; }
.field-hint { margin: 6px 0 0; color: var(--outline); font-size: .76rem; line-height: 1.55; text-align: start; }
.form-privacy-note { text-align: center; }

.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary {
    position: relative;
    margin: 4px 0 22px;
    padding: 18px 20px;
    border: 1px solid rgba(210, 180, 140, .56);
    border-radius: var(--radius);
    background: rgba(249, 247, 242, .96);
    box-shadow: 0 8px 26px rgba(0, 51, 102, .05);
}
.summary h3 { margin-bottom: 12px; font-size: 1.2rem; }
.summary-row { display: flex; justify-content: space-between; gap: 20px; padding: 5px 0; color: var(--ink-soft); font-size: .88rem; }
.summary-row strong { color: var(--ink); }
.summary-total { margin-top: 7px; padding-top: 11px; border-top: 1px solid rgba(210, 180, 140, .48); font-size: .98rem; }
.summary-total strong { color: var(--azure-deep); font-size: 1.08rem; }

.field-consent .checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--ink-soft);
    font-size: .86rem;
    font-weight: 500;
    line-height: 1.55;
    cursor: pointer;
    letter-spacing: 0;
    text-transform: none;
}
.checkbox input { width: 20px; height: 20px; min-height: 20px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--azure-deep); }

.form-note {
    margin: 10px 0 0;
    padding: 12px 14px;
    border-inline-start: 3px solid var(--sand);
    background: var(--surface-low);
    color: #584324;
    font-size: .82rem;
    text-align: start;
}
.form-general-error { margin: 12px 0 0; color: var(--error); font-size: .88rem; font-weight: 700; text-align: center; }

.success-card {
    padding: 38px 28px;
    border: 1px solid rgba(85, 107, 47, .25);
    border-radius: var(--radius);
    background: #f5f7ef;
    box-shadow: var(--shadow-float);
    text-align: center;
}
.success-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--olive);
    color: #fff;
    font-size: 1.55rem;
}
.success-card h3 { margin-bottom: 9px; color: var(--olive); }
.success-ref strong { color: var(--azure-deep); letter-spacing: .04em; }
.success-note { padding: 10px 12px; background: var(--sand-soft); color: #584324; font-size: .82rem; }

/* ---------- FAQ ---------- */
.accordion { display: flex; flex-direction: column; gap: 0; border-top: 1px solid rgba(115,119,128,.24); }
.acc-item { overflow: hidden; border: 0; border-bottom: 1px solid rgba(115,119,128,.24); border-radius: 0; background: transparent; box-shadow: none; }
.acc-header {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 2px;
    border: 0;
    background: transparent;
    color: var(--azure-dark);
    font-family: var(--font-display-rtl);
    font-size: 1.08rem;
    font-weight: 700;
    text-align: start;
}
html[dir="ltr"] .acc-header { font-family: var(--font-display-ltr); }
.acc-icon { flex: 0 0 auto; color: var(--terracotta); font-family: var(--font-body-ltr); font-size: 1.45rem; font-weight: 300; transition: transform 300ms ease; }
.acc-header[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.acc-panel p { margin: 0; padding: 0 2px 18px; color: var(--ink-soft); font-size: .92rem; }

/* ---------- Legal ---------- */
.legal-cols { display: grid; grid-template-columns: 1fr; gap: 18px; }
.legal-block { padding: 24px; border: 0; border-radius: var(--radius); background: var(--surface-low); box-shadow: none; }
.legal-list { list-style: none; }
.legal-list li { position: relative; padding: 6px 20px 6px 0; color: var(--ink-soft); font-size: .86rem; }
html[dir="ltr"] .legal-list li { padding: 6px 0 6px 20px; }
.legal-list li::before { content: "—"; position: absolute; inset-inline-start: 0; color: var(--sand); font-weight: 700; }
.legal-list .muted { color: var(--outline); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 16px; background: var(--azure-dark); color: rgba(255,255,255,.74); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 30px; padding-top: 54px; padding-bottom: 38px; }
.footer-col h4 { margin-bottom: 12px; color: #fff; font-family: var(--font-body-rtl); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
html[dir="ltr"] .footer-col h4 { font-family: var(--font-body-ltr); }
html[lang="ar"] .footer-col h4 { letter-spacing: 0; text-transform: none; font-size: .82rem; }
.footer-col p { margin: 5px 0; font-size: .88rem; }
.footer-col a { color: rgba(255,255,255,.76); }
.footer-col a:hover { color: #fff; }
.brand-footer .brand-name { color: #fff; font-size: 1.4rem; }
.footer-desc { max-width: 360px; color: rgba(255,255,255,.58); }
.social { display: flex; gap: 8px; }
.social-link { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: #fff; font-weight: 700; text-transform: uppercase; transition: 300ms ease; }
.social-link:hover { border-color: var(--sand); background: var(--sand); color: var(--azure-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 15px 0; color: rgba(255,255,255,.45); font-size: .76rem; text-align: center; }
.footer-bottom p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 18, 40, .96); }
.lightbox[hidden] { display: none; }
.lb-figure { max-width: 92vw; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-img { max-width: 92vw; max-height: 80vh; border-radius: var(--radius-xs); box-shadow: var(--shadow-hero); }
.lb-caption { color: rgba(255,255,255,.72); font-size: .84rem; text-align: center; }
.lb-close, .lb-nav { border: 0; color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.lb-close { position: absolute; top: 16px; inset-inline-end: 18px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lb-nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; transform: translateY(-50%); border-radius: 50%; font-size: 2rem; }
.lb-prev { inset-inline-end: 14px; }
.lb-next { inset-inline-start: 14px; }
.lb-nav:hover, .lb-close:hover { background: rgba(255,255,255,.16); }

/* ---------- Sticky mobile conversion bar ---------- */
.sticky-cta {
    position: fixed;
    inset-inline: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    display: none;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius);
    background: rgba(224, 122, 95, .94);
    color: #fff;
    box-shadow: var(--shadow-float);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-weight: 800;
    text-align: center;
    transition: 300ms ease;
}
.sticky-cta:hover { background: #c9664d; color: #fff; }

body.modal-open { overflow: hidden; }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.75,.25,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (min-width: 560px) {
    .field-row { grid-template-columns: 1fr 1fr; }
    .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .gallery-item:nth-child(1), .gallery-item:nth-child(4), .gallery-item:nth-child(7) { grid-column: span 2; }
    .gallery-item:nth-child(1), .gallery-item:nth-child(6) { min-height: 280px; }
    .kayak-card { grid-template-columns: auto 1fr; }
    .kayak-card .btn { grid-column: 2; justify-self: start; }
}

@media (min-width: 768px) {
    :root { --space-section: 104px; }
    .section-title { font-size: clamp(2.3rem, 4vw, 3.2rem); }
    .section-lead { margin-bottom: 54px; }
    .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .legal-cols { grid-template-columns: 1fr 1fr; }
    .footer-inner.footer-grid-4 { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .footer-inner.footer-grid-3 { grid-template-columns: 2fr 1fr 1fr; }
    .booking-form { padding: 42px 46px; }
}

@media (min-width: 960px) {
    :root { --space-section: 128px; }

    .hero { min-height: 90vh; align-items: center; }
    .hero-content { padding-top: 145px; padding-bottom: 88px; }
    .hero-title { max-width: 800px; }

    #experience .cards-4 { gap: 22px; }
    #experience .info-card:nth-child(2),
    #experience .info-card:nth-child(4) { transform: translateY(34px); }
    #experience .info-card:nth-child(2).reveal,
    #experience .info-card:nth-child(4).reveal { transform: translateY(54px); }
    #experience .info-card:nth-child(2).reveal.is-visible,
    #experience .info-card:nth-child(4).reveal.is-visible { transform: translateY(34px); }

    .services-grid { grid-template-columns: repeat(12, 1fr); gap: 20px; }
    .services-grid .service-card { grid-column: span 4; min-height: 210px; }
    .services-grid .service-card:nth-child(5n+1) { grid-column: span 5; }
    .services-grid .service-card:nth-child(5n+2) { grid-column: span 3; }
    .services-grid .service-card:nth-child(5n+3) { grid-column: span 4; }

    .kayak-card { grid-template-columns: auto minmax(0, 1fr) auto; padding: 38px 40px; }
    .kayak-card .btn { grid-column: auto; justify-self: auto; }

    .gallery-grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 110px; gap: 12px; }
    .gallery-item { min-height: 0; }
    .gallery-item:nth-child(1) { grid-column: span 5; grid-row: span 5; }
    .gallery-item:nth-child(2) { grid-column: span 3; grid-row: span 3; }
    .gallery-item:nth-child(3) { grid-column: span 4; grid-row: span 3; }
    .gallery-item:nth-child(4) { grid-column: span 3; grid-row: span 3; }
    .gallery-item:nth-child(5) { grid-column: span 4; grid-row: span 3; }
    .gallery-item:nth-child(6) { grid-column: span 5; grid-row: span 4; }
    .gallery-item:nth-child(7) { grid-column: span 3; grid-row: span 4; }
    .gallery-item:nth-child(8) { grid-column: span 4; grid-row: span 4; }

    #why .cards-4 { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .why-card { min-height: 112px; }
}

/* Mobile navigation + mobile booking summary */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-close { display: block; position: absolute; top: 15px; inset-inline-end: 18px; }
    .main-nav {
        position: fixed;
        top: 0;
        bottom: 0;
        inset-inline-end: 0;
        width: min(86vw, 340px);
        z-index: 1100;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 74px 24px 28px;
        overflow-y: auto;
        background: rgba(249, 247, 242, .96);
        box-shadow: var(--shadow-float);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transform: translateX(110%);
        transition: transform 300ms cubic-bezier(.2,.75,.25,1);
    }
    html[dir="ltr"] .main-nav { inset-inline-start: 0; inset-inline-end: auto; transform: translateX(-110%); }
    .main-nav.open { transform: translateX(0); }
    .main-nav a { padding: 14px 2px; border-bottom: 1px solid rgba(115,119,128,.16); font-size: 1rem; }
    .main-nav a:not(.nav-cta)::after { display: none; }
    .main-nav .nav-cta { margin-top: 14px; margin-inline-start: 0; padding: 14px 16px; text-align: center; }
    body.nav-open { overflow: hidden; }

    .sticky-cta { display: block; }

    .summary {
        position: sticky;
        bottom: calc(82px + env(safe-area-inset-bottom, 0px));
        z-index: 20;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

@media (max-width: 620px) {
    :root { --header-h: 66px; }
    .container { padding-inline: 24px; }
    .hero { min-height: 84svh; }
    .hero-content { padding-bottom: 46px; }
    .hero-content::before { font-size: .66rem; }
    .hero-title { font-size: clamp(2.35rem, 11.5vw, 3.35rem); }
    .hero-actions { display: grid; grid-template-columns: 1fr; width: min(100%, 340px); }
    .hero-actions .btn { width: 100%; }
    .hero-trust { gap: 8px 14px; }
    .section-title { padding-top: 16px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item, .gallery-item:nth-child(n) { grid-column: span 1; min-height: 190px; }
    .gallery-item:first-child { grid-column: 1 / -1; min-height: 310px; }
    .booking-form { margin-inline: -8px; padding: 28px 20px; }
    .summary-row { font-size: .84rem; }
    .legal-block { padding: 20px; }
}

@media (max-width: 480px) {
    .header-inner { gap: 6px; }
    .brand { flex: 1 1 auto; }
    .brand-name { max-width: 31vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
    .brand-logo svg { width: 34px; height: 34px; }
    .header-tools { flex: 0 0 auto; gap: 4px; }
    .lang-switch { flex: 0 0 auto; }
    .lang-link { min-width: 32px; padding: 7px; font-size: 0; text-align: center; }
    .lang-link::after { font-size: .7rem; line-height: 1; }
    .lang-link[data-lang-target="ar"]::after { content: "AR"; }
    .lang-link[data-lang-target="fr"]::after { content: "FR"; }
    .lang-link[data-lang-target="en"]::after { content: "EN"; }
    .nav-toggle { flex: 0 0 auto; padding: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none !important; }
}

/* =====================================================================
   V7 — El Haouaria topical authority module on the main booking pages
   ===================================================================== */
.destination-home-module {
    background: #f0eee9;
}

.destination-home-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.destination-home-card {
    min-width: 0;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(0, 51, 102, 0.07);
    transition: transform .3s ease, box-shadow .3s ease;
}

.destination-home-card:hover,
.destination-home-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 20px 46px rgba(0, 51, 102, 0.12);
}

.destination-home-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.destination-home-card-copy {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.destination-home-card-copy span {
    color: #725a39;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.destination-home-card-copy strong {
    color: #001e40;
    font-family: "Playfair Display", "Noto Naskh Arabic", serif;
    font-size: 1.18rem;
    line-height: 1.32;
}

html[lang="ar"] .destination-home-card-copy strong {
    font-family: "Noto Naskh Arabic", serif;
}

@media (max-width: 980px) {
    .destination-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .destination-home-grid {
        grid-template-columns: 1fr;
    }
}
