/* Akwaaba Holidays — shared styles for the site and admin */
/* Palette: earth brown for structure and buttons, orange for highlights */
:root {
  --bg: #fbf6f0;
  --surface: #ffffff;
  --fg: #2b1d14;
  --muted: #6f5a49;
  --line: #ead9c6;
  --brand: #7a4419;
  --brand-ink: #ffffff;
  --brand-deep: #3d2210;
  --band-bg: #4a2a14;
  --band-ink: #fff4e8;
  --orange: #ee7a1a;
  --orange-soft: #fde3c6;
  --clay: #b9500f;
  --placeholder: #a08b78;
  --ph-bg: #f4e9dc;
  --ok: #6b3a14; --ok-bg: #f1e2d2;      /* confirmed, sent: brown */
  --warn: #b4560b; --warn-bg: #fde3c6;  /* pending, new: orange */
  --bad: #9c2f12; --bad-bg: #f7d9cc;    /* cancelled, failed: rust */
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b120c; --surface: #251911; --fg: #f5ebe1; --muted: #bfa894; --line: #3d2b1e;
    --brand: #e39a5b; --brand-ink: #1b120c; --brand-deep: #120b07; --band-bg: #2d1c11; --band-ink: #f5ebe1;
    --orange: #ff9440; --orange-soft: #3d2414;
    --clay: #ffa266; --placeholder: #8f7a68; --ph-bg: #2e2017;
    --ok: #e8b88a; --ok-bg: #3a2616; --warn: #ffa54d; --warn-bg: #3d2414; --bad: #ff8a66; --bad-bg: #42190f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 520px; padding-block: 56px; }
.band { padding-block: 72px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); }
.muted { color: var(--muted); }
.stack { display: grid; gap: 16px; }

.kente { height: 14px; background:
  repeating-linear-gradient(90deg, var(--orange) 0 28px, var(--brand) 28px 36px, var(--orange) 36px 48px, var(--clay) 48px 56px, var(--brand-deep) 56px 64px); }

