/* ==== African Timeout, main stylesheet ====
   Change the colours and fonts in the :root block below. */
:root {
  --green: #164a42;      /* brand green: header, footer */
  --green-dark: #0e2f2a;
  --gold: #d49a14;       /* accent: buttons */
  --gold-ink: #201700;
  --bg: #f5f6f2;
  --card: #ffffff;
  --ink: #1c2926;
  --muted: #5b6762;
  --line: #dfe3dc;
  --link: #164a42;
  --font-head: "Bricolage Grotesque", "Albert Sans", system-ui, sans-serif;
  --font-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121917; --card: #1a2421; --ink: #e8ede9; --muted: #9aa7a1; --line: #2b3733; --link: #e6b64a;
  }
}
:root[data-theme="dark"] { --bg: #121917; --card: #1a2421; --ink: #e8ede9; --muted: #9aa7a1; --line: #2b3733; --link: #e6b64a; }

*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font-body); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 12px; max-width: 70ch; }
a { color: var(--link); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn { display: inline-block; background: var(--gold); color: var(--gold-ink); font-weight: 700; padding: 13px 24px; border-radius: 999px; text-decoration: none; margin: 4px 8px 4px 0; border: 2px solid var(--gold); }
.btn:hover { filter: brightness(1.07); }
.btn-small { padding: 8px 18px; margin: 0; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }

/* Header and navigation */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--green); color: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: #fff; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.menu-btn { display: none; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); border-radius: 999px; padding: 6px 16px; font: inherit; font-weight: 600; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--green-dark); padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav .btn { margin-top: 14px; text-align: center; }
}

/* Hero */
.hero { position: relative; background: linear-gradient(135deg, #1f5a50, #0e2420); color: #fff; min-height: min(78vh, 640px); display: flex; align-items: flex-end; overflow: hidden; }
.photo { position: absolute; inset: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,24,21,.88) 8%, rgba(8,24,21,.2) 70%), linear-gradient(90deg, rgba(8,24,21,.5), rgba(8,24,21,0) 65%); }
.hero-photo img { object-position: 60% center; }
.hero-text { position: relative; padding-top: 80px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(36px, 6.5vw, 68px); font-weight: 800; max-width: 17ch; margin-bottom: 16px; }
.hero p { font-size: clamp(17px, 2vw, 21px); max-width: 52ch; }

/* Sections */
.block { padding-top: 56px; padding-bottom: 8px; }
.lead { color: var(--muted); font-size: 18px; margin: 8px 0 24px; }
.narrow { max-width: 760px; padding-bottom: 64px; }
.page-h { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin-bottom: 12px; }

