/* Travel With Mirembe public site.
   Palette: green #203A25, maroon #44191D, paper #F4F6F1, sand #E9D9B4, leaf #D6E5D2. */
:root {
    --green: #203A25;
    --green-hover: #2C4E33;
    --green-deep: #172A1B;
    --maroon: #44191D;
    --paper: #F4F6F1;
    --sand: #E9D9B4;
    --leaf: #D6E5D2;
    --ink: #1F2A22;
    --ink-soft: #4C5A4F;
    --line: #DCE2D8;
    --wa: #1FA855;
    --wa-hover: #188A45;
    --font: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --radius: 10px;
    --bs-body-font-family: var(--font);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--paper);
    --bs-link-color: var(--green);
    --bs-link-color-rgb: 32, 58, 37;
    --bs-link-hover-color: var(--maroon);
    --bs-link-hover-color-rgb: 68, 25, 29;
    --bs-border-color: var(--line);
}

body {
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    background: var(--paper);
    color: var(--ink);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3 {
    font-weight: 800;
    font-variation-settings: "opsz" 96;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--green);
    text-wrap: balance;
}
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
a { text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 2000;
    background: var(--green); color: #fff; padding: .6rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn { font-weight: 600; border-radius: 999px; padding: .6rem 1.3rem; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .35rem .9rem; }
.btn .bi { margin-right: .25rem; }
.btn-whatsapp { background: var(--wa); color: #fff; border: 2px solid var(--wa); }
.btn-whatsapp:hover, .btn-whatsapp:focus-visible { background: var(--wa-hover); border-color: var(--wa-hover); color: #fff; }
.btn-brand { background: var(--green); color: #fff; border: 2px solid var(--green); }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--green-hover); border-color: var(--green-hover); color: #fff; }
.btn-outline-brand { background: transparent; color: var(--maroon); border: 2px solid var(--maroon); }
.btn-outline-brand:hover, .btn-outline-brand:focus-visible { background: var(--maroon); color: #fff; }
.btn-primary { --bs-btn-bg: var(--green); --bs-btn-border-color: var(--green); --bs-btn-hover-bg: var(--green-hover); --bs-btn-hover-border-color: var(--green-hover); --bs-btn-active-bg: var(--green-hover); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-logo img { display: block; height: 64px; width: auto; }
@media (max-width: 575.98px) { .site-logo img { height: 54px; } }
.site-header .nav-link { color: var(--ink); font-weight: 600; padding: .5rem .85rem !important; }
.site-header .nav-link:hover { color: var(--maroon); }
.site-header .nav-link.active { color: var(--maroon); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(68, 25, 29, .35); }

/* Hero: the next departure on the road */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); background: var(--paper); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(9rem, 20vw, 13rem); }
.hero-kicker { font-weight: 600; color: var(--maroon); margin-bottom: .5rem; font-size: 1.05rem; }
.hero-title {
    font-size: clamp(2.6rem, 1.2rem + 6.4vw, 6rem);
    line-height: .95;
    letter-spacing: -0.035em;
    max-width: 14ch;
    margin-bottom: 1.75rem;
}
.hero-lead { font-size: 1.2rem; max-width: 40ch; color: var(--ink-soft); }
.board {
    display: flex; flex-wrap: wrap; margin: 0 0 2rem;
    border-top: 2px solid var(--green); border-bottom: 2px solid var(--green);
    max-width: 46rem;
}
.board-cell { flex: 1 1 12rem; padding: .9rem 1.25rem .9rem 0; }
.board-cell + .board-cell { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.board dt { font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.board dd { margin: 0; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 800; color: var(--green); }
.board dd small { display: block; font-size: .85rem; font-weight: 400; color: var(--ink-soft); }
.board-status-few_seats { color: var(--maroon) !important; }
.board-status-fully_booked { color: var(--ink-soft) !important; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-road {
    position: absolute; left: 0; right: 0; bottom: 0; height: clamp(3rem, 6vw, 4.5rem);
    background: var(--green);
}
.hero-road::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
    background: repeating-linear-gradient(90deg, var(--sand) 0 2.5rem, transparent 2.5rem 4.5rem);
}
.hero-vehicle {
    position: absolute; right: max(1rem, calc((100vw - 1320px) / 2 + 1rem)); bottom: 100%;
    width: clamp(220px, 34vw, 440px); height: auto; margin-bottom: -2px;
}
@media (max-width: 767.98px) {
    .board-cell { flex-basis: 100%; padding: .7rem 0; }
    .board-cell + .board-cell { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .hero-vehicle { opacity: .9; }
}
@media (prefers-reduced-motion: no-preference) {
    .hero-vehicle { animation: drive-in 1.4s cubic-bezier(.22, .9, .3, 1) both; }
    .hero-road::before { animation: road-roll 1.4s cubic-bezier(.22, .9, .3, 1) both; }
    @keyframes drive-in { from { transform: translateX(-110vw); } 85% { transform: translateX(1%); } to { transform: none; } }
    @keyframes road-roll { from { background-position-x: 0; } to { background-position-x: -32rem; } }
}

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tint { background: #fff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { margin-bottom: 0; }
.section-head a { font-weight: 600; }
/* Narrow content stays left-aligned with the rest of the page. */
.container-xl.narrow > * { max-width: 50rem; }
div.narrow:not(.container-xl) { max-width: 50rem; }
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.page-head h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.8rem); letter-spacing: -0.03em; margin-bottom: .75rem; }
.page-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 44rem; }
.page-back a { font-weight: 600; }

/* Trip cards */
.trip-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.trip-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.trip-card-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--leaf); }
.trip-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.trip-card-link:hover .trip-card-media img { transform: scale(1.03); }
.trip-card-link:hover .trip-card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.seat-flag {
    position: absolute; left: .75rem; top: .75rem; padding: .25rem .65rem; border-radius: 999px;
    font-size: .85rem; font-weight: 600; background: var(--maroon); color: #fff;
}
.seat-flag-fully_booked { background: var(--ink); }
.trip-card-body { padding: .9rem .1rem 0; }
.trip-card-title { font-size: 1.35rem; margin-bottom: .2rem; }
.trip-card-place { color: var(--ink-soft); margin-bottom: .6rem; font-size: .975rem; }
.trip-card-date { font-weight: 600; margin-bottom: 0; }
.trip-card-date-tbc { color: var(--ink-soft); font-weight: 400; }
.trip-card-price { font-weight: 800; color: var(--green); font-size: 1.15rem; margin: 0; }
.trip-card-price span { font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .trip-card-media img { transition: none; } }

/* Booking steps (a real sequence, so numbered) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.steps li::before {
    content: counter(step); position: absolute; top: 0; left: 0;
    width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--green); color: #fff; font-weight: 800;
}
.steps p { color: var(--ink-soft); margin: 0; }

/* Testimonials */
.testimonial { margin: 0; height: 100%; display: flex; flex-direction: column; border-left: 4px solid var(--sand); padding-left: 1.25rem; }
.testimonial blockquote { margin: 0 0 1rem; font-size: 1.1rem; }
.testimonial figcaption { display: flex; align-items: center; gap: .75rem; margin-top: auto; color: var(--ink-soft); font-size: .95rem; }
.testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial strong { color: var(--ink); }

/* Albums */
.album-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.album-grid-small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.album-tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--green); color: #fff; text-decoration: none; }
.album-tile img { width: 100%; height: 100%; object-fit: cover; }
.album-tile span {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .9rem;
    background: linear-gradient(transparent, rgba(23, 42, 27, .85)); font-weight: 800; font-size: 1.15rem; line-height: 1.2;
}
.album-tile small { display: block; font-weight: 400; font-size: .85rem; opacity: .9; }
.album-tile:hover span { text-decoration: underline; }

/* Callout */
.callout {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
    background: var(--leaf); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.75rem);
}
.callout h2 { margin-bottom: .5rem; }
.callout p { margin: 0; max-width: 42rem; color: var(--ink-soft); }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2.25rem 1rem 0; font-weight: 600; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .75rem; font-size: 1.5rem; color: var(--maroon); line-height: 1.2; }
.faq[open] summary::after { content: "−"; }
.faq-answer { padding: 0 0 1.25rem; color: var(--ink-soft); max-width: 44rem; }

