/* Layout concept: route-map identity — dashed travel lines, ticket-stub cards, deep ocean blue meeting fresh green.
   Jack & Jose pages lean blue; Elsha pages lean green. */
:root {
  --ink: #0c1e33;
  --ink-soft: #46586e;
  --muted: #6b7c91;
  --bg: #f3f7fa;
  --surface: #ffffff;
  --surface-2: #e9f1f7;
  --line: #d4e0ea;
  --blue: #0b57b7;
  --blue-deep: #06305f;
  --blue-soft: #dcebfb;
  --green: #11895a;
  --green-bright: #1fbf7a;
  --green-soft: #d8f3e6;
  --teal: #0b8f9c;
  --accent: var(--blue);
  --accent-soft: var(--blue-soft);
  --warn: #b7791f;
  --warn-soft: #fdf1dc;
  --danger: #c2363a;
  --danger-soft: #fbe3e3;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(6, 48, 95, .06), 0 8px 24px rgba(6, 48, 95, .08);
  --hero-grad: linear-gradient(125deg, #06305f 0%, #0b57b7 45%, #0b8f9c 75%, #11895a 100%);
  --elsha-grad: linear-gradient(125deg, #0a4d3a 0%, #11895a 50%, #0b8f9c 100%);
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
/* One look on every device: the site keeps its own colours even when the phone or PC is set to dark mode. */
:root { color-scheme: only light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--blue); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 2px; }
.mono { font-family: var(--font-mono); letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: 56px; }
.section-tight { padding-block: 32px; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 24px; }
.section-head p { max-width: 60ch; color: var(--ink-soft); }
.stack { display: grid; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--blue-deep); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
:root .site-header { --hdr-ink: #ffffff; }
.nav { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; flex: none; display: block; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; color: #dbe9f7; text-decoration: none; font-weight: 600; font-size: .92rem; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-link .caret { font-size: .7em; opacity: .8; }
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; background: var(--surface); color: var(--ink); border-radius: 12px; box-shadow: 0 16px 40px rgba(6,48,95,.25); padding: 8px; display: none; border: 1px solid var(--line); }
.nav-item:hover .dropdown, .nav-item.open .dropdown { display: block; }
.nav-item:hover .dropdown::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.dropdown a:hover { background: var(--surface-2); }
.dropdown a b { display: block; font-size: .92rem; }
.dropdown a span { font-size: .8rem; color: var(--muted); }
.dd-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.dd-icon.g { background: var(--green-soft); color: var(--green); }
.dd-icon svg, .ico svg { width: 18px; height: 18px; }
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 42px; height: 42px; border-radius: 10px; cursor: pointer; font-size: 1.3rem; }
.demo-strip { background: var(--green-soft); color: var(--ink); font-size: .8rem; text-align: center; padding: 6px var(--gutter-r) 6px var(--gutter-l); }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--blue-deep); padding: 8px var(--gutter-r) 16px var(--gutter-l); max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-item:hover .dropdown { display: none; }
  .nav-item.open .dropdown { display: block; position: static; box-shadow: none; margin: 4px 0 8px; }
  .nav-cta { margin: 8px 0 0; }
}

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 650; font-size: .92rem; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--on-accent); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(11,87,183,.3); }
.btn-green { background: var(--green); color: var(--on-accent); }
.btn-green:hover { box-shadow: 0 6px 18px rgba(17,137,90,.3); }
.btn-light { background: #fff; color: #06305f; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--blue); padding: 6px 10px; }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); padding: 6px 10px; }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-sm { padding: 6px 10px; font-size: .82rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 44px; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea.input { min-height: 90px; resize: vertical; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: .78rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }

/* ---------- Cards & chips ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card.raised { box-shadow: var(--shadow); border-color: transparent; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.danger { background: var(--danger-soft); color: var(--danger); }
button.chip { border: 1px solid transparent; cursor: pointer; }
button.chip.on { background: var(--blue); color: var(--on-accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.ico.g { background: var(--green-soft); color: var(--green); }
.ico svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-grad); color: #fff; }
.hero.elsha { background: var(--elsha-grad); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero .wrap { position: relative; padding-block: 64px 72px; }
.hero h1 { max-width: 18ch; }
.hero p.lead { margin-top: 16px; font-size: 1.1rem; max-width: 56ch; color: #e2eef9; }
.hero .eyebrow { color: #9ff0c8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero .wrap { padding-block: 40px 88px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.overlap { margin-top: -64px; position: relative; z-index: 2; }

/* ---------- Search widget ---------- */
.search-box { background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: 0 18px 50px rgba(6,48,95,.22); padding: 18px; }
.search-row { display: grid; grid-template-columns: 1fr auto 1fr 1fr auto; gap: 10px; align-items: end; }
.search-row.hotel { grid-template-columns: 1.4fr 1fr 1fr .7fr .7fr auto; }
.swap { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; margin-bottom: 2px; color: var(--blue); font-size: 1.1rem; }
.swap:hover { background: var(--blue-soft); }
@media (max-width: 860px) {
  .search-row, .search-row.hotel { grid-template-columns: 1fr 1fr; }
  .search-row .swap { display: none; }
  .search-row > .btn { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .search-row, .search-row.hotel { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 650; font-size: .9rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.tab.on { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
.tab.on.g { background: var(--green); border-color: var(--green); }

/* ---------- Ventures ---------- */
.venture { position: relative; overflow: hidden; border-radius: 22px; padding: 32px; color: #fff; min-height: 300px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; transition: transform .25s ease; }
.venture:hover { transform: translateY(-4px); }
.venture.jj { background: linear-gradient(140deg, #06305f, #0b57b7 70%, #0b8f9c); }
.venture.el { background: linear-gradient(140deg, #0a4d3a, #11895a 70%, #0b8f9c); }
.venture h2 { color: #fff; }
.venture p { color: rgba(255,255,255,.85); max-width: 46ch; }
.venture .chips .chip { background: rgba(255,255,255,.16); color: #fff; }
.venture .go { margin-top: auto; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.venture::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.25); }

.svc { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.svc p { color: var(--ink-soft); font-size: .92rem; }
.svc .more { margin-top: auto; color: var(--blue); font-weight: 700; font-size: .88rem; }
.svc.el .more { color: var(--green); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.stat b { display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--blue); font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-soft); font-size: .9rem; }

.band { background: var(--surface); border-block: 1px solid var(--line); }
.route-line { height: 2px; background-image: linear-gradient(90deg, var(--line) 50%, transparent 50%); background-size: 12px 2px; flex: 1; align-self: center; min-width: 24px; }

/* ---------- Results lists ---------- */
.results-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .results-layout { grid-template-columns: 1fr; } }
.filters { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); display: grid; gap: 18px; }
@media (max-width: 900px) { .filters { position: static; } }
.filters h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; font-family: var(--font-body); }
.sortbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.route-summary { background: var(--blue-deep); color: #fff; }
.route-summary .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 16px; }
.route-summary .cities { font-family: var(--font-display); font-size: 1.25rem; font-weight: 650; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.route-summary .btn-outline { color: #fff; border-color: rgba(255,255,255,.35); }

.bus { padding: 0; overflow: hidden; }
.bus-main { display: grid; grid-template-columns: 1.4fr 1.6fr .9fr; gap: 16px; padding: 18px 20px; align-items: center; }
@media (max-width: 720px) { .bus-main { grid-template-columns: 1fr; } }
.bus-times { display: flex; align-items: center; gap: 10px; }
.bus-times b { font-family: var(--font-display); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.bus-price { text-align: right; }
@media (max-width: 720px) { .bus-price { text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; } }
.bus-price b { font-family: var(--font-display); font-size: 1.35rem; }
.rating { display: inline-flex; align-items: center; gap: 4px; background: var(--green); color: var(--on-accent); padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: .8rem; }
.bus-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 20px; border-top: 1px dashed var(--line); background: var(--surface-2); }
.own-badge { background: linear-gradient(90deg, var(--blue), var(--green)); color: #fff; font-size: .7rem; padding: 3px 8px; border-radius: 6px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* Seat map */
.seat-panel { border-top: 1px solid var(--line); padding: 20px; display: grid; grid-template-columns: auto 1fr; gap: 24px; background: var(--surface); }
@media (max-width: 760px) { .seat-panel { grid-template-columns: 1fr; } }
.decks { display: flex; gap: 18px; flex-wrap: wrap; }
.deck { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2); }
.deck-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
.seat-grid { display: grid; gap: 6px; }
.seat { width: 34px; height: 34px; border-radius: 6px 6px 3px 3px; border: 1.5px solid var(--green); background: var(--surface); cursor: pointer; font-size: .62rem; font-weight: 700; color: var(--green); padding: 0; font-family: var(--font-mono); }
.seat.sleeper { height: 64px; border-radius: 6px; }
.seat.booked { border-color: var(--line); background: var(--line); color: var(--muted); cursor: not-allowed; }
.seat.ladies { border-color: #d6609b; color: #d6609b; }
.seat.sel { background: var(--green); color: var(--on-accent); }
.seat-gap { width: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--green); vertical-align: -2px; margin-right: 4px; }
.legend i.b { background: var(--line); border-color: var(--line); }
.legend i.s { background: var(--green); }
.legend i.l { border-color: #d6609b; }

/* Hotel */
.hotel { display: grid; grid-template-columns: 240px 1fr auto; gap: 0; padding: 0; overflow: hidden; }
@media (max-width: 760px) { .hotel { grid-template-columns: 1fr; } }
.hotel-img { min-height: 170px; position: relative; display: grid; place-items: center; color: rgba(255,255,255,.95); }
.hotel-img .ini { font-family: var(--font-display); font-size: 3rem; font-weight: 700; opacity: .9; }
.hotel-img .tag { position: absolute; left: 10px; top: 10px; }
.hotel-body { padding: 18px 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.hotel-side { padding: 18px 20px; display: grid; gap: 6px; align-content: center; justify-items: end; border-left: 1px dashed var(--line); text-align: right; min-width: 180px; }
@media (max-width: 760px) { .hotel-side { border-left: 0; border-top: 1px dashed var(--line); justify-items: start; text-align: left; } }
.stars { color: #e8a317; letter-spacing: 1px; }
.room-opt { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.room-opt.on { border-color: var(--green); background: var(--green-soft); }

/* Ticket */
.ticket { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.ticket-head { background: var(--hero-grad); color: #fff; padding: 18px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.ticket-head.elsha { background: var(--elsha-grad); }
.ticket-perf { height: 0; border-top: 2px dashed var(--line); position: relative; margin: 0 14px; }
.ticket-perf::before, .ticket-perf::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.ticket-perf::before { left: -25px; } .ticket-perf::after { right: -25px; }
.ticket-body { padding: 18px 20px; display: grid; gap: 14px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.kv div span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.kv div b { font-weight: 650; overflow-wrap: anywhere; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 30px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.timeline li.done::after { background: var(--green); border-color: var(--green); }
.timeline li.done::before { background: var(--green); }
.timeline li.now::after { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }

/* ---------- Admin ---------- */
.admin-top { background: var(--blue-deep); color: #fff; }
.admin-top.g { background: #0a4d3a; }
.admin-top .wrap { padding-block: 26px 0; display: grid; gap: 16px; }
.admin-top h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.admin-top p { color: #c7dbef; }
.admin-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.admin-tabs button { background: none; border: 0; color: #c7dbef; padding: 12px 16px; font-weight: 650; cursor: pointer; border-radius: 10px 10px 0 0; white-space: nowrap; }
.admin-tabs button.on { background: var(--bg); color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 4px; }
.kpi span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.kpi b { font-family: var(--font-display); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); }
.kpi.alert b { color: var(--danger); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 14px; background: var(--surface-2); white-space: nowrap; }
.table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.table tr:hover td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.table .empty { text-align: center; color: var(--muted); padding: 30px; }
.row-actions { white-space: nowrap; text-align: right; }
.crud-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.crud-bar .input { max-width: 320px; flex: 1 1 200px; }
.crud-bar .spacer { flex: 1; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 70px; gap: 10px; align-items: center; font-size: .85rem; }
.bar-row .track { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.fuel { display: inline-block; width: 60px; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; vertical-align: middle; margin-right: 6px; }
.fuel i { display: block; height: 100%; background: var(--green); }
.fuel i.low { background: var(--danger); }
.map-box { background: var(--blue-deep); border-radius: 14px; overflow: hidden; position: relative; }
.map-box svg { display: block; width: 100%; height: auto; }
.alert-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); font-size: .88rem; }
.alert-item.crit { background: var(--danger-soft); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.shot { aspect-ratio: 4/3; max-width: 100%; border-radius: 14px; position: relative; overflow: hidden; cursor: pointer; border: 0; padding: 0; color: #fff; text-align: left; }
.shot:nth-child(5n+1) { aspect-ratio: 4/3.6; }
.shot .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; background: linear-gradient(transparent, rgba(0,0,0,.55)); font-weight: 650; }
.shot .cap small { display: block; font-weight: 500; opacity: .85; }
.shot svg.art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .5s ease; }
.shot:hover svg.art { transform: scale(1.06); }
.price-card { display: grid; gap: 14px; align-content: start; }
.price-card .price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.price-card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); display: grid; gap: 6px; }
.price-card.featured { border: 2px solid var(--green); }

/* ---------- Modal & toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(4, 18, 33, .55); z-index: 100; display: grid; place-items: center; padding: 20px var(--gutter-r) 20px var(--gutter-l); animation: fade .2s ease; }
.modal { background: var(--bg); border-radius: 18px; width: 100%; max-width: 640px; max-height: calc(100vh - 40px); overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: pop .25s ease; }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 1; }
.modal-body { padding: 20px; display: grid; gap: 16px; }
.modal-x { background: var(--surface-2); border: 0; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; color: var(--ink); }
.toasts { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 200; display: grid; gap: 8px; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 600; font-size: .9rem; animation: pop .25s ease; max-width: 340px; }
.toast.ok { background: var(--green); color: var(--on-accent); }
.toast.err { background: var(--danger); color: #fff; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Misc ---------- */
.summary-box { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); }
.line-item { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .92rem; font-variant-numeric: tabular-nums; }
.line-item.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 1.05rem; }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .summary-box { position: static; } }
.quote-test { font-size: 1.05rem; color: var(--ink); }
.testi { min-height: 160px; display: grid; gap: 14px; align-content: start; }
.reveal { animation: rise .6s ease both; }
@keyframes rise { from { transform: translateY(14px); opacity: .001; } }
.empty-state { text-align: center; padding: 36px 20px; color: var(--muted); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--blue-soft); color: var(--ink); font-size: .88rem; }
.notice.g { background: var(--green-soft); }

.footer { background: #041a33; color: #b9cbe0; margin-top: 40px; }
.footer .wrap { padding-block: 48px 28px; display: grid; gap: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; font-family: var(--font-body); }
.footer a { color: #b9cbe0; text-decoration: none; display: block; padding: 3px 0; }
.footer a:hover { color: #9ff0c8; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Staff sign-in ---------- */
.login-page { background: var(--hero-grad); padding-block: 48px 64px; }
.login-card { display: grid; grid-template-columns: 1fr 1.1fr; max-width: 980px; margin: 0 auto; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(4, 18, 33, .35); background: var(--surface); }
@media (max-width: 820px) { .login-card { grid-template-columns: 1fr; } }
.login-side { position: relative; overflow: hidden; background: linear-gradient(150deg, #06305f, #0b57b7 60%, #11895a); color: #fff; padding: 36px 32px; }
.login-side canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.login-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.login-list li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: #e6f1fb; }
.login-list svg { width: 20px; height: 20px; color: #9ff0c8; flex: none; }
@media (max-width: 820px) { .login-list { display: none; } }
.login-form { padding: 36px 32px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.demo-creds summary { cursor: pointer; font-weight: 650; color: var(--blue); font-size: .9rem; }
.admin-user { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.user-chip { display: inline-flex; gap: 10px; align-items: center; color: #fff; }
.user-chip b { display: block; font-size: .88rem; line-height: 1.2; }
.user-chip small { display: block; font-size: .74rem; color: #c7dbef; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2b86f0, #1fbf7a); font-weight: 700; font-size: .8rem; color: #fff; }
.portal-switch { width: auto; min-height: 34px; padding: 6px 10px; font-size: .85rem; }
.btn.on-dark { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.on-dark:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------- Payment gateway checkout ---------- */
.pg { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.pg-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; padding: 16px 18px; background: var(--hero-grad); color: #fff; }
.pg-amt { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.pg-test { background: var(--warn-soft); color: var(--warn); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-align: center; padding: 6px; text-transform: uppercase; }
.pg-body { display: grid; grid-template-columns: 170px 1fr; min-height: 340px; }
@media (max-width: 640px) { .pg-body { grid-template-columns: 1fr; } }
.pg-methods { display: grid; align-content: start; gap: 4px; padding: 10px; background: var(--surface-2); border-right: 1px solid var(--line); }
@media (max-width: 640px) { .pg-methods { grid-template-columns: repeat(4, 1fr); border-right: 0; border-bottom: 1px solid var(--line); } }
.pg-methods button { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer; font-weight: 650; color: var(--ink-soft); text-align: left; }
@media (max-width: 640px) { .pg-methods button { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: .75rem; text-align: center; } }
.pg-methods button svg { width: 20px; height: 20px; flex: none; }
.pg-methods button.on { background: var(--surface); border-color: var(--line); color: var(--blue); box-shadow: var(--shadow); }
.pg-methods button:disabled { opacity: .5; cursor: not-allowed; }
.pg-pane { padding: 18px; min-width: 0; }
.pg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .pg-split { grid-template-columns: 1fr; } }
.pg-hint { font-size: .8rem; padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); color: var(--ink); }
.pg-banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pg-bank { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: .85rem; font-weight: 600; text-align: left; color: var(--ink); }
.pg-bank.on { border-color: var(--green); background: var(--green-soft); }
.bank-ini { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: .7rem; font-weight: 800; flex: none; }
.pg-bankpage { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pg-bankbar { background: var(--blue-deep); color: #fff; padding: 10px 14px; font-weight: 700; font-size: .85rem; border-radius: 8px; }
.pg-bankpage .pg-bankbar { border-radius: 0; }
.pg-wait { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 40px 10px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--blue-soft); border-top-color: var(--blue); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pg-tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--on-accent); font-size: 1.6rem; font-weight: 800; }
.pg-tick.bad { background: var(--danger); color: #fff; }
.pg-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.pg-foot span { display: inline-flex; gap: 6px; align-items: center; }
.pg-foot svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .spinner { animation: spin 2.5s linear infinite !important; } }

/* ---------- Notifications ---------- */
.notify-note { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--green); }
.notify-note span { display: inline-flex; gap: 6px; align-items: center; }
.notify-note span.bad { color: var(--danger); }
.notify-note svg { width: 15px; height: 15px; }
.sms-phone { max-width: 320px; margin: 0 auto; border: 1px solid var(--line); border-radius: 26px; padding: 14px; background: var(--surface-2); }
.sms-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 0 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; color: var(--ink-soft); }
.sms-top b { font-family: var(--font-mono); color: var(--ink); }
.sms-bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.email-mock { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.email-meta { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; font-size: .85rem; overflow-wrap: anywhere; }
.email-meta span { display: inline-block; width: 64px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.email-frame { background: var(--surface-2); padding: 16px; }
.email-brand { display: flex; gap: 10px; align-items: center; padding: 12px 16px; background: var(--blue-deep); color: #fff; border-radius: 10px 10px 0 0; }
.email-brand .brand-mark { width: 28px; height: 28px; }
.email-body { background: var(--surface); padding: 18px; display: grid; gap: 12px; font-size: .92rem; overflow-wrap: anywhere; }
.email-foot { font-size: .75rem; color: var(--muted); text-align: center; padding: 12px 8px 0; }

/* ---------- Animated background & stacking ---------- */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#app, .footer { position: relative; z-index: 1; }
.band { background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card { background: color-mix(in srgb, var(--surface) 94%, transparent); }

/* ---------- Pictures ---------- */
.pic { position: relative; aspect-ratio: 400 / 260; max-width: 100%; border-radius: 16px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.pic svg.scene, .pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 36px; align-items: center; }
.hero-grid > div { min-width: 0; }
.hero-pic { box-shadow: 0 24px 60px rgba(4, 18, 33, .4); border: 3px solid rgba(255, 255, 255, .22); transform: rotate(1.5deg); transition: transform .4s ease; }
.hero-pic:hover { transform: rotate(0) scale(1.02); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 20px; } .hero-pic { max-width: 420px; aspect-ratio: 400 / 190; transform: none; } }
.svc .pic, .pic-card .pic { margin: -20px -20px 4px; max-width: none; border-radius: 13px 13px 0 0; box-shadow: none; }
.svc .pic svg.scene { transition: transform .5s ease; }
.svc:hover .pic svg.scene { transform: scale(1.06); }
.venture-art { position: absolute; right: 0; top: 0; bottom: 0; width: 56%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; opacity: .34; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); background: none; }
.venture > *:not(.venture-art) { position: relative; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
.photo { position: relative; display: block; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; }
.photo .pic { border-radius: 0; box-shadow: none; height: 100%; }
.photo .pic svg.scene { transition: transform .6s ease; }
.photo:hover .pic svg.scene { transform: scale(1.07); }
.photo > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(4, 18, 33, .75)); font-weight: 650; font-size: .92rem; }
.hotel-img { min-height: 170px; padding: 0; }
.hotel-img svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.city-pic { position: relative; height: 104px; overflow: hidden; }
.city-pic svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.city-pic span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; background: rgba(4, 18, 33, .38); text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.prod-art { width: 84px; height: 84px; }

/* scene motion */
.scene .drift { animation: drift 60s linear infinite; }
.scene .drift.slow { animation-duration: 95s; animation-direction: reverse; }
.scene .bob { animation: bob 5s ease-in-out infinite; transform-box: fill-box; }
.scene .dash { animation: dash 1.2s linear infinite; }
.scene .twinkle, .prod-art .twinkle { animation: twinkle 2.4s ease-in-out infinite; }
.scene .wave, .prod-art .wave { animation: wave 3s ease-in-out infinite; }
.scene .spin { animation: spin 7s linear infinite; }
.prod-art .slowspin { animation: spin 5s linear infinite; }
.scene .pulse { animation: pulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes drift { from { transform: translateX(-60px); } to { transform: translateX(60px); } }
@keyframes bob { 50% { translate: 0 -5px; } }
@keyframes dash { to { stroke-dashoffset: -48; } }
@keyframes twinkle { 50% { opacity: .25; } }
@keyframes wave { 50% { transform: translateX(8px); } }
@keyframes pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- Launch bits ---------- */
.request-text { margin: 0; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-body); font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow-y: auto; }
.legal { display: grid; gap: 10px; }
.legal h3 { margin-top: 12px; }
.legal p { max-width: 75ch; color: var(--ink-soft); }
.wa-fab { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; gap: 8px; align-items: center; padding: 12px 16px; border-radius: 999px; background: #1faa59; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.wa-fab:hover { transform: translateY(-2px); }

/* ---------- Photos, videos, reviews, seat editor ---------- */
.gallery-box { display: grid; gap: 10px; }
.gal-main { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--surface-2); max-width: 100%; }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gal-thumbs button { flex: none; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.gal-thumbs button.on { border-color: var(--green); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; max-width: 100%; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.mm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mm-grid figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; }
.mm-grid figure img { width: 100%; height: 100%; object-fit: cover; grid-area: 1 / 1; }
.mm-grid figure .chip, .mm-grid figure .btn { position: absolute; left: 8px; }
.mm-grid figure .chip, .mm-grid figure [data-mm-cover] { top: 8px; }
.mm-grid figure [data-mm-del] { bottom: 8px; }
.mm-add { aspect-ratio: 4 / 3; border: 2px dashed var(--line); border-radius: 12px; display: grid; place-content: center; text-align: center; gap: 4px; cursor: pointer; color: var(--blue); font-weight: 700; padding: 8px; }
.mm-add:hover { border-color: var(--blue); background: var(--blue-soft); }
.mm-add small { color: var(--muted); font-weight: 500; }
.thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; display: block; }
.hotel-img img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
button.rating { border: 0; cursor: pointer; font-family: inherit; }
button.rating:hover { filter: brightness(1.1); }
.review { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.review-reply { margin-top: 6px; padding: 8px 12px; border-left: 3px solid var(--green); background: var(--green-soft); border-radius: 0 8px 8px 0; color: var(--ink); }
.review-summary { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.review-summary .big { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.review-box { background: var(--surface); }
.star-pick { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.star { background: none; border: 0; cursor: pointer; font-size: 2.1rem; line-height: 1; color: var(--line); padding: 2px; transition: transform .1s ease; }
.star:hover { transform: scale(1.15); }
.star.on { color: #e8a317; }
.star-pick .muted { margin-left: 8px; }
.stop-row { display: grid; grid-template-columns: 1fr 78px 48px 34px; gap: 6px; align-items: center; }
.seat.blank { border-style: dashed; border-color: var(--line); color: var(--muted); background: transparent; }
.mv-log { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.mv-log summary { cursor: pointer; font-weight: 650; color: var(--blue); }

/* ---------- Printable parcel copies & manifests (always black on white, like paper) ---------- */
.print-sheet { background: #ffffff; color: #111111; border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: grid; gap: 12px; font-size: 12.5px; line-height: 1.4; overflow-x: auto; }
.print-sheet .copy { display: grid; gap: 10px; min-width: 560px; }
.print-sheet header { display: flex; justify-content: space-between; gap: 14px; border-bottom: 2px solid #111111; padding-bottom: 8px; }
.ph-brand { display: grid; }
.ph-brand b { font-family: var(--font-display); font-size: 17px; }
.ph-brand span { font-size: 11px; color: #333333; }
.ph-kind { text-align: right; display: grid; align-content: start; }
.ph-kind b { font-size: 14px; letter-spacing: .08em; border: 2px solid #111111; padding: 3px 8px; }
.ph-kind span { font-size: 11px; margin-top: 3px; }
.ph-main { display: flex; gap: 16px; align-items: center; }
.ph-qr { width: 96px; flex: none; display: grid; gap: 2px; text-align: center; font-size: 10px; }
.ph-qr svg { width: 96px; height: 96px; display: block; }
.qr-fallback { border: 1px solid #111111; padding: 6px; font-size: 9px; overflow-wrap: anywhere; }
.ph-awb { display: grid; gap: 2px; min-width: 0; }
.ph-awb > span { font-size: 11px; color: #333333; }
.ph-awb > b { font-size: 24px; letter-spacing: .06em; }
.ph-route { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.ph-route i { flex: 1; min-width: 30px; border-top: 2px dashed #111111; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-grid > div { border: 1px solid #111111; padding: 8px; }
.ph-grid span, .ph-sign span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #333333; }
.ph-grid b { display: block; font-size: 14px; }
.ph-table { width: 100%; border-collapse: collapse; }
.ph-table th, .ph-table td { border: 1px solid #111111; padding: 5px 7px; text-align: left; vertical-align: top; }
.ph-table th { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; background: #eeeeee; }
.ph-sign { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; font-size: 10.5px; }
.ph-sign i { display: block; height: 34px; border-bottom: 1px solid #111111; margin-bottom: 3px; }
.ph-terms { font-size: 10px; color: #333333; }
.print-sheet .cut { text-align: center; font-size: 11px; color: #555555; border-top: 1px dashed #555555; padding-top: 4px; }
@media print {
  @page { margin: 10mm; }
  body { background: #ffffff !important; }
  body > *:not(.modal-back) { display: none !important; }
  .modal-back { position: static; display: block; padding: 0; background: none; }
  .modal { max-width: none; max-height: none; overflow: visible; box-shadow: none; border-radius: 0; background: #ffffff; }
  .modal-head, .no-print { display: none !important; }
  .modal-body { padding: 0; }
  .print-sheet { border: 0; padding: 0; overflow: visible; }
  .print-sheet .copy { break-inside: avoid; }
}

/* Mixed decks: a sleeper berth is as long as two rows of seats */
.seat.span2 { grid-row: span 2; height: auto; min-height: 74px; }

/* Brand wordmark: rounded letters that echo the round "e" symbol */
:root { --font-brand: "Comfortaa", "Sora", "Segoe UI", system-ui, sans-serif; }
.brand > span:not(.brand-mark) { font-family: var(--font-brand); font-weight: 700; font-size: 1.4rem; letter-spacing: .01em; line-height: 1.1; }
.brand small { margin-top: 3px; }

/* Icons inside buttons keep a fixed size (they used to stretch full-width buttons on phones) */
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg svg { width: 20px; height: 20px; }
@media (max-width: 480px) { .search-row > .btn, .search-row.hotel > .btn { min-height: 48px; padding-block: 12px; } }

/* Per-seat fares: price printed under the seat number */
.seat.fare { height: 42px; line-height: 1.15; }
.seat.fare.sleeper { height: 68px; }
.seat.fare.span2 { height: auto; min-height: 90px; }
.seat small { display: block; font-size: .56rem; font-weight: 500; letter-spacing: 0; opacity: .9; }
.seat.wide { width: 40px; }
.seat.custom:not(.sel) { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

/* ---------- Hotel CRM ---------- */
.crm-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.room { position: relative; display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--green); background: var(--green-soft); color: var(--ink); cursor: pointer; min-height: 78px; align-content: start; }
.room b { font-family: var(--font-display); font-size: 1.15rem; }
.room span { font-size: .75rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room.occupied { border-color: var(--blue); background: var(--blue-soft); }
.room.maintenance { border-color: var(--warn); background: var(--warn-soft); }
.room i { position: absolute; right: 10px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.room i.dirty { background: var(--danger); }
.room i.prog { background: var(--warn); }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pos-item { display: grid; gap: 4px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.pos-item:hover { border-color: var(--green); background: var(--green-soft); }
.pos-item b { font-size: .9rem; }
.pos-item span { font-size: .78rem; color: var(--muted); }
.veg { display: inline-block; width: 10px; height: 10px; border: 1.5px solid var(--green); border-radius: 2px; margin-right: 5px; vertical-align: -1px; background: radial-gradient(circle, var(--green) 38%, transparent 42%); }
.veg.non { border-color: var(--danger); background: radial-gradient(circle, var(--danger) 38%, transparent 42%); }
.kot { border-left: 4px solid var(--blue); }
.kot.new { border-left-color: var(--danger); }
.kot.preparing { border-left-color: var(--warn); }
.kot.ready, .kot.served { border-left-color: var(--green); }
table.tape td, table.tape th { padding: 6px 8px; font-size: .75rem; white-space: nowrap; border-left: 1px solid var(--line); }
table.tape td.res { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
table.tape td.in { background: var(--green-soft); color: var(--green); font-weight: 700; }
table.tape td.mt { background: var(--warn-soft); }
table.roster td { padding: 6px 8px; }
.shift { width: 100%; min-width: 44px; padding: 8px 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; font-size: .8rem; cursor: pointer; }
.shift.s-M { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.shift.s-E { background: var(--green-soft); color: var(--green); border-color: transparent; }
.shift.s-N { background: var(--blue-deep); color: var(--bg); border-color: transparent; }
.shift.s-G { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.shift.s-OFF { background: var(--warn-soft); color: var(--warn); border-color: transparent; }

/* Trip sheet print */
.tripsheet .ts-title { display: inline-block; margin-top: 6px; padding: 3px 14px; background: #111111; color: #ffffff; letter-spacing: .12em; font-size: 13px; border-radius: 3px; }
.tripsheet .ts-head { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 13px; }
.tripsheet .ts-table th { width: 26%; background: #ffffff; text-transform: none; font-size: 12.5px; letter-spacing: 0; }
.tripsheet .ts-table td { width: 24%; height: 26px; font-size: 13px; }

/* ---------- Fleet reports ---------- */
.rep-bar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.rep-bar .field { min-width: 150px; flex: 0 1 auto; }
.rep-quick { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.table tfoot th { text-align: left; padding: 10px 12px; border-top: 2px solid var(--line, #d5dde8); white-space: nowrap; }
.table tr.row-low td { background: color-mix(in srgb, #f5a524 12%, transparent); }
.report-print .ph-table { font-size: 11px; }
.report-print .ph-table th, .report-print .ph-table td { padding: 3px 5px; }
@media (max-width: 640px) { .rep-bar .field { flex: 1 1 45%; min-width: 0; } .rep-quick { margin-left: 0 !important; } }

/* ---------- Trip sheet cards and duty sheet print ---------- */
.ts-card { display: grid; gap: 10px; border-left: 4px solid var(--green); }
.ts-card.open { border-left-color: var(--warn, #f5a524); }
.ts-card-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: start; }
.ts-card-head .ts-no { background: var(--blue-soft); color: var(--blue-deep); padding: 2px 8px; border-radius: 6px; margin-right: 6px; }
.ts-card-foot { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.ts-card-foot b { color: var(--ink); }
.duty-print, .duty-print .ph-table, .duty-print .ph-brand b { font-family: Arial, Helvetica, sans-serif; }
.duty-print { font-size: 13px; }
.duty-print .ph-table td { padding: 7px 7px; }
.duty-print .dp-place { font-weight: 800; font-size: 14.5px; text-transform: uppercase; letter-spacing: .02em; }
.duty-print .dp-veh { font-weight: 700; white-space: nowrap; }

#fd-list, .ts-card { min-width: 0; }
/* ---------- Waiter portal, kitchen display, billing counter ---------- */
.tbl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tbl { display: grid; gap: 4px; align-content: start; text-align: left; min-height: 96px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.tbl b { font-size: 1.05rem; }
.tbl span { font-size: .8rem; color: var(--muted); }
.tbl.busy { border-color: var(--blue); background: var(--blue-soft); }
.tbl.ready { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.tbl.req { border-style: dashed; }
.tbl-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tbl-tags .chip { font-style: normal; font-size: .7rem; padding: 2px 7px; }
.pos-item { position: relative; }
.pos-item.picked { border-color: var(--green); background: var(--green-soft); }
.pos-item em { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--green); color: #fff; font-style: normal; font-weight: 700; font-size: .78rem; display: grid; place-items: center; padding: 0 5px; }
.w-line { display: grid; gap: 4px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.w-note { padding: 6px 10px; font-size: .82rem; }
.kds { display: grid; gap: 12px; }
.kds.full { position: fixed; inset: 0; z-index: 60; background: #0b1622; color: #f2f6fa; padding: 14px; overflow: auto; align-content: start; }
.kds-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.kds-title { font-size: 1.05rem; align-self: center; }
.kds-clock { font-weight: 700; font-variant-numeric: tabular-nums; align-self: center; }
.kds-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.kds-col { display: grid; gap: 10px; align-content: start; background: var(--surface-2); border-radius: 14px; padding: 12px; min-height: 180px; border-top: 5px solid var(--danger); }
.kds-col.preparing { border-top-color: var(--warn, #f5a524); } .kds-col.ready { border-top-color: var(--green); }
.kds.full .kds-col { background: #14273a; }
.kds-col h3 { display: flex; justify-content: space-between; margin: 0; font-size: 1rem; }
.kds-col h3 span { background: var(--surface); color: var(--ink); border-radius: 10px; padding: 0 9px; font-size: .9rem; }
.kds-card { display: grid; gap: 6px; background: var(--surface); color: var(--ink); border-radius: 12px; padding: 12px; border: 2px solid transparent; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.kds-card.late { border-color: var(--danger); }
.kds-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.kds-top b { font-size: 1.25rem; } .kds-top span { font-weight: 700; font-variant-numeric: tabular-nums; }
.kds-card.late .kds-top span { color: var(--danger); }
.kds-meta { font-size: .78rem; color: var(--muted); }
.kds-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 1.02rem; }
.kds-card li b { font-variant-numeric: tabular-nums; }
.kds-card li em { display: block; font-size: .82rem; color: var(--danger); font-style: normal; font-weight: 600; padding-left: 28px; }
.kds-none { color: var(--muted); font-size: .88rem; margin: 0; }
@media (max-width: 760px) { .kds-cols { grid-template-columns: 1fr; } }
.receipt { min-width: 0 !important; max-width: 320px; margin: 0 auto; font-family: "Courier New", ui-monospace, monospace; font-size: 12.5px; gap: 8px; }
.rc-head { display: grid; justify-items: center; text-align: center; gap: 1px; } .rc-head b { font-size: 16px; }
.rc-kind { margin-top: 4px; border-top: 1px dashed #111; border-bottom: 1px dashed #111; padding: 2px 10px; letter-spacing: .1em; }
.rc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; } .rc-meta span:nth-child(even) { text-align: right; }
.rc-items { width: 100%; border-collapse: collapse; } .rc-items th { text-align: left; border-top: 1px dashed #111; border-bottom: 1px dashed #111; padding: 3px 0; font-weight: 700; }
.rc-items td { padding: 2px 0; vertical-align: top; } .rc-items th:not(:first-child), .rc-items td:not(:first-child) { text-align: right; padding-left: 8px; white-space: nowrap; }
.rc-tot { display: grid; gap: 2px; border-top: 1px dashed #111; padding-top: 4px; } .rc-tot div { display: flex; justify-content: space-between; }
.rc-grand { font-weight: 700; font-size: 15px; border-top: 1px dashed #111; border-bottom: 1px dashed #111; padding: 3px 0; margin: 2px 0; }
.rc-foot { text-align: center; margin: 0; }
body.kds-on .site-header, body.kds-on .footer, body.kds-on .wa-fab, body.kds-on .admin-top { display: none; }
body.kds-on { overflow: hidden; }
.kds.full .btn-outline { color: #f2f6fa; border-color: #5b7088; }
.ts-card-head .row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; white-space: normal; }
.ts-card-head > div { min-width: 0; }
.kds.full .kds-card .btn-outline { color: var(--ink); border-color: var(--line); }

/* ---------- Home: seven services in two even rows (3 large + 4) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.svc-grid > .svc { grid-column: span 3; }
.svc-grid > .svc:nth-child(-n+3) { grid-column: span 4; }
.svc-grid > .svc:nth-child(-n+3) h3 { font-size: 1.25rem; }
@media (max-width: 1020px) { .svc-grid > .svc, .svc-grid > .svc:nth-child(-n+3) { grid-column: span 6; } .svc-grid > .svc:last-child:nth-child(odd) { grid-column: span 12; } }
@media (max-width: 600px) { .svc-grid > .svc, .svc-grid > .svc:nth-child(-n+3), .svc-grid > .svc:last-child:nth-child(odd) { grid-column: span 12; } }

/* ---------- POS receipt preview ---------- */
.pos-paper { background: #ffffff; color: #111111; margin: 0 auto; padding: 14px 12px 22px; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.12); width: max-content; max-width: 100%; overflow-x: auto; }
.pos-paper .tk { font-family: "Courier New", ui-monospace, monospace; font-weight: 600; white-space: pre; font-size: 12.5px; }
.pos-paper.p58 .tk { font-size: 13px; }
.pos-paper .tk div { min-height: 1.25em; line-height: 1.25; }
.pos-paper .tk .c { text-align: center; } .pos-paper .tk .b { font-weight: 800; } .pos-paper .tk .g { font-size: 200%; line-height: 1.15; }

/* ---------- Duty sheet grouped by route ---------- */
.duty-print .dp-group { margin-bottom: 10px; break-inside: auto; }
.duty-print .dp-group tr { break-inside: avoid; }
.duty-print .dp-route { background: #111111; color: #ffffff; padding: 6px 9px; }
.duty-print .dp-route .dp-place { font-size: 15px; margin-right: 10px; }
.duty-print .dp-time { font-weight: 800; font-size: 14.5px; white-space: nowrap; }
.duty-print .dp-sign { min-width: 70px; }
.duty-print .copy { min-width: 760px; }
@media print { .duty-print .dp-route { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .print-sheet .copy { min-width: 0 !important; } }

/* ---------- Trip sheet / memo ---------- */
.modal.modal-xl { max-width: 1240px; }
.memo-form .mm-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.mm-sec { gap: 8px; min-width: 0; padding: 14px; }
.mm-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mm-sec-head h4 { margin: 0; }
.mm-table th, .mm-table td { padding: 5px 6px; vertical-align: middle; }
.mm-in { padding: 6px 8px; min-width: 70px; font-size: .88rem; height: auto; }
.mm-in[type=number] { min-width: 78px; }
.mm-in[type=date] { min-width: 128px; }
.memo-form .grid.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }
.print-sheet.memo { font-family: Arial, Helvetica, sans-serif; font-size: 10.5px; line-height: 1.25; }
.print-sheet.memo .copy { min-width: 980px; gap: 8px; }
.memo .mm-title { text-align: center; font-size: 20px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.memo .mm-head { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr; gap: 18px; align-items: start; }
.memo .mm-veh { display: grid; justify-items: center; gap: 1px; text-align: center; }
.memo .mm-veh b { font-size: 15px; } .memo .mm-no { font-size: 13px; }
.memo .ph-table th, .memo .ph-table td { padding: 2px 5px; font-size: 10.5px; }
.memo .ph-table th { background: #ffffff; text-transform: none; letter-spacing: 0; font-size: 10.5px; }
.memo .r { text-align: right; font-variant-numeric: tabular-nums; } .memo .c { text-align: center; }
.memo .mm-trips td b { font-weight: 700; } .memo .mm-via { display: block; font-size: 9px; color: #444444; }
.memo .mm-cols { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 10px; align-items: start; }
.memo .mm-col { display: grid; gap: 8px; align-content: start; }
.memo .mm-note { margin: 0; font-size: 9px; color: #444444; }
.memo .mm-check { display: grid; justify-items: center; gap: 2px; text-align: center; }
.memo .mm-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.memo .mm-sign i { display: block; height: 30px; border-bottom: 1px solid #111111; margin-bottom: 2px; }

/* ---------- Bus operator portal ---------- */
.bo-dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .bo-dash { grid-template-columns: 1fr; } }
.bo-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.bo-tile { display: grid; justify-items: center; gap: 8px; padding: 18px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .86rem; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.bo-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue); }
.bo-tile svg { width: 26px; height: 26px; padding: 9px; box-sizing: content-box; border-radius: 10px; background: var(--blue); color: #fff; }
.bo-tile:nth-child(2) svg { background: #b8324f; } .bo-tile:nth-child(3) svg { background: var(--danger); } .bo-tile:nth-child(even) svg { background: var(--green); } .bo-tile:nth-child(2) svg { background: #b8324f; }
.bo-quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bo-quick .input { flex: 1 1 150px; min-width: 0; } .bo-quick input[type=date] { flex: 0 1 170px; }
.bo-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; } .bo-days .chip { white-space: nowrap; flex: none; }
.bo-box { display: grid; gap: 10px; align-content: start; padding: 14px; }
.bo-big { font-size: 1.5rem; margin-right: 6px; font-family: var(--font-display); }
.bo-two, .bo-four { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .bo-four { grid-template-columns: repeat(4, 1fr); }
.bo-two > div, .bo-four > div { display: grid; gap: 2px; border-left: 3px solid var(--blue); padding-left: 8px; } .bo-two > div:nth-child(2) { border-left-color: var(--green); } .bo-four > div { border-left: 0; padding-left: 0; }
.bo-two span, .bo-four span { font-size: .78rem; color: var(--muted); }
.bo-meter { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-2); }
.bo-meter i { background: var(--teal, #0b8f9c); } .bo-meter i.ph { background: var(--warn); } .bo-meter i.bl { background: var(--muted); } .bo-meter.sm { width: 80px; display: inline-flex; vertical-align: middle; margin-right: 6px; }
@media (max-width: 520px) { .bo-four { grid-template-columns: 1fr 1fr; } }
.bo-svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 14px 0; }
.bo-svc { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.bo-svc b { font-size: 1.05rem; } .bo-svc span { font-size: .82rem; } .bo-svc .chip { font-style: normal; font-size: .7rem; padding: 2px 7px; }
.bo-svc.on { border-color: var(--green); background: var(--green-soft); }
.bo-book { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .bo-book { grid-template-columns: 1fr; } }
.bo-pax { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .bo-pax b { min-width: 34px; } .bo-pax .input { flex: 1 1 140px; min-width: 0; padding: 8px 10px; }
.seat.bo-phone { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); cursor: pointer; }
.seat.bo-block { background: repeating-linear-gradient(45deg, var(--line), var(--line) 4px, var(--surface-2) 4px, var(--surface-2) 8px); cursor: pointer; }
.bo-book .seat.booked { cursor: pointer; }
.legend i.bo-lp { background: var(--warn-soft); border-color: var(--warn); } .legend i.bo-lb { background: repeating-linear-gradient(45deg, var(--line), var(--line) 3px, var(--surface-2) 3px, var(--surface-2) 6px); }
.bo-chart .dp-route { background: var(--blue-deep); color: #fff; padding: 6px 10px; font-weight: 700; }
.bo-ticket .bo-tk-grid { grid-template-columns: 1fr 1fr 1fr; }
.bo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .bo-grid { grid-template-columns: 1fr; } }
.bo-pax { display: grid; grid-template-columns: 40px minmax(0, 1fr) 70px 100px 96px; gap: 6px; align-items: center; }
.bo-pax .input { width: auto !important; min-width: 0; }
@media (max-width: 560px) { .bo-pax { grid-template-columns: 40px minmax(0, 1fr) 70px; } .bo-pax select, .bo-pax [data-fare] { grid-column: span 1; } }

/* ---------- Fare control and van pickup ---------- */
.fc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) { .fc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } } @media (max-width: 520px) { .fc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fc-day { display: grid; gap: 3px; text-align: left; padding: 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; min-width: 0; }
.fc-day span { font-size: .76rem; color: var(--muted); font-weight: 600; } .fc-day b { font-size: 1rem; } .fc-day i { font-style: normal; font-size: .72rem; color: var(--muted); } .fc-day small { font-size: .68rem; color: var(--muted); }
.fc-day.we span { color: var(--blue); } .fc-day:hover { border-color: var(--blue); }
.fc-day.up { border-color: var(--green); background: var(--green-soft); } .fc-day.up i { color: var(--green); font-weight: 700; }
.fc-day.down { border-color: var(--warn); background: var(--warn-soft); } .fc-day.down i { color: var(--warn); font-weight: 700; }
.fc-day .bo-meter { height: 5px; }
.van-pts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; max-height: 240px; overflow: auto; padding: 4px 0; }
.van-pt { background: var(--surface-2) !important; font-size: .82rem !important; text-transform: none !important; letter-spacing: 0 !important; }
.duty-print .van-pt { background: #dddddd !important; }
.stack > .table-wrap, .stack > .row-actions { min-width: 0; }
.stack > .row-actions { flex-wrap: wrap; }
.stack > .row-actions { white-space: normal; display: flex; gap: 6px; align-items: center; }
.stack > .row-actions > span { min-width: 0; flex: 1 1 200px; }

/* ---------- Push notifications, recharge, vouchers ---------- */
.push-bar { position: relative; z-index: 2; background: linear-gradient(90deg, var(--blue-deep, #06305f), #0b6f7c); color: #fff; }
.push-bar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.push-bar .wrap > div:nth-child(2) { flex: 1 1 260px; min-width: 0; font-size: .92rem; } .push-bar b { color: #ffffff; } .push-bar span { color: #d9ecf7; }
.push-ico svg { width: 22px; height: 22px; color: #9ff0c8; } .push-act { display: flex; gap: 8px; align-items: center; }
.push-x { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.push-item { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line); } .push-item:last-child { border-bottom: 0; } .push-item .btn { justify-self: start; margin-top: 4px; }
.push-wa { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--surface); }
.push-wa:hover { border-color: var(--green); } .push-wa span { font-size: .82rem; color: var(--muted); } .push-wa i { font-style: normal; font-size: .82rem; color: var(--ink-soft); }
.push-wa.done { background: var(--green-soft); border-color: var(--green); } .push-wa.done b::after { content: "  ✓ opened"; color: var(--green); font-size: .8rem; }
.print-sheet .r { text-align: right; }

/* ---------- Discount coupons ---------- */
.cpn-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; padding: 12px; border: 1.5px dashed var(--green); border-radius: 12px; background: var(--green-soft); }
.cpn-box .btn { margin-bottom: 1px; }
.cpn-msg { flex: 1 1 100%; min-height: 1em; } .cpn-msg.ok { color: var(--green); font-weight: 700; } .cpn-msg.err { color: var(--danger); font-weight: 600; }
.cpn-offers { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.cpn-chip { display: grid; gap: 1px; text-align: left; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--green); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.cpn-chip b { color: var(--green); font-size: .85rem; } .cpn-chip span { font-size: .75rem; color: var(--muted); }
.cpn-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cpn-card { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--green); box-shadow: var(--shadow); }
.cpn-off { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--green); }
.cpn-code { justify-self: start; margin-top: 4px; padding: 4px 12px; border: 1.5px dashed var(--blue); border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-weight: 700; cursor: pointer; letter-spacing: .04em; }
.cpn-inline { display: flex; gap: 6px; } .cpn-inline .input { flex: 1; min-width: 0; }

/* ---------- Memo forms ---------- */
.fm-more { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; }
.fm-more summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .9rem; }
.form-grid .field small { display: block; margin-top: 4px; }

/* ---------- Seat map: one row unit for every deck, so a berth is always exactly two seat rows tall ---------- */
.decks { align-items: flex-start; }
.seat-grid.sg { --sw: 34px; --gw: 18px; --u: 34px; grid-auto-rows: var(--u); }
.seat-grid.sg.fu { --u: 44px; }
.seat-grid.sg > .seat.seat.seat { width: var(--sw); height: auto; min-height: 0; }
.seat-grid.sg > .seat.span2, .seat-grid.sg.sl > * { grid-row: span 2; }
.seat-grid.sg > .seat.sleeper small, .seat-grid.sg > .seat.span2 small { margin-top: 2px; }
@media (max-width: 600px) {
  .seat-panel { padding: 14px 10px; }
  .seat-panel > div:first-child { min-width: 0; }
  .decks { flex-wrap: nowrap; gap: 8px; justify-content: center; }
  .deck { padding: 8px 6px; min-width: 0; }
  .deck-title { font-size: .6rem; letter-spacing: .03em; gap: 4px; margin-bottom: 8px; }
  .seat-grid.sg { --sw: 30px; --gw: 8px; --u: 30px; gap: 4px; }
  .seat-grid.sg.fu { --u: 38px; }
  .seat-grid.sg > .seat { font-size: .55rem; }
  .seat-grid.sg > .seat small { font-size: .5rem; }
  .legend { justify-content: center; gap: 8px; font-size: .72rem; }
}
@media (max-width: 360px) { .seat-grid.sg { --sw: 27px; --gw: 6px; --u: 27px; gap: 3px; } .seat-grid.sg.fu { --u: 35px; } }

/* ---------- Horizontal seat map (wide screens) ---------- */
.bus-h { display: grid; gap: 12px; --hu: 44px; --hh: 34px; --ha: 18px; }
.bus-h.fu, .bus-h:has(.seat.fare) { --hh: 38px; }
.deck-h { display: flex; gap: 10px; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 8px; background: var(--surface); width: max-content; max-width: 100%; overflow-x: auto; }
.deck-h-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-width: 26px; }
.deck-h-side b { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.deck-h-wheel svg { width: 22px; height: 22px; color: var(--ink); }
.deck-h-grid { display: grid; gap: 5px; }
.bus-h .h-cell { display: flex; min-width: 0; }
.bus-h .seat.seat { width: 100%; height: 100%; min-height: 0; border-radius: 5px; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: .72rem; line-height: 1; background: #ffffff; border: 1.5px solid #9fb3c4; color: var(--ink); }
.bus-h .h-cell.berth .seat { border-left-width: 6px; }
.bus-h .seat small { display: inline; font-size: .62rem; opacity: .75; margin: 0; }
.bus-h .seat:not(.booked):not(.sel):hover { border-color: var(--green); background: var(--green-soft); }
.bus-h .seat.booked { background: #7cc7ec; border-color: #5fb5df; color: #0b2a44; }
.bus-h .seat.ladies { background: #f6b8d0; border-color: #ec95b8; color: #5a1030; }
.bus-h .seat.bo-phone { background: #ffd79a; border-color: #f0b350; color: #5a3a00; }
.bus-h .seat.bo-block { background: repeating-linear-gradient(45deg, #dfe6ec, #dfe6ec 4px, #f4f7f9 4px, #f4f7f9 8px); border-color: #b9c6d1; color: var(--muted); }
.bus-h .seat.sel { background: var(--green); border-color: var(--green); color: #ffffff; }
.bus-h-legend i { background: #ffffff; border-color: #9fb3c4; }
.bus-h-legend i.b { background: #7cc7ec; border-color: #5fb5df; } .bus-h-legend i.l { background: #f6b8d0; border-color: #ec95b8; } .bus-h-legend i.s { background: var(--green); border-color: var(--green); }
.bus-h-legend i.bo-lp { background: #ffd79a; border-color: #f0b350; }
.v-only { display: none; }
@media (max-width: 1000px) { .bus-h { display: none; } .v-only { display: block; } }
.seat-panel:has(.bus-h) { grid-template-columns: 1fr; }
@media (min-width: 1001px) { .seat-panel:has(.bus-h) > .stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; align-items: start; } .seat-panel:has(.bus-h) > .stack > .card, .seat-panel:has(.bus-h) > .stack > .btn, .seat-panel:has(.bus-h) > .stack > p { grid-column: 1 / -1; } }

/* ---------- Booked seats by gender: male blue, female pink (upright map on phones too) ---------- */
.seat-grid.sg .seat.booked { background: #7cc7ec; border-color: #5fb5df; color: #0b2a44; }
.seat-grid.sg .seat.booked.ladies { background: #f6b8d0; border-color: #ec95b8; color: #5a1030; }
.seat-grid.sg .seat.booked.bo-phone { background: #ffd79a; border-color: #f0b350; color: #5a3a00; }
.seat-grid.sg .seat.booked.bo-block { background: repeating-linear-gradient(45deg, #dfe6ec, #dfe6ec 4px, #f4f7f9 4px, #f4f7f9 8px); border-color: #b9c6d1; color: var(--muted); }
.v-only .legend i.b { background: #7cc7ec; border-color: #5fb5df; } .v-only .legend i.l { background: #f6b8d0; border-color: #ec95b8; }

/* ---------- Client demo site strip ---------- */
.demo-site-strip { background: #fff4d6; color: #4a3600; font-size: .82rem; text-align: center; padding: 7px var(--gutter-r) 7px var(--gutter-l); border-bottom: 1px solid #f0d58a; line-height: 1.5; }
.demo-site-strip .mono { font-family: var(--font-mono); background: #ffffff; padding: 1px 6px; border-radius: 5px; border: 1px solid #f0d58a; }
.dss-act { display: inline-flex; gap: 8px; margin-left: 8px; vertical-align: middle; }
.dss-act a, .dss-act button { font: inherit; font-weight: 700; color: #06305f; background: #ffffff; border: 1px solid #e3c46a; border-radius: 7px; padding: 2px 10px; cursor: pointer; text-decoration: none; }

/* ---------- Get the app band ---------- */
.app-band { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 26px 28px; border-radius: 20px; color: #ffffff; background: linear-gradient(120deg, #06305f, #0b6f7c 60%, #11895a); box-shadow: var(--shadow); }
.app-band-icon { width: 84px; height: 84px; border-radius: 22px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.app-band-icon svg { width: 100%; height: 100%; display: block; }
.app-band h2 { color: #ffffff; margin: 4px 0 6px; } .app-band p { color: #d9ecf7; margin: 0; max-width: 60ch; }
.app-steps { margin: 10px 0 0; padding-left: 18px; color: #cfe2f3; font-size: .86rem; display: flex; gap: 6px 22px; flex-wrap: wrap; }
.app-band-cta { display: grid; gap: 6px; justify-items: center; }
.app-band-cta .btn svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .app-band { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 22px 18px; } .app-steps { justify-content: center; padding-left: 0; list-style-position: inside; } }

/* ---------- Hostels & PG ---------- */
.hs-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 12px; font-size: .88rem; color: var(--ink-soft); }
.hs-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.hs-floor { margin: 18px 0 10px; font-size: 1rem; }
.hs-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.hs-room { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 10px; }
.hs-room-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } .hs-room-h b { font-size: 1.15rem; } .hs-room-h .small:last-child { margin-left: auto; font-weight: 600; }
.hs-bedrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.hs-bed { border: 0; border-radius: 10px; padding: 8px 4px; cursor: pointer; display: grid; gap: 2px; text-align: center; font: inherit; transition: transform .15s; }
.hs-bed:hover { transform: translateY(-2px); } .hs-bed b { font-size: .95rem; } .hs-bed span { font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-bed.hs-vacant, .hs-dot.hs-vacant { background: var(--green-soft); color: var(--green); outline: 1.5px dashed var(--green); }
.hs-bed.hs-occupied, .hs-dot.hs-occupied { background: var(--blue); color: #fff; }
.hs-bed.hs-notice, .hs-dot.hs-notice { background: var(--warn-soft); color: var(--warn); outline: 1.5px solid var(--warn); }
.hs-bed.hs-reserved, .hs-dot.hs-reserved { background: var(--blue-soft); color: var(--blue); outline: 1.5px solid var(--blue); }
.hs-bed.hs-blocked, .hs-dot.hs-blocked { background: var(--danger-soft); color: var(--danger); }
.hs-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: .85rem; }
.hs-who, .hs-prof { display: flex; gap: 10px; align-items: center; } .hs-prof .hs-av { width: 64px; height: 64px; font-size: 1.2rem; }
.hs-photo-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .hs-photo-row .hs-av { width: 64px; height: 64px; }
.hs-menu input.input { min-width: 130px; padding: 6px 8px; }
.danger-text { color: var(--danger); }
.hs-idcard { min-width: 0 !important; justify-items: center; }
.hs-idc { width: 86mm; border: 2px solid #0b57b7; border-radius: 10px; overflow: hidden; font-size: 11px; }
.hs-idc-h { background: #0b57b7; color: #fff; padding: 6px 10px; display: grid; } .hs-idc-h b { font-size: 13px; }
.hs-idc-b { display: flex; gap: 10px; padding: 10px; align-items: center; } .hs-idc-b .hs-av { width: 72px; height: 72px; border-radius: 8px; } .hs-idc-b > div { display: grid; gap: 2px; } .hs-idc-b b { font-size: 14px; }
.hs-idc-f { background: #eef4fb; padding: 4px 10px; font-size: 9.5px; }
