/* Lanka Compass — design tokens and components
   Palette: tea-estate green, monk-robe saffron, Kandyan lacquer red, lagoon teal, monsoon mist. */
:root {
  --mist: #f2f5f1;
  --paper: #ffffff;
  --tea: #12392c;
  --tea-2: #1c4d3c;
  --tea-3: #2c6550;
  --ink: #13231c;
  --muted: #4f6259;
  --line: #d5dfd8;
  --saffron: #e2a12b;
  --saffron-soft: #f8e7c4;
  --saffron-ink: #7c5100;
  --lacquer: #9b2b1f;
  --lacquer-soft: #f6e1dd;
  --lagoon: #1f6f78;
  --lagoon-soft: #dcecec;

  --f-display: 'Young Serif', Georgia, serif;
  --f-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-sinhala: 'Noto Serif Sinhala', serif;

  /* modular scale 1.25 */
  --t-xs: .8rem; --t-sm: .9rem; --t-md: 1rem; --t-lg: 1.25rem; --t-xl: 1.563rem;
  --t-2xl: 1.953rem; --t-3xl: 2.441rem; --t-4xl: 3.052rem; --t-5xl: 3.815rem;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-img: 6px;
  --r-ui: 10px;
  --shadow: 0 18px 40px -24px rgba(18, 57, 44, .45);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--mist); color: var(--ink);
  font: 400 var(--t-md)/1.6 var(--f-body); overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--lagoon); text-underline-offset: 3px; }