/* Filters */
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chip { padding: .45rem 1rem; border-radius: 999px; border: 2px solid var(--green); color: var(--green); font-weight: 600; text-decoration: none; }
.chip:hover { background: var(--leaf); color: var(--green); }
.chip.active { background: var(--green); color: #fff; }

.empty-state { background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 5vw, 3rem); max-width: 44rem; }
.empty-state h2 { font-size: 1.6rem; }

/* Trip page */
.trip-hero { position: relative; background: var(--green); color: #fff; min-height: clamp(18rem, 42vw, 32rem); display: flex; align-items: flex-end; overflow: hidden; }
.trip-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 42, 27, 0) 35%, rgba(23, 42, 27, .88)); }
.trip-hero-text { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 2.25rem; }
.trip-hero h1 { color: #fff; font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.6rem); letter-spacing: -0.03em; margin: .25rem 0 .5rem; max-width: 18ch; }
.trip-hero-place, .trip-hero-meta { margin: 0; font-weight: 600; color: var(--sand); }
.trip-hero-meta { color: #fff; font-weight: 400; }

.trip-layout { display: grid; gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 4rem; }
@media (min-width: 992px) {
    .trip-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
    .trip-content { grid-column: 1; grid-row: 1; }
    .booking { grid-column: 2; position: sticky; top: 1.5rem; }
}
.booking { background: #fff; border-radius: var(--radius); padding: 1.5rem; border-top: 6px solid var(--green); }
.booking-title { font-size: 1.35rem; }
.booking-empty { color: var(--ink-soft); }
.booking-note { font-size: .95rem; color: var(--ink-soft); margin: 1rem 0 0; }
.departures { list-style: none; margin: 0; padding: 0; }
.departure { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .2rem; }
.departure:first-child { padding-top: 0; }
.departure .btn { justify-self: start; margin-top: .5rem; }
.departure-dates { font-weight: 800; font-size: 1.1rem; color: var(--green); }
.departure-price { font-weight: 600; }
.departure-price span { font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.departure-status { font-size: .9rem; font-weight: 600; color: var(--maroon); }
.departure-status-fully_booked { color: var(--ink-soft); }
.departure-full .departure-dates { color: var(--ink-soft); }

.trip-content > section { margin-top: 3rem; }
.trip-summary { font-size: 1.3rem; line-height: 1.5; color: var(--ink); max-width: 40rem; }
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose blockquote { border-left: 4px solid var(--sand); padding-left: 1rem; color: var(--ink-soft); }

.itinerary { list-style: none; padding: 0; margin: 0; border-left: 3px dashed var(--sand); }
.itinerary li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 0 0 1.5rem 1.25rem; position: relative; }
.itinerary li::before { content: ""; position: absolute; left: -9px; top: .35rem; width: 15px; height: 15px; border-radius: 50%; background: var(--green); border: 3px solid var(--paper); }
.itinerary-day { font-weight: 800; color: var(--maroon); }
.itinerary h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.itinerary p { color: var(--ink-soft); margin: 0; }
@media (max-width: 575.98px) { .itinerary li { grid-template-columns: 1fr; gap: .1rem; } }

.list-title { font-size: 1.05rem; }
.tick-list, .cross-list, .plain-list { list-style: none; padding: 0; margin: 0; }
.tick-list li, .cross-list li, .plain-list li { padding: .35rem 0 .35rem 1.75rem; position: relative; }
.tick-list li::before, .cross-list li::before, .plain-list li::before { position: absolute; left: 0; font-weight: 800; }
.tick-list li::before { content: "✓"; color: var(--green); }
.cross-list li::before { content: "✕"; color: var(--maroon); }
.plain-list li::before { content: "•"; color: var(--maroon); }

.photo-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.photo-grid-large { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .9rem; }
.photo-grid a { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--leaf); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }

.video-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: 2rem; }
.video { margin: 0; }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: .5rem; color: var(--ink-soft); }
.video-link { display: flex; align-items: center; gap: .5rem; padding: 2rem; border-radius: var(--radius); background: var(--leaf); font-weight: 600; }
.tiktok-embed { margin: 0 !important; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15, 25, 18, .92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 4rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #fff; margin-top: .75rem; text-align: center; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%; width: 3rem; height: 3rem; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 575.98px) { .lightbox figure { padding: 4rem .5rem; } .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; } }

/* Forms */
.form-panel { background: #fff; border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.25rem); }
.form-title { font-size: 1.5rem; margin-bottom: 1rem; }
.form-panel .form-control::placeholder { color: #8f9990; opacity: 1; }
.form-panel .form-control, .form-panel .form-select { background-color: #fff; border-radius: 8px; padding: .65rem .85rem; border-color: #c9d1c5; }
.form-panel .form-control:focus, .form-panel .form-select:focus { border-color: var(--green); box-shadow: 0 0 0 .2rem rgba(32, 58, 37, .18); }
.form-panel .form-label { font-weight: 600; }
.form-panel [type="submit"] { background: var(--green); border: 2px solid var(--green); color: #fff; border-radius: 999px; padding: .7rem 1.6rem; font-weight: 600; }
.form-panel [type="submit"]:hover { background: var(--green-hover); }
.form-note { font-size: .9rem; color: var(--ink-soft); margin: 1rem 0 0; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent { background: var(--leaf); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.sent h2 { font-size: 1.7rem; }

.contact-list dt { font-weight: 400; color: var(--ink-soft); font-size: .95rem; }
.contact-list dd { font-size: 1.15rem; font-weight: 600; margin-bottom: 1rem; }

/* Footer */
.site-footer { background: var(--green); color: var(--leaf); padding-bottom: 5rem; margin-top: 0; }
.site-footer .road { height: 2.5rem; position: relative; }
.site-footer .road::before, .not-found .road::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
    background: repeating-linear-gradient(90deg, var(--sand) 0 2.5rem, transparent 2.5rem 4.5rem);
}
.site-footer .container-xl { padding-top: 1.5rem; }
.footer-tagline { max-width: 26rem; }
.footer-heading { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: .75rem; }
.footer-list li { margin-bottom: .4rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sand); }
.footer-base { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(214, 229, 210, .2); font-size: .9rem; }
@media (min-width: 992px) { .site-footer { padding-bottom: 2rem; } }

/* Mobile WhatsApp dock */
.whatsapp-dock {
    position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 1030;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--wa); color: #fff; font-weight: 600; padding: .85rem 1rem; border-radius: 999px;
    text-decoration: none; box-shadow: 0 6px 20px rgba(23, 42, 27, .3);
}
.whatsapp-dock:hover, .whatsapp-dock:focus-visible { background: var(--wa-hover); color: #fff; }

/* 404 */
.not-found { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); font-family: var(--font); color: var(--ink); margin: 0; }
.not-found-main { flex: 1; max-width: 40rem; margin: 0 auto; padding: 4rem 1.5rem; }
.not-found h1 { font-size: clamp(2rem, 1.2rem + 3.5vw, 3.4rem); margin: 2rem 0 1rem; line-height: 1.05; }
.not-found .btn { display: inline-block; text-decoration: none; margin: .25rem .5rem .25rem 0; }
.not-found .road { height: 3rem; background: var(--green); position: relative; }
