@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --surface: #fff;
  --surface-soft: #f8faf8;
  --fg: #1d2923;
  --mut: #718078;
  --line: #e3e9e4;
  --acc: #277456;
  --acc-dark: #1e5d44;
  --acc-soft: #eaf4ee;
  --shadow: 0 8px 28px rgba(26, 50, 37, .055);
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.site-header {
  position: relative;
  z-index: 500;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1440px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--fg);
  font-size: 23px;
  font-weight: 760;
  letter-spacing: -1.2px;
  line-height: 1;
  text-decoration: none;
}
.brand:hover { color: var(--acc); text-decoration: none; }
.brand-icon { width: 27px; height: 27px; object-fit: contain; }
.site-title { color: var(--mut); font-size: 13px; }
.main-nav { display: flex; align-self: stretch; align-items: center; gap: 6px; margin-left: auto; }
.main-nav a {
  position: relative;
  display: inline-flex;
  height: 100%;
  align-items: center;
  padding: 0 12px;
  color: #66756c;
  font-size: 13px;
  font-weight: 560;
  text-decoration: none;
  transition: color .15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--acc-dark); text-decoration: none; }
.main-nav a.active::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  background: var(--acc);
  content: "";
}
main { max-width: 1440px; margin: 0 auto; }
#list-pane { max-width: 1120px; margin: 0 auto; padding: 36px 32px 48px; }
#full { max-width: 1120px; margin: 0 auto; padding: 32px; }
.check-content { max-width: 660px; margin: clamp(64px, 17vh, 170px) auto; }
.check-content h1 { margin: 0 0 23px; color: #25352c; font-size: clamp(28px, 4vw, 38px); font-weight: 650; letter-spacing: -1.2px; line-height: 1.18; }
.airbnb-form { display: flex; gap: 9px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.airbnb-form input { flex: 1 1 auto; min-width: 0; padding: 12px 13px; border: 1px solid transparent; border-radius: 7px; outline: none; color: #34443a; font: inherit; font-size: 14px; }
.airbnb-form input::placeholder { color: #8a968e; }
.airbnb-form input:focus { border-color: #78a990; box-shadow: 0 0 0 3px rgba(39,116,86,.12); }
.airbnb-form button { flex: 0 0 auto; padding: 0 18px; border: 0; border-radius: 7px; background: var(--acc); color: white; cursor: pointer; font: inherit; font-weight: 650; transition: background .15s ease; }
.airbnb-form button:hover { background: var(--acc-dark); }
.airbnb-error { margin: 11px 4px 0; color: #a54845; font-size: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.about-intro { margin: 0 0 25px; }
.about-intro h1 { margin: 0; color: #25352c; font-size: clamp(28px, 3.5vw, 36px); font-weight: 650; letter-spacing: -1.2px; line-height: 1.18; }
.about-intro > p:last-child { max-width: 730px; margin: 10px 0 0; color: var(--mut); font-size: 15px; }
.about-page .card h2:not(:first-child) { margin-top: 0; }
.flow-card, .outcomes-card { margin-bottom: 18px; }
.process-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 19px; }
.flow-step { position: relative; padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf8; }
.flow-step:not(:last-child)::after { position: absolute; top: 45%; right: -22px; z-index: 1; color: #83a28f; content: "→"; font-size: 20px; font-weight: 600; }
.step-number { color: var(--acc); font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.flow-step h3 { margin: 7px 0 6px; color: #2d3c33; font-size: 14px; font-weight: 650; }
.flow-step p { margin: 0; color: #68776e; font-size: 12px; }
.source-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.source-tags span { padding: 4px 7px; border: 1px solid #dfe8e1; border-radius: 5px; background: white; color: #5e7064; font-size: 10px; font-weight: 550; }
.flow-note { margin: 16px 0 0 !important; padding: 11px 13px; border-radius: 7px; background: var(--acc-soft); color: #426450 !important; font-size: 12px; }
.outcome-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.outcome-item { padding: 14px; border: 1px solid #e9eeea; border-radius: 8px; background: #fcfdfc; }
.outcome-item p { margin: 9px 0 0; color: #68776e; font-size: 12px; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.about-card { height: 100%; }
.about-card h2 { margin-top: 0 !important; }
.about-card p { font-size: 13px; }
.about-card p.eyebrow { font-size: 10px; }
.about-card p:last-child { margin-bottom: 0; }
.about-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 26px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--mut); font-size: 12px; }
.about-footer p { margin: 0; }
.about-footer .data-ingestion { flex: 1 0 100%; color: var(--mut); font-size: 11px; }
.about-footer nav { display: flex; flex-wrap: wrap; gap: 7px 15px; }
.about-footer a { color: var(--acc-dark); }
.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 26px;
}
.eyebrow {
  margin: 0 0 9px;
  color: var(--acc);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .13em;
}
.page-intro h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 650; letter-spacing: -1.1px; line-height: 1.18; }
.intro-copy { max-width: 620px; margin: 9px 0 0; color: var(--mut); font-size: 14px; }
.list-panel, .card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}
.filter-control { display: flex; flex: 0 1 auto; flex-direction: column; gap: 4px; }
.filter-control label { color: #718078; font-size: 10px; font-weight: 650; letter-spacing: .035em; }
.filter-control select { width: 100%; }
.filter-control input { width: 100%; min-width: 0; }
.filter-control:has(#f-tier) { width: 174px; }
.filter-control:has(#f-conf) { width: 155px; }
.filter-control:has(#f-active) { width: 160px; }
.filter-control:has(#f-sort) { width: 150px; }
.filter-control:has(#f-room) { width: 150px; }
.filter-control:has(#f-area) { width: 190px; }
.search-control { flex: 1 1 180px; max-width: 250px; }
.filters select, .filters input {
  min-height: 37px;
  padding: 7px 32px 7px 11px;
  border: 1px solid #dce4dd;
  border-radius: 7px;
  outline: none;
  background-color: var(--surface);
  color: #34443a;
  font: inherit;
  font-size: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.filters input { min-width: 0; padding-right: 11px; }
.filters select:focus, .filters input:focus, button:focus-visible, a:focus-visible {
  border-color: #78a990;
  outline: none;
  box-shadow: 0 0 0 3px rgba(39,116,86,.12);
}
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 11px 16px; border-bottom: 1px solid #edf0ed; vertical-align: middle; }
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fbfcfb;
  color: #748078;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
  white-space: nowrap;
}
td { color: #35433b; font-size: 12px; }
td:first-child { color: var(--acc-dark); font-variant-numeric: tabular-nums; font-weight: 600; }
#rows tr { cursor: pointer; transition: background-color .12s ease; }
#rows tr:last-child td { border-bottom: 0; }
#rows tr:hover td { background: #f3f8f4; }
#rows td:nth-child(2) { max-width: 360px; color: #25342b; font-weight: 530; }
#rows td:nth-child(4) { white-space: nowrap; }
a { color: var(--acc-dark); text-decoration: none; }
a:hover { color: var(--acc); text-decoration: underline; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}
.pill.direct { border-color: #c7e5d2; background: #eaf6ee; color: #267248; }
.pill.jev { border-color: #cbdff0; background: #edf5fb; color: #356b91; }
.pill.jev_unlicensed { border-color: #f0dcc3; background: #fcf3e8; color: #9b5c22; }
.pill.unmatched { border-color: #f0c8c4; background: #fff0ef; color: #a54845; }
.pill .c { opacity: .8; font-variant-numeric: tabular-nums; }
.dim { color: var(--mut); font-size: 12px; }
.location-precision { display: inline-block; padding: 5px 9px; border: 1px solid #cbdff0; border-radius: 6px; background: #edf5fb; color: #356b91 !important; font-size: 11px; }
.location-precision b { font-weight: 700; }
tr.pick td { background: #eef7f0; }
.warn { margin: 14px 0; padding: 10px 13px; border: 1px solid #eed29b; border-radius: 8px; background: #fff8e8; color: #795a24; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 13px 17px; border-top: 1px solid var(--line); }
.pager button {
  width: 34px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #405248;
  cursor: pointer;
  font: inherit;
  transition: background .15s ease, border-color .15s ease;
}
.pager button:hover { border-color: #b7cbbd; background: var(--acc-soft); }
.pager .dim { margin: 0 3px; font-size: 11px; }
.card { padding: 24px 26px; }
#full > .card + .card { margin-top: 18px; }
.listing-layout + .candidate-card { margin-top: 18px; }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: stretch; gap: 18px; }
.listing-layout:not(.has-map) { grid-template-columns: minmax(0, 1fr); }
.listing-layout .card { min-width: 0; }
.listing-layout.has-map .card { min-height: 480px; }
.listing-layout .card + .card { margin-top: 0; }
.listing-layout .listing-map-card { display: flex; flex-direction: column; }
.listing-map-card #map { flex: 1 1 auto; min-height: 380px; }
.listing-summary h2 { margin: 0 0 6px; }
.listing-summary .eyebrow { margin-bottom: 7px; }
.assessment-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.direct-match-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; margin: 14px 0; padding: 13px 14px; border: 1px solid #e5ece6; border-radius: 8px; background: #f8faf8; }
.direct-match-details > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.direct-match-details span { color: var(--mut); font-size: 10px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.direct-match-details strong { color: #34483b; font-size: 12px; font-weight: 600; }
.direct-reference-warning { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid #edce91; border-radius: 7px; background: #fff8e8; }
.direct-match-details .direct-reference-warning strong { color: #805d20; }
.direct-match-details .direct-reference-warning span { color: #795a24; font-size: 11px; letter-spacing: 0; text-transform: none; }
.capacity-status.match { color: #267248; }
.capacity-status.mismatch { color: #b23b36; }
.capacity-status.unknown { color: var(--mut); }
.direct-match-details .licence-type-detail { grid-column: 1 / -1; }
.direct-match-details .licence-type-detail .incompatible { color: #b23b36; font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: none; }
.why-line { margin-top: 20px !important; padding: 13px 15px; border-left: 3px solid #91b6a0; border-radius: 0 7px 7px 0; background: #f5f9f6; }
.why-line.no-nearby-licence { border-left-color: #c85b55; background: #fff0ef; color: #a54845; }
.candidate-card { overflow-x: auto; }
.candidate-card table { min-width: 680px; }
.candidate-card td { font-variant-numeric: tabular-nums; }
.card h2 { margin: 0 0 10px; color: #25352c; font-size: 21px; font-weight: 650; letter-spacing: -.4px; }
.card h2:not(:first-child) { margin-top: 28px; }
.card.listing-summary h2:not(:first-child) { margin-top: 0; }
.card .listing-card-heading { margin: 0 0 9px; color: var(--acc); font-size: 10px; font-weight: 750; letter-spacing: .13em; line-height: 1.55; text-transform: uppercase; }
.card p { margin: 12px 0; color: #4b5a51; }
.card > .eyebrow { margin-top: 0; }
.card .dim { color: var(--mut); }
.card table { margin: 22px 0 14px; border: 1px solid var(--line); border-radius: 8px; }
.card th, .card td { padding: 10px 12px; }
.card th { position: static; }
.card code { padding: 2px 5px; border-radius: 4px; background: #f1f4f1; color: #425348; font-size: .9em; }
.ids { line-height: 2; }
.ids a { font-variant-numeric: tabular-nums; font-weight: 600; }
#full > p:first-child { margin: 0 0 16px; }
#full > p:first-child a { color: var(--mut); font-size: 12px; font-weight: 550; }
.missing-listing { max-width: 720px; margin-top: 18px; }
.missing-listing .eyebrow { margin-bottom: 8px; }
.missing-listing h1 { margin: 0 0 10px; color: #25352c; font-size: 25px; font-weight: 650; letter-spacing: -.5px; }
.missing-listing p:last-child { margin-bottom: 0; }
#map { border: 1px solid var(--line); border-radius: 10px; }
#full #map { overflow: hidden; }
.map-controls { max-width: 1120px; margin: 0 auto; padding: 16px 32px; }
.map-controls .filters { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
body.map-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.map-page main { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: hidden; }
body.map-page #map { flex: 1 1 0; min-height: 0; height: auto; border: 0; border-radius: 0; }
.listing-marker-icon, .listing-cluster-icon { border: 0; background: transparent; }
.listing-marker { display: block; width: 15px; height: 15px; border: 2px solid #fff; border-radius: 50%; background: var(--marker-color); box-shadow: 0 1px 4px rgba(25, 39, 31, .5); transition: transform .12s ease; }
.listing-marker-icon:hover .listing-marker { transform: scale(1.2); }
.listing-cluster { display: flex; width: var(--cluster-size); height: var(--cluster-size); align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 50%; background: rgba(39, 116, 86, .94); box-shadow: 0 1px 5px rgba(25, 39, 31, .35); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.map-legend { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid rgba(213, 222, 215, .95); border-radius: 8px; background: rgba(255, 255, 255, .96); box-shadow: 0 2px 10px rgba(26, 50, 37, .12); color: #405248; font-size: 11px; line-height: 1.35; }
.map-legend-item { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.map-legend-dot { width: 10px; height: 10px; flex: 0 0 10px; border: 1px solid #fff; border-radius: 50%; background: var(--legend-color); box-shadow: 0 0 0 1px rgba(35, 53, 43, .15); }

@media (max-width: 760px) {
  .header-inner { min-height: 60px; flex-wrap: wrap; gap: 10px 16px; padding: 11px 18px 0; }
  .brand { font-size: 21px; }
  .site-title { display: none; }
  .main-nav { height: 48px; margin-left: auto; gap: 0; }
  .main-nav a { padding: 0 9px; font-size: 12px; }
  .main-nav a.active::after { right: 9px; left: 9px; }
  #list-pane { padding: 27px 16px 32px; }
  .page-intro { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 20px; }
  .page-intro h1 { font-size: 27px; }
  .filters { gap: 10px; padding: 13px; }
  .filter-control:has(#f-tier), .filter-control:has(#f-conf), .filter-control:has(#f-active),
  .filter-control:has(#f-sort), .filter-control:has(#f-area), .filter-control:has(#f-room) { flex: 1 1 145px; width: auto; }
  .search-control { flex: 1 1 100%; max-width: none; }
  .map-controls { padding: 14px 16px 8px; }
  .process-flow { grid-template-columns: 1fr; gap: 25px; }
  .flow-step:not(:last-child)::after { top: auto; right: auto; bottom: -22px; left: 50%; content: "↓"; }
  .outcome-grid, .about-grid { grid-template-columns: 1fr; }
  .table-scroll table { min-width: 760px; }
  th, td { padding: 10px 12px; }
  #full { padding: 22px 16px; }
  .check-content { margin: clamp(48px, 12vh, 110px) auto; }
  .listing-layout { grid-template-columns: minmax(0, 1fr); }
  .listing-layout > .card { min-height: 0; }
  .listing-map-card #map { height: 340px !important; min-height: 340px; }
  .card { padding: 19px 17px; }
  .card table { min-width: 570px; }
  .card:has(table) { overflow-x: auto; }
}
@media (max-width: 480px) {
  .airbnb-form { flex-direction: column; }
  .airbnb-form button { min-height: 44px; }
}
@media (max-width: 420px) {
  .main-nav a { padding: 0 7px; font-size: 11px; }
  .main-nav a.active::after { right: 7px; left: 7px; }
}
