:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --ink: #1d2228;
  --muted: #5d6670;
  --line: #e2ddd5;
  --accent: #e8611a;
  --accent-ink: #ffffff;
  --accent-soft: #fdebdf;
  --asphalt: #1d2228;
  --ok: #1f7a4d;
  --ok-soft: #e3f3ea;
  --warn: #9a5b00;
  --warn-soft: #fdf1dc;
  --bad: #b3261e;
  --bad-soft: #fbe6e4;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 24, 28, .06), 0 4px 16px rgba(20, 24, 28, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171b; --surface: #1d2127; --ink: #eef0f2; --muted: #a3abb4; --line: #2e343c;
    --accent: #f27a36; --accent-soft: #3a2518; --asphalt: #0f1215;
    --ok: #5cc48f; --ok-soft: #173326; --warn: #e7b05a; --warn-soft: #3a2c14; --bad: #f08b84; --bad-soft: #3b1e1c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.tiny { font-size: .82rem; padding-bottom: 20px; }
.hidden { display: none !important; }

/* Demo banner (dev / demo.rigpoppa.com only) */
.demo-banner { background: #f6c343; color: #1d2228; text-align: center; padding: 8px 16px; font-size: .92rem; }

/* Header / footer */
.site-header { background: var(--asphalt); color: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.logo-img { display: block; height: 62px; width: auto; }
.logo-img.small { height: 44px; }
@media (max-width: 560px) { .logo-img { height: 46px; } }
.hero-logo { display: block; width: min(420px, 100%); height: auto; margin: 0 0 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.logo.small { font-size: 1.05rem; color: var(--ink); margin-bottom: .4em; }
.logo-mark { width: 26px; height: 26px; border-radius: 6px; background:
  linear-gradient(90deg, transparent 22%, var(--accent) 22% 34%, transparent 34% 44%, var(--accent) 44% 56%, transparent 56% 66%, var(--accent) 66% 78%, transparent 78%), #2c333b; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: #e6e9ec; text-decoration: none; font-size: .95rem; }
.nav a:hover { color: #fff; text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 28px; }
.footer-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Hero */
.hero { background: var(--asphalt); color: #fff; padding: 44px 0 60px; }
.hero p.lead { font-size: 1.15rem; color: #d3d8dd; max-width: 40rem; }
.hero-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } .hero { padding: 64px 0 80px; } }
.price-tag { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; font-size: .95rem; }

/* Cards / sections */
.card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.section { padding-top: 44px; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step { position: relative; padding-top: 48px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; left: 20px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }

/* Forms */
form .row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { form .row.two { grid-template-columns: 1fr 1fr; } form .row.three { grid-template-columns: 1fr 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=month], input[type=number], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; min-height: 44px;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
input[type=file] { font: inherit; max-width: 100%; color: var(--muted); }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; margin-right: 12px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.error { color: var(--bad); font-size: .87rem; margin-top: 4px; min-height: 0; }
.field.invalid input, .field.invalid select { border-color: var(--bad); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 700; padding: 0 6px; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--surface); }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.choice input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.05); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.danger { background: var(--bad); }
.btn.block { width: 100%; }

/* Photo-day calendar */
.days { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.day { position: relative; }
.day input { position: absolute; opacity: 0; }
.day span { display: block; text-align: center; padding: 8px 4px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: .9rem; background: var(--surface); }
.day span small { display: block; color: var(--muted); font-size: .75rem; }
.day input:checked + span { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.day input:disabled + span { opacity: .45; cursor: not-allowed; }
.day input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); }

/* Layout: booking form + summary */
.book-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
@media (min-width: 960px) { .book-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .summary { position: sticky; top: 16px; } }
.summary dl, .kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 12px; }
.summary dt, .kv dt { color: var(--muted); }
.summary dd, .kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.2rem; font-weight: 800; }

/* Booking form: total + pay button pinned to the bottom of the screen on phones */
.mobile-bar { display: none; }
@media (max-width: 959px) {
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; gap: 12px; align-items: center; justify-content: space-between;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(20,24,28,.08); }
  .mobile-bar .mb-total { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
  .mobile-bar .mb-total small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
  .mobile-bar .btn { flex: 1; max-width: 230px; white-space: nowrap; }
  body.has-mobile-bar { padding-bottom: 84px; }
}

/* Results */
.results { display: grid; gap: 14px; margin-top: 18px; }
.lot { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 640px) { .lot { grid-template-columns: 1fr auto; } }
.lot .price { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stars { color: #e8a317; letter-spacing: 1px; }
.pill { display: inline-block; font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); margin-right: 6px; }

/* Notices / status */
.notice { border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; border: 1px solid var(--line); background: var(--surface); }
.notice.ok { background: var(--ok-soft); border-color: transparent; }
.notice.warn { background: var(--warn-soft); border-color: transparent; }
.notice.bad { background: var(--bad-soft); border-color: transparent; }
.status { display: inline-block; font-weight: 700; padding: 3px 12px; border-radius: 999px; font-size: .9rem; }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.warn { background: var(--warn-soft); color: var(--warn); }
.status.bad { background: var(--bad-soft); color: var(--bad); }
.big-number { font-size: 2.2rem; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.prose h2 { margin-top: 1.4em; }
.prose details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.prose summary { font-weight: 700; cursor: pointer; }
.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* Admin */
.admin-row { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .admin-row { grid-template-columns: 1.2fr 1fr auto; align-items: start; } }
.admin-row h3 { margin: 0 0 4px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-actions .btn { min-height: 38px; padding: 0 14px; font-size: .92rem; }
.small { font-size: .88rem; }
table.lines { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 10px; }
table.lines th, table.lines td { text-align: left; padding: 6px 8px; border-top: 1px solid var(--line); }
table.lines td.num, table.lines th.num { text-align: right; font-variant-numeric: tabular-nums; }
.due { color: var(--bad); font-weight: 700; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { font-size: .78rem; color: var(--muted); text-align: center; }
.cal .cell { border: 1px solid var(--line); border-radius: 8px; padding: 6px; min-height: 64px; background: var(--surface); font-size: .8rem; }
.cal .cell.rule { background: var(--accent-soft); border-color: var(--accent); }
.cal .cell.blackout { background: var(--bad-soft); }
.cal .cell .d { font-weight: 700; }
.cal .cell .p1 { font-size: .98rem; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .cal .cell { min-height: 54px; padding: 4px; font-size: .72rem; } .cal .cell .p1 { font-size: .85rem; } }
.thumbs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin: 10px 0; }
.thumbs a { display: block; position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--bg); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs .badge { position: absolute; left: 4px; bottom: 4px; background: var(--ok); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.thumbs .time { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; padding: 1px 6px; border-radius: 999px; }
