/* ==========================================================================
   Touareg Trails
   ========================================================================== */

:root {
    --cream: #f7fbfd;
    --sand: #e7f2f7;
    --ink: #1c3a4a;
    --ink-soft: #4e6876;
    --brown: #1f5a77;
    --dark: #0f3446;
    --rust: #297194;
    --rust-dark: #1f5a77;
    --gold: #ec993d;
    --white: #fff;
    --line: #d1e1f7;

    --font-brand: "Cinzel", "Trajan Pro", Georgia, serif;
    --font-display: "Libre Caslon Text", Georgia, serif;
    --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --header-h: 100px;
    --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, select { font: inherit; color: inherit; }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}
.container-wide {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
}

.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }

:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* ---------- Type helpers ---------- */

.eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 6px;
}
.eyebrow-light { color: var(--gold); }

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.12;
    letter-spacing: -.01em;
    text-wrap: balance;
}

.lead { color: var(--ink-soft); font-size: 17px; margin-top: 10px; max-width: 34em; }

.section { padding: 72px 0 0; }
.section-tight { padding-top: 56px; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 22px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rust);
    font-weight: 500;
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 4px;
    white-space: nowrap;
}
.text-link:hover { color: var(--rust-dark); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 999px;
    border: 0;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .2s, transform .2s;
}
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--rust); color: var(--white); box-shadow: 0 6px 18px rgba(41, 113, 148, .28); }
.btn-primary:hover { background: var(--rust-dark); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(247, 251, 253, .97);
    transition: background-color .25s, box-shadow .25s, height .25s;
}
.site-header.is-scrolled {
    --header-h: 76px;
    box-shadow: 0 6px 24px rgba(28, 58, 74, .08);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1340px;
}

.brand { display: block; flex-shrink: 0; }
.brand-logo {
    width: auto;
    height: 86px;
    transition: height .25s;
}
.is-scrolled .brand-logo { height: 64px; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 26px; }
.nav-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
}
.nav-list > li > a:hover { color: var(--rust); }
.nav-list > li > a.is-active { border-color: var(--ink); }
.nav-plan { display: none; }

.has-sub { position: relative; }
.sub-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 260px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(28, 58, 74, .14);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
}
.sub-menu a:hover { background: var(--sand); color: var(--rust-dark); }
.sub-menu a span { color: var(--ink-soft); font-size: 13px; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.icon-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--ink);
}
.icon-btn:hover { background: rgba(28, 58, 74, .06); }
.icon-btn .icon { width: 21px; height: 21px; }

.lang-switch { position: relative; }
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.lang-toggle .icon:first-child { width: 21px; height: 21px; }
.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 96px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(28, 58, 74, .14);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s, visibility .15s;
}
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 4px; font-size: 14px; text-decoration: none; }
.lang-menu a:hover { background: var(--sand); }
.lang-menu a[aria-current] { font-weight: 600; color: var(--rust); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 6px;
    cursor: pointer;
    color: var(--brown);
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--dark);
    color: var(--white);
    padding: calc(100px + 56px) 0 128px;
    min-height: 640px;
    display: flex;
    align-items: center;
}
/* Photo layer, mirrored so the couple sits on the right, away from the text. */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("../img/camel-caravan-erg-chebbi.jpg") center 40% / cover no-repeat;
    transform: scaleX(-1);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(12, 45, 61, .78) 0%, rgba(12, 45, 61, .5) 42%, rgba(12, 45, 61, 0) 72%),
        linear-gradient(0deg, rgba(12, 45, 61, .5) 0%, rgba(12, 45, 61, 0) 40%);
}

.hero-title { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.hero-brand {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.hero-tagline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -.01em;
}
.hero-title span { text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }

.hero-text {
    margin-top: 18px;
    max-width: 29em;
    font-size: 18px;
    color: rgba(255, 255, 255, .92);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 32px;
    margin-top: 32px;
}
.story-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
.story-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    transition: background-color .2s, color .2s;
}
.story-link:hover .story-icon { background: var(--white); color: var(--ink); }

/* ---------- Search bar ---------- */

.search-wrap {
    position: relative;
    z-index: 5;
    margin-top: -48px;
    max-width: 1100px;
}
.search-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    align-items: center;
    background: var(--white);
    border-radius: 999px;
    padding: 8px 8px 8px 16px;
    box-shadow: 0 18px 50px rgba(28, 58, 74, .18);
}
.search-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 18px;
    cursor: pointer;
    min-width: 0;
}
.search-field + .search-field { border-left: 1px solid var(--line); }
.search-icon { width: 28px; height: 28px; color: var(--rust); }
.search-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.search-label { font-size: 14px; font-weight: 600; }
.search-field select {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 14px;
    color: var(--ink-soft);
    cursor: pointer;
    width: 100%;
    text-overflow: ellipsis;
}
.search-field select:focus { outline: none; }
.search-field:focus-within { background: var(--cream); border-radius: 999px; }
.search-chevron { color: var(--ink-soft); pointer-events: none; }
.search-submit { padding: 17px 30px; font-size: 16px; }

/* ---------- Trust strip ---------- */

.trust {
    background: var(--sand);
    margin-top: -40px;
    padding: 72px 0 28px;
}
.trust-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    max-width: 1240px;
}
.trust-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 4px 14px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
}
.trust-list li + li { border-left: 1px solid var(--line); }
.trust-list .icon { width: 32px; height: 32px; color: var(--rust); stroke-width: 1.3; }

/* ---------- Photo cards (adventures, destinations) ---------- */

.rail { display: grid; gap: 10px; }
.adventure-grid { grid-template-columns: repeat(6, 1fr); }
.destination-grid { grid-template-columns: repeat(5, 1fr); }

.photo-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--brown);
    color: var(--white);
    text-decoration: none;
    isolation: isolate;
}
.photo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .6s;
}
.photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(9, 35, 48, .85) 0%, rgba(9, 35, 48, .35) 45%, rgba(9, 35, 48, 0) 70%);
}
.photo-card:hover img { transform: scale(1.06); }
.photo-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.2;
}

.adventure-card { aspect-ratio: 1 / 0.9; }
.photo-card-body {
    position: absolute;
    left: 18px;
    right: 56px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.adventure-icon { width: 32px; height: 32px; stroke-width: 1.4; margin-bottom: 6px; }
.photo-card-text { font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .88); }
.round-arrow {
    position: absolute;
    right: 14px;
    bottom: 16px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1.5px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    transition: background-color .2s, color .2s;
}
.photo-card:hover .round-arrow { background: var(--white); color: var(--ink); }

.destination-card { aspect-ratio: 16 / 9; }
/* Card without a photo yet */
.photo-card.is-placeholder {
    background:
        radial-gradient(circle at 78% 22%, rgba(236, 153, 61, .55), transparent 55%),
        linear-gradient(135deg, #d9832a, #134257);
}
.destination-card .photo-card-title {
    position: absolute;
    left: 16px;
    bottom: 12px;
    font-size: 16px;
}
.destination-arrow {
    position: absolute;
    right: 14px;
    bottom: 15px;
    transition: transform .2s;
}
.destination-card:hover .destination-arrow { transform: translateX(3px); }

/* ---------- Journeys ---------- */

.journeys {
    display: grid;
    grid-template-columns: 43% 1fr;
    margin-top: 72px;
    background: var(--white);
}
.journeys-feature {
    position: relative;
    display: block;
    min-height: 420px;
    overflow: hidden;
    color: var(--white);
    text-decoration: none;
}
.journeys-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}
.journeys-feature:hover img { transform: scale(1.04); }
.journeys-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 55%, rgba(9, 35, 48, .45), rgba(9, 35, 48, .1) 60%);
}
.journeys-feature-label {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    max-width: 80%;
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.3;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}
.journeys-feature-label .story-icon { flex-shrink: 0; background: rgba(255, 255, 255, .12); }
.journeys-feature:hover .story-icon { background: var(--white); color: var(--ink); }

.journeys-body { padding: 48px 40px 48px 36px; min-width: 0; }
.journeys-body .lead { font-size: 16px; }

.trip-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trip-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
}
.trip-media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    margin-bottom: 6px;
}
.trip-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.trip-card:hover .trip-media img { transform: scale(1.06); }
.trip-days {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--white);
    color: var(--ink);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.trip-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.25; }
.trip-route { display: flex; gap: 6px; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.trip-route .icon { margin-top: 3px; color: var(--rust); }
.trip-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--rust);
}

/* ---------- Purpose ---------- */

.purpose { padding-top: 88px; }
.purpose-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
}
.purpose-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(28, 58, 74, .2);
}
.purpose-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-top: 28px;
}
.purpose-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    line-height: 1.3;
}
.purpose-list .icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 50%;
    background: var(--sand);
    color: var(--rust);
}

/* ---------- Moments ---------- */

.moments-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-auto-rows: 230px;
    gap: 10px;
}
.moment {
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
    background: var(--sand);
}
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.moment:hover img { transform: scale(1.05); }

/* ---------- Contact ---------- */

.contact {
    margin-top: 88px;
    padding: 80px 0;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(12, 45, 61, .95) 0%, rgba(12, 45, 61, .82) 55%, rgba(12, 45, 61, .6) 100%),
        url("../img/camel-caravan.jpg") center 40% / cover no-repeat;
}
.contact-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
}
.contact .lead { color: rgba(255, 255, 255, .82); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, .9);
}
.contact-link:hover { color: var(--gold); }

