/* Luton Local — mobile-first. Most visitors arrive on a phone, often on data. */

:root {
  /* Page sits behind the cards; cards are white so they read as objects
     rather than rows. A white page with white cards was the real reason the
     old layout looked flat. */
  --bg: #f4f6fb;
  --bg-alt: #e9eef8;
  --bg-raised: #ffffff;

  --border: #e0e6f0;
  --border-strong: #c6d0e2;

  --text: #131722;
  --text-muted: #5a6478;

  --brand: #0b5fff;
  --brand-dark: #0847c4;
  --brand-soft: #e6eeff;

  /* Second accent. Used sparingly — highlights and the "free" state — so it
     stays an accent rather than becoming a second brand colour. */
  --accent: #ff6b35;
  --accent-dark: #e5511c;
  --accent-soft: #fff0e9;

  --good: #0b7a42;
  --good-soft: #dff5e8;
  --warn: #9a5b00;
  --warn-soft: #fdf1de;
  --bad: #bf2626;
  --bad-soft: #fce9e9;

  --radius: 14px;
  --radius-sm: 9px;

  /* Two-layer shadow: a tight contact shadow plus a soft spread. */
  --shadow: 0 1px 2px rgba(19, 23, 34, .04), 0 3px 10px rgba(19, 23, 34, .05);
  --shadow-lift: 0 2px 4px rgba(19, 23, 34, .05), 0 14px 30px rgba(11, 95, 255, .13);

  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --bg-alt: #161b21;
    --bg-raised: #171c22;
    --border: #262d36;
    --border-strong: #38414c;
    --text: #e8ecf1;
    --text-muted: #9aa5b1;
    --brand: #5c93ff;
    --brand-dark: #7ba8ff;
    --brand-soft: #16233c;
    --accent: #ff8a5c;
    --accent-dark: #ffa480;
    --accent-soft: #2e1a12;
    --good: #4ac57e;
    --good-soft: #10281c;
    --warn: #e0a53c;
    --warn-soft: #2a2113;
    --bad: #ff6b6b;
    --bad-soft: #2c1618;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, .5), 0 14px 30px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.2rem, 3vw, 1.45rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.section { padding: 28px 0; }
.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(19, 23, 34, .04);
}
@supports (backdrop-filter: blur(12px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg-raised) 78%, transparent);
    backdrop-filter: blur(14px) saturate(1.6);
  }
}
.header-inner {
  display: flex; align-items: center; gap: 12px;
  min-height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem;
  white-space: nowrap;
}
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand); color: #fff;
  box-shadow: 0 1px 2px rgba(11, 95, 255, .35), 0 3px 8px rgba(11, 95, 255, .2);
  flex: none;
}
.brand-mark svg { display: block; }
.main-nav { display: none; gap: 4px; margin-left: 8px; }
.main-nav a {
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); text-decoration: none; font-weight: 500;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.avatar { width: 32px; height: 32px; border-radius: 50%; display: block; }
.avatar-fallback {
  display: grid; place-items: center; background: var(--brand-soft);
  color: var(--brand); font-weight: 700;
}
.avatar-link { display: block; line-height: 0; }

@media (min-width: 760px) { .main-nav { display: flex; } }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 0.94rem; font-weight: 600; font-family: inherit;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  min-height: 42px; transition: background .12s, border-color .12s;
}
.btn-primary {
  background: linear-gradient(180deg, #2d78ff, var(--brand));
  color: #fff;
  box-shadow: 0 1px 2px rgba(11, 95, 255, .3), 0 4px 12px rgba(11, 95, 255, .22);
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: var(--bg-raised); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--border-strong); }
.btn-danger:hover { background: var(--bad-soft); }
.btn-google { background: var(--bg-raised); color: var(--text); border-color: var(--border-strong); }
.btn-icon {
  display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
}
.btn-sm { padding: 6px 12px; min-height: 36px; font-size: 0.85rem; }
/* Header controls stay thumb-sized on phones. */
@media (max-width: 759px) {
  .header-actions .btn-sm { min-height: 42px; padding: 8px 14px; }
}
.btn-lg { padding: 13px 24px; min-height: 50px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(900px 400px at 88% -20%, rgba(255, 107, 53, .16), transparent 60%),
    radial-gradient(1100px 420px at 8% -14%, rgba(11, 95, 255, .20), transparent 62%),
    linear-gradient(180deg, var(--brand-soft), var(--bg));
  padding: 56px 0 46px;
  border-bottom: 1px solid var(--border);
}