/* Specials */
.specials { display: grid; gap: 14px; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.special { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: 12px; padding: 18px 20px; }
.special-update { border-left-color: var(--green); }
.special-kind { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.link { font-weight: 700; }

/* Category tiles */
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cat { position: relative; min-height: 230px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; color: #fff; text-decoration: none; background: linear-gradient(160deg, #2b6b5f, #0e2420); transition: transform .2s ease; }
.cat:hover { transform: translateY(-3px); }
.cat:nth-child(3n+2) { background: linear-gradient(160deg, #9a6b1e, #3a2a0c); }
.cat:nth-child(3n) { background: linear-gradient(160deg, #2f6f7e, #0f2c33); }
.cat-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,24,21,.85) 5%, transparent 65%); }
.cat-text { position: relative; padding: 18px; }
.cat-text p { font-size: 15px; margin: 4px 0 0; opacity: .92; }

/* Tour cards */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin-top: 18px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s ease; }
.card:hover { transform: translateY(-3px); }
.card-photo { position: relative; height: 180px; flex: none; background: linear-gradient(135deg, #2b6b5f, #0e2420); }
.card-body { padding: 16px 18px 20px; }
.card-body p { font-size: 15px; margin-bottom: 6px; }
.card-meta { color: var(--muted); }
.card-price { font-weight: 700; color: var(--link); font-size: 18px !important; margin-top: 10px; }
.card-price small { font-weight: 400; color: var(--muted); font-size: 14px; }
.tag { background: #fbe9c8; color: #5a3b00; border-radius: 999px; padding: 2px 10px; font-size: 13px; margin-left: 6px; }

/* Why book with us */
.why { background: var(--green); color: #fff; margin-top: 64px; padding: 56px 0; }
.why-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 24px; }
.why h3 { margin-bottom: 6px; color: var(--gold); }
.why p { font-size: 16px; }

/* Closing call to action */
.cta { padding-bottom: 64px; }

/* Footer */
.site-footer { background: var(--green-dark); color: #d6dfdb; padding: 48px 0 24px; font-size: 16px; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.foot-brand { font-size: 24px; color: #fff; margin-bottom: 8px; }
.site-footer h3 { color: var(--gold); font-size: 17px; margin-bottom: 10px; }
.foot-base { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 20px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cat, .card { transition: none; }
}

/* ==== Stage 3: category and tour pages ==== */
.page-hero { position: relative; background: linear-gradient(135deg, #1f5a50, #0e2420); color: #fff; min-height: 320px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero .hero-text { padding-top: 72px; padding-bottom: 36px; }
.page-hero h1 { font-size: clamp(32px, 5.5vw, 56px); font-weight: 800; margin-bottom: 10px; max-width: 20ch; }
.page-hero p { max-width: 60ch; }
.crumbs { font-size: 15px; margin-bottom: 10px !important; opacity: .92; }
.crumbs a { color: #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.facts li { background: rgba(255,255,255,.18); border-radius: 999px; padding: 4px 14px; font-size: 15px; }

.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; padding-top: 40px; padding-bottom: 56px; align-items: start; }
.tour-main h2 { margin: 32px 0 12px; font-size: 28px; }
.tour-main h2:first-child, .notice + h2 { margin-top: 0; }
.tour-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
@media (max-width: 900px) { .tour-layout { grid-template-columns: 1fr; gap: 24px; } .tour-side { order: -1; position: static; } }
.price-card { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--gold); border-radius: var(--radius); padding: 22px; }
.price-card h2 { font-size: 24px; margin-bottom: 8px; }
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.price-table caption { text-align: left; font-size: 14px; padding-bottom: 6px; }
.price-table th, .price-table td { padding: 10px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 600; }
.price-table td { text-align: right; font-weight: 800; font-size: 19px; }
.price-table td small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.btn-block { display: block; text-align: center; margin: 10px 0 0; }
.fine { font-size: 14px; margin: 10px 0 0; }
.notice { background: #fbe9c8; color: #4a3000; border-left: 6px solid var(--gold); border-radius: 10px; padding: 14px 18px; margin-bottom: 24px; }
.steps { padding-left: 22px; } .steps li { margin-bottom: 14px; padding-left: 6px; }
.incl-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.ticks, .crosses { list-style: none; padding: 0; margin: 8px 0 0; }
.ticks li, .crosses li { padding-left: 28px; position: relative; margin-bottom: 6px; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: #2e8b57; font-weight: 800; }
.crosses li::before { content: "\2715"; position: absolute; left: 0; color: #b4472f; font-weight: 800; }
.gallery-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.g-item { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #2b6b5f, #0e2420); }
.g-item:nth-child(even) { background: linear-gradient(135deg, #9a6b1e, #3a2a0c); }
.g-item:hover img { transform: scale(1.04); } .g-item img { transition: transform .3s ease; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 36px 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; text-decoration: none; font-weight: 600; color: var(--ink); }
.chip:hover { border-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .g-item img { transition: none; } }

/* ==== Logo ==== */
.brand { display: flex; align-items: center; gap: 10px; }
.logo-badge { display: none; background: #fff; border-radius: 10px; padding: 3px 8px; }
.logo-badge img { display: block; height: 50px; width: auto; max-width: 180px; object-fit: contain; }
.brand.has-logo .logo-badge { display: flex; }
/* When the logo loads, hide the text name visually (screen readers still get it from aria-label) */
.brand.has-logo .brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) { .logo-badge img { height: 38px; max-width: 150px; } }

/* ==== Stage 4: forms, about, gallery, conditions ==== */
.page-head { background: linear-gradient(135deg, #1f5a50, #0e2420); color: #fff; padding: 56px 0 40px; }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin-bottom: 10px; }
.page-head p { max-width: 62ch; font-size: 18px; margin: 0; opacity: .95; }
.btn-lg { font-size: 18px; padding: 15px 36px; cursor: pointer; font-family: inherit; }
button.btn { font-family: inherit; font-size: 16px; cursor: pointer; }

/* Booking form (table layout) */
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 36px; padding-bottom: 64px; align-items: start; }
.book-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
@media (max-width: 900px) { .book-layout { grid-template-columns: 1fr; } .book-side { position: static; order: -1; } }
.form-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.form-table th, .form-table td { padding: 14px 18px; vertical-align: top; text-align: left; border-top: 1px solid var(--line); }
.form-table th { width: 31%; font-weight: 600; }
.form-table th small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.form-table tr.grp th { background: var(--green); color: #fff; font-family: var(--font-head); font-size: 18px; width: auto; border-top: 0; }
.form-table input[type=text], .form-table input[type=email], .form-table input[type=tel], .form-table input[type=date],
.form-table input[type=number], .form-table select, .form-table textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.form-table input[type=number] { max-width: 120px; }
.form-table input:focus, .form-table select:focus, .form-table textarea:focus { border-color: var(--gold); outline: 3px solid rgba(212,154,20,.35); }
.form-table tr.has-error td { background: rgba(180,71,47,.07); }
.form-table tr.has-error input, .form-table tr.has-error select, .form-table tr.has-error textarea { border-color: #b4472f; }
.err { color: #b4472f; font-weight: 600; margin: 6px 0 0; font-size: 15px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #ff9a85; } }
.check { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-weight: 400; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { margin-bottom: 18px; font-weight: 600; }
@media (max-width: 640px) {
  .form-table th, .form-table td { display: block; width: 100% !important; }
  .form-table th { padding-bottom: 2px; border-top: 1px solid var(--line); } .form-table td { border-top: 0; padding-top: 4px; }
  .form-table tr.grp th { padding: 12px 18px; }
}
.summary { border-collapse: collapse; margin: 18px 0; width: 100%; max-width: 560px; }
.summary th, .summary td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.summary th { width: 38%; color: var(--muted); font-weight: 600; }

/* About */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-top: 44px; align-items: start; }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; } }
.about-text p { font-size: 18px; }
.about-side { margin: 0; } .about-side figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; }
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, #2b6b5f, #0e2420); }
.frame.portrait { aspect-ratio: 4 / 5; } .frame.wide { aspect-ratio: 4 / 3; }
.team { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 22px 16px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.team li { text-align: center; font-weight: 600; }
.frame.avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 8px; }

/* Gallery */
.gal-grid { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.gal-grid li[hidden] { display: none; }
.gal-grid li { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #2b6b5f, #0e2420); }
.gal-grid li:nth-child(3n) { background: linear-gradient(135deg, #9a6b1e, #3a2a0c); }
.g-btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.g-btn:hover img { transform: scale(1.05); }
button.chip { font: inherit; cursor: pointer; } .chip.is-on { background: var(--green); color: #fff; border-color: var(--green); }
#lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: #fff; }
#lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
#lightbox::backdrop { background: rgba(5,12,10,.92); }
#lb-img { max-width: 92vw; max-height: 80vh; border-radius: 8px; object-fit: contain; }
#lb-cap { margin: 12px 0 0; text-align: center; min-height: 1.4em; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-close { top: calc(env(safe-area-inset-top, 0px) + 16px); right: 16px; } .lb-prev { left: 12px; } .lb-next { right: 12px; }

/* Conditions */
.cond-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; padding-top: 40px; padding-bottom: 64px; align-items: start; }
@media (max-width: 860px) { .cond-layout { grid-template-columns: 1fr; } }
.cond-toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); font-size: 15px; }
@media (max-width: 860px) { .cond-toc { position: static; } }
.cond-toc ul { list-style: none; padding: 0; margin: 8px 0 0; } .cond-toc li { margin-bottom: 6px; }
.cond-body section { margin-bottom: 28px; } .cond-body h2 { font-size: 24px; margin-bottom: 8px; }
@media print { .site-header, .site-footer, .cond-toc, .btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .g-btn img { transition: none; } }

/* Category write-up (e.g. Senior Citizens) */
.writeup { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
@media (max-width: 900px) { .writeup { grid-template-columns: 1fr; } .writeup-side { order: -1; } }
.writeup-main h3 { margin: 26px 0 8px; font-size: 22px; }
.writeup-main p { font-size: 18px; }
.writeup-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
@media (max-width: 900px) { .writeup-side { position: static; } }

/* ==== Footer icons ==== */
.foot-links, .members { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin-bottom: 10px; }
.foot-links a, .members a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.foot-links a:hover span:not(.tile), .members a:hover span:not(.tile) { text-decoration: underline; }
.tile { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; }
.tile .ico { display: block; }
.tile-badge { background: rgba(212,154,20,.22); color: var(--gold); }
.tile-logo { background: #fff; padding: 4px; }
.tile-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.foot-members { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.foot-members h3 { margin-bottom: 14px; }
.members { display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.foot-quick { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; }
.foot-base { margin-top: 24px; }
