
:root {
  /* ===== Deep plum palette ===== */
  /* Backgrounds */
  --bg-primary:   #F7F4ED;  /* pale birch cream — page background */
  --bg-secondary: #E8DFCB;  /* surfaces, pills, chip backgrounds */
  --bg-tertiary:  #FBF9F2;  /* lightest cream for raised cards */
  --row-hover:    #EFE9DB;

  /* Legacy aliases */
  --sand:         #F7F4ED;
  --sand-deep:    #E8DFCB;
  --cream:        #FBF9F2;
  --paper:        #E8DFCB;

  /* Text */
  --ink:          #2A1A30;  /* primary — near-black with plum undertone */
  --ink-mid:      #756B5F;  /* secondary — warm taupe */
  --ink-soft:     #A8997F;  /* tertiary */
  --ink-fade:     #A8997F;

  /* Plum */
  --plum:         #3D1A40;
  --plum-hover:   #2B0F2D;
  --plum-soft:    #5E2A60;
  --plum-pale:    #E5D8E5;

  /* Camel — textural warmth only, never type */
  --camel:        #A38563;
  --camel-pale:   #D4C2A8;
  --camel-deep:   #7D6448;

  /* Score tiers */
  --score-strong-bg:   #D8DECB;
  --score-strong-text: #3F4D33;
  --score-strong-bar:  #6E7A5C;
  --score-good-bg:     #E5D8E5;
  --score-good-text:   #3D1A40;
  --score-good-bar:    #5E2A60;
  --score-weak-bg:     #E8CCBC;
  --score-weak-text:   #6F2E16;
  --score-weak-bar:    #A04E2E;

  /* Visit badges */
  --visit-self-bg:      #E8DFCB;
  --visit-self-text:    #756B5F;
  --visit-invited-bg:   #E5D8E5;
  --visit-invited-text: #3D1A40;

  /* Borders */
  --border:        rgba(42, 26, 48, 0.20);
  --border-soft:   rgba(42, 26, 48, 0.10);
  --border-strong: rgba(42, 26, 48, 0.30);
  --bar-track:     rgba(61, 26, 64, 0.08);  /* plum @ 8% */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background:
    linear-gradient(168deg, #FBF9F2 0%, #F7F4ED 45%, #F1ECE0 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern' 1, 'liga' 1;
  min-height: 100vh;
}

/* Background — very subtle plum & camel blooms */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 88% 8%, rgba(94, 42, 96, 0.05), transparent 65%),
    radial-gradient(ellipse 50% 40% at 8% 92%, rgba(163, 133, 99, 0.06), transparent 65%);
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1630px;
  margin: 0 auto;
  padding: 36px 32px 48px;
}

/* ===== HEADER — brand left | category toggle center | actions right ===== */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
}
.header-center {
  display: flex;
  justify-content: center;
}
.header-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: -4px;  /* tighten flush to viewport edge */
  cursor: pointer;
  user-select: none;
  border-radius: 8px;
  transition: opacity 140ms ease;
}
.brand:hover { opacity: 0.78; }
.brand:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 4px;
}

.brand-mark {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -2px;  /* nudge SVG flush with text below */
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--ink);
}

.brand-tag {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  margin-top: 4px;
}

.header-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--plum);
  background: transparent;
  color: var(--plum);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 100ms ease;
}
.btn:hover { background: var(--plum-pale); color: var(--plum); border-color: var(--plum); }
.btn:active { transform: translateY(1px); }

.btn-outline { /* default outlined pill */ }
.btn-primary {
  background: var(--plum);
  color: var(--bg-primary);
  border-color: var(--plum);
}
.btn-primary:hover {
  background: var(--plum-hover);
  border-color: var(--plum-hover);
  color: var(--bg-primary);
}

.btn-text {
  border: none;
  padding: 9px 4px;
  color: var(--plum);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 0.5px;
}
.btn-text:hover { background: transparent; color: var(--plum-hover); }

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* Full-width filter bar below the centered category toggle */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.filter-label {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Spa-type filter chip icons — colored by chip state */
.filter-chip-with-icon { gap: 8px; }
.filter-chip-with-icon svg { color: var(--plum); flex-shrink: 0; transition: color 140ms ease; width: 15px; height: 15px; }
.filter-chip-with-icon.active svg { color: var(--bg-primary); }
.filter-chip-with-icon:hover:not(.active) svg { color: var(--plum-hover); }
.chip-row { display: flex; gap: 2px; flex-wrap: wrap; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: var(--ink-mid);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
  white-space: nowrap;
}
.filter-chip:hover { background: var(--bg-secondary); color: var(--ink); }
.filter-chip.active { background: var(--plum); color: var(--bg-primary); }
.filter-divider {
  width: 1px;
  height: 22px;
  background: var(--border-soft);
  flex-shrink: 0;
}
.filter-search {
  flex: 1;
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  color: var(--ink-soft);
  margin-left: auto;
}
.filter-search .search-input { font-size: 14px; }

/* ===== CATEGORY + LANG SEGMENTED CONTROLS ===== */
.category-pill {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n, 2), 1fr);
  background: var(--bg-secondary);
  border: none;
  border-radius: 999px;
  padding: 5px;
  isolation: isolate;
  align-items: center;
  min-width: 480px;
}
.category-thumb {
  position: absolute;
  top: 5px; bottom: 5px; left: 5px;
  width: calc((100% - 10px) / var(--n, 2));
  background: var(--plum);
  border-radius: 999px;
  transition: transform 320ms cubic-bezier(0.5, 0, 0.2, 1);
  z-index: 0;
}
.category-segment {
  position: relative;
  z-index: 1;
  padding: 11px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-mid);
  border-radius: 999px;
  transition: color 200ms ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  width: 100%;
}
.category-segment:hover { color: var(--ink); }
.category-segment.active { color: var(--bg-primary); }

/* Category pill is disabled when a spa-type filter (cozy / nature / unique / pim's picks)
   is active — in that mode wellness + city spas are merged into one list. */
.category-pill.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  filter: saturate(0.4);
}
.category-pill.is-disabled .category-thumb { background: var(--ink-soft); }