/* Two soft blobs give the banner depth. Blurred gradients only — a 3D library
   would cost more than the whole site weighs. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .5;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  width: 300px; height: 300px; top: -110px; right: -70px;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 68%);
}
.hero::after {
  width: 340px; height: 340px; bottom: -190px; left: -90px;
  background: radial-gradient(circle at 40% 40%, var(--brand), transparent 68%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 strong { color: var(--brand); }
.hero h1 { max-width: 16ch; }
.hero-lede { font-size: 1.05rem; color: var(--text-muted); max-width: 56ch; }
.hero-search { display: flex; gap: 8px; margin: 20px 0 12px; max-width: 620px; }
.hero-search input {
  flex: 1; min-width: 0; padding: 14px 16px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg-raised); color: var(--text);
  box-shadow: var(--shadow);
}
.hero-search input:focus { border-color: var(--brand); }
.hero-stat { color: var(--text-muted); font-size: 0.94rem; margin: 0; }
.hero-stat strong { color: var(--text); }

/* ---------------------------------------------------------------- tiles */

.type-tiles { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .type-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .type-tiles { grid-template-columns: repeat(4, 1fr); } }

.tile {
  display: grid; gap: 4px; padding: 20px;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; color: var(--text);
}
.tile {
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
.tile:hover {
  border-color: var(--brand);
  color: var(--text);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.tile-icon { font-size: 1.7rem; }
.tile-name { font-weight: 700; font-size: 1.1rem; }
.tile-count { color: var(--brand); font-weight: 600; font-size: 0.9rem; }
.tile-note { color: var(--text-muted); font-size: 0.85rem; }

/* ---------------------------------------------------------------- cards */

.card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

.listing-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .listing-grid { grid-template-columns: repeat(3, 1fr); } }

.listing-card {
  overflow: hidden;
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
.listing-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.listing-link { display: flex; gap: 12px; padding: 14px; text-decoration: none; color: inherit; height: 100%; }

.listing-thumb {
  flex: 0 0 76px; width: 76px; height: 76px; border-radius: 12px;
  background: linear-gradient(145deg, var(--brand-soft), #ffffff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 3px rgba(19, 23, 34, .07);
  overflow: hidden;
}
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-thumb-icon { display: grid; place-items: center; font-size: 1.8rem; }

.listing-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.listing-top { display: flex; flex-direction: column; gap: 5px; }
.listing-title {
  font-size: 1rem; font-weight: 650; margin: 0; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-meta {
  display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0;
  font-size: 0.83rem; color: var(--text-muted);
}
.meta-strong { color: var(--text); font-weight: 550; }
.listing-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { font-weight: 700; color: var(--text); }
.price-free { color: var(--accent-dark); font-weight: 750; }
.price-lg { font-size: 1.25rem; }
.posted { font-size: 0.8rem; color: var(--text-muted); }

/* ---------------------------------------------------------------- freshness */

.freshness {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: .01em;
  padding: 4px 10px 4px 8px;
  border-radius: 999px; white-space: nowrap; width: fit-content;
  border: 1px solid transparent;
}
.freshness-good { border-color: rgba(11, 122, 66, .18); }
.freshness-warn { border-color: rgba(154, 91, 0, .18); }
.freshness-bad  { border-color: rgba(191, 38, 38, .18); }
.freshness .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.freshness-good { background: var(--good-soft); color: var(--good); }
.freshness-warn { background: var(--warn-soft); color: var(--warn); }
.freshness-bad { background: var(--bad-soft); color: var(--bad); }
.freshness-neutral { background: var(--bg-alt); color: var(--text-muted); }
.freshness-lg { font-size: 0.88rem; padding: 6px 14px 6px 11px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 650; }
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-neutral { background: var(--bg-alt); color: var(--text-muted); }

/* ---------------------------------------------------------------- filters */

.filters { margin: 16px 0 20px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.search-field { flex: 1 1 220px; min-width: 0; }
.search-field input, .select-field select, .field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; font-size: 0.95rem; font-family: inherit;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg-raised); color: var(--text);
  transition: border-color .12s, box-shadow .12s;
}
.search-field input:focus, .select-field select:focus,
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  outline: none;
}
.select-field { flex: 0 1 auto; }
.check-field { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.check-field input { width: 18px; height: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--bg-raised); border: 1px solid var(--border);
  color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 550;
  transition: border-color .12s, color .12s;
}
.chip:hover { border-color: var(--brand); color: var(--text); }
.chip-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-active:hover { color: #fff; }
.cat-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.result-count { margin: 12px 0 0; font-size: 0.88rem; color: var(--text-muted); }

/* ---------------------------------------------------------------- sections */

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.link-more { font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.page-head { margin-bottom: 8px; }
.page-lede { color: var(--text-muted); max-width: 66ch; }
.browse-head { margin-bottom: 14px; }

.explain { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; }
.explain-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .explain-grid { grid-template-columns: repeat(3, 1fr); } }
.explain h3 { display: flex; gap: 8px; align-items: center; }
.explain p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--brand-soft); border-radius: var(--radius); padding: 24px;
}
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; color: var(--text-muted); }

