/* Recovery Houses — site stylesheet
   Design language carried over from the Twin Cities Sauna directory: light,
   bold-geometric "local listings" style — white/pale-blue surfaces, near-black
   navy text, one coral accent, Outfit type. Tokens in :root below. */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root{
  --ink: #111828;           /* primary text, headings, dark buttons */
  --ink-soft: #586071;      /* secondary text */
  --muted: #8B909A;         /* tertiary / meta text */
  --coral: #FC5761;         /* the one accent: CTAs, badges, links, icons */
  --coral-dark: #E6414B;
  --navy: #222E5B;          /* secondary accent (cold-side, alt badges) */

  --caution: #9A5B08;       /* caveats on a listing, red-flag callouts */
  --caution-bg: #FFF4E8;
  --caution-line: #E08A2E;

  --paper: #FFFFFF;         /* card / raised surface background */
  --tint: #F4F7FB;          /* page-section background */
  --line: #E1E6F1;          /* borders, hairlines */
  --line-soft: #EDF1F8;

  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(17, 24, 40, 0.04);
  --focus-ring: 0 0 0 2px var(--paper), 0 0 0 4px var(--coral);
}

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

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand{
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.18;
  font-weight: 700;
  margin: 0 0 .5em;
}

h1{ font-size: clamp(2rem, 3vw + 1rem, 3rem); }
h2{ font-size: clamp(1.3rem, 1.1vw + 1rem, 1.6rem); }
h3{ font-size: 1.1rem; font-weight: 700; }

p{ margin: 0 0 1em; color: var(--ink-soft); }

