:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #f8fafc;
  --surface: #ffffff;
  --brand: #0ea5e9;
  --brand-ink: #0369a1;
  --brand-wash: #e0f2fe;
  --grey-wash: #f1f5f9;
  --blue-wash: #dbeafe;
  --green-wash: #dcfce7;
  --green-ink: #15803d;
  --blue-ink: #1d4ed8;
  --grey-ink: #475569;
  --danger: #b91c1c;
  --danger-wash: #fee2e2;
  --amber-wash: #fef3c7;
  --amber-ink: #b45309;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, 0.08), 0 10px 24px rgba(15, 23, 42, 0.10);
  --container: 1120px;
  --tap: 44px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 600; }
h4 { font-size: 16px; line-height: 1.35; font-weight: 600; }

p { color: var(--ink-soft); }

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

small, .small { font-size: 14px; }
.muted { color: var(--muted); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  flex: 0 0 auto;
}
.brand-name { white-space: nowrap; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.header-nav a:hover { background: var(--grey-wash); text-decoration: none; }
.header-nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-wash); }

/* Main + sections */
main { padding: 32px 0 56px; }
.section + .section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 24px; }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
  -webkit-appearance: none;
  appearance: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--brand-wash); outline-offset: 2px; }
.btn-primary {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--grey-wash); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 17px; }
.btn-sm { min-height: var(--tap); padding: 6px 14px; font-size: 15px; }

/* Door hero */
.door-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-wash) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
}
.door-hero h1 { max-width: 22ch; }
.door-hero p {
  max-width: 62ch;
  margin-top: 12px;
  font-size: 18px;
  color: var(--ink-soft);
}
.door-hero .actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: 12px;
}

/* Journey steps */
.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
}
.step {
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  color: #ffffff;
}
.step h3 { margin-bottom: 4px; }
.step p { font-size: 15px; }

.step-1 { background: var(--brand-wash); border-color: #bae6fd; }
.step-1 .step-num { background: var(--brand); }
.step-2 { background: var(--green-wash); border-color: #bbf7d0; }
.step-2 .step-num { background: var(--green-ink); }
.step-3 { background: var(--amber-wash); border-color: #fde68a; }
.step-3 .step-num { background: var(--amber-ink); }
.step-4 { background: var(--blue-wash); border-color: #bfdbfe; }
.step-4 .step-num { background: var(--blue-ink); }

/* Search / filter bar */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.filter-field { display: flex; flex-direction: column; gap: 6px; }
.filter-field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.filter-bar .btn { width: 100%; }

/* Fieldset / form controls */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .error-text { font-size: 13px; color: var(--danger); font-weight: 500; }

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
textarea { min-height: 120px; resize: vertical; padding-top: 12px; }
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2364748b' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-wash);
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--danger);
}
input[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus, select[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px var(--danger-wash);
}
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-size: 14px; font-weight: 600; color: var(--ink-soft); padding: 0; margin-bottom: 8px; }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  cursor: pointer;
  font-size: 16px;
}
.check input { width: 20px; height: 20px; accent-color: var(--brand); flex: 0 0 auto; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  max-width: 560px;
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.form-actions .btn { flex: 1 1 auto; }

/* Listing cards grid */
.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card a.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.card a.card-link:hover { text-decoration: none; }
.card:hover { box-shadow: var(--shadow-lift); }
.card-photo {
  aspect-ratio: 16 / 10;
  background: var(--grey-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 18px; font-weight: 600; color: var(--ink); }
.card-meta { font-size: 14px; color: var(--muted); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grey-wash);
  color: var(--grey-ink);
  border: 1px solid var(--line);
  line-height: 1.4;
}
a.chip:hover { text-decoration: none; border-color: var(--line-strong); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--brand-wash); color: var(--brand-ink); border-color: #bae6fd; }

/* Badges: colour + text label */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.5;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.badge-unclaimed { background: var(--grey-wash); color: var(--grey-ink); border-color: var(--line-strong); }
.badge-claimed { background: var(--blue-wash); color: var(--blue-ink); border-color: #bfdbfe; }
.badge-verified { background: var(--green-wash); color: var(--green-ink); border-color: #bbf7d0; }

/* Listing page */
.listing { display: grid; gap: 24px; grid-template-columns: 1fr; }
.listing-main > * + * { margin-top: 24px; }
.listing-aside > * + * { margin-top: 16px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.panel > * + * { margin-top: 12px; }
.panel h2 { font-size: 18px; }

.photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.photo-strip figure { scroll-snap-align: start; margin: 0; }
.photo-strip .photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: var(--grey-wash);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}
.photo-strip figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}
.hours-table th { color: var(--ink-soft); font-weight: 500; width: 45%; }
.hours-table td { font-variant-numeric: tabular-nums; color: var(--ink); }
.hours-table tr.is-today th, .hours-table tr.is-today td { background: var(--brand-wash); font-weight: 600; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }

.services-list { list-style: none; padding: 0; margin: 0; }
.services-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.services-list li:last-child { border-bottom: 0; }
.services-list .svc-name { font-weight: 500; color: var(--ink); }
.services-list .svc-note { color: var(--muted); font-size: 14px; }

/* Desk tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}
table.data thead th {
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--grey-wash);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--ink-soft);
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--bg); }
table.data td .btn { min-height: var(--tap); }

.stat-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1.2; margin-top: 4px; color: var(--ink); }

/* Feedback tiles */
.feedback-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}
.feedback-tile {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  min-height: 88px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  text-align: center;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.feedback-tile:hover { background: var(--brand-wash); border-color: #bae6fd; }
.feedback-tile:focus-visible { outline: 3px solid var(--brand-wash); outline-offset: 2px; }
.feedback-tile[aria-pressed="true"], .feedback-tile.is-selected {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}
.feedback-tile .tile-hint { font-size: 13px; font-weight: 400; opacity: 0.85; }
.feedback-tile img { width: 56px; height: 56px; }
.speaker-badge img { width: 20px; height: 20px; vertical-align: middle; }

/* Plain error style */
.error {
  background: var(--danger-wash);
  border: 1px solid #fecaca;
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
}
.error ul { margin: 8px 0 0; padding-left: 20px; }
.error a { color: var(--danger); text-decoration: underline; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  z-index: 50;
}
.skip-link:focus { top: 12px; }

/* Responsive */
@media (min-width: 560px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { grid-template-columns: 2fr 1fr auto; align-items: end; }
  .filter-bar .btn { width: auto; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .feedback-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-strip { grid-auto-columns: 46%; }
}

@media (min-width: 860px) {
  h1 { font-size: 34px; }
  main { padding: 48px 0 72px; }
  .door-hero { padding: 56px 48px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .listing { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
  .listing-aside { position: sticky; top: 88px; }
  .photo-strip { grid-auto-columns: 38%; }
  .feedback-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  h1 { font-size: 26px; }
  .door-hero { padding: 28px 20px; }
  .door-hero .actions .btn { flex: 1 1 100%; }
  .form-card { padding: 18px; }
  .site-header .container { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .btn:active { transform: none; }
}
.lang-row { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 0; font-size: 13px; }
.lang-row a { color: var(--ink-soft, #475569); text-decoration: none; }
.lang-row a.lang-current { font-weight: 700; color: var(--ink, #0f172a); }
.journey-icon { display: block; margin: 4px 0; }
.fb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fb-tile img { width: 56px; height: 56px; }
.fb-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; text-align: center; }
.journey-steps { list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .journey-steps { grid-template-columns: repeat(3, 1fr); } }
.journey-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #0ea5e9; color: #fff; font-weight: 700; }