/* Lang toggle — smaller, secondary thumb is bg-tertiary */
.lang-pill {
  position: relative;
  display: inline-flex;
  background: var(--bg-secondary);
  border: none;
  border-radius: 999px;
  padding: 5px;
  isolation: isolate;
  align-items: center;
  height: 52px;
}
.lang-pill .category-thumb {
  width: calc((100% - 10px) / 2);
  background: var(--bg-tertiary);
}
.lang-segment {
  position: relative;
  z-index: 1;
  padding: 0 18px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border-radius: 999px;
  transition: color 200ms ease;
}
.lang-segment:hover { color: var(--ink); }
.lang-segment.active { color: var(--ink); }

/* Search — 52px tall to match toggle pills; pushes to the right of the controls row */
.search-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-tertiary);
  border: 0.5px solid var(--border-soft);
  border-radius: 999px;
  padding: 0 22px;
  height: 52px;
  color: var(--ink-soft);
  min-width: 280px;
  max-width: 360px;
  margin-left: auto;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.search-wrap:focus-within {
  border: 0.5px solid var(--plum);
  color: var(--ink);
}
.search-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--ink);
  width: 100%;
  letter-spacing: 0.01em;
}
.search-input::placeholder { color: var(--ink-fade); }

/* ===== TABLE ===== */
.table-scroll {
  overflow-x: auto;
  background: transparent;
  margin-bottom: 18px;
  width: 100%;
}

.spa-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1480px;
  background: transparent;
}

.spa-table thead {
  background: transparent;
}
.spa-table thead th {
  text-align: left;
  padding: 16px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.spa-table thead th.th-photo { width: 200px; padding-left: 0; }
.spa-table thead th.th-spa { width: 460px; }
.spa-table thead th.th-overall { width: 100px; }

.sort-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum);
  transition: background 140ms ease, color 140ms ease;
}
.sort-pill:hover { background: var(--plum-pale); color: var(--plum); }
.sort-pill.active { background: var(--plum); color: var(--bg-primary); }

/* ===== SPA ROW ===== */
@keyframes row-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.spa-row {
  cursor: pointer;
  transition: background 140ms ease;
  animation: row-fade-in 680ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
/* Hover background extends ~22px beyond the row's first and last cells via
   horizontal box-shadows, so it doesn't slice flush with the photo edge. */
.spa-row:hover { background: rgba(184, 154, 102, 0.10); }
.spa-row:hover td:first-child {
  box-shadow: -40px 0 0 0 rgba(184, 154, 102, 0.10);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}
.spa-row:hover td:last-child {
  box-shadow: 40px 0 0 0 rgba(184, 154, 102, 0.10);
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}
.spa-row td {
  padding: 22px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
}
.spa-row:last-child td { border-bottom: none; }

/* Rank */
.rank-cell { padding-left: 24px !important; width: 70px; }
.rank-hash {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  margin-right: 2px;
  vertical-align: 4px;
}
.rank-num {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--plum);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Photo */
.photo-cell { width: 200px; padding-left: 0 !important; }
.photo-frame {
  position: relative;
  width: 180px; height: 135px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--camel-pale);
  border: 1px solid var(--border-soft);
}
.top-pick-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--plum);
  color: var(--bg-primary);
  font-family: 'Manrope', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 2;
  white-space: nowrap;
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Spa name */
.spa-name-cell { width: 460px; padding-right: 24px !important; }

.spa-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--plum);
  color: var(--bg-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.rank-badge-hash {
  font-size: 10px;
  opacity: 0.55;
  margin-right: 1px;
}

/* Vibes ↔ hover actions: same grid cell, swap opacity on row hover */
.vibes-actions-zone {
  display: grid;
  margin-top: 10px;
}
.vibes-actions-zone > .vibe-chips,
.vibes-actions-zone > .spa-row-actions {
  grid-area: 1 / 1;
  margin-top: 0;
  transition: opacity 180ms ease;
}
.vibes-actions-zone > .vibe-chips { opacity: 1; }
.vibes-actions-zone > .spa-row-actions { opacity: 0; pointer-events: none; }
.spa-row:hover .vibes-actions-zone > .vibe-chips { opacity: 0; pointer-events: none; }
.spa-row:hover .vibes-actions-zone > .spa-row-actions { opacity: 1; pointer-events: auto; }

/* Hover-action zone: hotel-stay pill and the action buttons share the same
   slot, layered on top of each other. On row hover the hotel-stay fades out
   and the buttons fade in so the buttons sit aligned with the location line. */
.row-actions-zone {
  display: grid;
  margin-top: 10px;
  min-height: 24px;
}
.row-actions-zone > .hotel-stay,
.row-actions-zone > .spa-row-actions {
  grid-area: 1 / 1;
  justify-self: start;
  margin-top: 0;
  transition: opacity 180ms ease;
}
.spa-row-actions {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
  opacity: 0;
  pointer-events: none;
}
.spa-row:hover .row-actions-zone > .hotel-stay { opacity: 0; pointer-events: none; }
.spa-row:hover .row-actions-zone > .spa-row-actions { opacity: 1; pointer-events: auto; }
.row-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--plum);
  background: var(--plum);
  color: var(--bg-primary);
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.row-action:hover { background: var(--plum-hover); border-color: var(--plum-hover); }
.spa-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0;
}
/* Meta pills row — always visible. */
.meta-pills {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
/* Location pill is a Google Maps link — reset anchor styling. */
.location-pill {
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.location-pill:hover {
  background: var(--bg-tertiary);
  color: var(--ink);
}
.location-pill .loc-pin-hover { display: none; }
.location-pill:hover .loc-pin-text { display: none; }
.location-pill:hover .loc-pin-hover { display: inline; }
/* Tagline and row-action buttons share the same slot — buttons replace
   the italic tagline on row hover. Location / price / hotel-stay
   stay visible above. */
.tagline-actions-zone {
  display: grid;
  margin-top: 8px;
  min-height: 22px;
}
.tagline-actions-zone > .spa-tagline,
.tagline-actions-zone > .spa-row-actions {
  grid-area: 1 / 1;
  margin-top: 0;
  justify-self: start;
  align-self: center;
  transition: opacity 180ms ease;
}
.spa-row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  pointer-events: none;
}
.spa-row:hover .tagline-actions-zone > .spa-tagline { opacity: 0; pointer-events: none; }
.spa-row:hover .tagline-actions-zone > .spa-row-actions { opacity: 1; pointer-events: auto; }
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  background: var(--bg-secondary);
  color: var(--ink-mid);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.meta-pill .price {
  color: var(--ink);
  font-weight: 500;
}
.meta-pill .meta-dot {
  color: var(--ink-soft);
  opacity: 0.8;
}
.loc-pin {
  color: var(--ink-mid);
  flex-shrink: 0;
}
.hotel-stay-pill svg { flex-shrink: 0; }
.hotel-stay-pill {
  background: var(--score-strong-bg);
  color: var(--score-strong-text);
}
.price-pill .price { color: var(--ink); font-weight: 500; }

/* Mobile-only stats block inside the spa detail modal. Hidden on
   desktop — the desktop view already exposes scores in the row/table. */
.modal-mobile-stats { display: none; }

/* Access caveat block in the modal — used for members-only / hotel-guest-only
   facilities. Subtle muted info card, with an info-circle icon. */
.access-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 14px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-mid);
  letter-spacing: 0.005em;
}
.access-note svg {
  color: var(--ink-mid);
  flex-shrink: 0;
  margin-top: 2px;
}