a{ color: var(--ink); text-decoration: none; }
a:hover{ color: var(--coral); }
a:focus-visible{ outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

em{ color: var(--coral); font-style: normal; font-weight: 700; }

img{ max-width: 100%; display: block; }

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

button, input, select{ font-family: inherit; }

button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, [tabindex]:focus-visible{
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* ---------- Header ---------- */

header.site{
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.brand{
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.brand:hover{ color: var(--ink); }

.brand-mark{ color: var(--coral); }

.primary{
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.primary a{
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .92rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.primary a:hover{ color: var(--ink); }
.primary a.active{ color: var(--coral); border-bottom-color: var(--coral); }

/* ---------- Buttons ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: .92rem;
  border: 1.5px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn-dark{
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-dark:hover{ background: #232C42; color: #fff; }

.btn-coral{
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}
.btn-coral:hover{ background: var(--coral-dark); color: #fff; }

.btn-outline{
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper);
}
.btn-outline:hover{ border-color: var(--ink); }

/* ---------- Hero (culture page) ---------- */

.hero{ padding: 64px 0 56px; }

.hero .wrap{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 56px;
  align-items: center;
}

.lede{
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 50ch;
}

.lede-wide{ max-width: none; }

.hero-actions{
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cycle-diagram{ margin: 0; text-align: center; }

.cycle-diagram figcaption{
  margin-top: 14px;
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- Category grid (culture page) ---------- */

.on-raised{
  background: var(--tint);
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head{ margin-bottom: 30px; max-width: 60ch; }
.section-head h2{ margin-bottom: .3em; }
.section-head p{ margin-bottom: 0; }

.cat-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.cat-tile{
  background: var(--paper);
  padding: 22px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .15s ease, transform .15s ease;
}

.cat-tile:hover{ border-color: var(--coral); transform: translateY(-2px); }
.cat-tile:hover .name{ color: var(--coral); }

.cat-tile .count{
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--coral);
}

.cat-tile .name{
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  transition: color .15s ease;
}

.cat-tile .desc{
  color: var(--ink-soft);
  font-size: .86rem;
  margin: 0;
}

/* ---------- Generic content sections ---------- */

section{ padding: 64px 0; }
section.tight, section.page-intro{ padding: 44px 0 28px; }

.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.article{ max-width: 70ch; }
.article h2{ margin-top: 1.5em; }

.byline{
  font-size: .8rem;
  color: var(--coral);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.disclosure{
  margin-top: 36px;
  padding: 18px 20px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  font-size: .86rem;
  color: var(--ink-soft);
}

.disclosure strong{ color: var(--ink); font-weight: 700; }

/* ---------- Listing detail pages ---------- */

.breadcrumb{
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a{ color: var(--muted); }
.breadcrumb a:hover{ color: var(--coral); }

.detail-media{
  position: relative;
  height: 320px;
  margin-bottom: 24px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(135deg, var(--tint), #EAF0FA);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.detail-media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-media .media-icon{ color: var(--navy); opacity: .35; }
.detail-media .media-icon svg{ width: 64px; height: 64px; }

/* ================= Directory ================= */

.directory-shell{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* ---------- Filter rail ---------- */

.filter-rail{
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
}

.filter-group{ display: flex; flex-direction: column; gap: 10px; }

.filter-group-label{
  font-size: .78rem;
  color: var(--ink-soft);
  font-weight: 700;
}

#search-box{
  width: 100%;
  padding: 10px 12px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: .92rem;
  border-radius: var(--radius-btn);
}
#search-box::placeholder{ color: var(--muted); }
#search-box:focus{ outline: none; border-color: var(--coral); }
#search-box:focus-visible{ box-shadow: none; border-color: var(--coral); }

.check-row{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .87rem;
  color: var(--ink);
  cursor: pointer;
  padding: 3px 0;
}

.check-row input[type="checkbox"]{
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--muted);
  border-radius: 4px;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  flex: none;
  background: var(--paper);
}
.check-row input[type="checkbox"]::before{
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--coral);
  transform: scale(0);
  transition: transform .1s ease;
}
.check-row input[type="checkbox"]:checked{ border-color: var(--coral); }
.check-row input[type="checkbox"]:checked::before{ transform: scale(1); }
.check-row input[type="checkbox"]:focus-visible{ box-shadow: var(--focus-ring); }

.cat-list{ display: flex; flex-direction: column; gap: 2px; }

.cat-row{
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 500;
  padding: 7px 8px;
  cursor: pointer;
  border-radius: 8px;
}

.cat-row:hover{ background: var(--paper); color: var(--ink); }
.cat-row.active{ background: var(--ink); color: #fff; }
.cat-row.active .n{ color: #C7CEE3; }
.cat-row .n{ color: var(--muted); font-size: .82rem; }

#sort-select{
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 10px 12px;
  font-size: .88rem;
}
#sort-select:focus-visible{ box-shadow: var(--focus-ring); }

.rail-reset{
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 600;
  text-align: left;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line);
}
.rail-reset:hover{ color: var(--coral); text-decoration-color: var(--coral); }

.filter-toggle{ display: none; }

/* ---------- Result meta ---------- */

#result-count{
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 500;
  margin: 0 0 20px;
}

/* ---------- Listing cards ---------- */

#listing-container{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.listing-row{
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}

.listing-row:hover{ border-color: var(--coral); transform: translateY(-3px); }
.listing-row:hover .listing-name{ color: var(--coral); }

.card-media{
  position: relative;
  height: 128px;
  background: linear-gradient(135deg, var(--tint), #EAF0FA);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}

.media-icon{ color: var(--navy); opacity: .35; }
.media-icon svg{ width: 46px; height: 46px; }

.card-media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: .74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
}
.cat-badge svg{ width: 13px; height: 13px; color: var(--coral); }

.photo-credit{
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 1;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .68rem;
  font-weight: 600;
  color: #fff;
  background: rgba(17, 24, 40, .55);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  line-height: 1.3;
}
.photo-credit:hover{ background: rgba(17, 24, 40, .75); text-decoration: underline; }

.listing-main{ padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }

.listing-name{
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 3px;
  transition: color .12s ease;
}
.listing-name a{ color: inherit; text-decoration: none; }
.listing-name a:hover, .listing-name a:focus-visible{ text-decoration: underline; }

.listing-area{
  color: var(--muted);
  font-size: .84rem;
  margin: 0 0 10px;
}

.listing-desc{
  color: var(--ink-soft);
  font-size: .87rem;
  margin: 0 0 14px;
}

.stat-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.stat{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .74rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--line-soft);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}
.stat.brass{ color: var(--coral-dark); background: #FDEAEC; }
.stat .k{ color: inherit; font-weight: 600; }

.flag-note{
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #FFF4E8;
  border-left: 3px solid #E08A2E;
  font-size: .8rem;
  color: #7A4E12;
}

.card-divider{ border-top: 1px solid var(--line); margin: 2px 0 14px; }

.listing-side{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.rating{
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rating .star{ color: var(--coral); margin-right: 2px; }
.rating-count{ font-weight: 500; color: var(--muted); margin-left: 2px; }
.rating-none{ color: var(--muted); font-weight: 500; font-size: .82rem; }

.toggle-group{ display: flex; gap: 6px; flex-wrap: wrap; }

.toggle-btn{
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  font-size: .74rem;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}
.toggle-btn:hover{ border-color: var(--coral); color: var(--ink); }
.toggle-btn.on{ border-color: var(--coral); color: #fff; background: var(--coral); }

/* ---------- Empty state ---------- */

.empty-state{
  grid-column: 1 / -1;
  padding: 48px 0;
  color: var(--ink-soft);
  text-align: center;
  border-top: 1px solid var(--line);
}

/* ================= Modal (detail view) ================= */

.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 40, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 20px;
  overflow-y: auto;
  z-index: 100;
  opacity: 0;
  animation: fadeIn .2s ease forwards;
}

@keyframes fadeIn{ to{ opacity: 1; } }

@media (prefers-reduced-motion: reduce){
  .modal-backdrop{ animation: none; opacity: 1; }
}

.modal{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 20px 60px rgba(17, 24, 40, 0.18);
}

.modal-close{
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: var(--tint);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.modal-close:hover{ color: var(--coral); border-color: var(--coral); }

.modal-media{
  position: relative;
  height: 220px;
  margin: -36px -36px 24px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tint), #EAF0FA);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.modal-media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-media .media-icon svg{ width: 56px; height: 56px; }

.modal-type{
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  color: var(--coral-dark);
  background: #FDEAEC;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.modal h3{ font-size: 1.5rem; margin-bottom: 4px; }
.modal .listing-area{ margin-bottom: 18px; }

.modal-stats{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin: 22px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.modal-stat dt{ font-size: .74rem; color: var(--muted); margin-bottom: 2px; font-weight: 600; }
.modal-stat dd{ margin: 0; font-size: .95rem; color: var(--ink); font-weight: 500; }

.modal-actions{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.modal-checkin-note{
  font-size: .78rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ================= Footer ================= */

footer.site{
  border-top: 1px solid var(--line);
  background: var(--tint);
  padding: 56px 0;
  margin-top: 40px;
}

footer.site .brand{ color: var(--ink); }

.foot-grid{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.foot-links{ display: flex; flex-direction: column; gap: 10px; }
.foot-links a{ color: var(--ink-soft); font-size: .88rem; font-weight: 500; }
.foot-links a:hover{ color: var(--coral); }


/* ================= Demo-data banner ================= */
/* Rendered by scripts/build_data.py on every page for as long as any row in
   the source spreadsheet has Sample=TRUE. Deliberately loud — nothing on a
   directory whose promise is verification should quietly look real. */

.demo-banner{
  background: #3A1D1F;
  color: #FFE9EA;
  font-size: .86rem;
  font-weight: 600;
  padding: 10px 24px;
  text-align: center;
  line-height: 1.45;
}
.demo-banner strong{ color: #fff; }
.demo-banner a{ color: #FFB3B8; text-decoration: underline; }
.demo-banner a:hover{ color: #fff; }

/* ================= Nightly rate ================= */

.rate{
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}
.rate .amount{
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rate .per{ font-size: .78rem; color: var(--muted); font-weight: 600; }
.rate .range{ font-size: .78rem; color: var(--muted); font-weight: 500; }
.rate.rate-none .amount{ font-size: .92rem; font-weight: 700; color: var(--ink-soft); }

/* Estimated total for a typical stay — the number people are actually
   deciding on, since nobody books one night after surgery. */
.stay-total{
  font-size: .78rem;
  color: var(--ink-soft);
  margin: 6px 0 0;
}
.stay-total strong{ color: var(--ink); font-variant-numeric: tabular-nums; }

/* ================= Metro pages ================= */

.metro-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.metro-tile{
  background: var(--paper);
  padding: 20px 22px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color .15s ease, transform .15s ease;
}
.metro-tile:hover{ border-color: var(--coral); transform: translateY(-2px); }
.metro-tile:hover .name{ color: var(--coral); }

.metro-tile .name{ font-weight: 700; font-size: 1.02rem; transition: color .15s ease; }
.metro-tile .count{ font-size: 1.4rem; font-weight: 800; color: var(--coral); }
.metro-tile .sub{ font-size: .82rem; color: var(--ink-soft); }

/* A metro we've defined but haven't researched yet — shown, not linked, so
   the coverage map stays honest about its own gaps. */
.metro-tile.is-empty{
  border-style: dashed;
  background: var(--tint);
  cursor: default;
}
.metro-tile.is-empty:hover{ border-color: var(--line); transform: none; }
.metro-tile.is-empty .count{ color: var(--muted); }
.metro-tile.is-empty .name{ color: var(--ink-soft); }

/* ================= Procedure tags ================= */

.proc-row{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 12px;
}
.proc{
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

/* ================= Cost table (guides) ================= */

.cost-table{
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 0 0 8px;
}
.cost-table th,
.cost-table td{
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.cost-table thead th{
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  border-bottom: 1.5px solid var(--line);
}
.cost-table td.num{ text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.cost-table tbody tr:last-child td{ border-bottom: none; }
.cost-table tfoot td{
  border-top: 1.5px solid var(--line);
  border-bottom: none;
  font-weight: 800;
  color: var(--ink);
}
.table-note{ font-size: .8rem; color: var(--muted); margin: 0 0 24px; }

/* ================= Timeline (guides) ================= */

.timeline{ list-style: none; margin: 0 0 24px; padding: 0; }

.timeline li{
  position: relative;
  padding: 0 0 22px 28px;
  border-left: 2px solid var(--line);
}
.timeline li:last-child{ border-left-color: transparent; padding-bottom: 0; }

.timeline li::before{
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--coral);
}

.timeline .when{
  display: block;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--coral);
  margin-bottom: 3px;
}
.timeline .what{ font-weight: 700; color: var(--ink); display: block; margin-bottom: 3px; }
.timeline p{ margin: 0; font-size: .9rem; }

/* ================= Red-flag / checklist callouts ================= */

.flag-list{ list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }

.flag-list li{
  padding: 14px 16px 14px 44px;
  border-radius: 12px;
  background: var(--caution-bg);
  border-left: 3px solid var(--caution-line);
  position: relative;
  font-size: .9rem;
  color: #6F3F04;
}
.flag-list li::before{
  content: '!';
  position: absolute;
  left: 15px;
  top: 13px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--caution-line);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.flag-list strong{ color: #53300A; }

.ask-list{ list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.ask-list li{
  padding: 13px 16px 13px 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  font-size: .9rem;
  color: var(--ink);
  font-weight: 600;
}
.ask-list li::before{
  content: '';
  position: absolute;
  left: 16px;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid var(--coral);
}
.ask-list li span{ display: block; font-weight: 500; color: var(--ink-soft); font-size: .85rem; margin-top: 3px; }

/* ================= Guide index cards ================= */

.guide-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.guide-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color .15s ease, transform .15s ease;
}
.guide-card:hover{ border-color: var(--coral); transform: translateY(-2px); }
.guide-card:hover h3{ color: var(--coral); }
.guide-card h3{ margin: 0; font-size: 1.05rem; transition: color .15s ease; }
.guide-card p{ margin: 0; font-size: .88rem; }
.guide-card .kicker{
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--coral);
}

/* ================= Anxiety-reducing "how this works" strip ================= */

.trust-row{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
  margin-top: 8px;
}
.trust-item .n{
  font-size: .74rem;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.trust-item h3{ font-size: .98rem; margin: 0 0 4px; }
.trust-item p{ margin: 0; font-size: .87rem; }

/* ================= "Own this facility?" invite ================= */
/* On every real listing page. Facilities sending their own interior photos is
   the only route to images that are actually useful to someone choosing a
   room — Places photos of a residential house are a street view at best. */

.owner-note{
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  font-size: .86rem;
  color: var(--ink-soft);
}
.owner-note strong{ color: var(--ink); font-weight: 700; }
.owner-note a{
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--coral);
}
.owner-note a:hover{ color: var(--coral); }

/* ================= Claim form ================= */

.claim-form{ max-width: 46rem; }

.claim-form fieldset{
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 24px 24px;
  margin: 0 0 22px;
  background: var(--paper);
}

.claim-form legend{
  font-weight: 800;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--coral);
  padding: 0 8px;
}

.form-hint{
  font-size: .86rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.field{ display: block; margin-bottom: 16px; }
.field:last-child{ margin-bottom: 0; }

.field-label{
  display: block;
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}
.field-label em{
  font-style: normal;
  font-weight: 600;
  font-size: .76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-left: 5px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea{
  width: 100%;
  padding: 11px 13px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-btn);
  color: var(--ink);
  font-size: .94rem;
  font-family: inherit;
}
.field textarea{ resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder{ color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--coral);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible{
  box-shadow: none;
  border-color: var(--coral);
}

.field-note{
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.45;
}

.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.claim-form .check-row{ margin-top: 4px; }

.form-actions{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-actions .btn{ cursor: pointer; }
.form-actions .field-note{ margin-top: 0; max-width: 30ch; }

/* ================= Cookie consent banner ================= */
/* Injected by js/consent.js. Deliberately a bar rather than a modal: it does
   not block reading the page, because someone who has just had surgery
   shouldn't have to dismiss a dialog to find out who has a nurse on site. */

.consent-banner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 24px rgba(17, 24, 40, .08);
  animation: consentUp .22s ease-out;
}

@keyframes consentUp{ from{ transform: translateY(100%); } to{ transform: none; } }

@media (prefers-reduced-motion: reduce){
  .consent-banner{ animation: none; }
}

.consent-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.consent-copy{
  margin: 0;
  font-size: .88rem;
  color: var(--ink-soft);
  max-width: 68ch;
  line-height: 1.5;
}
.consent-copy strong{ color: var(--ink); font-weight: 700; }
.consent-copy a{
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
}
.consent-copy a:hover{ color: var(--coral); text-decoration-color: var(--coral); }

.consent-actions{
  display: flex;
  gap: 10px;
  flex: none;
}
.consent-actions .btn{ cursor: pointer; padding: 11px 22px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .cycle-diagram{ max-width: 300px; margin: 0 auto; }
  .two-col{ grid-template-columns: 1fr; gap: 30px; }

  .directory-shell{ grid-template-columns: 1fr; gap: 0; }

  .filter-rail{
    position: static;
    display: none;
    margin-bottom: 20px;
  }
  .filter-rail.open{ display: flex; }

  .filter-toggle{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--paper);
    border: 1.5px solid var(--line);
    color: var(--ink);
    padding: 11px 18px;
    border-radius: var(--radius-btn);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
  }

  #listing-container{ grid-template-columns: 1fr; }

  .trust-row{ gap: 20px; }
}

@media (max-width: 480px){
  .nav-row{ padding: 14px 16px; }
  .primary{ gap: 16px; }
  section{ padding: 44px 0; }
  .modal{ padding: 26px 20px; }
  .modal-stats{ grid-template-columns: 1fr; }
  .field-row{ grid-template-columns: 1fr; }
  .claim-form fieldset{ padding: 18px 16px 20px; }
  .demo-banner{ padding: 9px 16px; font-size: .8rem; }
  .consent-inner{ padding: 16px; gap: 14px; }
  .consent-actions{ width: 100%; }
  .consent-actions .btn{ flex: 1; justify-content: center; }
  .cost-table th, .cost-table td{ padding: 9px 8px; }
}
