/* Hotel Ratangad Backwater Resort
   White site (~95% white). Black Sand palette used only for accents. */
:root {
  color-scheme: light;
  --sky: #93C2F5;      /* Sky blue: outlines, highlights */
  --navy: #243F5B;     /* Slate navy: buttons, headings */
  --olive: #69801B;    /* Olive: prices, booked */
  --drift: #8D8482;    /* Driftwood: neutral status */
  --ink: #13263A;

  --bg: #FFFFFF;
  --band: #F7F8FA;
  --text: #13263A;
  --muted: #56616E;
  --line: #E3E8EE;
  --navy-ink: #243F5B;
  --olive-ink: #556914;
  --drift-ink: #6B6361;
  --on-navy: #FAFFFF;
  --focus: #69801B;

  /* Latin faces first; Devanagari (Marathi/Hindi) falls through to Tiro / Mukta */
  --f-display: "Young Serif", "Tiro Devanagari Marathi", Georgia, "Times New Roman", serif;
  --f-body: "Karla", "Mukta", "Segoe UI", "Nirmala UI", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, Consolas, monospace;
  --r: 6px;
  --shadow: 0 1px 0 rgba(19,38,58,.05), 0 10px 26px -14px rgba(19,38,58,.25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.55; padding-top: env(safe-area-inset-top, 0px); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; color: var(--navy-ink); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
a { color: var(--navy-ink); }
:focus-visible { outline: 3px solid var(--focus); 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)); }
.eyebrow { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--olive-ink); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons + fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem var(--f-body); padding: 12px 20px; border-radius: var(--r); border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s; }
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { background: #1A3048; }
.btn-line { background: #fff; color: var(--text); border-color: var(--line); }
.btn-line:hover { border-color: var(--muted); }
.btn-danger { background: #fff; color: var(--drift-ink); border-color: var(--drift); }
.btn-ok { background: var(--olive); color: #fff; }
.btn-ok:hover { background: #586C15; }
.btn-sm { padding: 7px 12px; font-size: .88rem; }
.btn-block { width: 100%; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; }
.f input, .f select, .f textarea { font: 400 1rem var(--f-body); color: var(--text); background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 11px 12px; min-height: 46px; width: 100%; }
.f input[type=file] { padding: 9px; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(147,194,245,.45); }
.f small { font-weight: 400; color: var(--muted); }
.f .err, .err { color: #A33A12; font-weight: 600; font-size: .85rem; }
.f.has-err input, .f.has-err select { border-color: #C2552B; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }

/* Flash messages */
.flashes { display: flex; flex-direction: column; gap: 8px; padding-block: 14px 0; }
.flash { padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font-weight: 500; }
.flash.ok { border-color: rgba(105,128,27,.45); background: #F6F9EE; }
.flash.error { border-color: #E9B8A3; background: #FDF4F0; color: #7A2B0C; }
.flash.info { border-color: var(--sky); background: #F4F9FF; }

/* Photo / placeholder */
.ph { position: relative; overflow: hidden; background: var(--band); border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .8rem; padding: 12px; min-height: 140px; max-width: 100%; }
.ph span { background: rgba(255,255,255,.92); padding: 4px 10px; border-radius: 99px; font-weight: 600; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Language switcher */
.langbar { border-bottom: 1px solid var(--line); font-size: .85rem; background: #fff; }
.langbar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 4px; padding-block: 5px; }
.langbar a { padding: 3px 10px; border-radius: 99px; text-decoration: none; color: var(--muted); font-weight: 500; }
.langbar a:hover { color: var(--navy-ink); background: var(--band); }
.langbar a.on { background: var(--band); color: var(--navy-ink); font-weight: 700; }
body.lang-mr, body.lang-hi { line-height: 1.65; }
body.lang-mr h1, body.lang-mr h2, body.lang-mr h3, body.lang-hi h1, body.lang-hi h2, body.lang-hi h3 { line-height: 1.3; }
body.lang-mr .eyebrow, body.lang-hi .eyebrow, body.lang-mr .mast-kicker, body.lang-hi .mast-kicker { letter-spacing: .02em; }

/* Admin: accounts */
.side-me { display: flex; flex-direction: column; min-width: 0; font-size: .88rem; overflow-wrap: anywhere; }
.side-me small { color: var(--muted); font-size: .75rem; }
.ulist { display: flex; flex-direction: column; gap: 14px; }
.urow { gap: 14px; }
.urow form { margin: 0; }
.ugrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.uform { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.uform .f { width: 100%; }
@media (max-width: 900px) { .ugrid { grid-template-columns: 1fr; } }

/* Admin: notifications */
.steps-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.steps-list code, .panel code { font-family: var(--f-mono); font-size: .85em; background: var(--band); padding: 1px 6px; border-radius: 4px; }
.chatrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); margin: 0; }
.tg-preview { margin: 0; white-space: pre-wrap; font: .88rem/1.5 var(--f-body); background: var(--band); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; overflow-x: auto; }

/* Admin: home page section editor */
.tri { display: flex; flex-direction: column; gap: 6px; }
.tri-label { font-size: .85rem; font-weight: 600; }
.tri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tri-grid .f { font-weight: 400; gap: 4px; }
.tri-grid .f input, .tri-grid .f textarea { min-height: 40px; padding: 8px 10px; font-size: .95rem; }
.erow { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.erow-new { border-style: dashed; background: var(--band); }
.erow-day { border-left: 0; box-shadow: inset 3px 0 0 var(--olive); }
.erow-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.erow-head b { flex: 1 1 160px; }
.icon-preview { --dot: var(--navy); width: 36px; height: 36px; margin: 0; flex: none; }
.f.inline { flex-direction: row; align-items: center; gap: 8px; }
.f.inline input { width: 84px; min-height: 38px; padding: 6px 8px; }
.f.inline select { width: auto; min-height: 38px; padding: 6px 8px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--drift-ink); }
.chk input { width: 18px; height: 18px; }
@media (max-width: 760px) { .tri-grid { grid-template-columns: 1fr; } }

/* Admin: translation boxes */
.tfield { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.tfield:last-child { border-bottom: 0; padding-bottom: 0; }
.tr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .tr-grid { grid-template-columns: 1fr; } }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: #fff; }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy-ink); text-decoration: none; font-family: var(--f-display); font-size: 1.25rem; line-height: 1; }
.logo svg { flex: none; }
.logo small { display: block; font-family: var(--f-body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-ink); margin-top: 4px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: var(--r); font-weight: 500; }
.nav a:hover { background: var(--band); }
.nav a.on { color: var(--olive-ink); }
.nav .btn { padding: 9px 16px; margin-left: 6px; color: var(--on-navy); }
.nav .btn:hover { background: #1A3048; }
.nav .tel { font-variant-numeric: tabular-nums; }
.call-btn, .menu-btn { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 761px) and (max-width: 1080px) { .nav .tel { display: none; } }
@media (max-width: 760px) {
  .site-head .wrap { min-height: 64px; gap: 10px; }
  .logo { font-size: 1.1rem; }
  .call-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--olive-ink); margin-left: auto; }
  .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--navy-ink); cursor: pointer; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(19,38,58,.35); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:hover { background: none; }
  .nav .btn { border-bottom: 0; border-radius: var(--r); margin: 14px 0 0; padding: 14px; }
}

/* Sections */
.section { padding-block: 56px; }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; max-width: 62ch; }

/* Masthead */
.mast-photo { position: relative; display: grid; min-height: clamp(380px, 60vh, 600px); }
.mast-bg { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0 58%, #3A6288 58%, #243F5B 100%), radial-gradient(48% 30% at 22% 59%, #69801B 0 99%, transparent 100%), radial-gradient(40% 24% at 74% 59%, #8BA23D 0 99%, transparent 100%), linear-gradient(180deg, #93C2F5, #E3F0FD 58%); }
.mast-bg img { width: 100%; height: 100%; object-fit: cover; }
.mast-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(19,38,58,.35), rgba(19,38,58,.6)); }
.mast-inner { position: relative; z-index: 2; align-self: center; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-block: 56px 100px; color: #FAFFFF; }
.mast-inner h1 { color: #FAFFFF; font-size: clamp(2.4rem, 6.5vw, 4.4rem); max-width: 16ch; }
.mast-inner p { font-family: var(--f-display); font-size: clamp(1.1rem, 2.2vw, 1.45rem); max-width: 38ch; }
.mast-kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--sky); }
.book-bar { position: relative; z-index: 3; margin-top: -56px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 22px 50px -26px rgba(19,38,58,.5); padding: 20px; display: grid; grid-template-columns: 1.4fr .7fr .7fr auto; gap: 14px; align-items: end; }
.book-bar .btn { min-height: 46px; }
.book-bar-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; font-size: .9rem; color: var(--muted); }
.book-bar-foot b { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; color: var(--olive-ink); }
.mast-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 32px 8px; text-align: center; }
.mast-facts div { display: flex; flex-direction: column; gap: 2px; }
.mast-facts b { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; color: var(--navy-ink); }
.mast-facts span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .mast-photo { min-height: 460px; }
  .mast-inner { padding-block: 40px 88px; gap: 12px; }
  .mast-inner h1 { font-size: 2.6rem; }
  .mast-inner p { font-size: 1.05rem; }
  .book-bar { grid-template-columns: 1fr 1fr; margin-top: -52px; padding: 16px; gap: 12px; }
  .book-bar > .f:first-child, .book-bar .btn { grid-column: 1 / -1; }
  .book-bar-foot { flex-direction: column; }
  .mast-facts { grid-template-columns: 1fr 1fr; gap: 0; padding-block: 20px 0; }
  .mast-facts div { padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .mast-facts div:nth-child(odd) { border-right: 1px solid var(--line); }
  .mast-facts div:nth-child(n+3) { border-bottom: 0; }
}

/* Home: our tents */
.section-head-row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.section-head-row > .stack { max-width: 62ch; }
.see-all { font-weight: 600; color: var(--navy-ink); text-decoration: none; white-space: nowrap; }
.see-all:hover { text-decoration: underline; }
.tent-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tcard { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.tcard-photo { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--band); color: var(--muted); font-size: .8rem; text-decoration: none; overflow: hidden; }
.tcard-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tcard-photo:hover img { transform: scale(1.03); }
.tcard-count { position: absolute; right: 10px; bottom: 10px; background: rgba(255,255,255,.92); color: var(--text); padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 600; }
.tcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tcard-body h3 { font-size: 1.25rem; }
.tcard-price { margin: 4px 0 8px; }
.tcard-price b { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; color: var(--olive-ink); }
.tcard .btn { margin-top: auto; }

/* Included */
.incl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.incl > div { padding: 22px; display: flex; flex-direction: column; gap: 8px; border-radius: 14px; border: 1px solid var(--line); --dot: var(--sky); }
.incl-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--dot); background: color-mix(in srgb, var(--dot) 13%, #fff); margin-bottom: 6px; }
.incl > div:nth-child(1) .incl-icon { color: #4A86C8; } /* sky blue is too light for a line icon; same hue, darker */
.incl > div:nth-child(2) { --dot: var(--olive); }
.incl > div:nth-child(3) { --dot: var(--drift); }
.incl > div:nth-child(4) { --dot: var(--navy); }
.incl h3 { font-size: 1.15rem; }
.amen { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.amen-title { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.amen ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.amen li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: 99px; font-weight: 600; font-size: .95rem; }
.amen li svg { color: var(--olive-ink); flex: none; }
body.lang-mr .amen-title, body.lang-hi .amen-title { letter-spacing: .02em; }
.incl p { font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .incl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .incl { grid-template-columns: 1fr; } }

/* Day timeline */
.day { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.timeline li.day-label { display: block; border: 0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--olive-ink); padding: 18px 0 4px; }
.timeline time { font-family: var(--f-mono); font-size: .85rem; color: var(--navy-ink); font-weight: 500; padding-top: 3px; }
.timeline b { display: block; font-weight: 600; }
.timeline span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .day { grid-template-columns: 1fr; } }

/* Nearby, gallery, reach */
.near { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.near > div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); }
.near .km { font-family: var(--f-mono); color: var(--olive-ink); white-space: nowrap; }
@media (max-width: 760px) { .near { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .near { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
.gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--band); }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure:first-child { grid-row: span 2; }
.gallery figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.92); padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; } .gallery figure:first-child { grid-column: span 2; grid-row: span 1; } }
.reach { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.reach dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.reach dt { font-weight: 600; }
.reach dd { margin: 0; color: var(--muted); }
.reach iframe { width: 100%; min-height: 280px; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 760px) { .reach { grid-template-columns: 1fr; } }
.cta-box { border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); font-size: .92rem; }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; padding-block: 40px; }
.site-foot h3 { font-size: 1rem; margin-bottom: 8px; }
.site-foot a { color: var(--text); }
.site-foot .legal { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* Tents page */
.tents { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tent { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
/* Tent and bonfire photos show at their own shape (square, wide or tall), so nothing important is cut off.
   Only very tall photos are trimmed, at 600px. Placeholders keep a 4:3 box. */
.tent .ph { border: 0; border-radius: 0; min-height: 0; padding: 0; aspect-ratio: 4 / 3; }
.tent .ph:has(img), .day .ph:has(img) { aspect-ratio: auto; display: block; min-height: 0; padding: 0; }
.tent .ph:has(img) img, .day .ph:has(img) img { position: static; display: block; width: 100%; height: auto; max-height: 600px; object-fit: cover; }
.tent .ph a { display: block; }
.tent-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.tent ul { margin: 0; padding-left: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.rates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); }
.rates div { padding: 10px 14px; }
.rates div + div { border-left: 1px solid var(--line); }
.rates b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; color: var(--olive-ink); }
.rates small { color: var(--muted); }
.tent .btn { margin-top: auto; }
.tent-thumbs { display: flex; gap: 6px; padding: 8px 20px 0; overflow-x: auto; }
.tent-thumbs a { flex: none; width: 64px; height: 48px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.tent-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.seg { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tlist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.titem { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: inherit; }
.titem:last-child { border-bottom: 0; }
.titem .thumb { min-height: 0; }
.units-form { display: grid; grid-template-columns: 110px auto; gap: 6px 8px; align-items: end; margin: 0; }
.units-form .f input { min-height: 38px; padding: 6px 10px; }
.units-form small { grid-column: 1 / -1; max-width: 220px; }
@media (max-width: 760px) { .titem { grid-template-columns: 88px 1fr; } .units-form { grid-column: 1 / -1; } }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.rules h3 { font-size: 1.05rem; margin-bottom: 6px; }
.rules p { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .tents, .rules { grid-template-columns: 1fr; } }

/* Booking form */
.steps { display: flex; gap: 6px; flex-wrap: wrap; font-size: .85rem; margin-bottom: 20px; }
.steps span { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.steps span.on { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.steps span.done { color: var(--olive-ink); border-color: var(--olive); }
.book-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.panel h3 { font-size: 1.1rem; }
.summary { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.sum-row.total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; }
.sum-adv { border: 1.5px solid var(--sky); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.sum-adv b { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; color: var(--navy-ink); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg .opt { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r); }
.seg input:checked + .opt { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.seg input:focus-visible + .opt { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg .opt small { color: var(--muted); }
.notice { padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--band); font-size: .95rem; }
.notice.good { background: #F6F9EE; border-color: rgba(105,128,27,.45); }
.notice.warn { background: #FDF4F0; border-color: #E9B8A3; color: #7A2B0C; }
.book-bar .date-warn { grid-column: 1 / -1; }
.mix-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--band); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 860px) { .book-layout { grid-template-columns: 1fr; } .summary { position: static; } }

/* Booking status page */
.idcard { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border: 1.5px dashed var(--line); border-radius: var(--r); }
.idcard .mono { font-size: 1.4rem; color: var(--navy-ink); font-weight: 500; }
.status-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .status-layout { grid-template-columns: 1fr; } }
.pay-grid { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.qr svg { width: 100%; height: auto; display: block; }
@media (max-width: 600px) { .pay-grid { grid-template-columns: 1fr; } .qr { max-width: 240px; margin: 0 auto; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .03em; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.pending { color: var(--drift-ink); border: 1.5px solid var(--drift); }
.pill.submitted { color: var(--navy-ink); border: 1.5px solid var(--sky); background: #F4F9FF; }
.pill.confirmed { background: var(--olive); color: #fff; }
.pill.cancelled, .pill.expired { background: var(--band); color: var(--muted); border: 1px solid var(--line); }
.progress { list-style: none; margin: 0; padding: 0; }
.progress li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; position: relative; padding-bottom: 22px; }
.progress li:last-child { padding-bottom: 0; }
.progress li::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.progress li:last-child::after { display: none; }
.progress .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--muted); z-index: 1; }
.progress li.done .dot { background: var(--olive); border-color: var(--olive); color: #fff; }
.progress li.done::after { background: var(--olive); }
.progress li.now .dot { border-color: var(--navy); color: var(--navy-ink); }
.progress b { display: block; }
.progress span { color: var(--muted); font-size: .92rem; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font: .85rem var(--f-mono); padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); }

/* Phone bottom bar + chat */
.mbar { display: none; }
.float-chat { position: fixed; z-index: 44; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 .9rem var(--f-body); color: var(--text); }
.float-chat .lbl { background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 99px; box-shadow: var(--shadow); }
.float-chat .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--olive); display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(19,38,58,.6); }
@media (max-width: 760px) {
  body.has-mbar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body.has-mbar .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(0,0,0,.4); padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); justify-content: space-between; align-items: center; gap: 12px; }
  .mbar b { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; color: var(--olive-ink); }
  body.has-mbar .float-chat { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .float-chat .lbl { display: none; }
}

/* ---------------- Admin ---------------- */
.admin { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.side .logo { font-size: 1.1rem; padding: 0 8px 18px; }
.side a, .side button { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: var(--r); display: flex; justify-content: space-between; align-items: center; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; width: 100%; }
.side a:hover, .side button:hover { background: var(--band); }
.side a.on { background: var(--band); color: var(--navy-ink); font-weight: 700; }
.side .count { font-family: var(--f-mono); font-size: .75rem; background: var(--navy); color: #fff; border-radius: 99px; padding: 1px 8px; }
.side .grow { flex: 1; }
.side form { margin: 0; }
.admin-main { padding: 28px max(16px, env(safe-area-inset-right, 0px)) 48px 28px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.admin-main .flashes { padding: 0; }
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: end; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); }
.tile b { font-family: var(--f-display); font-weight: 400; font-size: 2rem; font-variant-numeric: tabular-nums; color: var(--navy-ink); }
.tile.alert { border: 1.5px solid var(--sky); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 .85rem var(--f-body); padding: 6px 12px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--text); text-decoration: none; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.search { display: flex; gap: 8px; }
.search input { font: 400 .95rem var(--f-body); padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--r); min-width: 0; width: 220px; }
.blist { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bhead, .brow { display: grid; grid-template-columns: 140px 1.4fr 1.2fr 70px 110px 140px; gap: 12px; align-items: center; padding: 12px 16px; }
.bhead { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--band); }
.brow { border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.brow:last-child { border-bottom: 0; }
.brow:hover { background: var(--band); }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.brow small { display: block; color: var(--muted); }
.empty { padding: 28px 16px; color: var(--muted); text-align: center; }
.detail { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.money { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); }
.money div { padding: 12px 14px; }
.money div + div { border-left: 1px solid var(--line); }
.money b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.money small { color: var(--muted); }
.proof-thumb { display: block; width: 180px; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.setgrid, .content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.blocked { display: flex; flex-direction: column; gap: 8px; }
.blocked form { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); margin: 0; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.slot { display: flex; flex-direction: column; gap: 8px; }
.slot form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.thumb { min-height: 0; aspect-ratio: 4 / 3; padding: 6px; }
.glist { display: flex; flex-direction: column; gap: 12px; }
.gitem { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; }
.gitem form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 0; }
.gitem .f { flex: 1 1 160px; }
.gitem .f input { min-height: 40px; padding: 8px 10px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: 1fr 1fr; } .detail, .setgrid, .content-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; min-height: 0; }
  .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); gap: 6px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; }
  .side .logo, .side .grow { display: none; }
  .side a, .side button { white-space: nowrap; gap: 8px; width: auto; }
  .admin-main { padding: 20px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
  .bhead { display: none; }
  .brow { grid-template-columns: 1fr auto; grid-template-areas: "who pill" "dates amt" "id guests"; row-gap: 4px; }
  .brow .c-id { grid-area: id; } .brow .c-who { grid-area: who; } .brow .c-dates { grid-area: dates; }
  .brow .c-g { grid-area: guests; text-align: right; } .brow .c-amt { grid-area: amt; } .brow .c-st { grid-area: pill; justify-self: end; }
  .search input { width: 100%; }
  .search { flex: 1 1 100%; }
}
@media (max-width: 420px) { .money { grid-template-columns: 1fr; } .money div + div { border-left: 0; border-top: 1px solid var(--line); } }
.login { min-height: 100vh; display: grid; place-items: center; padding-block: 48px; background: var(--band); }
.login .panel { width: min(420px, 100%); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