.request-card {
    background: var(--cream);
    color: var(--ink);
    border-radius: 14px;
    padding: 26px;
}
.request-card h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 14px; }
.request-card dl { display: grid; gap: 10px; margin-bottom: 20px; }
.request-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.request-card dt { color: var(--ink-soft); }
.request-card dd { font-weight: 600; text-align: right; }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: rgba(255, 255, 255, .72); font-size: 15px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 48px;
}
.footer-logo { width: 190px; height: auto; margin-bottom: 18px; }
.footer-about p { max-width: 28em; }
.site-footer h3 {
    color: var(--white);
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 18px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 22px;
    padding-bottom: 22px;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

/* ---------- Lightbox ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 27, 37, .92);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: 0;
    color: var(--white);
    padding: 8px;
    cursor: pointer;
}
.lightbox-close .icon { width: 32px; height: 32px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1240px) {
    .nav-list { gap: 18px; }
    .header-plan { padding: 11px 20px; }
    .trust-list li { flex-direction: column; text-align: center; gap: 8px; }
}

/* Card rows become swipeable rails. */
@media (max-width: 1100px) {
    .rail {
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: 30%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }
    .rail > * { scroll-snap-align: start; }
    .trip-grid { grid-auto-columns: 44%; }

    .journeys { grid-template-columns: 1fr; }
    .journeys-feature { min-height: 300px; }
    .journeys-body { padding: 40px 32px; }

    .purpose-grid { grid-template-columns: 1fr; gap: 36px; }
    .purpose-img { max-width: 720px; }
}

@media (max-width: 1040px) {
    :root { --header-h: 76px; }

    .site-header { background: rgba(247, 251, 253, .97); box-shadow: 0 4px 20px rgba(28, 58, 74, .06); }
    .site-header.is-scrolled { --header-h: 76px; }
    .brand-logo,
    .is-scrolled .brand-logo { height: 60px; }
    .hero { padding-top: calc(76px + 48px); }

    .nav-toggle { display: block; }
    .header-plan { display: none; }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--cream);
        padding: 16px 32px 40px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .nav-open { overflow: hidden; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list > li { border-bottom: 1px solid var(--line); }
    .nav-list > li > a {
        display: flex;
        padding: 14px 0;
        font-family: var(--font-display);
        font-size: 21px;
        border: 0;
    }
    .nav-list > li > a.is-active { color: var(--rust); }
    .nav-list > li > a .icon { display: none; }
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: none;
        padding: 0 0 12px;
        min-width: 0;
    }
    .sub-menu a { padding: 6px 0; }
    .nav-plan { display: inline-flex; margin-top: 28px; width: 100%; }

    .trust-list { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
    .trust-list li:nth-child(4) { border-left: 0; }

    .contact-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .search-bar {
        grid-template-columns: 1fr;
        border-radius: 18px;
        padding: 8px;
    }
    .search-field { padding: 12px 10px; }
    .search-field + .search-field { border-left: 0; border-top: 1px solid var(--line); }
    .search-field:focus-within { border-radius: 10px; }
    .search-submit { margin-top: 6px; }

    .rail { grid-auto-columns: 62%; }
    .trip-grid { grid-auto-columns: 70%; }
    .destination-grid { grid-auto-columns: 58%; }

    .moments-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .container-wide { padding: 0 16px; }
    .main-nav { padding: 12px 16px 32px; }

    .brand-logo,
    .is-scrolled .brand-logo { height: 54px; }
    .search-btn { display: none; }

    .hero { min-height: 0; padding-bottom: 104px; }
    .hero::after { background-position: 30% center; }
    .hero::before { background: linear-gradient(90deg, rgba(12, 45, 61, .82), rgba(12, 45, 61, .45)); }
    .hero-text { font-size: 16px; }

    .section { padding-top: 56px; }
    .section-head { flex-direction: column; align-items: flex-start; }

    .trust { padding-top: 64px; }
    .trust-list { grid-template-columns: repeat(2, 1fr); }
    .trust-list li { flex-direction: row; text-align: left; justify-content: flex-start; padding: 4px 8px; }
    .trust-list li + li { border-left: 0; }

    .journeys { margin-top: 56px; }
    .journeys-body { padding: 36px 16px; }
    .journeys-feature { min-height: 240px; }

    .purpose { padding-top: 64px; }
    .purpose-list { grid-template-columns: 1fr; }

    .contact { margin-top: 64px; padding: 64px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   About page — built from the home page components, with a few additions
   ========================================================================== */

.about-hero { padding-bottom: 96px; min-height: 520px; }
.about-hero::after {
    background-image: url("../img/tinghir-oasis.jpg");
    background-position: center 65%;
    transform: none;
}
.about-hero .hero-tagline { font-size: clamp(38px, 5.6vw, 64px); max-width: 12em; }
.about-subtitle { margin-top: 14px; font-size: 20px; font-weight: 500; color: var(--gold); }

.about-photo { aspect-ratio: 4 / 3.4; object-fit: cover; }
.purpose .lead + .lead { margin-top: 14px; }
.about-btn { margin-top: 28px; }

.section-intro { max-width: 30em; color: var(--ink-soft); font-size: 15px; }

/* Why choose us */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin-top: 8px;
}
.icon-grid li { text-align: center; padding: 6px 16px; }
.icon-grid li + li { border-left: 1px solid var(--line); }
.feature-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--sand);
    color: var(--rust);
}
.feature-icon .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.icon-grid h3 { font-size: 15.5px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.icon-grid p { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

/* Services */
.service-grid { grid-template-columns: repeat(5, 1fr); }
.service-card { aspect-ratio: 4 / 3; }

/* Book direct */
.direct-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.direct-tagline { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--rust); }
.direct-text .lead { font-size: 15.5px; }
.direct-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-top: 20px; }
.compare { border-radius: 10px; padding: 22px 24px 24px; height: 100%; }
.compare h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.compare h3 .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; }
.compare li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    font-size: 14.5px;
    line-height: 1.45;
    border-top: 1px solid var(--line);
}
.compare li .icon { margin-top: 2px; }
.compare-us { background: var(--white); box-shadow: 0 8px 28px rgba(28, 58, 74, .08); border-top: 4px solid var(--rust); }
.compare-us h3 .icon { background: var(--rust); color: var(--white); }
.compare-us li .icon { color: var(--rust); }
.compare-them { background: var(--sand); color: var(--ink-soft); border-top: 4px solid rgba(28, 58, 74, .2); }
.compare-them h3 { color: var(--ink); }
.compare-them h3 .icon { background: rgba(28, 58, 74, .12); }

/* How we plan: a real sequence, so the steps are numbered */
.steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.steps li { position: relative; padding-right: 14px; }
.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 54px;
    right: 0;
    border-top: 2px dashed rgba(41, 113, 148, .35);
}
.step-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--rust);
    color: var(--white);
    font-weight: 600;
}
.steps h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.steps p { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

/* Who travels with us */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips .pill { cursor: default; padding: 11px 20px; font-size: 14.5px; }

/* Why a local company */
.local-band { background: var(--sand); padding: 64px 0; margin-top: 72px; }
.local-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 28px;
}
.local-grid h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.local-grid p { color: var(--ink-soft); font-size: 15px; }

/* Expertise */
.region-grid { grid-template-columns: repeat(9, 1fr); list-style: none; margin: 0; padding: 0; }
.region-card { aspect-ratio: 3 / 4; }
.region-card .photo-card-title {
    position: absolute;
    left: 12px;
    right: 10px;
    bottom: 12px;
    font-size: 15px;
}

/* FAQ */
.faq-head-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.faq-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--rust); }
.faq-item summary .icon { color: var(--rust); flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item p { padding: 0 32px 16px 0; color: var(--ink-soft); font-size: 14.5px; }

.promise {
    background:
        linear-gradient(90deg, rgba(12, 45, 61, .92) 0%, rgba(12, 45, 61, .7) 55%, rgba(12, 45, 61, .35) 100%),
        url("../img/dune-sunset-family.jpg") center 55% / cover no-repeat;
}
.promise .section-title { max-width: 14em; }

@media (max-width: 1240px) {
    .icon-grid { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
    .icon-grid li:nth-child(4) { border-left: 0; }
    .steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
    .steps li:nth-child(3)::after { display: none; }
}

@media (max-width: 1100px) {
    .region-grid { grid-auto-columns: 22%; }
    .service-grid { grid-auto-columns: 30%; }
}

@media (max-width: 1040px) {
    .direct-grid { grid-template-columns: 1fr 1fr; }
    .direct-text { grid-column: 1 / -1; }
    .direct-img { display: none; }
    .local-grid { grid-template-columns: 1fr; gap: 24px; }
    .faq-columns { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .region-grid { grid-auto-columns: 40%; }
    .service-grid { grid-auto-columns: 58%; }
}

@media (max-width: 640px) {
    .about-hero { padding-bottom: 72px; }
    .icon-grid { grid-template-columns: repeat(2, 1fr); }
    .icon-grid li { padding: 4px 10px; }
    .icon-grid li:nth-child(odd) { border-left: 0; }
    .icon-grid li:nth-child(4) { border-left: 1px solid var(--line); }
    .direct-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .steps li::after { display: none; }
    .local-band { padding: 48px 0; margin-top: 56px; }
}

/* ==========================================================================
   Tours page
   ========================================================================== */

.tours-hero { min-height: 480px; padding-bottom: 88px; }
.tours-hero::after {
    background-image: url("../img/quad-erg-chebbi.jpg");
    background-position: center 55%;
    transform: none;
}
.tours-hero .hero-tagline { font-size: clamp(42px, 6.5vw, 76px); }

.tours-section { padding-top: 40px; }

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.pill .icon { color: var(--rust); }
.pill:hover { border-color: var(--rust); }
.pill[aria-pressed="true"] { background: var(--rust); border-color: var(--rust); color: var(--white); }
.pill[aria-pressed="true"] .icon { color: var(--white); }

.tour-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.tour-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(28, 58, 74, .07);
    scroll-margin-top: 110px;
}
.tour-card[hidden] { display: none; }
.tour-media { position: relative; }
.tour-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.tour-badge {
    position: absolute;
    right: 18px;
    bottom: -26px;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--sand);
    color: var(--rust);
    border: 3px solid var(--white);
}
.tour-badge .icon { width: 26px; height: 26px; stroke-width: 1.5; }
.tour-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 20px 22px 22px;
}
.tour-body h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 21px;
    line-height: 1.2;
    padding-right: 56px;
}
.tour-body p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.tour-body .text-link { align-self: flex-start; }
.tour-card-links { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 6px; }