/* One-line italic tagline between meta and hotel-stay */
.spa-tagline {
  margin-top: 8px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: 0.005em;
  max-width: 320px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vibe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
  align-content: flex-start;
}
.vibe-chip {
  font-size: 10px;
  padding: 2px 7px;
  background: var(--bg-secondary);
  color: var(--plum);
  border: none;
  border-radius: 999px;
  letter-spacing: 0;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hotel-stay indicator — pale-sage pill with deeper-green icon badge */
.hotel-stay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 3px 11px 3px 3px;
  background: var(--score-strong-bg);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--score-strong-text);
  letter-spacing: 0.01em;
  font-weight: 500;
  transition: opacity 180ms ease;
}
.spa-row:hover .hotel-stay { opacity: 0; pointer-events: none; }
.hotel-stay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: var(--score-strong-bar);
  color: var(--bg-tertiary);
}

/* Overall */
.overall-cell {
  width: 100px;
  text-align: left;
}
.overall-num {
  font-family: 'Outfit', sans-serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--plum);
  line-height: 1;
  letter-spacing: -0.02em;
}
.overall-stars { margin-top: 8px; line-height: 1; }
.overall-visited {
  margin-top: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.visit-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 500;
}
.visit-self .visit-letter    { background: var(--visit-self-bg);    color: var(--visit-self-text); }
.visit-invited .visit-letter { background: var(--visit-invited-bg); color: var(--visit-invited-text); }
.visit-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* Metric cell */
.metric-cell {
  width: 140px;
  padding-right: 16px !important;
}
.metric-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.score-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  padding: 0 8px;
  border-radius: 7px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}
.score-square.tier-excellent { background: var(--score-strong-bg); color: var(--score-strong-text); }
.score-square.tier-good      { background: var(--score-good-bg);   color: var(--score-good-text); }
.score-square.tier-weak      { background: var(--score-weak-bg);   color: var(--score-weak-text); }
.score-square.score-empty {
  background: transparent;
  color: var(--ink-soft);
  border: 1px dashed var(--border-soft);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  position: relative;
}
.score-square.score-empty .strike-line {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 1px;
  background: var(--ink-soft);
  transform: translateY(-0.5px);
  opacity: 0.55;
}
.metric-top.metric-empty .metric-label { color: var(--ink-soft); }
.empty-note {
  font-size: 10.5px;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 8px;
  letter-spacing: 0.01em;
}

/* ===== COUNTRY FILTER (chips row) ===== */
.country-row { margin-bottom: 22px; }
.country-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  height: 52px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-mid);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
  white-space: nowrap;
}
.country-chip:hover { color: var(--ink); border-color: var(--ink-mid); }
.country-chip.active {
  background: var(--plum);
  color: var(--bg-primary);
  border-color: var(--plum);
}
.flag-icon {
  display: inline-block;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  border: 0.5px solid rgba(42, 26, 48, 0.18);
}

.metric-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
}

.sub-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sub-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sub-bar-label {
  width: 52px;
  font-size: 9px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

/* Sub-score bar — single rounded track with a proportional fill.
   Replaces the old 5-pill row: thicker, cleaner, easier to read at a glance. */
.score-bar {
  display: inline-block;
  width: 72px;
  height: 7px;
  background: var(--bar-track);
  border-radius: 999px;
  overflow: hidden;
  vertical-align: middle;
  flex-shrink: 0;
}
.score-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 220ms ease;
}
.score-bar.bar-excellent .score-bar-fill { background: var(--score-strong-bar); }
.score-bar.bar-good      .score-bar-fill { background: var(--score-good-bar); }
.score-bar.bar-weak      .score-bar-fill { background: var(--score-weak-bar); }
.score-bar-empty {
  background: transparent;
  border: 1px dashed var(--border);
  height: 7px;
}

/* notVisited treatments — muted row, em-dash placeholders, outline pills */
.spa-row-nv { opacity: 0.78; }
.spa-row-nv .spa-name { opacity: 1; }
.spa-row:hover.spa-row-nv { opacity: 0.92; }
.rank-badge.rank-empty {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--ink-soft);
  padding: 0 12px;
}
.score-square.score-em,
.overall-num.overall-em {
  color: var(--ink-soft);
}
.score-square.score-em {
  background: transparent;
  border: 1px dashed var(--border-soft);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
}

/* "not visited" label that replaces the overall score number */
.overall-nv-text {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.2;
  max-width: 90px;
}
.overall-nv-text-large {
  font-size: 14px;
  text-align: right;
}

/* Not-visited pill (centered, under CTAs in modal) */
.not-visited-block {
  display: flex;
  justify-content: center;
  margin: 6px 0 22px;
}
.not-visited-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-soft);
  color: var(--ink-mid);
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.not-visited-pill svg { color: var(--ink-soft); }

/* Sub-criterion: small number box (rendered inline next to metric label) */
.sub-num-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  margin-left: 4px;
}