a:hover { color: var(--tea); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--tea); letter-spacing: -.01em; }
h1 { font-size: clamp(var(--t-3xl), 6vw, var(--t-5xl)); }
h2 { font-size: clamp(var(--t-2xl), 4vw, var(--t-3xl)); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }
p { margin: 0 0 1em; max-width: 68ch; }
small, .small { font-size: var(--t-sm); }
.muted { color: var(--muted); }
.sinhala { font-family: var(--f-sinhala); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--saffron); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: clamp(48px, 8vw, 96px) 0; }
.band.tight { padding: clamp(32px, 5vw, 56px) 0; }
.band.paper { background: var(--paper); }
.band.dark { background: var(--tea); color: #e6eee9; }
.band.dark h2, .band.dark h3, .band.dark h4 { color: #fff; }
.band.dark a { color: var(--saffron); }
/* Solid buttons in dark bands keep their dark text (the link colour above would make it saffron-on-saffron). */
.band.dark a.btn:not(.ghost), .band.dark a.btn:not(.ghost):hover { color: var(--ink); }
.band.dark a.btn.tea { color: #fff; }
.band.dark .muted { color: #b7c9bf; }
.lede { font-size: var(--t-lg); color: var(--muted); max-width: 60ch; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.section-head p { margin: 0; }

/* Kandyan lotus-petal motif, used only as a section divider */
.motif { height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M18 2c4 4 6 8 0 14C12 10 14 6 18 2Z' fill='%23e2a12b'/%3E%3Cpath d='M0 16c6-1 10-4 12-9 1 5-4 9-12 9Zm36 0c-6-1-10-4-12-9-1 5 4 9 12 9Z' fill='%239b2b1f' opacity='.8'/%3E%3C/svg%3E") repeat-x center / 36px 18px; opacity: .9; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(242, 245, 241, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header.over-hero { position: absolute; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; }
.site-header.over-hero .brand, .site-header.over-hero .nav > li > a, .site-header.over-hero .nav > li > button, .site-header.over-hero .menu-btn { color: #fff; }
.site-header.over-hero.scrolled { position: fixed; background: rgba(18, 57, 44, .96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tea); font-family: var(--f-display); font-size: 1.3rem; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav > li > a, .nav > li > button { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font: 500 var(--t-sm) var(--f-body); background: none; border: 0; cursor: pointer; border-radius: 8px; }
.nav > li > a:hover, .nav > li > button:hover, .nav > li > a[aria-current="page"] { background: rgba(226, 161, 43, .18); }
.nav .cta-link { background: var(--saffron) !important; color: var(--ink) !important; margin-left: 6px; }
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-ui); box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0; display: none; }
.nav li.open > .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: var(--t-sm); }
.dropdown a span { display: block; color: var(--muted); font-size: var(--t-xs); }
.dropdown a:hover { background: var(--mist); }
.menu-btn { display: none; background: none; border: 0; color: var(--tea); padding: 8px; cursor: pointer; }
@media (max-width: 1020px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 68px 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 40px; overflow-y: auto; display: none; gap: 0; }
  .nav.open { display: flex; }
  .site-header.over-hero .nav > li > a, .site-header.over-hero .nav > li > button { color: var(--ink); }
  .nav > li > a, .nav > li > button { width: 100%; text-align: left; padding: 14px 8px; font-size: var(--t-md); border-bottom: 1px solid var(--line); border-radius: 0; }
  .dropdown { position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .nav .cta-link { margin: 16px 0 0; text-align: center !important; border-radius: 999px !important; }
}

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--saffron); background: var(--saffron); color: var(--ink); font: 600 var(--t-md) var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: #f0b445; color: var(--ink); transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: currentColor; color: var(--tea); }
.band.dark .btn.ghost, .hero .btn.ghost { color: #fff; }
.btn.small { padding: 8px 14px; font-size: var(--t-sm); }
.btn.tea { background: var(--tea); border-color: var(--tea); color: #fff; }
.btn.tea:hover { background: var(--tea-2); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--lagoon-soft); color: var(--lagoon); font-size: var(--t-xs); font-weight: 600; }
.chip.saffron { background: var(--saffron-soft); color: var(--saffron-ink); }
.chip.lacquer { background: var(--lacquer-soft); color: var(--lacquer); }
.chip.tea { background: var(--tea); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- hero (home) ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; color: #fff; background: var(--tea) center / cover no-repeat; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 30, 22, .55) 0%, rgba(10, 30, 22, .15) 35%, rgba(10, 30, 22, .82) 78%, rgba(10, 30, 22, .95) 100%); }
.hero .wrap { padding-top: 120px; padding-bottom: clamp(32px, 6vw, 64px); min-width: 0; }
.hero h1, .greeting-en, .madlib { overflow-wrap: break-word; }
.greeting { font-family: var(--f-sinhala); font-size: clamp(2.6rem, 9vw, 6.5rem); line-height: 1; color: var(--saffron); margin: 0 0 25px; }
.greeting-en { font-family: var(--f-display); font-size: var(--t-xl); margin: 0 0 28px; color: #fff; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 22ch; }
.madlib { font-family: var(--f-display); font-size: clamp(1.25rem, 2.6vw, 1.95rem); line-height: 1.75; max-width: 34em; margin: 0 0 24px; color: #fff; }
.madlib select, .madlib input { font: inherit; color: var(--saffron); background: transparent; border: 0; border-bottom: 2px dashed rgba(226, 161, 43, .8); padding: 0 4px; margin: 0 2px; cursor: pointer; border-radius: 0; appearance: none; -webkit-appearance: none; max-width: 100%; }
.madlib input[type=number] { width: 2.4em; text-align: center; cursor: text; display: inline; padding: 0 2px; border: 0; border-bottom: 2px dashed rgba(226, 161, 43, .8); border-radius: 0; background: transparent; color: var(--saffron); font: inherit; -moz-appearance: textfield; }
.madlib input[type=number]::-webkit-inner-spin-button, .madlib input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.madlib select { width: auto; padding: 0 4px; }
.madlib select option { color: var(--ink); background: #fff; font-family: var(--f-body); font-size: 1rem; }
.madlib select:focus-visible, .madlib input:focus-visible { outline: 2px solid var(--saffron); outline-offset: 4px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: var(--t-sm); color: #d3e0d9; }
.hero-meta strong { color: #fff; }
.photo-credit { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: rgba(255, 255, 255, .7); }
.photo-credit a { color: inherit; }

/* page hero (inner pages) */
.page-hero { position: relative; color: #fff; background: var(--tea) center / cover no-repeat; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 30, 22, .92) 0%, rgba(10, 30, 22, .6) 55%, rgba(10, 30, 22, .25) 100%); }
.page-hero .wrap { padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(40px, 7vw, 80px); }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: #dbe6e0; font-size: var(--t-lg); max-width: 56ch; }
.crumbs { font-size: var(--t-sm); color: #b7c9bf; margin-bottom: 14px; }
.crumbs a { color: #fff; }

/* ---------- layout helpers ---------- */
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split > *, .grid > *, .panel-media > * { min-width: 0; }
.stack > * + * { margin-top: 16px; }

/* image-led tile: photo with caption beneath, no card box */
.tile { display: block; text-decoration: none; color: inherit; }
.tile figure { margin: 0 0 12px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-img); background: var(--line); }
.tile.tall figure { aspect-ratio: 3 / 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile h3 { margin: 0 0 4px; font-size: var(--t-lg); }
.tile p { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.tile .chips { margin-top: 8px; }

/* panel: bordered information block (used for prices, facts) */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-ui); padding: clamp(18px, 2.5vw, 28px); }
.panel.flat { background: transparent; }
.panel h3 { margin-bottom: 8px; }
.band.dark .panel { background: var(--tea-2); border-color: var(--tea-3); }
.panel-media { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.panel-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-img); }
@media (max-width: 640px) { .panel-media { grid-template-columns: 1fr; } .panel-media img { aspect-ratio: 16 / 9; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 20px; margin: 14px 0; padding: 0; list-style: none; }
.facts li { border-top: 2px solid var(--saffron); padding-top: 8px; font-size: var(--t-sm); color: var(--muted); }
.facts strong { display: block; color: var(--ink); font-size: var(--t-md); }

/* notes / alerts */
.note { border-left: 4px solid var(--lagoon); background: var(--lagoon-soft); padding: 14px 18px; border-radius: 0 var(--r-ui) var(--r-ui) 0; margin: 16px 0; }
.note.warn { border-color: var(--lacquer); background: var(--lacquer-soft); }
.note.gold { border-color: var(--saffron); background: var(--saffron-soft); }
.note p:last-child { margin: 0; }
.note strong:first-child { color: var(--tea); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-ui); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #e7eee9; color: var(--tea); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.est { color: var(--saffron-ink); font-size: var(--t-xs); font-weight: 600; white-space: nowrap; }

/* tabs (filter buttons) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 500 var(--t-sm) var(--f-body); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--tea); border-color: var(--tea); color: #fff; }

/* ---------- forms ---------- */
form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field legend { font-weight: 600; font-size: var(--t-sm); color: var(--tea); }
.field .hint { font-size: var(--t-xs); color: var(--muted); }
input:not([type]), input[type=file], input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=url], input[type=password], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #b9c8bf; border-radius: 8px; background: #fff; font: 400 var(--t-md) var(--f-body); color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--lagoon); outline: 2px solid rgba(31, 111, 120, .25); }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #b9c8bf; border-radius: 999px; background: #fff; cursor: pointer; font-size: var(--t-sm); font-weight: 500; color: var(--ink); }
.checks input { accent-color: var(--tea); margin: 0; }
.checks label:has(input:checked) { background: var(--tea); border-color: var(--tea); color: #fff; }
/* "pick or type" fields */
.combo { position: relative; }
.combo > input { padding-right: 42px; }
.combo-toggle { position: absolute; top: 0; right: 0; height: 100%; max-height: 46px; width: 40px; display: grid; place-items: center; border: 0; border-left: 1px solid #d5dfd8; background: transparent; color: var(--tea); cursor: pointer; border-radius: 0 8px 8px 0; }
.combo-toggle:hover, .combo-toggle[aria-expanded="true"] { background: var(--mist); }
.combo-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid #b9c8bf; border-radius: 10px; box-shadow: var(--shadow); }
.combo-list li[role="option"] { padding: 9px 10px 9px 30px; border-radius: 6px; cursor: pointer; font-size: var(--t-sm); position: relative; }
.combo-list li[role="option"]:hover, .combo-list li.active { background: var(--lagoon-soft); }
.combo-list li[aria-selected="true"]::before, .combo-opt[aria-pressed="true"]::before { content: '✓'; position: absolute; left: 10px; color: var(--tea-3); font-weight: 700; }
.combo-empty { padding: 9px 10px; font-size: var(--t-sm); color: var(--muted); }
.combo-add { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px dashed var(--tea-3); background: var(--paper); color: var(--tea); font: 600 var(--t-sm) var(--f-body); cursor: pointer; }
.combo-add:hover, .combo-add[aria-expanded="true"] { background: var(--lagoon-soft); border-style: solid; }
.combo-area .combo-list { top: auto; margin-top: 4px; position: absolute; }
.combo-opt { display: block; width: 100%; text-align: left; padding: 9px 10px 9px 30px; border: 0; background: none; border-radius: 6px; cursor: pointer; font: 400 var(--t-sm) var(--f-body); color: var(--ink); position: relative; }
.combo-opt:hover, .combo-opt:focus-visible { background: var(--lagoon-soft); }
.combo-opt[aria-pressed="true"] { font-weight: 600; color: var(--tea); }
dialog .combo-list { max-height: 200px; }
.form-status { margin-top: 12px; font-weight: 600; }
.form-status.ok { color: var(--tea-3); }
.form-status.err { color: var(--lacquer); }
.req { color: var(--lacquer); }
.hp { position: absolute; left: -5000px; }

/* planner steps (real sequence → numbered) */
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; flex: 1 1 120px; padding: 10px 12px; border-top: 4px solid var(--line); font-size: var(--t-sm); color: var(--muted); }
.steps li::before { content: counter(s) '. '; font-weight: 700; }
.steps li.active { border-color: var(--saffron); color: var(--tea); font-weight: 600; }
.steps li.done { border-color: var(--tea-3); }
.step-pane[hidden] { display: none; }

/* itinerary output */
.itinerary { counter-reset: d; }
.day { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.day-num { font-family: var(--f-display); color: var(--tea); }
.day-num b { display: block; font-size: var(--t-3xl); line-height: 1; font-weight: 400; }
.day-num span { font-size: var(--t-xs); color: var(--muted); }
.day h3 { margin-bottom: 6px; }
.day ul { margin: 8px 0; padding-left: 18px; }
.day .slot { color: var(--muted); font-weight: 600; font-size: var(--t-xs); display: inline-block; min-width: 76px; }
@media (max-width: 600px) { .day { grid-template-columns: 1fr; gap: 6px; } }
.cost-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.total-line { font-family: var(--f-display); font-size: var(--t-2xl); color: var(--tea); }

/* listings */
.listing { display: grid; grid-template-columns: 180px 1fr auto; gap: 18px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-ui); align-items: start; }
.listing img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-img); background: var(--line); }
.listing h3 { margin: 0 0 4px; font-size: var(--t-lg); }
.listing .price { font-family: var(--f-display); font-size: var(--t-xl); color: var(--tea); white-space: nowrap; }
.listing .price small { display: block; font-family: var(--f-body); font-size: var(--t-xs); color: var(--muted); }
.listing .side { text-align: right; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.badge-sample { background: var(--saffron-soft); color: var(--saffron-ink); font-size: var(--t-xs); font-weight: 700; padding: 2px 8px; border-radius: 4px; }
@media (max-width: 760px) { .listing { grid-template-columns: 1fr; } .listing .side { text-align: left; align-items: flex-start; } }

/* news */
.news-item { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.news-item time { font-size: var(--t-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.news-item h3 { font-size: var(--t-lg); margin: 0 0 6px; }
.news-item p { margin: 0 0 6px; font-size: var(--t-sm); }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; gap: 4px; } }

/* season strip (months) */
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: 10px 0; }
.months span { font-size: 10px; text-align: center; padding: 6px 0; border-radius: 3px; background: #e3e9e5; color: var(--muted); }
.months span.good { background: var(--tea-3); color: #fff; }
.months span.ok { background: #a9c7b6; color: var(--tea); }
@media (max-width: 480px) { .months span { font-size: 8px; } }

/* modal */
dialog { border: 0; border-radius: 14px; padding: 0; max-width: min(640px, calc(100vw - 32px)); width: 100%; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
dialog::backdrop { background: rgba(10, 30, 22, .6); }
.dialog-body { padding: 24px; max-height: 80vh; overflow-y: auto; }
.dialog-close { float: right; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--muted); line-height: 1; }

/* footer */
.site-footer { background: #0c271e; color: #b7c9bf; padding: 56px 0 28px; font-size: var(--t-sm); }
.site-footer h4 { color: #fff; font-size: var(--t-md); font-family: var(--f-body); font-weight: 600; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #dbe6e0; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid #1f4436; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.fx-pill { display: inline-block; margin-top: 10px; padding: 6px 12px; border: 1px solid #2c5646; border-radius: 999px; color: #fff; }

.whatsapp-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); }
.whatsapp-fab svg { width: 30px; height: 30px; fill: #fff; }

/* admin: website content editor */
.ce-publish { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 20px; position: sticky; top: 76px; z-index: 20; box-shadow: var(--shadow); }
.ce-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.ce-nav { position: sticky; top: 180px; max-height: calc(100vh - 200px); overflow-y: auto; padding-right: 4px; }
.ce-nav .ce-group { margin: 14px 0 4px; font-size: var(--t-xs); font-weight: 700; color: var(--muted); }
.ce-nav button { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-radius: 6px; background: none; font: 500 var(--t-sm) var(--f-body); color: var(--ink); cursor: pointer; }
.ce-nav button:hover { background: var(--paper); }
.ce-nav button[aria-current="true"] { background: var(--tea); color: #fff; }
.ce-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); flex: none; }
.ce-editor { min-width: 0; }
.ce-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: end; margin-bottom: 16px; }
.ce-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.ce-items { display: flex; flex-direction: column; gap: 8px; }
.ce-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-ui); }
.ce-item[open] { border-color: var(--tea-3); }
.ce-item summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
.ce-item summary::-webkit-details-marker { display: none; }
.ce-label { font-weight: 600; font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-actions { display: flex; gap: 4px; flex: none; }
.ce-actions button { border: 1px solid var(--line); background: var(--mist); border-radius: 6px; padding: 3px 9px; font: 500 var(--t-xs) var(--f-body); cursor: pointer; color: var(--ink); }
.ce-actions button:hover { background: var(--lacquer-soft); }
.ce-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 16px; padding: 4px 14px 8px; }
.ce-fields .field { margin-bottom: 12px; }
.ce-wide { grid-column: 1 / -1; }
.ce-lbl { font-weight: 600; font-size: var(--t-sm); color: var(--tea); }
.ce-range { display: flex; align-items: center; gap: 8px; }
.ce-range input { max-width: 120px; }
.ce-months label { padding: 5px 10px; }
.ce-check { display: flex; gap: 8px; align-items: center; font-weight: 500 !important; color: var(--ink) !important; margin-top: 24px; }
.ce-img { display: flex; gap: 10px; align-items: center; }
.ce-img img { width: 72px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--line); flex: none; }
.ce-rows { width: 100%; margin-bottom: 8px; }
.ce-rows td, .ce-rows th { padding: 4px; border: 0; background: none; }
.ce-savebar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 0; margin-top: 16px; background: var(--mist); border-top: 1px solid var(--line); z-index: 5; }
.ce-savebar .form-status { margin: 0; }
@media (max-width: 860px) {
  .ce-layout { grid-template-columns: 1fr; }
  .ce-nav { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px; }
  .ce-nav .ce-group { width: 100%; }
  .ce-nav button { width: auto; border: 1px solid var(--line); background: var(--paper); }
  .ce-publish { position: static; }
}

/* admin: enquiry cards */
.enq-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; }
.enq-contact { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 10px 0 0; color: var(--muted); }
.enq-pickup { margin: 14px 0 0; }
.enq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 28px; }
.enq-sec { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.enq-sec h4 { margin: 0 0 8px; font: 700 var(--t-xs) var(--f-body); color: var(--muted); letter-spacing: .02em; }
.enq-dl { display: grid; grid-template-columns: minmax(110px, 150px) 1fr; gap: 6px 14px; margin: 0; font-size: var(--t-sm); }
.enq-dl dt { color: var(--muted); }
.enq-dl dd { margin: 0; color: var(--ink); font-weight: 500; }
.enq-text p { margin: 0; white-space: pre-line; font-size: var(--t-sm); background: var(--mist); border-radius: 8px; padding: 10px 12px; max-width: none; }
.enq-days { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.enq-days summary { cursor: pointer; font-weight: 600; font-size: var(--t-sm); color: var(--tea); }
.enq-days ol { margin: 10px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; font-size: var(--t-sm); }
.enq-days ol > li { padding: 8px 12px; background: var(--mist); border-radius: 8px; }
.enq-days ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink); }

/* print: itinerary only */
@media print {
  .site-header, .site-footer, .whatsapp-fab, .no-print, .page-hero, .steps { display: none !important; }
  body { background: #fff; }
  .band { padding: 0; }
  .day { break-inside: avoid; }
}