.tours-cta {
    background:
        linear-gradient(90deg, rgba(12, 45, 61, .92) 0%, rgba(12, 45, 61, .7) 55%, rgba(12, 45, 61, .35) 100%),
        url("../img/dune-jump.jpg") center 70% / cover no-repeat;
}

@media (max-width: 1040px) {
    .tour-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .tour-grid { grid-template-columns: 1fr; }
    .filter-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -16px 24px;
        padding: 0 16px 6px;
    }
    .pill { flex-shrink: 0; }
}

/* ==========================================================================
   Experiences page
   ========================================================================== */

/* Hero with a slow zoom on the photo */
.experiences-hero { min-height: 560px; padding-bottom: 88px; }
/* Experiences header photo: yoga at sunrise in the Erg Chebbi dunes.
   Mirrored so the two women stand on the right, away from the headline. */
.experiences-hero::after {
    background-image: url("../img/desert-yoga.jpg");
    background-position: center top;
    transform-origin: center top;
    animation: xp-zoom 18s ease-out both;
}
@keyframes xp-zoom {
    from { transform: scaleX(-1) scale(1.1); }
    to   { transform: scaleX(-1) scale(1); }
}
.experiences-hero .hero-tagline { font-size: clamp(36px, 5vw, 62px); max-width: 10.5em; line-height: 1.04; }
.experiences-hero .hero-text { font-size: 17px; }

/* Category bar: sticks under the header */
.xp-nav {
    position: sticky;
    top: 76px;
    z-index: 40;
    background: rgba(247, 251, 253, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(28, 58, 74, .06);
}
.xp-nav ul {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding-top: 9px;
    padding-bottom: 9px;
    overflow-x: auto;
    scrollbar-width: none;
}
.xp-nav ul::-webkit-scrollbar { display: none; }
.xp-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 5px;
    border-radius: 999px;
    white-space: nowrap;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: background-color .25s, color .25s;
}
.xp-nav-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sand);
    color: var(--rust);
    transition: background-color .25s, color .25s;
}
.xp-nav-icon .icon { width: 17px; height: 17px; }
.xp-nav a:hover { background: var(--sand); }
.xp-nav a.is-current { background: var(--rust); color: var(--white); }
.xp-nav a.is-current .xp-nav-icon { background: rgba(255, 255, 255, .18); color: var(--white); }

/* Bands: edge-to-edge photo on one side, story on the other */
.xp-band {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    grid-template-areas: "copy media";
    min-height: 520px;
    background: var(--cream);
    scroll-margin-top: 140px;
    overflow: hidden;
}
.xp-band.is-reversed { grid-template-columns: 1.15fr 1fr; grid-template-areas: "media copy"; background: var(--sand); }

.xp-media {
    grid-area: media;
    position: relative;
    min-height: 520px;
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%);
}
.xp-band.is-reversed .xp-media { clip-path: polygon(0 0, 100% 0, 93% 100%, 0 100%); }
.xp-media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}
.xp-media:hover .xp-media-img { transform: scale(1.04); }
/* Tall photos: keep the subject in frame */
#xp-food .xp-media-img { object-position: center 88%; }
#xp-desert .xp-media-img { object-position: center 60%; }
.xp-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(9, 35, 48, .7) 0%, rgba(9, 35, 48, .15) 45%, rgba(9, 35, 48, 0) 70%);
    pointer-events: none;
}

/* Activity tiles over the bottom of the photo */
.xp-tiles {
    position: absolute;
    z-index: 1;
    left: 22px;
    right: 22px;
    bottom: 22px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 10px;
}
.xp-band.is-reversed .xp-tiles { right: calc(7% + 16px); }
.xp-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3.6;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, .85);
    background: var(--brown);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
    transition: transform .35s ease, box-shadow .35s ease;
}
.xp-tile:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
.xp-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.xp-tile:hover img { transform: scale(1.08); }
.xp-tile span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 8px 7px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    background: linear-gradient(0deg, rgba(9, 35, 48, .85), rgba(9, 35, 48, 0));
}
/* Illustrated tile: brand colours with a zellige-style lattice */
.xp-tile.is-illustrated {
    background:
        radial-gradient(circle at 50% 38%, rgba(236, 153, 61, .45), transparent 58%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 15px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 15px),
        linear-gradient(150deg, #ec993d 0%, #1f5a77 55%, #134257 100%);
}
.xp-tile-icon {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 38%;
    height: auto;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    stroke-width: 1.3;
    color: rgba(255, 255, 255, .92);
    transition: transform .35s ease;
}
.xp-tile:hover .xp-tile-icon { transform: translate(-50%, -50%) scale(1.1); }

/* Story side */
.xp-copy {
    grid-area: copy;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px clamp(28px, 4.5vw, 72px);
    max-width: 600px;
    justify-self: center;
}
.xp-big-number {
    position: absolute;
    top: 18px;
    left: clamp(16px, 3vw, 52px);
    font-family: var(--font-display);
    font-size: clamp(80px, 8.5vw, 124px);
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(41, 113, 148, .22);
    pointer-events: none;
    user-select: none;
}
.xp-copy > *:not(.xp-big-number) { position: relative; }
.xp-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 3.1vw, 42px);
    line-height: 1.08;
    letter-spacing: -.01em;
    text-wrap: balance;
}
.xp-copy .lead { margin-top: 14px; font-size: 16px; }
.xp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }

/* Key facts under each section's story */
.xp-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin: 18px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .55);
}
.xp-band.is-reversed .xp-facts { background: rgba(255, 255, 255, .6); }
.xp-facts dt {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rust);
}
.xp-facts dd { margin: 3px 0 0; font-size: 13.5px; line-height: 1.4; }

/* Signature experience: full-width photo band */
.xp-signature {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 460px;
    padding: 72px 0;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(12, 45, 61, .88) 0%, rgba(12, 45, 61, .55) 45%, rgba(12, 45, 61, .05) 80%),
        url("../img/balloon-sunrise.jpg") center 35% / cover no-repeat;
}
@media (hover: hover) and (min-width: 1041px) {
    .xp-signature { background-attachment: fixed; }
}
.xp-signature-copy { max-width: 560px; }
.xp-signature .eyebrow { display: flex; align-items: center; gap: 8px; }
.xp-signature .lead { color: rgba(255, 255, 255, .88); margin: 14px 0 26px; font-size: 16.5px; }

/* Find the right experience */
.xp-match { padding-bottom: 64px; }
.xp-profiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.xp-profile {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(28, 58, 74, .07);
    transition: transform .3s ease, box-shadow .3s ease;
}
.xp-profile:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(28, 58, 74, .12); }
.xp-profile .feature-icon { margin: 0 0 12px; width: 52px; height: 52px; }
.xp-profile .feature-icon .icon { width: 24px; height: 24px; }
.xp-profile h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.xp-profile p { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.xp-profile-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--ink-soft); }
.xp-profile-links a {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--sand);
    color: var(--rust-dark);
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.xp-profile-links a:hover { background: var(--rust); color: var(--white); }

/* Season guide */
.xp-seasons { background: var(--sand); padding: 56px 0; }
.season-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(28, 58, 74, .07);
}
.season-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.season-table th,
.season-table td { padding: 11px 16px; text-align: left; }
.season-table thead th {
    font-size: 15px;
    font-weight: 600;
    border-bottom: 2px solid var(--sand);
}
.season-table thead th span { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }
.season-table tbody tr + tr { border-top: 1px solid var(--line); }
.season-table tbody th { font-weight: 500; font-size: 15px; }
.season-table tbody tr:hover { background: var(--cream); }
.rating { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.rating-dots {
    display: inline-block;
    height: 10px;
    background: radial-gradient(circle, currentColor 4px, transparent 4.5px) 0 50% / 13px 10px repeat-x;
}
.rating-3 .rating-dots { width: 39px; color: var(--rust); }
.rating-2 .rating-dots { width: 26px; color: #ec993d; }
.rating-1 .rating-dots { width: 13px; color: rgba(28, 58, 74, .3); }
.rating-3 { color: var(--ink); font-weight: 600; }
.season-note { display: flex; gap: 10px; max-width: 62em; margin-top: 18px; font-size: 14.5px; color: var(--ink-soft); }
.season-note .icon { color: var(--rust); margin-top: 3px; }

/* How booking works */
.xp-how { padding-bottom: 64px; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }

/* Practical tips */
.xp-tips { margin-top: 0; padding: 56px 0; }
.xp-tip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 22px;
}
.xp-tip-grid li {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 14px;
    background: var(--white);
}
.xp-tip-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--sand);
    color: var(--rust);
}
.xp-tip-icon .icon { width: 21px; height: 21px; }
.xp-tip-grid h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.xp-tip-grid p { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

.xp-faq { padding-bottom: 72px; background: var(--white); }

/* Traveler moments mosaic */
.xp-gallery { padding-bottom: 64px; }
.xp-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 170px;
    gap: 10px;
}
.xp-mosaic .moment:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.xp-mosaic .moment:nth-child(4) { grid-column: 3 / 5; }
.xp-mosaic .moment:nth-child(5) { grid-column: 1 / 3; }
.xp-mosaic .moment:nth-child(6) { grid-column: 3 / 5; }

