:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #101828;
  --ink-2: #475467;
  --ink-3: #98a2b3;
  /* Softer than pure black so a divider still reads clearly without fighting
     the text for attention. */
  --line: #475467;
  /* Faint hairline reserved for the data table's own borders — the table
     border was reading too dark/heavy at the site-wide --line color. */
  --table-line: #e4e7ec;
  --brand: #0000ff;
  --brand-soft: #e6e9ff;
  --accent: #b4820e;
  --radius: 12px;
  /* Headings get a distinct display face; everything else — body copy, the
     filter controls and the whole comparison table — runs on one body face at
     one weight. */
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
  font-family: var(--font-display);
}

a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

.brand-logo {
  display: block;
  height: 28px;
  width: auto;
}

/* ---------- hero ---------- */
/* Full page width, matching the compare section below, so the headline has the
   room to stay on one line. */
.hero {
  margin: 0 auto;
  /* Tight to the sticky header: the illustration and headline should sit high
     on first paint so the table starts near the fold. */
  padding: 24px 24px 32px;
  text-align: center;
}

/* Scales with the viewport instead of wrapping: 3.9vw keeps the headline
   comfortably inside the 24px gutters down to tablet width, where the lower
   clamp bound takes over and it wraps rather than shrinking to nothing. */
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 3.9vw, 64px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 700;
  text-wrap: balance;
}

.hero h1 em { font-style: normal; color: var(--brand); }

/* Decorative illustration above the headline — deliberately small so it reads as
   an accent rather than competing with the h1. */
.hero-illustration {
  display: block;
  width: clamp(76px, 9vw, 120px);
  height: auto;
  margin: 0 auto 6px;
}

/* ---------- compare section ---------- */
.compare {
  margin: 0 auto;
  padding: 0 24px 64px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* Filters + Reset live inside one faint rounded bar; each filter renders as
   its own white chip against the bar's grey, so the bar reads as a single
   container rather than a row of separately framed controls. */
.toolbar-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  background: #ebedf0;
  border-radius: 12px;
  /* Tight: the chips themselves carry the height, so the bar only needs enough
     inset to read as a frame around them. */
  padding: 4px;
}

/* Emirates/services/price/delivery filters, duplicated here next to Reset. */
.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.toolbar-filters .tf {
  display: flex;
  align-items: center;
  width: auto;
  min-height: 46px;
  background: var(--surface);
  border: 1px solid var(--table-line);
  border-radius: 8px;
}

/* The control inside each chip fills it, so the whole white area is the click
   target and the chevron always sits on the chip's right edge. */
.toolbar-filters .tf > * { flex: 1; min-width: 0; }

/* Reset sits inside the same grey bar as the filters and wears the same white
   chip treatment, so the bar reads as one control group end to end. */
.btn-reset {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  min-height: 46px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 13px 14px;
  border: 1px solid var(--table-line);
  background: var(--surface);
  border-radius: 8px;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
}

.btn-reset:hover { background: #f2f4f7; color: var(--ink); }
.btn-reset:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }

.icon-reset {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- table ---------- */
/* Square at the top so the grey header band reads as a flat strip across the
   full width — the rounding belongs to the section, and to the white header
   chips sitting inside the band. */
.table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--surface);
  border: 1px solid var(--table-line);
  border-radius: 0 0 8px 8px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1180px;
  font-size: 13.5px;
}

/* One face, one weight across the entire table — the same Inter 400 the filter
   chips wear. Emphasis inside the table comes from color, never from weight, so
   nothing in a cell prints heavier than its header. Descendants are included
   because several cell parts (names, prices, yes-values) used to set 600
   themselves. */
table,
table th,
table td,
table th *,
table td * {
  font-family: var(--font-body);
  font-weight: 400;
}

/* Inter is proportional, so numeric columns need the tabular figures the old
   monospace face gave for free. */
table { font-variant-numeric: tabular-nums; }

thead th {
  text-align: left;
  color: var(--ink-2);
  white-space: nowrap;
}

/* The row is one grey band and every header cell is a white block inside it.
   The gutter between grey and white is a transparent border rather than
   padding, so each cell keeps its own inner padding and the row's grey shows
   through the gaps as straight dividers. */