/* Sub-criterion: number (quantity) — stacked variant, legacy */
.sub-number-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2px;
}
.sub-number {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.sub-number-label {
  font-size: 9px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

/* Sub-criterion: descriptor chips (atmosphere, pool types) */
.sub-descriptor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 1px;
}
.sub-descriptor {
  font-size: 9.5px;
  padding: 2px 7px;
  background: var(--bg-secondary);
  color: var(--plum);
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  line-height: 1.25;
}

.empty-row {
  padding: 60px 24px !important;
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
}

/* ===== LEGEND ===== */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  padding: 20px 8px 4px;
  border-top: 1px solid var(--border-soft);
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.legend-excellent { background: var(--score-strong-bar); }
.legend-good { background: var(--score-good-bar); }
.legend-weak { background: var(--score-weak-bar); }

.legend-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px; height: 13px;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 500;
}
.legend-self    { background: var(--visit-self-bg);    color: var(--visit-self-text); }
.legend-invited { background: var(--visit-invited-bg); color: var(--visit-invited-text); }
.legend-sep {
  width: 0;
  height: 14px;
  border-left: 1px dashed var(--border-soft);
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.footer-line { font-family: 'Manrope', sans-serif; }
.footer-dim { color: var(--ink-fade); font-size: 10.5px; }
.footer-disclaimer {
  margin: 14px 0 0;
  max-width: 540px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
}

/* Missing-spa CTA card — appears under the list */
.missing-card {
  margin-top: 28px;
  margin-bottom: 8px;
  padding: 32px 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.missing-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 280px;
}
.missing-card-heading {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.missing-card-sub {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--ink-mid);
  letter-spacing: 0.005em;
}

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(61, 26, 26, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
  animation: fade-in 200ms ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--cream);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  animation: rise 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-small { max-width: 480px; width: 100%; padding: 36px 36px 28px; }
.modal-large { max-width: 880px; width: 100%; }

.modal-close {
  position: sticky;
  top: 18px;
  margin-left: auto;
  margin-right: 18px;
  margin-top: 18px;
  margin-bottom: -52px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 140ms ease, transform 140ms ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(61, 26, 26, 0.08);
}
.modal-close:hover { background: var(--row-hover); transform: scale(1.05); }
.modal-close svg { width: 20px; height: 20px; }

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.modal-body {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.65;
  margin: 0 0 22px;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
}
.modal-body-name {
  margin-top: -8px;
  margin-bottom: 22px;
  color: var(--ink);
  font-style: italic;
  font-size: 15px;
}
.modal-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== ADD-SPA FORM ===== */
.add-spa-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.form-input {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: var(--ink-soft); opacity: 0.65; }
.form-input:hover { border-color: var(--ink-soft); }
.form-input:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--plum) 18%, transparent);
}
.form-input:disabled { opacity: 0.55; cursor: not-allowed; }
.form-textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}
.form-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in oklab, #c1383a 8%, var(--bg-primary));
  color: #8a2a2c;
  font-size: 13px;
  line-height: 1.4;
}
.form-error svg { flex-shrink: 0; margin-top: 1px; }
.form-fallback {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 4px 0 0;
}
.form-fallback a { color: var(--plum); text-decoration: underline; text-underline-offset: 2px; }

.form-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
}
.form-state-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  background: color-mix(in oklab, var(--plum) 12%, var(--bg-primary));
  margin-bottom: 4px;
}
.form-state-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.form-state-sub {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.5;
}
.form-state .modal-cta-row { margin-top: 8px; }

@media (max-width: 720px) {
  .add-spa-form { gap: 12px; }
  .form-input { font-size: 16px; padding: 12px 14px; } /* 16px prevents iOS zoom on focus */
  .form-textarea { min-height: 110px; }
  .modal-cta-row .btn { width: 100%; justify-content: center; }
}

/* ===== SPA MODAL — full-width image + simplified body ===== */
.modal-large { max-width: 760px; width: 100%; }

.modal-image-full {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--camel-pale);
  margin-top: -44px;  /* tuck under sticky X */
  border-radius: 0;
}
.modal-image-full img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.modal-top-pick-tag { top: 16px; left: 16px; font-size: 10px; padding: 4px 10px; }

.modal-body-v2 { padding: 28px 36px 32px; }

.modal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.modal-header-text { flex: 1; min-width: 0; }
.modal-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.modal-spa-name {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.modal-meta-line {
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--ink-mid);
  font-weight: 500;
}
.modal-meta-line .sep { margin: 0 8px; color: var(--ink-fade); }

.modal-overall-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  padding-top: 4px;
}
.modal-overall-num {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--plum);
  line-height: 1;
  letter-spacing: -0.03em;
}
.modal-overall-stars { margin-top: 8px; line-height: 0; }
.modal-overall-stars .star { width: 13px; height: 13px; }
.modal-overall-stars .star svg { width: 13px; height: 13px; }
.modal-overall-label {
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 6px;
}

.modal-cta-block {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.modal-cta-block .btn {
  flex: 1;
  min-width: 160px;
  padding: 12px 22px;
  font-size: 13px;
}

.modal-blurb {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 24px;
  font-style: italic;
}

/* Practical info — extended with hours grid */
.modal-practical-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.practical-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 12px;
  line-height: 1.4;
}
.practical-row-stack { align-items: flex-start; }
.practical-label {
  width: 110px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 2px;
}
.practical-value {
  color: var(--ink);
  font-size: 13px;
  flex: 1;
}
.practical-link {
  color: var(--plum);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 0.5px solid var(--plum);
  padding-bottom: 1px;
  transition: color 140ms ease, border-color 140ms ease;
  word-break: break-all;
}
.practical-link:hover { color: var(--plum-hover); border-bottom-color: var(--plum-hover); }

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
  flex: 1;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--ink);
}
.hours-row.hours-today {
  background: var(--plum-pale);
  color: var(--plum);
  font-weight: 500;
}
.hours-day { color: var(--ink-mid); }
.hours-row.hours-today .hours-day { color: var(--plum); }
.hours-val { font-family: 'Outfit', sans-serif; font-size: 12px; }
.hours-closed { color: var(--ink-soft); font-style: italic; }