.experiences-cta {
    margin-top: 0;
    padding: 80px 0;
    background:
        linear-gradient(90deg, rgba(12, 45, 61, .92) 0%, rgba(12, 45, 61, .7) 55%, rgba(12, 45, 61, .35) 100%),
        url("../img/dune-sunset-family.jpg") center 55% / cover no-repeat;
}

/* Scroll-in motion (only when JavaScript is on and motion is allowed) */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .9s ease, transform .9s ease;
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.js-reveal .xp-media.reveal { transform: none; }
.js-reveal .xp-tiles li {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.js-reveal .xp-media.is-visible .xp-tiles li { opacity: 1; transform: none; }
.xp-tiles li:nth-child(2) { transition-delay: .1s; }
.xp-tiles li:nth-child(3) { transition-delay: .2s; }
.xp-tiles li:nth-child(4) { transition-delay: .3s; }
.xp-tiles li:nth-child(5) { transition-delay: .4s; }

@media (max-width: 1240px) {
    .xp-tile span { font-size: 12px; }
    .steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
    .steps-4 li:nth-child(3)::after { display: block; }
}

@media (max-width: 1040px) {
    .xp-profiles { grid-template-columns: repeat(2, 1fr); }
    .xp-tip-grid { grid-template-columns: repeat(2, 1fr); }
    .steps.steps-4 { grid-template-columns: repeat(2, 1fr); }
    .steps-4 li:nth-child(2)::after { display: none; }
}

@media (max-width: 640px) {
    .xp-facts { grid-template-columns: 1fr; }
    .xp-profiles,
    .xp-tip-grid { grid-template-columns: 1fr; }
    .xp-seasons, .xp-tips { padding: 56px 0; }
    .steps.steps-4 li::after { display: none; }
}

@media (max-width: 1040px) {
    .xp-nav ul { justify-content: flex-start; }
    .xp-band,
    .xp-band.is-reversed { grid-template-columns: 1fr; grid-template-areas: "media" "copy"; min-height: 0; }
    .xp-media,
    .xp-band.is-reversed .xp-media { min-height: 0; clip-path: none; }
    .xp-media-img { position: relative; height: 380px; }
    .xp-media::after { display: none; }
    .xp-tiles,
    .xp-band.is-reversed .xp-tiles {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: -70px;
        padding: 0 24px 4px;
        grid-auto-columns: minmax(150px, 1fr);
        overflow-x: auto;
        scrollbar-width: none;
    }
    .xp-copy { padding: 48px 32px 64px; max-width: none; justify-self: stretch; }
    .xp-big-number { top: 16px; left: 24px; }
    .xp-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .xp-mosaic .moment:nth-child(n) { grid-column: auto; grid-row: auto; }
    .xp-mosaic .moment:nth-child(1) { grid-column: 1 / 3; }
}

@media (max-width: 640px) {
    .experiences-hero { min-height: 0; }
    .xp-nav { top: 76px; }
    .xp-nav a { font-size: 13px; padding-right: 12px; }
    .xp-media-img { height: 300px; }
    .xp-tiles,
    .xp-band.is-reversed .xp-tiles { padding: 0 16px 4px; grid-auto-columns: 140px; }
    .xp-copy { padding: 36px 16px 56px; }
    .xp-big-number { left: 12px; font-size: 96px; }
    .xp-signature { min-height: 0; padding: 72px 0; }
    .experiences-cta { padding: 72px 0; }
}

/* ==========================================================================
   Single tour page
   ========================================================================== */

.tour-missing { padding: 180px 0 120px; }
.tour-missing .btn { margin-top: 24px; }

.tour-head { padding: 124px 0 32px; }
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-soft);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--rust); }
.breadcrumb .icon { transform: rotate(-90deg); opacity: .6; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

.tour-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 18px 0 22px;
}
.tour-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.08;
    letter-spacing: -.01em;
}
.tour-subtitle { margin-top: 8px; max-width: 46em; font-size: 17px; color: var(--ink-soft); }
.tour-head-cta { flex-shrink: 0; }

/* Gallery: one large photo and four small ones */
.tour-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 210px 210px;
    gap: 8px;
    border-radius: 16px;
    overflow: hidden;
}
.tour-gallery-item {
    position: relative;
    padding: 0;
    border: 0;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--sand);
}
.tour-gallery-item:first-child { grid-row: 1 / 3; }
.tour-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tour-gallery-item:hover img { transform: scale(1.05); }
.tour-gallery-more {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--white);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}

/* Key facts */
.tour-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px 18px;
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 8px 26px rgba(28, 58, 74, .06);
}
.tour-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; line-height: 1.35; }
.tour-fact-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--sand);
    color: var(--rust);
}
.tour-fact-icon .icon { width: 19px; height: 19px; }
.tour-facts small,
.tour-day-meta small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 2px;
}

/* Tabs reuse the sticky category bar */
.tour-tabs ul { justify-content: flex-start; }
.tour-tabs a { padding: 8px 16px; }

/* Main column + booking card */
.tour-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
    align-items: start;
    padding-top: 16px;
    padding-bottom: 24px;
}
.tour-block { padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.tour-block:last-child { border-bottom: 0; }
.tour-h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.15; margin-bottom: 10px; }
.tour-h3 { font-size: 17px; font-weight: 600; margin: 26px 0 12px; }
.tour-text { margin-top: 12px; font-size: 16px; color: var(--ink-soft); }

.tour-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.tour-highlights li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.tour-highlights .icon { color: var(--rust); margin-top: 3px; }

/* Route strip */
.tour-route {
    display: flex;
    margin: 0;
    padding: 6px 0 4px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: thin;
}
.tour-route li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 96px;
    flex: 1;
    text-align: center;
}
.tour-route li:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 7px;
    right: 50%;
    width: 100%;
    border-top: 2px dashed rgba(41, 113, 148, .4);
}
.tour-route-dot {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--rust);
    box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px rgba(41, 113, 148, .3);
}
.tour-route strong { font-size: 13.5px; line-height: 1.25; margin-top: 6px; }
.tour-route small { font-size: 12px; color: var(--ink-soft); }

.tour-note {
    display: flex;
    gap: 8px;
    margin: 8px 0 22px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--sand);
    font-size: 14px;
    color: var(--ink-soft);
}
.tour-note .icon { color: var(--rust); margin-top: 2px; }

/* Day-by-day timeline */
.tour-days { margin: 0; padding: 0; list-style: none; }
.tour-day {
    position: relative;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 18px;
}
.tour-day:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 29px;
    top: 64px;
    bottom: 4px;
    border-left: 2px dashed rgba(41, 113, 148, .3);
}
.tour-day-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--rust);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(41, 113, 148, .3);
}
.tour-day-badge small { font-family: var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
.tour-day-body {
    padding: 20px 22px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 8px 26px rgba(28, 58, 74, .06);
}
.tour-day-body h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.25; }
.tour-day-body > p { margin: 8px 0 14px; font-size: 15px; color: var(--ink-soft); }
.tour-day-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.tour-day-meta li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.35; }
.tour-day-meta .icon { color: var(--rust); margin-top: 2px; }

.tour-inc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }

.tour-stays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.tour-stays li {
    overflow: hidden;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 8px 26px rgba(28, 58, 74, .06);
}
.tour-stays img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tour-stays div { padding: 14px 16px 18px; }
.tour-stay-nights { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
.tour-stays h3 { font-size: 16px; font-weight: 600; margin: 4px 0 6px; line-height: 1.3; }
.tour-stays p { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

.tour-practical { grid-template-columns: repeat(2, 1fr); margin-top: 8px; }
.tour-practical li { box-shadow: 0 8px 26px rgba(28, 58, 74, .06); }

/* Booking card */
.tour-aside { position: relative; height: 100%; padding-top: 32px; }
.tour-book {
    position: sticky;
    top: 150px;
    padding: 24px;
    border-radius: 16px;
    border-top: 4px solid var(--rust);
    background: var(--white);
    box-shadow: 0 20px 50px rgba(28, 58, 74, .12);
}
.tour-book-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.tour-price { font-family: var(--font-display); font-size: 27px; font-weight: 700; margin-top: 4px; }
.tour-price-note { margin: 6px 0 14px; font-size: 13.5px; color: var(--ink-soft); }
.tour-form label { display: block; margin: 12px 0 6px; font-size: 13px; font-weight: 600; }
.tour-form input,
.tour-form select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--cream);
    font: inherit;
    font-size: 15px;
    color: var(--ink);
}
.tour-form input:focus,
.tour-form select:focus { outline: 2px solid var(--rust); outline-offset: 1px; }
.tour-form .btn-block { margin-top: 18px; }
.tour-email {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--ink-soft);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.tour-email:hover { color: var(--rust); }
.tour-email .icon { flex-shrink: 0; }
.tour-perks { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.tour-perks li { display: flex; gap: 8px; margin-bottom: 6px; font-size: 13.5px; }
.tour-perks .icon { color: var(--rust); margin-top: 2px; }

/* Trust bar under the key facts */
.tour-trust {
    display: grid;
    grid-template-columns: 1.25fr repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.tour-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--sand);
    line-height: 1.3;
}
.tour-trust strong { display: block; font-size: 13.5px; }
.tour-trust small { display: block; font-size: 12px; color: var(--ink-soft); }
.tour-trust-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--white);
    color: var(--rust);
}
.tour-trust-icon .icon { width: 17px; height: 17px; }
.tour-trust-rating { background: var(--white) !important; border: 1px solid rgba(0, 182, 122, .35); }
.tour-trust-rating a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.tour-trust-score { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1; }
.tour-trust-rating .stars-fill svg { fill: #00b67a; }
.tour-trust-rating .stars svg { width: 15px; height: 15px; }

/* "Talk to a local expert" inside the booking card */
.expert-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
/* The booking card stays in view; if it is taller than the screen, it scrolls inside */
@media (min-width: 1041px) {
    .tour-book { max-height: calc(100vh - 170px); overflow-y: auto; scrollbar-width: thin; }
}
.expert-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.expert-head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.expert-head strong { display: block; font-size: 15px; }
.expert-head small { font-size: 13px; color: var(--ink-soft); }
/* "Book a free Zoom call" */
.video-call-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    text-align: left;
    transition: border-color .2s, transform .2s;
}
.video-call-link:hover { border-color: #2d8cff; transform: translateY(-1px); }
.video-call-link > .icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 50%;
    background: #2d8cff;
    color: var(--white);
}
.video-call-link strong { display: block; font-size: 14px; }
.video-call-link small { display: block; font-size: 12px; color: var(--ink-soft); line-height: 1.35; }
.video-call-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: var(--white); }
.video-call-dark small { color: rgba(255, 255, 255, .75); }
.offer-cta .video-call-dark { margin-top: 22px; max-width: 360px; }
.thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin: 24px 0 36px; }
.thanks-actions .video-call-link { margin-top: 0; }
.quote-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.quote-check input { width: 17px; height: 17px; accent-color: var(--rust); }
.quote-check span { display: inline-flex; align-items: center; gap: 6px; }
.quote-check .icon { color: #2d8cff; }

.expert-contact { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.expert-contact a { color: var(--ink); text-decoration: none; }
.expert-note { margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); text-align: center; }

@media (max-width: 1240px) {
    .tour-trust { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .tour-trust { grid-template-columns: 1fr 1fr; }
    .tour-trust-rating { grid-column: 1 / -1; }
}

.tour-similar { padding-bottom: 72px; background: var(--white); }
.tour-similar .trip-grid { grid-template-columns: repeat(3, 1fr); }

.tour-mobile-bar { display: none; }

@media (max-width: 1040px) {
    .tour-head { padding-top: 104px; }
    .tour-layout { grid-template-columns: 1fr; gap: 0; }
    .tour-aside { padding-top: 8px; padding-bottom: 32px; }
    .tour-book { position: static; }
    .tour-gallery { grid-template-rows: 170px 170px; }
    .tour-stays { grid-template-columns: 1fr 1fr; }
    .tour-mobile-bar {
        display: inline-flex;
        position: fixed;
        z-index: 45;
        left: 16px;
        right: 16px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    }
    .tour-page { padding-bottom: 72px; }
}

@media (max-width: 760px) {
    .tour-title-row { flex-direction: column; align-items: flex-start; }
    .tour-head-cta { display: none; }
    .tour-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 120px 120px; }
    .tour-gallery-item:first-child { grid-column: 1 / 3; grid-row: auto; }
    .tour-highlights,
    .tour-inc,
    .tour-stays,
    .tour-practical { grid-template-columns: 1fr; }
    .tour-day { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; }
    .tour-day-badge { width: 46px; height: 46px; font-size: 18px; }
    .tour-day-badge small { font-size: 8.5px; }
    .tour-day:not(:last-child)::before { left: 22px; top: 50px; }
    .tour-day-body { padding: 16px; }
}

/* ==========================================================================
   Trust & contact: WhatsApp, reviews, footer details, cookie banner, legal pages
   ========================================================================== */

:root { --wa-green: #25d366; --wa-dark: #128c4b; --star: #f4a524; }

/* Floating WhatsApp button */
.wa-float {
    position: fixed;
    z-index: 60;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.wa-float-label {
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    transition: transform .25s, opacity .25s;
}
.wa-float-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--wa-green);
    color: var(--white);
    box-shadow: 0 10px 28px rgba(18, 140, 75, .45);
    transition: transform .25s, background-color .25s;
}
.wa-float-icon svg { width: 32px; height: 32px; }
.wa-float-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--wa-green);
    animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: .7; }
    100% { transform: scale(1.6); opacity: 0; }
}
.wa-float:hover .wa-float-icon { transform: scale(1.06); background: var(--wa-dark); }
.wa-float:hover .wa-float-label { transform: translateX(-4px); }

/* WhatsApp in the header and on WhatsApp buttons */
.header-wa { color: var(--wa-dark); }
.header-wa:hover { background: rgba(37, 211, 102, .12); }
.header-wa .icon { width: 22px; height: 22px; }

/* Back to top */
.to-top {
    position: fixed;
    z-index: 59;
    right: 29px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top .icon { width: 18px; height: 18px; }

/* Stars (real ratings only) */
.stars { position: relative; display: inline-flex; vertical-align: middle; }
.stars-empty, .stars-fill { display: flex; }
.stars svg { width: 15px; height: 15px; flex-shrink: 0; }
.stars-empty svg { fill: rgba(28, 58, 74, .15); }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.stars-fill svg { fill: var(--star); }

/* Review badges */
.review-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.review-badge {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}
.review-badge:hover { border-color: var(--rust); transform: translateY(-2px); }
.review-badge-name { font-size: 13px; font-weight: 700; }
.review-badge-score { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.review-badge-score small { color: var(--ink-soft); }
.review-badge-read { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--rust); font-weight: 600; }
.review-badges-dark { margin-top: 20px; }
.review-badges-dark .review-badge { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--white); }
.review-badges-dark .review-badge-score small { color: rgba(255, 255, 255, .6); }
.review-badges-dark .stars-empty svg { fill: rgba(255, 255, 255, .2); }
.review-badges-compact { margin-top: 16px; justify-content: center; }

/* Guest reviews */
.reviews { padding-bottom: 24px; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review-card {
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 8px 26px rgba(28, 58, 74, .07);
}
.review-card blockquote { margin: 8px 0 12px; font-size: 14px; line-height: 1.5; flex: 1; }
.review-author { display: flex; flex-direction: column; font-size: 13.5px; }
.review-author span { color: var(--ink-soft); font-size: 12.5px; }
.review-meta { margin-top: 4px; font-size: 11.5px; color: var(--ink-soft); }

/* Rating under "Plan Your Trip" in the header */
.header-plan-wrap { position: relative; }
.header-rating {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 6px 18px rgba(28, 58, 74, .14);
    color: var(--ink);
    font-size: 12px;
    white-space: nowrap;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.header-rating:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(28, 58, 74, .2); }
.header-rating .stars svg { width: 12px; height: 12px; }
.header-rating strong { font-size: 12.5px; }
.header-rating span:not(.stars):not(.stars-empty):not(.stars-fill) { color: var(--ink-soft); }
.header-rating em { font-style: normal; font-weight: 700; }
.header-rating-trustpilot .stars-fill svg { fill: #00b67a; }
.nav-rating { display: none; }
@media (max-width: 1040px) {
    .header-plan-wrap { display: none; }
    .nav-rating { position: static; display: inline-flex; margin-top: 14px; box-shadow: none; border: 1px solid var(--line); }
}

.review-slide-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
}
.review-card .review-slide-title { margin-top: 8px; font-size: 14.5px; }

/* Review slider (tour pages, under Highlights): 2 cards at a time, reviewer left, review right */
.review-slider { margin-top: 4px; }
.review-slider-frame { display: flex; align-items: center; gap: 4px; }
.review-slider-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 12px) / 2);
    gap: 12px;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 4px 2px 8px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.review-slider-track::-webkit-scrollbar { display: none; }
.review-slide {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    scroll-snap-align: start;
}
.review-slide-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding-right: 12px;
    border-right: 1px solid var(--line);
    text-align: center;
}
.review-slide-author strong { margin-top: 4px; font-size: 13px; line-height: 1.25; }
.review-slide-author small { font-size: 11px; line-height: 1.3; color: var(--ink-soft); }
.review-source { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; font-size: 10.5px; font-weight: 600; color: #00a06a; }
.review-slide-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.review-slide-head { display: flex; align-items: center; gap: 9px; }
.review-slide-head strong { display: block; font-size: 13.5px; line-height: 1.25; }
.review-slide-head small { font-size: 11.5px; color: var(--ink-soft); }
.review-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #9fb6d8;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}
.review-slide .stars svg { width: 13px; height: 13px; }
.review-slide-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.45;
}
.review-slide-more { align-self: flex-start; font-size: 12.5px; color: var(--rust); }
.review-slide-trip { margin-top: auto; font-size: 11px; color: var(--ink-soft); }
.review-slider-btn {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.review-slider-btn:hover { background: var(--sand); color: var(--rust); }
.review-slider-btn .icon { width: 22px; height: 22px; }
.review-slider-btn.prev .icon { transform: rotate(90deg); }
.review-slider-btn.next .icon { transform: rotate(-90deg); }
.review-slider-all {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rust);
    text-decoration: none;
}
.review-slider-all:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .review-slider-track { grid-auto-columns: 88%; }
    .review-slider-btn { display: none; }
    .review-slide { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; }
}