.head-row { background: #ebedf0; }

.head-row th {
  padding: 12px 10px;
  border: 4px solid transparent;
  /* Kept small — a wider radius makes the grey in the gaps read as curved
     rather than as straight gutters between the cells. */
  border-radius: 6px;
  background-color: var(--surface);
  background-clip: padding-box;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.head-row th.sortable { cursor: pointer; user-select: none; }
.head-row th.sortable:hover { color: var(--ink); background-color: #f2f4f7; }

.head-row th.sortable::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: var(--ink-3);
  transform: translateY(2px);
  opacity: 0;
}

.head-row th.sortable:hover::after { opacity: .45; }
.head-row th.sort-asc::after { opacity: 1; border-top-color: transparent; border-bottom-color: var(--brand); transform: translateY(-2px); }
.head-row th.sort-desc::after { opacity: 1; border-top-color: var(--brand); }

tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid #f1f3f6;
  /* Faint column divider so cell boundaries stay legible without the
     heavier header-row line. Dropped on the last column below. */
  border-right: 1px solid #f1f3f6;
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: 0; }
tbody td:last-child { border-right: 0; }

td.num, th.num { text-align: left; font-variant-numeric: tabular-nums; }

/* The company name reads as the row's subject through color alone — the table
   runs at a single weight. */
.company-name { color: var(--ink); }
.company-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.company-logo {
  display: block;
  width: 22px;
  height: 22px;
  margin-top: 6px;
  border: 1px solid var(--table-line);
  border-radius: 6px;
  object-fit: contain;
  background: var(--surface);
}

.company-name a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.company-name a:hover { color: var(--brand); text-decoration: underline; }
.company-name a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* Marks a company we've chosen to recommend — set by hand per company in
   data/companies.json. Hidden on the desktop table; shown as a ribbon on the
   mobile card, where there's no separate "featured" placement to lean on. */
.recommended-badge { display: none; }

/* Badges are filled tints rather than outlined chips: the fill carries the
   category and the label wears the deeper shade of the same hue, so a cell of
   badges reads as blocks of colour rather than as coloured text. */
.pill {
  display: inline-block;
  padding: 3px 9px;
  margin: 1px 3px 1px 0;
  border-radius: 999px;
  border: 0;
  background: #eef1f5;
  color: var(--ink-2);
  font-size: 11.5px;
  white-space: nowrap;
}

/* Coverage reads in the brand colour; services in the gold accent — the two
   badge columns sit side by side, so they need to be told apart at a glance. */
.pill-area { background: var(--brand-soft); color: var(--brand); }
.pill-service { background: #fbf1dd; color: #8a6409; }

.price { white-space: nowrap; }

.yes { color: var(--brand); }
.no { color: var(--ink-3); }

/* The table's fact cells (price, duration, delivery time, reinspection) are all
   this one pill — same shape at every width, table and card alike. */
.fact-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.icon-badge {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Reinspection takes a stance either way, so it gets the one green/red pair in
   the system — every other badge stays neutral grey. */
.fact-badge-yes { background: #e6f4ea; color: #1a7f37; font-weight: 600; }
.fact-badge-no { background: #fdeceb; color: #b42318; font-weight: 600; }

/* Card-only — stays hidden until the mobile media query below switches it on. */
.price-mobile { display: none; }

.rating { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.rating strong { font-size: 14px; }
.rating .stars { color: var(--accent); letter-spacing: -1px; font-size: 12px; }
.rating .count { font-size: 11px; color: var(--ink-3); }

/* Booking is the table's one hard action, so it gets the one solid brand-blue
   pill: fully rounded, generous padding, and light white lettering. */
.btn-visit {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}

.btn-visit:hover { background: #0000cc; }
.btn-visit:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }

.state { padding: 44px 14px; text-align: center; color: var(--ink-3); }

/* ---------- clickable rows ---------- */
tbody tr.row-clickable { cursor: pointer; }

tbody tr.is-active { background: var(--brand-soft); }
tbody tr.is-active td:first-child { box-shadow: inset 3px 0 0 var(--brand); }

.col-cta { white-space: nowrap; }

.row-details {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  margin-left: 6px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}

.row-details svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

tr:hover .row-details { color: var(--brand); background: var(--surface); }
.row-details:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; color: var(--brand); }

/* ---------- mobile: the table becomes a stack of cards ----------
   Same markup as the desktop table (so the pre-rendered rows still read as a
   comparison table to crawlers) — CSS re-lays each <tr> out as a card carrying
   the decision-making facts. Everything else lives in the detail sheet, which
   opens on tap exactly as it does from a desktop row. */
.sort-mobile { display: none; }

@media (max-width: 900px) {
  .compare { padding: 0 16px 48px; }

  /* The card stack sits directly on the page, so the scroller's frame goes. */
  .table-scroll {
    overflow: visible;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #companiesTable {
    display: block;
    min-width: 0;
    font-size: 14px;
  }

  #companiesTable > thead { display: block; }
  .head-row { display: none; }

  /* Same grey bar as desktop, only stacked: Price, Speed, Rating and Sort by
     form one 2x2 grid of white chips, then Reset takes the full-width row
     underneath, so the whole control group stays inside one container. */
  .toolbar-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px;
  }

  /* Lets its children (the Price/Speed/Rating chips) join the toolbar-meta
     grid directly, so they sit in the same 2x2 as the Sort by control. */
  .toolbar-filters { display: contents; }

  /* Emirates and services stay desktop-only filters — mobile only shows
     Price, Speed, Rating and Sort by. */
  .toolbar-filters .tf[data-filter="emirates"],
  .toolbar-filters .tf[data-filter="services"] {
    display: none;
  }

  .toolbar-filters .tf { width: 100%; }

  select.f-select, .ms-toggle { min-width: 0; font-size: 13px; padding: 14px 30px 14px 14px; }
  .ms-panel { min-width: 100%; }

  .btn-reset {
    grid-column: 1 / -1;
    justify-content: center;
    margin-left: 0;
    width: 100%;
    padding: 14px;
    font-size: 13px;
  }

  .sort-mobile {
    display: block;
    width: 100%;
    min-width: 0;
    font: inherit;
    font-size: 13px;
    padding: 14px;
    border: 1px solid var(--table-line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink-2);
  }

  .sort-mobile:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

  #tableBody {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* Room for each card's grey shell (drawn outside the box, so it costs no
       layout width) plus clear white between one shell and the next. */
    gap: 22px;
    padding: 6px;
  }

  /* Same treatment as the filter bar: a white card sitting inside its own faint
     grey, rounded container. The shell is a spread shadow rather than real
     padding, so it follows the card's corners without an extra wrapper. */
  #tableBody tr {
    display: block;
    padding: 14px 16px 16px;
    background: var(--surface);
    border: 1px solid var(--table-line);
    border-radius: 9px;
    box-shadow: 0 0 0 6px #ebedf0;
  }

  /* Auto-placed rather than a fixed area map: a fact the dataset has not filled
     in is removed outright, and the rest close the gap. */
  #tableBody tr[data-company] {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 14px;
    align-items: start;
  }

  /* Hairlines that span the full card, separating header / facts / actions. */
  #tableBody tr[data-company]::before,
  #tableBody tr[data-company]::after {
    content: "";
    grid-column: 1 / -1;
    border-top: 1px solid var(--table-line);
    margin: 2px 0;
  }

  #tableBody tr[data-company]::before { order: 3; }
  #tableBody tr[data-company]::after { order: 10; }

  #tableBody td {
    display: block;
    padding: 0;
    border: 0;
  }

  /* Services are the only detail-sheet-only column; every fact the card
     promises stays put whether or not the dataset has filled it. */
  #tableBody td.col-services { display: none; }

  /* A fact the dataset hasn't filled in is dropped from the card rather than
     spending a line on "Not published" — the detail sheet still lists it.
     Price is the exception: it has wording of its own for the unpriced case. */
  #tableBody td.is-empty:not(.col-price) { display: none; }

  /* Right padding keeps the name's new-tab icon clear of the corner chevron
     (ID-scoped so it outranks the `padding: 0` reset above). */
  #tableBody td.col-name {
    order: 1;
    grid-column: 1 / -1;
    padding-right: 44px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  /* flex-basis: 0 (rather than the item's own content width) is what lets the
     name share its flex line with the logo instead of claiming the full width
     and pushing the logo onto a line of its own — it also lets long names
     wrap normally against the narrower space left beside the logo. */
  .col-name .company-name { font-size: 15.5px; line-height: 1.3; flex: 1 1 0%; min-width: 0; }
  /* The badge and meta line still claim the full card width; only the logo
     moves up to sit beside the name. */
  .col-name .recommended-badge,
  .col-name .company-meta { flex-basis: 100%; }
  .col-name .company-logo { margin-top: 0; flex-shrink: 0; }
  .col-rating { order: 2; grid-column: 1 / -1; }
  .col-reinspection { order: 4; }
  .col-duration { order: 5; }
  .col-turnaround { order: 6; }

  /* Price and Book share the card's own footer row — plain white, no fill of
     their own — sitting right under the closing hairline.
     ID-scoped (like the other .col-* overrides here) so it beats the
     `#tableBody td { display: block }` reset above. */
  #tableBody td.col-price {
    order: 11;
    display: flex;
    align-items: center;
  }

  #tableBody td.col-cta {
    order: 12;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  /* Price swaps its table badge for the From/value pair in the bottom bar. */
  .col-price .fact-badge,
  .col-price .no { display: none; }

  .price-mobile { display: flex; flex-direction: column; gap: 2px; }

  .price-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  .price-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .col-price.is-empty .price-value { color: var(--ink-3); }

  /* Fatter on the card than in a table row — it is the card's only tap target
     besides the chevron. */
  .btn-visit { padding: 13px 26px; font-size: 14px; }

  /* Ribbon corner tag — sits above the company name, ahead of everything else
     the card promises. */
  .recommended-badge {
    display: inline-block;
    margin-bottom: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  /* Chevron moves to the card corner — the tap affordance for the detail sheet. */
  .row-details {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    width: 32px;
    height: 32px;
  }

  #tableBody tr:hover,
  #tableBody tr.row-clickable:hover { background: var(--surface); }
  /* Active keeps its grey shell; the brand ring is layered inside it. */
  #tableBody tr.is-active { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 0 7px #ebedf0; }
  #tableBody tr.is-active td:first-child { box-shadow: none; }

  .state { padding: 32px 14px; }
}