/* ===== FADE ANIMATIONS ===== */
@keyframes app-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.app {
  animation: app-fade-in 1000ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.modal-backdrop {
  animation: fade-in 380ms ease;
}
@keyframes modal-rise {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal {
  animation: modal-rise 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Practical info card — below blurb in modal left column */
.modal-practical-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.practical-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 12px;
  line-height: 1.4;
}
.practical-label {
  width: 110px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.practical-value {
  color: var(--ink);
  font-size: 13px;
}
.practical-link {
  color: var(--plum);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 0.5px solid var(--plum);
  padding-bottom: 1px;
  transition: color 140ms ease, border-color 140ms ease;
  word-break: break-all;
}
.practical-link:hover { color: var(--plum-hover); border-bottom-color: var(--plum-hover); }

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 40px 32px;
  border-top: 1px solid var(--border-soft);
  padding-top: 28px;
}
.modal-gallery-item {
  border-radius: 8px;
  overflow: hidden;
  background: var(--camel-pale);
  aspect-ratio: 4 / 3;
}
.modal-gallery-item:first-child { /* no special spanning anymore — equal 4-col grid */ }
.modal-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== RESPONSIVE ===== */
/* Between mobile (≤720px) and desktop, the table simply scrolls horizontally
   via .table-scroll's overflow-x:auto — no sticky columns. Sticky columns
   were overlapping the Overall column on intermediate widths. */

@media (max-width: 720px) {
  .app { padding: 20px 16px 32px; }
  /* Header on mobile: grid → simple column. Brand on top, then the
     About + Add Spa pair tucked under the wordmark, with the category
     toggle filling the row below. */
  .header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .header .brand { order: 1; align-self: center; }
  .header .header-center { order: 2; }
  /* Hide About + Add Spa on mobile — they live in the footer / are
     accessible from the missing-card CTA. Keeps the top tight. */
  .header .header-actions { display: none; }
  /* Filter bar on mobile: strip the pill chrome so filters breathe,
     and stack each group as Label-on-top / chips-below. Both Spa type
     and Country are visible; chips wrap tightly across the width. */
  .filter-bar {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 4px 0 8px;
    gap: 14px;
    margin-bottom: 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar > .filter-divider,
  .filter-bar > .filter-search { display: none; }
  .filter-bar > .filter-group {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .filter-bar .filter-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .filter-bar .chip-row {
    flex-wrap: nowrap;
    gap: 3px;
    width: 100%;
  }
  .filter-bar .filter-chip {
    padding: 6px 7px;
    font-size: 12px;
    gap: 4px;
  }
  .filter-bar .filter-chip-with-icon { gap: 5px; }
  .filter-bar .filter-chip-with-icon svg { width: 12px; height: 12px; }
  .brand-tag { display: none; }
  .controls { flex-direction: column; align-items: stretch; gap: 10px; }
  .category-pill { width: 100%; min-width: 0; }
  .category-segment { padding: 11px 8px; font-size: 13px; }
  .search-wrap { min-width: 0; max-width: none; width: 100%; }
  .lang-pill { align-self: flex-start; }

  /* ===== Mobile card layout: rows become standalone cards ===== */
  .table-scroll {
    width: 100%; padding: 0;
    left: auto; right: auto;
    margin-left: 0; margin-right: 0;
    overflow: visible;
  }
  .spa-table { min-width: 0; display: block; }
  .spa-table thead { display: none; }
  .spa-table tbody { display: block; }
  .spa-row {
    display: block;
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    margin-bottom: 14px;
    overflow: hidden;
    padding: 0;
  }
  .spa-row td { display: block; padding: 0 !important; border: none !important; vertical-align: top; }
  .spa-row .photo-cell { width: 100%; }
  .photo-frame {
    width: 100%; height: 200px;
    border-radius: 0;
    border: none;
  }
  .spa-row .spa-name-cell { width: 100%; padding: 16px 16px 14px !important; }
  .spa-name-row { gap: 10px; align-items: center; }
  .rank-badge { min-width: 32px; height: 26px; font-size: 13px; }
  .spa-name { font-size: 22px !important; line-height: 1.1; }
  .spa-meta { font-size: 12.5px; margin-top: 6px; }
  .vibes-actions-zone { margin-top: 12px; }

  /* Overall score floats top-right of the card, overlaid on the image corner */
  .spa-row .overall-cell {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto;
    z-index: 3;
    background: rgba(247, 244, 237, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 8px 12px !important;
    border-radius: 12px;
    text-align: center;
  }
  .spa-row .overall-num { font-size: 24px; }
  .spa-row .overall-stars { margin-top: 4px; line-height: 0; }
  .spa-row .overall-visited { font-size: 9.5px; margin-top: 5px; letter-spacing: 0.05em; }

  /* Hide metric/score columns on mobile — visible in modal */
  .spa-row .metric-cell { display: none !important; }

  /* Hover actions don't make sense on touch — show vibes always, hide buttons */
  .vibes-actions-zone > .vibe-chips { opacity: 1 !important; }
  .vibes-actions-zone > .spa-row-actions { display: none; }
  .spa-row:hover .hotel-stay { opacity: 1; pointer-events: auto; }
  .hotel-stay { margin-top: 10px; }

  .legend { font-size: 10.5px; gap: 14px; }
  .missing-card { padding: 22px 20px; }
  .missing-card-heading { font-size: 20px; }
  .missing-card-sub { font-size: 14px; }

  .modal-spa-name { font-size: 34px; }
  .modal-grid { grid-template-columns: 1fr; gap: 28px; padding: 24px 22px 30px; }
  .modal-right-col { padding-right: 0; }
  .modal-image { aspect-ratio: 4/3; }
  .modal-small { padding: 28px 24px 24px; }
  .modal-gallery { grid-template-columns: 1fr 1fr; margin: 0 22px 30px; }
  .modal-score-row { grid-template-columns: 48px 1fr; }
  .modal-score-row .score-square { min-width: 48px; }

  .modal-mobile-stats {
    display: flex;
    flex-direction: column;
    margin: 4px 0 8px;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
  }
  .mobile-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .mobile-stat-row:last-child { border-bottom: none; }
  .mobile-stat-label {
    font-size: 14px;
    color: var(--ink);
    letter-spacing: 0.005em;
  }
  .mobile-stat-overall .mobile-stat-label { font-weight: 600; }
  .mobile-stat-overall .score-square { font-weight: 600; }
  .modal-mobile-stats .score-square { min-width: 44px; height: 30px; font-size: 14px; }

  /* Full-bleed modal on mobile — strip backdrop padding so the spa
     detail occupies the whole viewport, edge to edge. The small modal
     (About / Add spa) stays centered as a card. */
  .modal-backdrop:has(.modal-large) {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }
  .modal-large {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  .modal-image-full { margin-top: 0; }  /* don't tuck under the close on mobile */
  .modal-body-v2 { padding: 24px 20px 32px; }

  /* Sticky close button — sits in the top-right with comfortable
     breathing room from the top edge, painted plum so it reads as the
     primary action over any image. */
  .modal-large .modal-close {
    position: fixed;
    top: 18px;
    right: 18px;
    margin: 0;
    width: 44px;
    height: 44px;
    background: var(--plum);
    color: var(--bg-primary);
    border: none;
    box-shadow: 0 4px 14px rgba(42, 26, 48, 0.32);
    z-index: 60;
  }
  .modal-large .modal-close:hover {
    background: var(--plum-hover);
    color: var(--bg-primary);
  }
}

/* ===== Pim's tip ===== */
.spa-tip { position: relative; }
.tip-by { font-family: 'Manrope', sans-serif; font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: 0.02em; color: var(--plum); }
.tip-more { position: absolute; right: 0; bottom: 0; padding: 0 0 0 28px; border: 0; cursor: pointer;
  background: linear-gradient(to right, transparent, var(--bg-primary) 55%); font-family: 'Manrope', sans-serif; font-style: normal;
  font-size: 12px; font-weight: 500; color: var(--plum); line-height: 1.35; }
.tip-more:hover { text-decoration: underline; }
.spa-tip.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.spa-tip.is-open .tip-more { position: static; padding: 0 0 0 8px; background: none; }
.tagline-actions-zone.has-more { grid-template-rows: auto auto; row-gap: 6px; }
.tagline-actions-zone.has-more > .spa-tagline { grid-area: 1 / 1; }
.tagline-actions-zone.has-more > .spa-row-actions { grid-area: 2 / 1; }
.spa-row:hover .tagline-actions-zone.has-more > .spa-tagline { opacity: 1; pointer-events: auto; }
/* ===== ALL-SPAS additions ===== */
.tag-stack { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tag-stack .top-pick-tag { position: static; }
.type-pill { font-size: 11px; letter-spacing: 0.02em; color: var(--ink-mid); }
.type-pill.type-city { background: rgba(94,42,96,0.08); }
.overall-catrank { font-size: 11px; letter-spacing: 0.04em; color: var(--ink-soft); margin-top: 2px; text-transform: lowercase; }
@media (max-width: 720px) { .category-pill { min-width: 0; } .category-segment { padding: 11px 4px; font-size: 12.5px; } }


/* ===== Static-site additions (pages, SEO content, language) ===== */
.app { animation-duration: 450ms; }
.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; }

/* header links */
a.brand { text-decoration: none; color: inherit; }
a.brand:focus-visible, .category-segment:focus-visible, .lang-switch a:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
a.category-segment { text-decoration: none; }
.category-pill.no-active .category-segment { color: var(--ink-mid); }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.header-actions { flex-wrap: wrap; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-secondary); }
.lang-switch a { font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; padding: 6px 10px; border-radius: 999px; color: var(--ink-mid); text-decoration: none; }
.lang-switch a.active { background: var(--plum); color: var(--bg-primary); }
.lang-switch a:not(.active):hover { color: var(--ink); }

/* rows */
h3.spa-name-h { margin: 0; font: inherit; }
a.spa-name { text-decoration: none; color: var(--ink); }
a.spa-name:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.photo-frame { display: block; }
.spa-row { scroll-margin-top: 24px; }
.spa-row:target { background: var(--row-hover); }
.overall-catrank { font-family: 'Manrope', sans-serif; }
.type-pill.type-hotel { background: rgba(163, 133, 99, 0.18); }

/* page intro */
.page-intro { max-width: 760px; margin: 4px 0 26px; }
.page-h1 { font-family: 'Playfair Display', serif; font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 12px; text-wrap: balance; }
.page-lead { font-family: 'Manrope', sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); margin: 0 0 8px; max-width: 68ch; }
.page-lead a { color: var(--plum); }
.page-updated { font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }

/* sections under the table */
.content-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.content-section { background: var(--bg-tertiary); border: 1px solid var(--border-soft); border-radius: 18px; padding: 26px 30px; min-width: 0; }
.content-sections .qa { grid-column: 1 / -1; }
.section-h2 { font-family: 'Playfair Display', serif; font-weight: 500; font-size: 24px; line-height: 1.2; color: var(--ink); margin: 0 0 16px; }
.section-h2 .count { font-family: 'Manrope', sans-serif; font-size: 13px; color: var(--ink-soft); font-weight: 500; margin-left: 6px; }
.qa-item + .qa-item { border-top: 1px solid var(--border-soft); margin-top: 14px; padding-top: 14px; }
.qa-item h3, .how-item h3 { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 15px; color: var(--ink); margin: 0 0 6px; }
.qa-item p, .how-item p { font-family: 'Manrope', sans-serif; font-size: 14px; line-height: 1.6; color: var(--ink-mid); margin: 0; max-width: 72ch; }
.qa-item a, .changelog a, .more-links a, .footer-links a, .crumbs a, .swim-table a { color: var(--plum); text-decoration: none; }
.qa-item a:hover, .changelog a:hover, .more-links a:hover, .footer-links a:hover, .crumbs a:hover, .swim-table a:hover { text-decoration: underline; }
.how-grid { display: grid; gap: 14px; }
.more-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-family: 'Manrope', sans-serif; font-size: 14px; }
.changelog ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-family: 'Manrope', sans-serif; font-size: 14px; }
.changelog .log-date { display: inline-block; min-width: 76px; color: var(--ink-soft); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.changelog .log-score { color: var(--ink-mid); font-variant-numeric: tabular-nums; margin-left: 4px; }

/* footer */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; font-size: 12px; letter-spacing: 0.02em; font-family: 'Manrope', sans-serif; }

/* breadcrumbs */
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-family: 'Manrope', sans-serif; font-size: 13px; color: var(--ink-soft); }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--ink-soft); }