/* Footer details */
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    color: var(--white);
    transition: background-color .2s, border-color .2s;
}
.footer-social a:hover { background: var(--rust); border-color: var(--rust); }
.footer-social .icon { width: 18px; height: 18px; }
.footer-contact .icon { flex-shrink: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
/* Keep the last footer links clear of the floating WhatsApp button */
.site-footer .footer-bottom { padding-bottom: 96px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a,
.link-button { color: rgba(255, 255, 255, .6); text-decoration: none; }
.footer-legal a:hover,
.link-button:hover { color: var(--gold); }
.link-button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

/* Cookie banner */
.cookie-banner {
    position: fixed;
    z-index: 70;
    left: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    max-width: 440px;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
    font-size: 14px;
}
.cookie-text p { margin-top: 4px; color: var(--ink-soft); }
.cookie-text a { color: var(--rust); }
.cookie-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.cookie-decline { background: var(--sand); color: var(--ink); }
.cookie-decline:hover { background: var(--cream); }

/* Legal pages */
.legal-page { padding: 128px 0 80px; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-nav { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 6px; }
.legal-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
}
.legal-nav a:hover { background: var(--sand); }
.legal-nav a[aria-current] { background: var(--rust); color: var(--white); }
.legal-doc { max-width: 760px; }
.legal-updated { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.legal-intro { margin-top: 18px; font-size: 17px; }
.legal-doc h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 30px 0 8px; }
.legal-doc p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 10px; }
.legal-contact { margin-top: 36px; padding: 18px 22px; border-radius: 12px; background: var(--sand); }
.legal-contact h2 { margin-top: 0; }
.legal-contact a { color: var(--rust); }

@media (max-width: 1040px) {
    .review-grid { grid-template-columns: 1fr 1fr; }
    /* Leave room for the tour page's bottom quote bar */
    body:has(main:not([hidden]) .tour-mobile-bar) .wa-float { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
    body:has(main:not([hidden]) .tour-mobile-bar) .to-top { bottom: calc(156px + env(safe-area-inset-bottom, 0px)); }
    .header-wa { display: none; }
}

@media (max-width: 760px) {
    .wa-float-label { display: none; }
    .wa-float { right: 14px; }
    .wa-float-icon { width: 54px; height: 54px; }
    .to-top { right: 21px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
    .review-grid { grid-template-columns: 1fr; }
    .legal-layout { grid-template-columns: 1fr; gap: 20px; }
    .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; }
    .legal-page { padding-top: 104px; }
    .cookie-banner { right: 16px; max-width: none; }
}

/* ==========================================================================
   Connected tours: menu headings, itinerary at a glance, stays without photos,
   ready-made journeys on the Tours page, hero rating badge
   ========================================================================== */

.sub-menu-wide { min-width: 290px; }
.sub-menu-heading {
    padding: 10px 12px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rust);
}
.sub-menu-heading:not(:first-child) { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; }

.tour-glance-wrap {
    overflow-x: auto;
    margin-bottom: 26px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 8px 26px rgba(28, 58, 74, .06);
}
.tour-glance { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; }
.tour-glance caption {
    padding: 16px 18px 6px;
    text-align: left;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}
.tour-glance th,
.tour-glance td { padding: 10px 18px; text-align: left; vertical-align: top; }
.tour-glance thead th {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 2px solid var(--sand);
}
.tour-glance tbody tr + tr { border-top: 1px solid var(--line); }
.tour-glance tbody tr:hover { background: var(--cream); }
.tour-glance td:first-child { width: 56px; }
.tour-glance td:first-child a {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sand);
    color: var(--rust);
    font-weight: 700;
    text-decoration: none;
}
.tour-glance td:first-child a:hover { background: var(--rust); color: var(--white); }
.tour-glance td:last-child { color: var(--ink-soft); }
.tour-day { scroll-margin-top: 140px; }

.tour-stay-placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    color: rgba(255, 255, 255, .9);
    background:
        radial-gradient(circle at 50% 40%, rgba(236, 153, 61, .45), transparent 60%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 15px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 15px),
        linear-gradient(150deg, #ec993d 0%, #1f5a77 55%, #134257 100%);
}
.tour-stay-placeholder .icon { width: 48px; height: 48px; stroke-width: 1.3; }

.tours-journeys { padding-bottom: 72px; background: var(--white); margin-top: 72px; }

/* Hero rating badge (top right of the home hero) */
.hero-rating {
    position: absolute;
    z-index: 2;
    top: calc(100px + 24px);
    right: max(24px, calc((100vw - 1340px) / 2 + 20px));
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
    transition: transform .25s;
}
.hero-rating:hover { transform: translateY(-3px); }
.hero-rating-score { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1; }
.hero-rating-body { display: flex; flex-direction: column; gap: 3px; }
.hero-rating .stars svg { width: 17px; height: 17px; }
.hero-rating-trustpilot .stars-fill svg { fill: #00b67a; }
.hero-rating-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--star);
    color: var(--white);
}
.hero-rating-trustpilot .hero-rating-icon { background: #00b67a; }
.hero-rating-icon .icon { width: 22px; height: 22px; fill: currentColor; }
.hero-rating-count { font-size: 12.5px; color: var(--ink-soft); }
.hero-rating-name { font-size: 13px; font-weight: 700; }
/* On tour pages the badge sits next to the title instead of over a photo */
.hero-rating.hero-rating-inline {
    position: static;
    flex-shrink: 0;
    margin-left: auto;
    padding: 10px 14px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(28, 58, 74, .08);
}
.hero-rating-inline .hero-rating-score { font-size: 28px; }

@media (max-width: 1040px) {
    .hero-rating { top: calc(76px + 16px); right: 16px; padding: 9px 12px; }
    .hero-rating-score { font-size: 26px; }
}

@media (max-width: 640px) {
    .hero-rating { position: relative; top: auto; right: auto; display: inline-flex; margin: 0 16px 20px; }
    .hero:has(.hero-rating) { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   Ad landing pages (offer.php), quote form, thank-you page
   ========================================================================== */

.site-header.is-minimal .header-actions { margin-left: auto; }

.offer-hero {
    position: relative;
    isolation: isolate;
    padding: calc(100px + 48px) 0 64px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(12, 45, 61, .88) 0%, rgba(12, 45, 61, .62) 50%, rgba(12, 45, 61, .45) 100%),
        var(--offer-img) center 45% / cover no-repeat;
}
.offer-hero { min-height: 600px; display: flex; align-items: center; }
.offer-hero-copy { max-width: 680px; }
.offer-hero .hero-cta { margin-top: 28px; }
.btn-wa { background: var(--wa-green); color: var(--white); box-shadow: 0 6px 18px rgba(18, 140, 75, .3); }
.btn-wa:hover { background: var(--wa-dark); }
.offer-cta { padding: 88px 0; }
.offer-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 48px;
    align-items: center;
}
.offer-cta .offer-points { margin-top: 22px; }
.offer-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.06;
    letter-spacing: -.01em;
    text-wrap: balance;
}
.offer-sub { margin-top: 16px; max-width: 32em; font-size: 18px; color: rgba(255, 255, 255, .92); }
.offer-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 24px; max-width: 34em; }
.offer-points li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.offer-points .icon { flex-shrink: 0; padding: 3px; border-radius: 50%; background: var(--rust); color: var(--white); width: 20px; height: 20px; }
.offer-badges { margin-top: 24px; }

/* Quote form */
.quote-form {
    padding: 24px;
    border-radius: 16px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
    scroll-margin-top: 110px;
}
.quote-form-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.quote-form-sub { margin: 4px 0 14px; font-size: 14px; color: var(--ink-soft); }
.quote-form-error { margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #a1281c; font-size: 14px; }
.quote-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-bottom: 16px; }
.quote-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.quote-field-wide { grid-column: 1 / -1; }
.quote-field input,
.quote-field select,
.quote-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--cream);
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
}
.quote-field textarea { resize: vertical; min-height: 60px; }
.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus { outline: 2px solid var(--rust); outline-offset: 1px; }
.quote-wa { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--wa-dark); text-decoration: none; }
.quote-wa:hover { text-decoration: underline; }
.quote-privacy { display: flex; justify-content: center; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--ink-soft); text-align: center; }
.quote-privacy a { color: var(--ink-soft); }

.offer-why { padding-bottom: 64px; }
.offer-why .section-title { margin-bottom: 32px; }
.icon-grid-4 { grid-template-columns: repeat(4, 1fr); }

.offer-sample { padding-bottom: 64px; background: var(--white); padding-top: 64px; }
.offer-sample-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    border-radius: 16px;
    background: var(--cream);
    text-decoration: none;
    box-shadow: 0 12px 34px rgba(28, 58, 74, .1);
    transition: transform .3s;
}
.offer-sample-card:hover { transform: translateY(-3px); }
.offer-sample-card img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.offer-sample-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; }
.offer-sample-body .trip-days { position: static; }
.offer-sample-body strong { font-family: var(--font-display); font-size: 26px; line-height: 1.15; }
.offer-sample-sub { color: var(--ink-soft); }
.offer-sample-list { display: grid; gap: 6px; font-size: 14.5px; }
.offer-sample-list span { display: flex; gap: 8px; }
.offer-sample-list .icon { color: var(--rust); margin-top: 4px; }