/* ---------- detail panel ---------- */
body.dp-open { overflow: hidden; }

.dp-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 24, 40, .45);
  opacity: 0;
  transition: opacity .22s ease;
}

.dp-scrim.is-open { opacity: 1; }
.dp-scrim[hidden] { display: none; }

.dp {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(440px, 100vw);
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--table-line);
  transform: translateX(100%);
  transition: transform .24s cubic-bezier(.32, .72, 0, 1);
}

.dp.is-open { transform: none; }
.dp[hidden] { display: none; }

.dp-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--table-line);
}

.dp-head-main { min-width: 0; flex: 1; }

.dp-head h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.dp-logo {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  vertical-align: middle;
  border: 1px solid var(--table-line);
  border-radius: 6px;
  object-fit: contain;
  background: var(--surface);
}

.dp-head-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.dp-dot { color: var(--ink-3); }

.dp-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--table-line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}

.dp-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.dp-close:hover { background: #f2f4f7; color: var(--ink); }
.dp-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

.dp-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 20px;
}

.dp-section { padding: 18px 0 0; }

.dp-section h3 {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.dp-facts {
  display: grid;
  font-variant-numeric: tabular-nums;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--table-line);
  border: 1px solid var(--table-line);
  border-radius: 10px;
  overflow: hidden;
}