/* spa page = the old modal, as a page */
.spa-page { max-width: 880px; margin: 0 auto; }
.spa-page-card.modal { max-height: none; overflow: hidden; animation: none; margin: 0 auto; }
.spa-page-card .modal-spa-name { margin: 0; }
.modal-tag-stack { top: 16px; left: 16px; }
.spa-page-tip { font-family: 'Playfair Display', serif; font-style: italic; font-size: 18px; line-height: 1.45; color: var(--ink); margin: 20px 0 6px; }
.spa-page-tip .tip-by { font-size: 13px; }
.spa-page-h2 { font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin: 26px 0 12px; }
.score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; margin-bottom: 24px; }
.score-grid .metric-block { width: auto; padding: 14px 16px !important; background: var(--bg-primary); border: 1px solid var(--border-soft); border-radius: 14px; }
.spa-neighbours { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin: 20px 0 8px; font-family: 'Manrope', sans-serif; }
.neighbour { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--border-soft); background: var(--bg-tertiary); text-decoration: none; color: var(--ink); min-width: 0; }
.neighbour span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.neighbour strong { font-weight: 500; font-size: 14px; }
.neighbour.next { text-align: right; }
.neighbour.back { text-align: center; }
.neighbour:hover { border-color: var(--plum); }

/* swimwear page */
.swim-group { margin-bottom: 20px; }
.swim-table { width: 100%; border-collapse: collapse; font-family: 'Manrope', sans-serif; font-size: 14px; }
.swim-table th, .swim-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.swim-table thead th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.swim-table tbody th { font-weight: 600; white-space: nowrap; }
.swim-table td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--ink-soft); }

