/* PLOD — warm & vibey: rich colour, soft shapes, generous radius. Light/dark via data-theme. */
:root {
  --coral: #FF7A59; --coral-deep: #E85D3A; --coral-text: #A83A1E; --saffron: #F5B942; --plum: #2A1746; --plum-2: #3B2460; --mint: #2FBF9B; --rose: #FF5D8F;
  --bg: #FFF7ED; --bg-2: #FFEFD9; --card: #FFFFFF; --card-2: #FFF3E6; --text: #2A1746; --muted: #6B5A83; --line: #F1DDC8;
  --shadow: 0 10px 30px -14px rgba(42,23,70,.28); --ok: #15803D; --warn: #D97706; --bad: #DC2626; --info: #2563EB;
  --on-coral: #2A1746; /* text colour on coral surfaces — 6.2:1 against --coral */
  --r: 22px; --r-sm: 14px; --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
[data-theme="dark"] {
  --bg: #1B1030; --bg-2: #23153E; --card: #2A1746; --card-2: #33205A; --text: #FFF3E6; --muted: #C9B8E0; --line: #4A3170;
  --shadow: 0 14px 34px -14px rgba(0,0,0,.6); --plum: #FFF3E6; --coral-text: #FFB199;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 .8rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--coral); color: var(--on-coral); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }
.sr-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.price, .money { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 800; }
.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; word-break: break-all; }

/* Icons: inline SVG sprite (<use href="#i-…">), sized to the surrounding text */
.icon { display: inline-block; width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; flex: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1rem; padding: .7rem clamp(1rem, 4vw, 2.5rem); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a, .mobile-nav a { text-decoration: none; padding: .6rem .9rem; border-radius: 999px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; color: var(--text); }
.nav a:hover, .mobile-nav a:hover { background: var(--card-2); }
.nav a.active, .mobile-nav a.active { background: var(--plum); color: #FFF3E6; }
[data-theme="dark"] .nav a.active, [data-theme="dark"] .mobile-nav a.active { background: var(--coral); color: #2A1746; }
.topbar-actions { display: flex; gap: .4rem; align-items: center; margin-left: auto; }
.nav + .topbar-actions { margin-left: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn .icon { width: 1.3em; height: 1.3em; vertical-align: middle; }
.icon-btn:hover { border-color: var(--coral); }
.menu-btn { display: none; }
.mobile-nav { display: flex; flex-direction: column; padding: .5rem 1rem 1rem; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 61px; z-index: 49; }
.mobile-nav[hidden] { display: none; }
@media (max-width: 860px) { .nav { display: none; } .menu-btn { display: inline-flex; } }

/* Layout */
.main { min-height: 60vh; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-head { margin-bottom: 1.6rem; }
.section-head .eyebrow { color: var(--coral-text); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .6rem; }
.card.soft { background: var(--card-2); box-shadow: none; }
.card.accent { background: linear-gradient(135deg, var(--coral), var(--saffron)); color: #2A1746; border: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.card-head .price { flex: none; }
.stat { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #FFF3E6; background: linear-gradient(120deg, rgba(42,23,70,.94) 0%, rgba(59,36,96,.82) 45%, rgba(255,122,89,.55) 100%), url('/assets/hero-generated.webp') center/cover no-repeat; border-radius: 0 0 40px 40px; }
.hero-inner { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); display: grid; gap: 1.6rem; max-width: 720px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); opacity: .94; max-width: 560px; }
.hero-badges { display: flex; gap: .6rem; flex-wrap: wrap; }
.hero-badges span { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,247,237,.14); border: 1px solid rgba(255,247,237,.3); padding: .4rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; backdrop-filter: blur(6px); }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Buttons — primary is coral with plum text (6.2:1), never white on coral */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.3rem; border-radius: 999px; border: 0; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s; background: var(--coral); color: var(--on-coral); box-shadow: 0 10px 24px -12px rgba(232,93,58,.8); }
.btn:hover { transform: translateY(-1px); background: var(--coral-deep); color: var(--on-coral); }
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.btn.secondary { background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.secondary:hover { border-color: var(--coral); background: var(--card); color: var(--text); }
.btn.ghost { background: transparent; color: inherit; box-shadow: none; border: 1px solid currentColor; }
.btn.ghost:hover { background: rgba(255,255,255,.08); color: inherit; }
.btn.ok { background: var(--ok); color: #fff; } .btn.ok:hover { background: #166534; color: #fff; }
.btn.danger { background: var(--bad); color: #fff; } .btn.danger:hover { background: #B91C1C; color: #fff; }
.btn.sm { min-height: 40px; padding: .45rem .9rem; font-size: .9rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Dialog (confirmations) */
.dialog { border: 0; border-radius: var(--r); padding: 1.4rem; background: var(--card); color: var(--text); box-shadow: var(--shadow); width: min(440px, calc(100% - 2rem)); }
.dialog::backdrop { background: rgba(42,23,70,.55); backdrop-filter: blur(4px); }
.dialog h3 { margin-bottom: .2rem; }

/* Forms */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { min-height: 48px; padding: .7rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); width: 100%; }
.field textarea { min-height: 90px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--muted); }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.choice-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.choice { border: 2px solid var(--line); border-radius: var(--r-sm); padding: .9rem; background: var(--card); cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: .2rem; min-height: 44px; }
.choice:hover { border-color: var(--saffron); }
.choice.selected { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, var(--card)); }
.choice .price { font-size: 1.05rem; }
.yn { display: flex; gap: .5rem; }
.yn button { flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 700; }
.yn button.yes.on { background: #DCFCE7; border-color: var(--ok); color: #166534; }
.yn button.no.on { background: #FEE2E2; border-color: var(--bad); color: #991B1B; }
.steps { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.steps span { padding: .35rem .75rem; border-radius: 999px; background: var(--card-2); font-size: .8rem; font-weight: 700; color: var(--muted); }
.steps span.on { background: var(--coral); color: var(--on-coral); }
.steps span.done { background: var(--mint); color: #08301F; }

/* Pills, notes, tables */
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--card-2); color: var(--text); white-space: nowrap; }
.pill.ok { background: #DCFCE7; color: #166534; } .pill.warn { background: #FEF3C7; color: #92400E; } .pill.bad { background: #FEE2E2; color: #991B1B; } .pill.info { background: #DBEAFE; color: #1E40AF; } .pill.plum { background: var(--plum); color: #FFF3E6; }
[data-theme="dark"] .pill.plum { background: var(--coral); color: #2A1746; }
.note { padding: .9rem 1rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card-2); font-size: .92rem; }
.note.ok { background: #F0FDF4; border-color: #86EFAC; color: #14532D; } .note.warn { background: #FFFBEB; border-color: #FCD34D; color: #78350F; } .note.bad { background: #FEF2F2; border-color: #FCA5A5; color: #7F1D1D; } .note.info { background: #EFF6FF; border-color: #93C5FD; color: #1E3A8A; }
.table-wrap { overflow-x: auto; border-radius: var(--r-sm); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--card-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.timeline li { display: grid; grid-template-columns: 14px 1fr; gap: .8rem; align-items: start; }
.timeline li::before { content: ''; width: 12px; height: 12px; border-radius: 999px; background: var(--coral); margin-top: .35rem; }
.timeline li.done::before { background: var(--mint); }
.route { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; }
.route .arrow { color: var(--coral-text); }
.trip-card { display: grid; gap: .6rem; }
.trip-meta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .9rem; }
.trip-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.avatar { width: 40px; height: 40px; border-radius: 999px; background: linear-gradient(135deg, var(--coral), var(--saffron)); color: #2A1746; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: .8rem; }
.qr { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; width: 160px; aspect-ratio: 1; padding: 8px; background: #fff; border-radius: 12px; }
.qr i { background: #2A1746; border-radius: 2px; } .qr i.off { background: transparent; }
video.cam { width: 100%; border-radius: var(--r-sm); background: #000; aspect-ratio: 4/3; object-fit: cover; }
.live { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: var(--bad); }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: currentColor; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.bars { display: flex; gap: 3px; align-items: center; height: 44px; justify-content: center; }
.bars i { width: 5px; border-radius: 3px; background: var(--coral); animation: bar .8s ease-in-out infinite alternate; }
@keyframes bar { from { height: 20%; } to { height: 90%; } }

/* Footer */
.footer { margin-top: 3rem; padding: 3rem 0 2rem; background: var(--plum); color: #FFF3E6; border-radius: 40px 40px 0 0; }
[data-theme="dark"] .footer { background: #120A22; }
.footer .wrap { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer a { color: #FFD9C7; }
.footer h4 { margin-bottom: .5rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--saffron); }
.trust { display: flex; gap: .5rem; flex-wrap: wrap; }
.trust span { border: 1px solid rgba(255,243,230,.3); padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,243,230,.18); padding-top: 1rem; font-size: .82rem; opacity: .8; }

/* Toasts */
.toast-host { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); display: grid; gap: .5rem; z-index: 200; width: min(420px, calc(100% - 2rem)); }
.toast { background: var(--plum); color: #FFF3E6; padding: .8rem 1rem; border-radius: 14px; box-shadow: var(--shadow); font-weight: 600; }
.toast.bad { background: var(--bad); color: #fff; } .toast.ok { background: var(--ok); color: #fff; }
[data-theme="dark"] .toast { background: var(--coral); color: #2A1746; }
[data-theme="dark"] .toast.bad { background: var(--bad); color: #fff; } [data-theme="dark"] .toast.ok { background: var(--ok); color: #fff; }

/* Admin console — a different application: sidebar layout, dense tables */
.admin-body { background: var(--bg-2); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: #2A1746; color: #FFF3E6; padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 0; height: 100vh; }
[data-theme="dark"] .admin-side { background: #120A22; }
.admin-brand { flex-direction: column; align-items: flex-start; gap: .3rem; }
.admin-brand img { background: #FFF3E6; border-radius: 10px; padding: 4px 8px; }
.admin-tag { font-size: .68rem; letter-spacing: .2em; color: var(--saffron); font-weight: 800; }
.admin-nav { display: flex; flex-direction: column; gap: .2rem; }
.admin-nav a { color: #FFF3E6; text-decoration: none; padding: .7rem .9rem; border-radius: 12px; font-weight: 600; display: flex; gap: .6rem; align-items: center; min-height: 44px; }
.admin-nav a .icon { width: 1.25em; height: 1.25em; opacity: .9; }
.admin-nav a:hover { background: rgba(255,243,230,.1); }
.admin-nav a.active { background: var(--coral); color: #2A1746; }
.admin-side-foot { margin-top: auto; font-size: .85rem; display: grid; gap: .5rem; }
.admin-main { min-width: 0; }
.admin-top { display: flex; gap: 1rem; align-items: center; padding: .9rem clamp(1rem, 3vw, 2rem); background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.admin-title { font-size: 1.3rem; margin: 0; }
.admin-content { padding: clamp(1rem, 3vw, 2rem); display: grid; gap: 1.2rem; align-content: start; }
.kpis { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1rem; }
.kpi .stat { font-size: 1.7rem; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.tabs button { min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; }
.tabs button.on { background: var(--plum); color: #FFF3E6; border-color: var(--plum); }
[data-theme="dark"] .tabs button.on { background: var(--coral); color: #2A1746; border-color: var(--coral); }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1rem; display: grid; gap: .8rem; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: .6rem; font-size: .9rem; }
.kv div span { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; inset: 0 auto 0 0; width: min(280px, 85vw); transform: translateX(-100%); transition: transform .2s; z-index: 60; height: 100dvh; }
  .admin-side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
}
@media (min-width: 901px) { .admin-top .menu-btn { display: none; } }