/* Header */
header.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand .star { width: 26px; height: 26px; background: var(--brand); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
nav.links { display: flex; gap: 22px; font-weight: 500; align-items: center; flex-wrap: wrap; }
nav.links a { text-decoration: none; color: var(--muted); }
nav.links a:hover, nav.links a.active { color: var(--fg); }
nav.links a.active { box-shadow: inset 0 -3px 0 var(--orange); }
@media (max-width: 680px) { nav.links a.hide-sm { display: none; } }
.cta-link { color: var(--brand) !important; font-weight: 600; }
.linklike { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }

/* Hero */
.hero { padding-block: 64px 56px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; letter-spacing: -.02em; margin-top: 12px; }
.hero h1 em { font-style: normal; color: var(--clay); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 52ch; margin: 20px 0 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; min-width: 0; }
.finder { box-shadow: 0 18px 40px -28px rgba(92,51,23,.45); }
.panel h2 { font-size: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: 13px; font-weight: 600; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; }
input[type="checkbox"] { width: auto; }
textarea { resize: vertical; min-height: 84px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2, .row3 { grid-template-columns: 1fr; } }
.btn { font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; background: var(--brand); color: var(--brand-ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.danger { background: var(--bad); color: var(--surface); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions form { margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 32px; }
.facts div { display: grid; }
.facts b { font-family: var(--font-display); font-size: 26px; font-variant-numeric: tabular-nums; }
.facts span { font-size: 13px; color: var(--muted); }

/* Destinations */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 44px); margin-top: 8px; }
.section-head p { color: var(--muted); max-width: 46ch; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card.ghost-card { border-style: dashed; background: transparent; }
.card .img { aspect-ratio: 4 / 3; max-width: 100%; background: var(--ph-bg); position: relative; display: grid; place-items: center; color: var(--placeholder); font-size: 13px; overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .img svg { width: 36px; height: 36px; }
.card .img .tag { position: absolute; top: 12px; left: 12px; background: var(--orange); color: #2b1d14; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.card .body { padding: 18px 20px 20px; display: grid; gap: 10px; flex: 1; align-content: start; }
.card h3 { font-size: 22px; font-weight: 700; }
.loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.loc svg { width: 15px; height: 15px; flex: none; color: var(--clay); }
.card .desc { color: var(--muted); font-size: 15px; margin: 0; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--muted); }
.blank { display: inline-block; border: 1.5px dashed var(--placeholder); color: var(--placeholder); border-radius: 8px; padding: 2px 10px; font-weight: 500; font-family: var(--font-body); font-size: .8em; }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); grid-column: 1 / -1; }

/* Steps */
.steps-band { background: var(--band-bg); color: var(--band-ink); }
.steps-band .eyebrow { color: var(--orange); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { display: grid; gap: 8px; align-content: start; border-top: 2px solid var(--orange); padding-top: 16px; }
.step .n { font-family: var(--font-mono); color: var(--orange); font-size: 13px; }
.step h3 { font-size: 22px; }
.step p { margin: 0; opacity: .85; }

/* Booking */
.book-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }
form.booking { padding: 26px; gap: 16px; }
.summary { background: var(--orange-soft); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; position: sticky; top: 90px; min-width: 0; }
.summary h3 { font-size: 20px; }
.summary dl { margin: 0; display: grid; gap: 8px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.summary .total { border-top: 1px solid var(--line); padding-top: 12px; font-family: var(--font-display); font-size: 26px; font-variant-numeric: tabular-nums; }
.confirm { border: 2px solid var(--brand); }
.confirm h3 { font-size: 26px; color: var(--brand); }
code { font-family: var(--font-mono); background: var(--ph-bg); padding: 2px 8px; border-radius: 6px; font-size: .9em; }

/* Messages */
.alert { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.bad { background: var(--bad-bg); color: var(--bad); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.pending { color: var(--warn); background: var(--warn-bg); }
.pill.confirmed { color: var(--ok); background: var(--ok-bg); }
.pill.cancelled { color: var(--bad); background: var(--bad-bg); }
.pill.neutral { color: var(--muted); background: var(--ph-bg); }
.sent { color: var(--ok); }
.unsent { color: var(--warn); }
.failed { color: var(--bad); }

/* Admin */
.admin { padding-block: 40px 72px; display: grid; gap: 28px; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.admin-head h1 { font-size: clamp(30px, 5vw, 44px); margin-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; gap: 2px; text-decoration: none; }
.stat b { font-family: var(--font-display); font-size: 28px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td .sub { display: block; color: var(--muted); font-size: 13px; }
td .sub.sent { color: var(--ok); } td .sub.unsent { color: var(--warn); } td .sub.failed { color: var(--bad); }
td select { padding: 6px 8px; font-size: 13px; width: auto; }
.status-form { display: grid; gap: 6px; margin-top: 6px; }
.status-form .check { font-size: 12px; color: var(--muted); }
.dest-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dest-row:last-child { border-bottom: 0; }
.dest-row .thumb { width: 64px; height: 48px; border-radius: 8px; background: var(--ph-bg); overflow: hidden; display: grid; place-items: center; color: var(--placeholder); }
.dest-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dest-row .thumb svg { width: 22px; height: 22px; }
.dest-row .info { min-width: 0; }
.dest-row .info b { display: block; overflow-wrap: anywhere; }
@media (max-width: 520px) { .dest-row { grid-template-columns: 48px 1fr; } .dest-row .actions { grid-column: 1 / -1; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.toolbar form { display: flex; flex-wrap: wrap; gap: 10px; }
.toolbar select, .toolbar input { width: auto; }
.email-body { min-height: 320px; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }
.log { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.preview-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); font-size: 14px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--orange-soft); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; min-width: 0; }
.contact-card h3 { font-size: 22px; }
.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list div { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.contact-list dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); }
.contact-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a { color: var(--brand); }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-size: 15px; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #2b1d14; font-size: 12px; font-weight: 700; text-align: center; margin-left: 4px; }
tr.unread td { background: var(--orange-soft); }

/* Gallery */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; background: var(--surface); }
.chips a span { color: var(--muted); font-size: 12px; margin-left: 2px; }
.chips a[aria-current="page"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chips a[aria-current="page"] span { color: inherit; opacity: .8; }
.gallery-grid { columns: 3 280px; column-gap: 16px; }
.gallery-item { break-inside: avoid; margin: 0 0 16px; background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gallery-item > a { display: block; overflow: hidden; }
.gallery-item img { display: block; width: 100%; height: auto; transition: transform .3s ease; }
.gallery-item > a:hover img { transform: scale(1.03); }
.gallery-item figcaption { padding: 10px 14px 12px; font-size: 14px; color: var(--muted); display: grid; gap: 2px; }
.gallery-item figcaption a { color: var(--clay); font-weight: 600; text-decoration: none; font-size: 13px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; display: none; align-items: center; justify-content: center; gap: 8px; }
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(20, 12, 7, .92); }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: min(1100px, calc(100vw - 120px)); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 8px; object-fit: contain; }
.lightbox figcaption { color: #f5ebe1; text-align: center; font-size: 15px; }
.lightbox figcaption a { color: #ff9a4d; font-weight: 600; margin-left: 8px; }
.lightbox button { background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 28px; line-height: 1; cursor: pointer; flex: none; }
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lightbox .lb-close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 640px) {
  .lightbox figure { max-width: 100vw; }
  .lightbox .lb-prev, .lightbox .lb-next { position: absolute; bottom: 20px; }
  .lightbox .lb-prev { left: 20px; } .lightbox .lb-next { right: 20px; }
}
.gallery-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.g-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; min-width: 0; }
.g-card.hidden-photo { opacity: .55; }
.g-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.g-card form { padding: 12px; display: grid; gap: 8px; }
.g-card input, .g-card select { padding: 7px 9px; font-size: 13px; }
.g-card .row2 { gap: 8px; }
.g-card .actions { gap: 6px; }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); }
.drop.over { border-color: var(--orange); background: var(--orange-soft); }