.offer-reviews { padding-bottom: 32px; }
.offer-faq { padding-bottom: 72px; }
.offer-faq-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.offer-terms { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.offer-terms a { color: var(--rust); }
.offer-cta {
    margin-top: 0;
    background:
        linear-gradient(90deg, rgba(12, 45, 61, .92) 0%, rgba(12, 45, 61, .7) 60%, rgba(12, 45, 61, .45) 100%),
        var(--offer-img) center 50% / cover no-repeat;
}

/* Thank-you page */
.thanks-page { padding: 150px 0 96px; }
.thanks-inner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 760px; }
.thanks-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--wa-green);
    color: var(--white);
}
.thanks-icon .icon { width: 36px; height: 36px; stroke-width: 2.4; }
.thanks-text { margin-top: 12px; font-size: 17px; color: var(--ink-soft); }
.thanks-wa { margin: 24px 0 36px; }
.steps-3 { grid-template-columns: repeat(3, 1fr); width: 100%; margin: 6px 0 30px; text-align: left; }
.steps-3 li:last-child::after { display: none; }

@media (max-width: 1040px) {
    .offer-hero { padding-top: calc(76px + 32px); }
    .offer-hero { min-height: 0; }
    .offer-cta-grid { grid-template-columns: 1fr; gap: 28px; }
    .icon-grid-4 { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
    .icon-grid-4 li:nth-child(3) { border-left: 0; }
    .offer-faq-inner { grid-template-columns: 1fr; gap: 16px; }
    /* Ad pages keep the quote button in the header on tablets and phones */
    .is-minimal .header-plan-wrap { display: block; }
    .is-minimal .header-rating:not(.nav-rating) { display: none; }
    .is-minimal .header-plan { padding: 10px 16px; font-size: 14px; }
}

@media (max-width: 640px) {
    .offer-points { grid-template-columns: 1fr; }
    .quote-grid { grid-template-columns: 1fr; }
    .offer-sample-card { grid-template-columns: 1fr; }
    .offer-sample-card img { min-height: 200px; }
    .steps-3 { grid-template-columns: 1fr; }
    .is-minimal .lang-switch { display: none; }
    .is-minimal .header-plan .icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Internal links inside body text (includes/links.php) */
.inline-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color .2s, text-decoration-color .2s;
}
.inline-link:hover { color: var(--rust); text-decoration-color: var(--rust); }
.hero .inline-link:hover, .contact .inline-link:hover, .xp-signature .inline-link:hover { color: var(--gold); }

/* Home hero photo: camel caravan in the Erg Chebbi dunes. */
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-home { background-color: var(--dark); }
.hero-home::after { display: none; }
.hero-slide { position: absolute; inset: 0; background: center / cover no-repeat; }
.hero-slide-1 { background-image: url("../img/camel-caravan-erg-chebbi.jpg"); background-position: 60% 70%; }
}

/* ==========================================================================
   Blog — blog.php, post.php and the "From our blog" strip on the home page
   ========================================================================== */

.blog-hero { min-height: 440px; padding-bottom: 84px; }
.blog-hero::after { background-image: url("../img/camel-guide.jpg"); background-position: center 55%; transform: none; }
.blog-section { padding-top: 48px; }
.blog-list-head { margin-top: 48px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(28, 58, 74, .08);
    transition: transform .3s, box-shadow .3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(28, 58, 74, .14); }
.blog-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.blog-card:hover .blog-card-media img { transform: scale(1.06); }
.blog-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--rust);
    color: var(--white);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.blog-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.blog-card-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); }
.blog-card-meta .icon { color: var(--rust); }
.blog-card-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.25; text-wrap: balance; }
.blog-card-text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured article: photo left, text right */
.blog-card-featured { display: grid; grid-template-columns: 1.25fr 1fr; margin-top: 6px; }
.blog-card-featured .blog-card-media { aspect-ratio: auto; min-height: 320px; }
.blog-card-featured .blog-card-body { justify-content: center; gap: 12px; padding: 32px 36px; }
.blog-card-featured .blog-card-title { font-size: clamp(22px, 2.4vw, 30px); }
.blog-card-featured .blog-card-text { font-size: 15.5px; -webkit-line-clamp: 4; }
.blog-card-featured .trip-link { margin-top: 4px; }

/* Article page */
.post-hero { min-height: 520px; padding-bottom: 72px; }
.post-hero::after { background-image: var(--post-img); background-position: center 50%; transform: none; }
.post-hero .hero-text { max-width: 40em; }
.breadcrumb-light, .breadcrumb-light [aria-current] { color: rgba(255, 255, 255, .85); }
.breadcrumb-light a:hover { color: var(--gold); }
.breadcrumb-light { margin-bottom: 14px; }
.post-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(32px, 4.6vw, 54px);
    line-height: 1.08;
    color: var(--white);
    text-wrap: balance;
    margin: 6px 0 4px;
}
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .9); }
.post-meta span { display: inline-flex; align-items: center; gap: 7px; }
.post-meta .icon { color: var(--gold); }

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
    align-items: start;
    padding-top: 44px;
}
.post-body { max-width: 740px; }
.post-lead { font-size: 19px; line-height: 1.65; color: var(--ink); }
.post-text { margin-top: 14px; font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); }
.post-lead + .post-text { margin-top: 16px; }
.post-section { padding-top: 34px; scroll-margin-top: 130px; }
.post-h2 {
    position: relative;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.2;
    padding-left: 16px;
    margin-bottom: 4px;
}
.post-h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 4px; border-radius: 4px; background: var(--rust); }
.post-list { display: grid; gap: 10px; margin-top: 16px; }
.post-list li { display: flex; gap: 10px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.post-list .icon { flex: none; margin-top: 4px; color: var(--rust); }

.post-tip {
    display: flex;
    gap: 16px;
    margin-top: 36px;
    padding: 20px 22px;
    border-radius: 14px;
    background: var(--sand);
    border-left: 4px solid var(--gold);
}
.post-tip-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    color: var(--rust);
}
.post-tip strong { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.post-tip p { margin-top: 4px; font-size: 16px; line-height: 1.6; }

.post-section .faq-item { margin-top: 10px; }

.post-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    margin-top: 44px;
    padding: 28px 30px;
    border-radius: 16px;
    background: var(--brown);
    color: var(--white);
}
.post-cta h2 { font-family: var(--font-display); font-size: 24px; line-height: 1.2; }
.post-cta p { margin-top: 6px; color: rgba(255, 255, 255, .8); font-size: 15px; max-width: 30em; }
.post-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: none; }
.post-cta .contact-link { color: var(--white); }

.post-aside { position: sticky; top: 120px; }
.post-toc, .post-aside-cta {
    padding: 22px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 14px 40px rgba(28, 58, 74, .1);
}
.post-toc { border-top: 4px solid var(--rust); }
.post-toc-title { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rust); margin-bottom: 10px; }
.post-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.post-toc li { counter-increment: toc; }
.post-toc a {
    display: flex;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    color: var(--ink-soft);
    transition: background .2s, color .2s;
}
.post-toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 600; color: var(--gold); }
.post-toc a:hover { background: var(--sand); color: var(--ink); }
.post-aside-cta { margin-top: 18px; text-align: center; }
.post-aside-cta p { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 12px; }
.post-aside-cta .review-badges { margin-top: 12px; justify-content: center; }

.blog-more { padding-bottom: 72px; }
.blog-home .blog-grid { margin-top: 4px; }

@media (max-width: 1040px) {
    .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .post-aside { display: none; }
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .blog-grid { grid-template-columns: minmax(0, 1fr); }
    .blog-card-featured { grid-template-columns: minmax(0, 1fr); }
    .blog-card-featured .blog-card-media { min-height: 0; aspect-ratio: 16 / 10; }
    .blog-card-featured .blog-card-body { padding: 18px; }
    .post-hero { min-height: 0; padding-bottom: 56px; }
    .post-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
    .post-lead { font-size: 17.5px; }
}

/* ==========================================================================
   Tour style pages — style.php?type=...
   ========================================================================== */

.style-hero { min-height: 600px; padding-bottom: 110px; }
.style-hero::after { background-image: var(--style-img); background-position: center 50%; transform: none; }
.style-hero .hero-text { max-width: 36em; }
.style-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.style-hero .hero-cta { margin-top: 26px; gap: 14px; }
.style-rating { margin-top: 18px; }

/* Facts bar overlapping the hero */
.style-facts {
    position: relative;
    z-index: 2;
    margin-top: -56px;
    padding: 20px 24px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 18px 50px rgba(28, 58, 74, .14);
}

.style-intro { padding-top: 56px; }
.style-intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.style-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 12px; }
.style-gallery-item { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--sand); }
.style-gallery-item:first-child { grid-row: span 2; }
.style-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.style-gallery-item:hover img { transform: scale(1.06); }

/* Why us: 3 cards per row */
.style-why { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.style-why li, .style-why li + li {
    text-align: left;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}
.style-why .feature-icon { margin: 0 0 12px; }
.style-why h3 { font-size: 16.5px; }
.style-why p { font-size: 14.5px; }

/* Sample itineraries */
.style-routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: route; }
.style-route {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    border-radius: 14px;
    background: var(--white);
    border-top: 4px solid var(--rust);
    box-shadow: 0 12px 34px rgba(28, 58, 74, .08);
}
.style-route-days {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--sand);
    color: var(--rust);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.style-route h3 { font-family: var(--font-display); font-size: 19px; line-height: 1.25; }
.style-route p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.style-route-path { display: flex; gap: 6px; font-weight: 500; color: var(--ink) !important; }
.style-route-path .icon { flex: none; margin-top: 4px; color: var(--rust); }
.style-route .text-link { margin-top: auto; padding-top: 6px; }

/* Season, included, tips */
.style-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.style-info-card { padding: 24px; border-radius: 14px; background: var(--sand); }
.style-info-card .tour-h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--font-display); font-size: 20px; }
.style-info-card .tour-h3 .icon { color: var(--rust); }
.style-info-card p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.style-info-card .post-list { margin-top: 0; gap: 8px; }
.style-info-card .post-list li { font-size: 15px; }