/* about */
.about-page { max-width: 720px; margin: 8px auto 0; }
.about-count { font-family: 'Manrope', sans-serif; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 18px; }
.about-p { font-family: 'Manrope', sans-serif; font-size: 16px; line-height: 1.7; color: var(--ink); margin: 0 0 14px; }

/* badges */
.badge-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; margin: 20px 0; }
.badge-item { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--bg-tertiary); }
.badge-item img { max-width: 100%; height: auto; }
.badge-meta { display: grid; gap: 8px; font-family: 'Manrope', sans-serif; font-size: 14px; }
.copy-box { display: flex; gap: 8px; align-items: flex-start; }
.copy-box textarea { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-primary); color: var(--ink); resize: vertical; }
.badge-mail .copy-box textarea { font-family: 'Manrope', sans-serif; font-size: 14px; min-height: 220px; }

@media (max-width: 900px) {
  .content-sections { grid-template-columns: minmax(0, 1fr); }
  .score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .page-lead { font-size: 15px; }
  .content-section { padding: 20px 18px; }
  .spa-neighbours { grid-template-columns: 1fr; }
  .neighbour.next, .neighbour.back { text-align: left; }
  .score-grid { grid-template-columns: minmax(0, 1fr); }
  .badge-list { grid-template-columns: minmax(0, 1fr); }
  .lang-switch a { padding: 6px 9px; }
}
@media (prefers-reduced-motion: reduce) { .app, .spa-row, .modal { animation: none !important; } }
.spa-page-card .modal-image-full { margin-top: 0; }
.tip-more { padding-left: 40px; background: linear-gradient(to right, transparent, var(--bg-primary) 45%); }
.badge-mail summary { cursor: pointer; color: var(--plum); font-size: 13px; margin-top: 4px; }
.badge-mail .copy-box { margin-top: 8px; }
.badge-mail .copy-box textarea { font-family: 'Manrope', sans-serif; font-size: 13px; min-height: 260px; }
/* audit fixes: no opacity-from-zero on load (LCP), readable contrast, underlined text links */
.app, .spa-row { animation: none !important; }
:root { --ink-mid: #665B4F; --ink-soft: #766A54; --ink-fade: #766A54; }
.qa-item p a, .page-lead a, .about-p a { text-decoration: underline; text-underline-offset: 2px; }
.changelog li a, .more-links a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(61, 26, 64, 0.35); }

/* 'New' as a small superscript tag on the name, like a degree sign */
sup.name-new { display: inline-block; vertical-align: top; position: relative; top: 0.05em; margin-left: 5px; padding: 2px 6px; border-radius: 999px; background: var(--plum); color: var(--bg-primary); font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2; }
.modal-spa-name sup.name-new { font-size: 11px; top: 0.25em; }