/* ---------------------------------------------------------------- notices */

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-alt);
  font-size: 0.92rem; margin: 0 0 16px;
}
.notice p { margin: 0; }
.notice-safety { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.notice-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.notice-ok { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.notice-error { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.notice-strong { font-weight: 550; }
.notice-icon { font-size: 1.05rem; line-height: 1.4; }

/* ---------------------------------------------------------------- detail */

.listing-detail { padding-bottom: 32px; }
.detail-kind { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.detail-detail { font-size: 0.88rem; color: var(--text-muted); }
.detail-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin-bottom: 20px; }
.fact { font-size: 0.92rem; color: var(--text-muted); }

.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-bottom: 20px; }
.gallery-img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.attr-table { display: grid; gap: 0; margin: 0 0 20px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.attr-row { display: flex; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.attr-row:last-child { border-bottom: 0; }
.attr-row dt { flex: 0 0 45%; color: var(--text-muted); margin: 0; }
.attr-row dd { margin: 0; font-weight: 550; }

.detail-body { margin-bottom: 20px; }
.detail-body p { margin: 0 0 0.9em; }

.source-note {
  background: var(--bg-alt); border-radius: var(--radius-sm); padding: 14px;
  font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px;
}
.source-note p { margin: 0; }

.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.contact-slot:not([hidden]) { margin-bottom: 24px; }
.contact-reveal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 16px; border-radius: var(--radius); background: var(--good-soft);
  border: 1px solid color-mix(in srgb, var(--good) 30%, transparent);
}
.contact-value { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.01em; }

.verify-block {
  border-top: 1px solid var(--border); padding-top: 22px; margin-top: 8px; margin-bottom: 24px;
}
.verify-block h2 { margin-bottom: 4px; }
.verify-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.btn-verify { background: var(--bg-raised); border-color: var(--border-strong); color: var(--text); }
.btn-verify:hover { border-color: var(--brand); }
.btn-yes:hover { border-color: var(--good); background: var(--good-soft); }
.btn-no:hover, .btn-warn:hover { border-color: var(--bad); background: var(--bad-soft); }
.verify-feedback { font-size: 0.9rem; color: var(--good); min-height: 1.4em; margin: 0; font-weight: 550; }

.poster-block, .owner-block {
  border-top: 1px solid var(--border); padding-top: 20px; margin-bottom: 20px;
}
.owner-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------------- forms */

.form { display: grid; gap: 16px; max-width: 100%; }
.form-inline { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 700px) { .form-inline { grid-template-columns: repeat(4, 1fr); } }
.field { display: grid; gap: 5px; }
.field-label { font-weight: 600; font-size: 0.9rem; }
.field-hint { font-size: 0.82rem; color: var(--text-muted); }
.field-group { display: grid; gap: 12px; }
@media (min-width: 600px) { .field-group { grid-template-columns: repeat(2, 1fr); } }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; }
.consent { align-items: flex-start; font-size: 0.9rem; line-height: 1.45; }
.consent input { margin-top: 3px; flex: none; }
.fine-print { font-size: 0.85rem; color: var(--text-muted); }
.inline-form { display: inline; }

/* ---------------------------------------------------------------- lifts */

.ride-list { display: grid; gap: 10px; }
.ride-card { overflow: hidden; }
.ride-link {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding: 14px; text-decoration: none; color: inherit;
}
.ride-when {
  display: grid; gap: 2px; flex: 0 0 84px; text-align: center;
  padding: 8px 6px; background: var(--bg-alt); border-radius: var(--radius-sm);
}
.ride-time { font-size: 1.15rem; font-weight: 700; line-height: 1.1; }
.ride-days { font-size: 0.72rem; color: var(--text-muted); }
.ride-route { flex: 1 1 200px; min-width: 0; }
.route-line { display: flex; align-items: center; gap: 8px; position: relative; }
.route-line + .route-line { margin-top: 6px; }
.route-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.route-dot-end { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.route-place { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ride-side { display: grid; gap: 3px; justify-items: flex-end; text-align: right; }
.seats { font-size: 0.8rem; color: var(--good); font-weight: 600; }
.seats-none { color: var(--bad); }
.ride-detail { margin-bottom: 22px; }
.ride-route-lg { margin-bottom: 16px; font-size: 1.05rem; }

.radio-row { display: grid; gap: 10px; }
@media (min-width: 600px) { .radio-row { grid-template-columns: 1fr 1fr; } }
.radio-card {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg-raised); cursor: pointer; font-size: 0.92rem;
}
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio-card input { margin-top: 3px; flex: none; }

.day-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.day-box {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 1px solid var(--border-strong);
  border-radius: 999px; cursor: pointer; font-size: 0.86rem; font-weight: 550;
  background: var(--bg-raised);
}
.day-box:has(input:checked) { border-color: var(--brand); background: var(--brand); color: #fff; }
.day-box input { width: 15px; height: 15px; }

.seat-request {
  display: grid; gap: 12px; padding: 16px; margin-bottom: 20px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt);
}
.booking-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.booking-row:last-child { border-bottom: 0; }

.photo-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.photo-preview {
  width: 84px; height: 84px; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
input[type="file"] {
  width: 100%; padding: 10px 12px; font-family: inherit; font-size: 0.92rem;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg-alt); color: var(--text);
}

.auth-help {
  margin: 18px 0 0; padding: 12px 14px;
  background: var(--bg-alt); border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.auth-help summary { cursor: pointer; font-weight: 600; }
.auth-help p { margin: 10px 0 0; color: var(--text-muted); }

.auth-card { padding: 28px; }
.auth-card .lede { color: var(--text-muted); }
.auth-options { display: grid; gap: 12px; margin: 20px 0; }
.btn-telegram { background: #229ed9; color: #fff; }
.btn-telegram:hover { background: #1c87ba; color: #fff; }
.btn-icon-tg { background: rgba(255, 255, 255, .25); }
.tg-status {
  margin: 16px 0 0; text-align: center; font-size: 0.92rem;
  color: var(--text-muted); font-weight: 550;
}

.type-choose { display: grid; gap: 12px; margin: 20px 0; }
@media (min-width: 700px) { .type-choose { grid-template-columns: repeat(3, 1fr); } }
.choose-card { display: grid; gap: 6px; padding: 22px; text-decoration: none; color: var(--text); text-align: center; }
.choose-card:hover { border-color: var(--brand); color: var(--text); }
.choose-icon { font-size: 2rem; }
.choose-name { font-weight: 700; }
.choose-blurb { font-size: 0.86rem; color: var(--text-muted); }

/* ---------------------------------------------------------------- account & admin */

.account-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.account-section { padding-top: 26px; margin-top: 20px; border-top: 1px solid var(--border); }
.my-listings { display: grid; gap: 10px; }
.my-listing { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 14px; }
.my-listing-main { min-width: 0; flex: 1 1 260px; }
.my-listing-title { font-weight: 650; text-decoration: none; color: var(--text); }
.my-listing-title:hover { color: var(--brand); }
.my-listing-side { display: grid; gap: 8px; justify-items: flex-start; }
.my-listing-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.saved-list, .alert-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.saved-list li, .alert-list li {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: var(--bg-alt); border-radius: var(--radius-sm);
}
.danger-zone { border-top-color: var(--bad); }

.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.stat {
  display: grid; gap: 2px; padding: 14px 20px; background: var(--bg-alt);
  border-radius: var(--radius); min-width: 110px;
}
.stat-n { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.stat-l { font-size: 0.82rem; color: var(--text-muted); }

.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 14px; display: block; overflow-x: auto; }
.table th, .table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }

.review-card { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; padding: 16px; margin-bottom: 10px; }
.review-body { font-size: 0.88rem; color: var(--text-muted); margin: 8px 0 0; }
.review-actions { display: flex; align-items: flex-start; }

/* ---------------------------------------------------------------- misc */

.empty { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-inline { padding: 28px 20px; }
.empty-icon { font-size: 2.4rem; margin-bottom: 8px; }
.empty h2 { color: var(--text); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.page-count { font-size: 0.88rem; color: var(--text-muted); }

.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose .lede { font-size: 1.05rem; color: var(--text-muted); }

.site-footer {
  border-top: 1px solid var(--border); background: var(--bg-alt);
  padding: 28px 0 40px; margin-top: 40px; font-size: 0.88rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; }
.footer-note { color: var(--text-muted); max-width: 72ch; margin: 0 0 8px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------- CV builder */

.cv-rules {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 18px 20px; margin: 20px 0 26px;
}
.cv-rules h2 { margin-top: 0; }
.rule-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.rule { display: flex; gap: 9px; align-items: baseline; font-size: 0.93rem; }
.rule span { font-weight: 700; flex: none; width: 1em; }
.rule-do span { color: var(--good); }
.rule-dont span { color: var(--bad); }

.cv-slot {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin: 0; display: grid; gap: 12px;
}
.cv-slot legend { padding: 0 6px; font-weight: 650; font-size: 0.9rem; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cv-prompt {
  background: var(--brand-soft); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 0.92rem; margin: 0 0 16px;
}
.cv-toolbar { display: flex; gap: 10px; margin-bottom: 18px; }

.cv-sheet {
  background: #fff; color: #14181d;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 44px; line-height: 1.45;
}
.cv-head { border-bottom: 2px solid #14181d; padding-bottom: 12px; margin-bottom: 18px; }
.cv-head h1 { margin: 0 0 4px; font-size: 1.7rem; color: #14181d; }
.cv-headline { margin: 0 0 6px; font-weight: 600; color: #444; }
.cv-contact, .cv-rtw { margin: 0; font-size: 0.9rem; color: #555; }
.cv-section { margin-bottom: 18px; }
.cv-section h2 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: .09em;
  color: #14181d; border-bottom: 1px solid #ccc;
  padding-bottom: 3px; margin: 0 0 9px;
}
.cv-section p { margin: 0 0 6px; }
.cv-entry { margin-bottom: 12px; }
.cv-entry-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cv-dates { color: #666; font-size: 0.88rem; white-space: nowrap; }
.cv-employer { color: #555; font-size: 0.92rem; margin-bottom: 4px; }
.cv-bullets { margin: 4px 0 0; padding-left: 1.15em; }
.cv-bullets li { margin-bottom: 2px; }

/* The printed CV must be plain black on white with no site furniture. */
@media print {
  .site-header, .site-footer, .no-print, .skip { display: none !important; }
  body { background: #fff; }
  .wrap, .wrap.narrow { max-width: none; padding: 0; }
  .section { padding: 0; }
  .cv-sheet { border: 0; border-radius: 0; padding: 0; box-shadow: none; }
  .cv-section { break-inside: avoid; }
  .cv-entry { break-inside: avoid; }
  @page { margin: 18mm 16mm; }
}

/* ---------------------------------------------------------------- meetups */

.meet-list { display: grid; gap: 10px; }
.meet-link { display: flex; gap: 14px; padding: 14px; text-decoration: none; color: inherit; align-items: flex-start; }
.meet-icon {
  flex: 0 0 46px; height: 46px; display: grid; place-items: center;
  background: var(--bg-alt); border-radius: var(--radius-sm); font-size: 1.4rem;
}
.meet-body { min-width: 0; flex: 1; }
.meet-detail { margin-bottom: 22px; }
.meet-join { margin: 16px 0; }
.attendee-list { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.attendee-list h3 { font-size: 0.95rem; margin-bottom: 4px; }
.attendee-list p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* An empty section invites rather than announcing "0". */
.tile-empty { border-style: dashed; }
.tile-empty .tile-count { color: var(--text-muted); font-weight: 650; }
.tile-empty:hover { border-style: solid; }
.contact-alt { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); }
.contact-alt ul { padding-left: 1.1em; }
.contact-alt li { margin-bottom: 9px; }

/* The wordmark is longer than the old one and pushed "Sign in" off a 320px
   screen. Below that width the monogram alone carries the brand. */
@media (max-width: 430px) {
  .brand-text { display: none; }
  .header-inner { gap: 8px; }
}
.brand { min-width: 0; }
.brand-text { overflow: hidden; text-overflow: ellipsis; }

/* Nothing should ever scroll the page sideways. */
html, body { max-width: 100%; overflow-x: hidden; }


/* The hero blobs are decorative; nobody should have motion they did not ask
   for, and on a low-end phone the blur is the expensive part. */
@media (prefers-reduced-motion: reduce) {
  .listing-card, .tile { transition: none; }
  .listing-card:hover, .tile:hover { transform: none; }
}

/* ------------------------------------------------- job ↔ lift connection */

.lift-block {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}
.lift-block h2 { font-size: 1.05rem; margin: 0 0 6px; }
.lift-block > p { margin: 0 0 14px; font-size: 0.93rem; }
.lift-block-empty { border-left-color: var(--border-strong); background: var(--bg-alt); box-shadow: none; }

.lift-matches { display: grid; gap: 8px; margin-bottom: 14px; }
.lift-match {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-raised);
  text-decoration: none; color: inherit;
  transition: border-color .12s, box-shadow .12s;
}
.lift-match:hover { border-color: var(--accent); box-shadow: var(--shadow); color: inherit; }
.lift-match-time {
  flex: 0 0 54px; text-align: center; font-weight: 700; font-size: 1rem;
  padding: 5px 4px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent-dark);
}
.lift-match-route { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lift-match-route strong { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lift-match-side { display: grid; gap: 2px; justify-items: end; text-align: right; flex: none; }

/* Admins need a way in; everyone else never sees this exists. */
.nav-admin { color: var(--accent-dark) !important; font-weight: 650; }
.nav-admin-mobile { display: inline-flex; }
@media (min-width: 760px) { .nav-admin-mobile { display: none; } }