.dp-fact { background: var(--surface); padding: 11px 13px; }

.dp-fact dt {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 3px;
}

.dp-fact dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.dp-fact-note {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
}

.dp-contacts { display: grid; gap: 2px; }

.dp-contact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.dp-contact svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dp-contact:hover { background: #f2f4f7; color: var(--ink); }
.dp-contact:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.dp-contact:hover svg { stroke: var(--brand); }

.dp-categories {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.dp-source {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--table-line);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

.dp-foot {
  display: flex;
  gap: 10px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--table-line);
  background: var(--surface);
}

/* Same fat, fully-rounded pill as .btn-visit — the two hard actions in the
   detail sheet get the same shape as the one hard action on the card.
   Secondary (Call) wears the solid black fill; primary (Visit website) wears
   brand blue. */
.dp-btn {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.dp-btn:hover { background: #000; }

.dp-btn-primary {
  flex: 2;
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.dp-btn-primary:hover { background: #0000cc; }
.dp-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Mobile: the panel becomes a bottom sheet. */
@media (max-width: 720px) {
  .dp {
    top: auto;
    /* Without this the sheet falls back to its static position — the very bottom
       of the document — instead of resting on the bottom of the viewport. */
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 88vh;
    max-height: 88dvh;
    border-left: 0;
    border-top: 1px solid var(--table-line);
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }

  .dp-head {
    padding-top: 22px;
    position: relative;
  }

  /* Grab handle — a decorative affordance, not a border, so it keeps its own
     soft grey rather than following --line to black. */
  .dp-head::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: var(--table-line);
  }

  .dp-head h2 { font-size: 18px; }
  .dp-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .dp-facts { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .dp,
  .dp-scrim,
  .toggle-switch,
  .toggle-knob,
  .acc-item summary::after { transition: none; }
}

/* ---------- filter controls ---------- */
/* The chevron is drawn rather than native, so the <select> filters and the
   <button>-based multi-selects carry an identical arrow. */
select.f-select,
.ms-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 108px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-2);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2398A2B3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  border: 0;
  border-radius: 7px;
  padding: 13px 28px 13px 14px;
  text-align: left;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

select.f-select:hover, .ms-toggle:hover { background-color: #f2f4f7; }
select.f-select:focus, .ms-toggle:focus { outline: none; background-color: var(--surface); box-shadow: 0 0 0 3px var(--brand-soft); }
.f-select.active, .ms-toggle.active { color: var(--brand); background-color: var(--brand-soft); font-weight: 600; }

.ms { position: relative; }

.ms-toggle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  min-width: 190px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--table-line);
  border-radius: 10px;
  padding: 6px;
}

.ms-panel[hidden] { display: none; }

.ms-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
}

.ms-panel label:hover { background: #f2f4f7; }
.ms-panel label:focus-within { background: #f2f4f7; outline: 2px solid var(--brand); outline-offset: -2px; }
.ms-panel input { accent-color: var(--brand); margin: 0; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--table-line);
  background: var(--surface);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
}

.site-footer p { margin: 0 0 6px; }
.muted { color: var(--ink-3); font-size: 12px; }

.data-note { margin: 12px 2px 0; font-size: 12px; color: var(--ink-3); }

@media (max-width: 640px) {
  .hero { padding: 14px 16px 32px; }
  .faq,
  .methodology { padding: 8px 16px 56px; }
  .site-header { padding: 16px; }
}

/* ---------- SEO / answer-engine blocks ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { left: 0; }

/* Secondary action, so it wears the solid black chip rather than the brand-blue
   pill — that's reserved for the one primary action (Book). */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.btn-whatsapp svg { width: 16px; height: 16px; fill: currentColor; opacity: .75; }
.btn-whatsapp:hover { background: #000; }
.btn-whatsapp:hover svg { opacity: 1; }
.btn-whatsapp:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- faq ---------- */
.faq,
.methodology {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px 72px;
}

.faq h2,
.methodology h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 20px; }

/* Shared accordion used by both the FAQ and the "how this directory is
   compiled" methodology section: a flat list of native <details>, each with
   only a bottom rule (no boxed border, no rounded corners). Native <details>
   keeps every answer present in the HTML source for crawlers and AI agents
   to read even while it renders collapsed. */
.acc-list {
  border-top: 1px solid var(--table-line);
}

.acc-item {
  border-bottom: 1px solid var(--table-line);
}

.acc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 28px 16px 2px;
  position: relative;
}

.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 8px; }

.acc-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .15s ease;
}

.acc-item[open] summary::after { transform: translateY(-20%) rotate(-135deg); }

.acc-item summary h3 {
  display: inline;
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.acc-answer { padding: 0 2px 16px; }

.acc-answer p {
  margin: 0;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .btn-whatsapp span { display: none; }
  .btn-whatsapp { padding: 13px; }
}
:root { --analytics-banner-width: 620px; }
.analytics-footer { display: flex; justify-content: center; gap: 20px; padding: 24px 16px; border-top: 1px solid var(--table-line); font-size: 13px; }
.analytics-footer button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.analytics-consent { position: fixed; z-index: 1000; bottom: 16px; left: 16px; width: min(var(--analytics-banner-width), calc(100% - 32px)); padding: 18px; border: 1px solid var(--table-line); border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 6px #ebedf0; font-size: 13px; }
.analytics-consent[hidden] { display: none; }
.analytics-consent p { margin: 0 0 12px; }
.analytics-consent > div { display: flex; gap: 10px; justify-content: flex-end; }
.analytics-consent button { cursor: pointer; }
.analytics-consent .btn-visit { border: 0; }
.analytics-footer button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.privacy-page { max-width: 780px; margin: 40px auto; padding: 24px; }