/* compact rows: location + price + website icon, wider name cell */
@media (min-width: 721px) { .spa-name-cell { width: 620px; } .spa-table { min-width: 1640px; } .spa-table thead th.th-spa { width: 620px; } }
.tagline-actions-zone { min-height: 0; }
.spa-row:hover .tagline-actions-zone > .spa-tagline { opacity: 1 !important; pointer-events: auto !important; }
a.row-website { display: inline-flex; align-items: center; justify-content: center; padding: 4px 11px; border-radius: 999px; background: var(--bg-secondary); color: var(--ink-mid); font-size: 12px; font-weight: 500; text-decoration: none; }
a.row-website:hover { background: var(--plum); color: var(--bg-primary); }
a.row-website:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
sup.name-new { background: #4F7A3A; color: #fff; }
/* just added line, back link, hover carousel */
/* just added: label + green pills (name and score) */
.page-new { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 6px; }
.new-label { font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #3F6A2D; }
.new-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.new-pill { display: inline-flex; align-items: center; gap: 9px; padding: 4px 5px 4px 13px; border-radius: 999px; background: #E4ECDA; border: 1px solid rgba(79,122,58,0.28); color: #2D4A21; font-family: 'Manrope', sans-serif; font-size: 13.5px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background 120ms; }
.new-pill:hover { background: #D6E3C9; }
.new-pill:focus-visible { outline: 2px solid #4F7A3A; outline-offset: 2px; }
.np-score { display: inline-block; min-width: 2.4em; text-align: center; padding: 4px 8px; border-radius: 999px; background: #4F7A3A; color: #fff; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.spa-page .back-link { margin-left: max(0px, calc((100% - 760px) / 2)); }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-tertiary); color: var(--ink); font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; text-decoration: none; }
.back-link:hover { border-color: var(--plum); color: var(--plum); }
.row-photo { position: relative; display: block; width: 100%; height: 100%; }
.row-photo img { display: block; }
.row-photo-alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: rowfade 260ms ease; }
@keyframes rowfade { from { opacity: 0; } to { opacity: 1; } }

/* ===== Mobile pass ===== */
.row-mini { display: none; }
@media (max-width: 720px) {
  .header { position: relative; }
  .header .brand { align-self: flex-start; margin-left: 0; }
  .brand-name { font-size: 34px; }
  .header .header-actions { display: flex; position: absolute; top: 2px; right: 0; }
  .header .header-actions .btn { display: none; }
  .page-intro { margin: 0 0 14px; }
  .page-h1 { font-size: 26px; margin-bottom: 8px; }
  .page-lead { font-size: 15px; line-height: 1.5; margin-bottom: 6px; }
  .page-new { margin: 12px 0 4px; gap: 6px 8px; }
  .new-label { flex-basis: 100%; }
  .new-pill { font-size: 13px; }
  .page-updated { font-size: 10px; }
  .filter-bar { gap: 6px; padding: 0 0 6px; margin-bottom: 10px; }
  .filter-bar > .filter-group { flex-direction: row; align-items: center; gap: 8px; }
  .filter-bar .filter-label { font-size: 10px; min-width: 44px; }
  .filter-bar .chip-row { flex-wrap: wrap; gap: 4px; flex: 1; }
  .back-link { margin-bottom: 10px; }
  .crumbs ol { margin-bottom: 10px; }
  .meta-pills { gap: 5px; }
  .meta-pill, a.row-website { font-size: 11.5px; padding: 4px 9px; }
  .tagline-actions-zone { margin-top: 6px; }
  .row-mini { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
  .mini { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
  .mini b { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 26px; border-radius: 8px; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 13px; background: var(--score-good-bg); color: var(--score-good-text); }
  .mini b.tier-excellent { background: var(--score-strong-bg); color: var(--score-strong-text); }
  .mini b.tier-weak { background: var(--score-weak-bg); color: var(--score-weak-text); }
  .mini-omit b { background: transparent; border: 1px dashed var(--border); }
  .mini small { font-family: 'Manrope', sans-serif; font-size: 9.5px; letter-spacing: 0.02em; color: var(--ink-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .photo-frame { height: 190px; }
  .spa-row .overall-cell { top: 10px; right: 10px; padding: 6px 10px !important; }
  /* swimwear table as stacked rows */
  .swim-table, .swim-table tbody, .swim-table tr { display: block; width: 100%; }
  .swim-table thead { display: none; }
  .swim-table tr { padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
  .swim-table th, .swim-table td { display: block; padding: 0; border: 0; white-space: normal; }
  .swim-table tbody th { font-size: 15px; }
  .swim-table td:nth-child(2) { color: var(--ink-mid); font-size: 13px; }
  .swim-table td:nth-child(3) { margin-top: 2px; }
  .swim-table td:nth-child(4)::before { content: 'Score '; color: var(--ink-mid); font-size: 12px; }
  .swim-table td:nth-child(4) { font-size: 13px; margin-top: 2px; }
  .content-section { padding: 18px 16px; }
  .section-h2 { font-size: 21px; }
}
/* not-visited rows: fade the photo, keep the text readable */
.spa-row-nv { opacity: 1; }
.spa-row-nv .photo-frame { opacity: 0.6; }
.spa-row-nv .spa-name, .spa-row-nv .meta-pill { color: var(--ink-mid); }
.spa-row-nv .spa-name { color: var(--ink); }

/* ===== Tabs: short labels on mobile, filters hidden on mobile ===== */
.category-segment .seg-short { display: none; }
@media (max-width: 720px) {
  .category-segment .seg-long { display: none; }
  .category-segment .seg-short { display: inline; }
  .category-pill { padding: 3px; max-width: 360px; }
  .category-thumb { top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 3)); }
  .category-segment { padding: 8px 6px; font-size: 14px; min-height: 36px; }
  .header-center { margin-top: 2px; }
  .page-intro { margin-top: 4px; }
}

/* ===== Unknown scores: a question mark instead of a strike-through ===== */
.score-square.score-empty.score-unknown { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 14px; color: var(--ink-mid); }
.nowrap { white-space: nowrap; }
@media (max-width: 720px) {
  .mini-omit b.mini-unknown { color: var(--ink-mid); font-weight: 600; }
}

/* ===== Desktop: the list may run past the centred column on the right (left edge stays aligned with the logo) ===== */
@media (min-width: 721px) {
  body { overflow-x: clip; }
  .table-scroll { width: calc(50% + 50vw - 40px); max-width: none; }
}

/* ===== Mobile intro: no balanced title (it left a ragged right edge), tighter lead ===== */
@media (max-width: 720px) {
  .page-h1 { font-size: 27px; line-height: 1.15; letter-spacing: -0.015em; text-wrap: wrap; text-wrap: pretty; }
  .page-lead { font-size: 14.5px; line-height: 1.5; text-wrap: wrap; text-wrap: pretty; }
  .hide-mobile { display: none; }
}

/* ===== Mobile intro v2: one short lead, second sentence as quiet line ===== */
@media (max-width: 720px) {
  .page-h1 { font-size: 25px; line-height: 1.16; }
  .page-lead { font-size: 16px; line-height: 1.45; color: var(--ink); }
  .page-lead .lead-more { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-mid); }
}


/* ===== Filters v2: one row of tags with icons ===== */
.filter-bar { display: block; padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.filter-bar .chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; }
.filter-bar .filter-divider { margin: 0 8px; height: 20px; }
@media (min-width: 769px) {
  .filter-bar .chip-row { gap: 8px; max-width: 980px; }
  .filter-bar .filter-chip { padding: 8px 14px; font-size: 13.5px; background: var(--bg-tertiary); border: 1px solid var(--border-soft); color: var(--ink); border-radius: 999px; }
  .filter-bar .filter-chip:hover:not(.active) { background: var(--bg-secondary); }
  .filter-bar .filter-chip.active { background: var(--plum); border-color: var(--plum); color: var(--bg-primary); }
  .filter-bar .filter-chip-with-icon { gap: 7px; }
}
.filter-bar .filter-divider, .filter-bar > .filter-divider { display: none !important; }
.filter-chip { position: relative; }
.filter-chip:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.filter-flag-wrap, .filter-chip .flag-icon { flex-shrink: 0; }
@media (max-width: 720px) {
  /* a single swipeable row that runs to the screen edge */
  .filter-bar { display: block; background: transparent; border: 0; padding: 0; margin: 0 -16px 12px; border-radius: 0; }
  .filter-bar .chip-row { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 2px 16px 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
  .filter-bar .chip-row::after { content: ''; flex: 0 0 1px; }
  .filter-bar .chip-row::-webkit-scrollbar { display: none; }
  .filter-bar .filter-chip { flex: 0 0 auto; scroll-snap-align: none; padding: 8px 13px; font-size: 13px; background: var(--bg-tertiary); border: 1px solid var(--border-soft); color: var(--ink); }
  .filter-bar .filter-chip.active { background: var(--plum); border-color: var(--plum); color: var(--bg-primary); }
  .filter-bar .filter-chip-with-icon { gap: 6px; }
  .filter-bar .filter-chip-with-icon svg { width: 13px; height: 13px; }
  .filter-bar .filter-divider { display: block; flex: 0 0 1px; height: 18px; margin: 0 2px; }
  .filter-bar > .filter-divider { display: block; }
}