.style-faq { max-width: 880px; }
.style-faq .faq-item { margin-top: 10px; }

/* Other styles */
.style-others { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.style-other { position: relative; display: block; height: 120px; border-radius: 12px; overflow: hidden; text-decoration: none; }
.style-other img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.style-other::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 45, 61, .82), rgba(12, 45, 61, .1)); }
.style-other span {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
}
.style-other .icon { color: var(--gold); }
.style-other:hover img { transform: scale(1.08); }

.style-cta { margin-top: 72px; }
.tour-card h2 a { text-decoration: none; color: inherit; }
.tour-card h2 a:hover { color: var(--rust); }

@media (max-width: 1040px) {
    .style-intro-grid, .style-info { grid-template-columns: minmax(0, 1fr); }
    .style-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .style-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .style-hero { min-height: 0; padding-bottom: 90px; }
    .style-facts { margin-top: -40px; padding: 16px; }
    .style-why { grid-template-columns: minmax(0, 1fr); }
    .style-gallery { grid-auto-rows: 130px; }
}

/* Home contact section: details on the left, quote form on the right */
.contact-actions-inline { margin-top: 24px; gap: 12px; }
.contact-form { align-self: start; }
.contact-form .quote-form { box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }

/* Phones: quote + WhatsApp bar fixed at the bottom of every page */
.mobile-book-bar { display: none; }
@media (max-width: 760px) {
    .mobile-book-bar {
        position: fixed;
        z-index: 46;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        gap: 10px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -8px 24px rgba(28, 58, 74, .14);
    }
    .mobile-book-bar .btn { flex: 1; justify-content: center; padding: 13px 10px; font-size: 15px; }
    body:has(.mobile-book-bar) .wa-float { display: none; }
    body:has(.mobile-book-bar) .to-top { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
    body:has(.mobile-book-bar) .site-footer { padding-bottom: 76px; }
    /* Tour pages keep their own quote bar */
    body:has(main:not([hidden]) .tour-mobile-bar) .mobile-book-bar { display: none; }
    body:has(main:not([hidden]) .tour-mobile-bar) .wa-float { display: flex; }
}

/* Trip finder (home page) */
.finder-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 36px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 20px 60px rgba(28, 58, 74, .1);
    border-top: 4px solid var(--rust);
}
.finder-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.finder-questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.finder-q { margin: 0; padding: 0; border: 0; min-width: 0; }
.finder-q legend { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 600; font-size: 16px; }
.finder-num {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rust);
    color: var(--white);
    font-size: 14px;
}
.finder-options { display: flex; flex-wrap: wrap; gap: 8px; }
.finder-options .pill { cursor: pointer; }
.finder-result {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 18px;
    border-radius: 16px;
    background: var(--sand);
    animation: finder-in .4s ease-out;
}
.finder-result[hidden] { display: none; }
.finder-result-img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; }
.finder-result-title { font-family: var(--font-display); font-size: 26px; line-height: 1.15; }
.finder-result-text { margin-top: 6px; color: var(--ink-soft); }
.finder-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 16px; }
.finder-restart { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); text-decoration: underline; }
@keyframes finder-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1040px) {
    .finder-questions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .finder-card { padding: 22px 18px; }
    .finder-result { grid-template-columns: minmax(0, 1fr); }
    .finder-result-img { height: 170px; }
}

/* Keyword line at the top of the home H1, styled like the other eyebrows */
.hero-kicker { display: block; font-family: var(--font-body); line-height: 1.4; margin-bottom: 4px; }

/* Tripadvisor colours for the rating badges and review labels */
.header-rating-tripadvisor .stars-fill svg,
.hero-rating-tripadvisor .stars-fill svg,
.review-badge-tripadvisor .stars-fill svg { fill: #00aa6c; }
.hero-rating-tripadvisor .hero-rating-icon { background: #00aa6c; }
.review-source-tripadvisor .icon { color: #00aa6c; }

/* Trip finder v2: option icons, answered-question ticks, result facts */
.finder-options .pill { display: inline-flex; align-items: center; gap: 7px; }
.finder-num { position: relative; transition: background .25s; }
.finder-num .icon { display: none; width: 14px; height: 14px; }
.finder-q.is-done .finder-num { background: var(--gold); color: var(--dark); }
.finder-q.is-done .finder-num span { display: none; }
.finder-q.is-done .finder-num .icon { display: block; }
.finder-result-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 12px; }
.finder-result-facts[hidden] { display: none; }
.finder-result-facts li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.finder-result-facts .icon { color: var(--rust); margin-top: 3px; }
.finder-result-facts small { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.finder-result-facts b { font-weight: 600; }
.finder-result .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.finder-result-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 14px; }
.finder-result-links .finder-restart { margin-top: 0; }
.finder-result-img { height: 240px; }

/* ==========================================================================
   Phones: layout fixes
   ========================================================================== */

/* The review slider's long track must not stretch the tour page (grid items default to min-width: auto). */
.tour-main, .tour-aside, .review-slider, .review-slider-frame { min-width: 0; }
@media (max-width: 1040px) {
    .tour-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    /* Bigger tap targets for small links (about 44px high) */
    .text-link, .contact-link, .quote-wa, .review-slider-all, .finder-restart, .link-button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .filter-pills .pill, .finder-options .pill { min-height: 40px; }
}

/* Phone menu: "Tours" and "Destinations" lists stay folded until tapped */
@media (max-width: 1040px) {
    .nav-list > .has-sub > .sub-menu { display: none; }
    .nav-list > .has-sub.is-open > .sub-menu { display: block; }
    .nav-list > .has-sub > a { align-items: center; }
    .nav-list > .has-sub > a .icon { display: inline-block; margin-left: auto; width: 18px; height: 18px; transition: transform .2s; }
    .nav-list > .has-sub.is-open > a .icon { transform: rotate(180deg); }
    .sub-menu a { padding: 10px 0; }
}

/* Phones: the shared quote + WhatsApp bar replaces the tour page's own bar and the floating bubble */
@media (max-width: 760px) {
    .tour-mobile-bar { display: none !important; }
    body:has(main:not([hidden]) .tour-mobile-bar) .mobile-book-bar { display: flex; }
    body:has(main:not([hidden]) .tour-mobile-bar) .wa-float { display: none; }
    .tour-page { padding-bottom: 0; }
    /* Itinerary table: the overnight column is in each day card below, so it can go on small screens */
    .tour-glance th:nth-child(3), .tour-glance td:nth-child(3) { display: none; }
}

@media (max-width: 760px) {
    .tour-glance { min-width: 0; width: 100%; }
}

/* Phones: 16px form text so iPhones don't zoom in when a field is tapped */
@media (max-width: 760px) {
    input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; }
}

/* ==========================================================================
   Human touch: printed snapshots, handwritten captions and the team signature
   ========================================================================== */
:root { --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive; }

/* Purpose section: three real trip photos instead of one poster */
.snapshots { position: relative; height: 520px; }
.snapshot {
    position: absolute;
    width: 54%;
    margin: 0;
    padding: 10px 10px 0;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 18px 40px rgba(28, 58, 74, .22);
    transition: transform .4s;
}
.snapshot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.snapshot figcaption { padding: 8px 4px 12px; font-family: var(--font-hand); font-size: 22px; line-height: 1.1; color: var(--ink); text-align: center; }
.snapshot:nth-child(1) { top: 0; left: 0; transform: rotate(-4deg); z-index: 1; }
.snapshot:nth-child(2) { top: 40px; right: 0; transform: rotate(3deg); z-index: 2; }
.snapshot:nth-child(3) { bottom: 0; left: 24%; transform: rotate(-1deg); z-index: 3; }
.snapshot:hover { transform: rotate(0) scale(1.03); z-index: 4; }

.signature { margin-top: 30px; font-family: var(--font-hand); font-size: 30px; line-height: 1.15; color: var(--rust); }
.signature span { display: block; margin-top: 4px; font-size: 22px; color: var(--ink-soft); }

/* Traveler moments: printed-photo frames with handwritten captions */
.moments-grid.is-snapshots { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 28px 24px; padding: 8px 4px; }
.is-snapshots .moment {
    display: flex;
    flex-direction: column;
    padding: 10px 10px 0;
    border-radius: 3px;
    background: #fff;
    overflow: visible;
    box-shadow: 0 12px 30px rgba(28, 58, 74, .16);
    transition: transform .35s, box-shadow .35s;
}
.is-snapshots .moment img { aspect-ratio: 4 / 3; height: auto; }
.is-snapshots .moment:nth-child(odd) { transform: rotate(-1.5deg); }
.is-snapshots .moment:nth-child(even) { transform: rotate(1.2deg); }
.is-snapshots .moment:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 20px 40px rgba(28, 58, 74, .22); }
.is-snapshots .moment:hover img { transform: none; }
.moment-caption { padding: 8px 6px 12px; font-family: var(--font-hand); font-size: 20px; line-height: 1.15; color: var(--ink); text-align: center; }

/* Language menu with full names */
.lang-menu a { white-space: nowrap; }

@media (max-width: 1040px) {
    .snapshots { height: 420px; max-width: 560px; }
}
@media (max-width: 760px) {
    .snapshots { height: 330px; }
    .snapshot figcaption { font-size: 18px; padding: 6px 4px 8px; }
    .moments-grid.is-snapshots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
    .moment-caption { font-size: 16px; }
    .signature { font-size: 26px; }
}

.snapshot img, .is-snapshots .moment img { background: var(--sand); }
