/* HavenMatch — shared stylesheet
   Layout: plum-and-gold header band over a warm parchment page; content sits in
   framed "keepsake" panels with gilt hairlines, echoing the emblem artwork. */

:root {
  /* Color */
  --plum-950: #1f1030;
  --plum-900: #2d1847;
  --plum-700: #4a2a6e;
  --plum-500: #6e4b96;
  --plum-300: #b39ccc;
  --lavender: #efe7f6;
  --lavender-deep: #e3d6ef;
  --parchment: #fbf7ef;
  --parchment-deep: #f4ecdd;
  --gold: #c39a4f;
  --gold-bright: #e6c67e;
  --gold-deep: #96712f;
  --ink: #2a2233;
  --ink-soft: #5b5065;
  --white: #ffffff;
  --danger: #a3324a;
  --ok: #2f7a5b;

  /* Type */
  --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-script: "Cormorant Garamond", "Garamond", Georgia, serif;
  --font-body: "EB Garamond", "Garamond", Georgia, serif;
  --font-ui: "Mulish", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.7rem + 3vw, 3.8rem);

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --gilt: 1px solid color-mix(in srgb, var(--gold) 70%, transparent);
  --shadow-soft: 0 10px 30px -12px rgb(45 24 71 / 0.28);
  --shadow-lift: 0 22px 50px -18px rgb(45 24 71 / 0.45);
  --container: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--parchment);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--plum-700); text-decoration-color: color-mix(in srgb, var(--gold) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--plum-500); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--plum-900); text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--plum-900); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); font-family: var(--font-ui); }
.skip-link:focus { top: 12px; color: var(--white); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 32px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
main { flex: 1; }

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--plum-900);
}
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--plum-900) url("../img/banner.webp") center 48% / cover no-repeat;
  box-shadow: 0 6px 24px -10px rgb(31 16 48 / 0.6);
  isolation: isolate;
}
.site-header::after {
  content: ""; position: absolute; inset: auto 0 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--gold-bright) 20%, var(--gold) 50%, var(--gold-bright) 80%, transparent);
  opacity: 0.85;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 16px;
  padding-block: 10px 12px;
}
.brand-emblem { justify-self: start; display: block; width: 74px; transition: transform .4s ease; }
.brand-emblem:hover { transform: rotate(-4deg) scale(1.04); }
.brand-emblem img { width: 100%; height: auto; filter: drop-shadow(0 4px 10px rgb(0 0 0 / .35)); }
.brand-wordmark { display: block; width: clamp(200px, 26vw, 330px); }
.brand-wordmark img { width: 100%; height: auto; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .3)); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }

.btn-login {
  font-family: var(--font-ui); font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  color: var(--white); background: rgb(255 255 255 / .08);
  border: 1px solid rgb(230 198 126 / .55); border-radius: 999px;
  padding: 8px 18px; cursor: pointer; backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s;
}
.btn-login:hover { background: rgb(230 198 126 / .22); border-color: var(--gold-bright); }

.main-nav { grid-column: 1 / -1; justify-self: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.main-nav a {
  display: block;
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  color: var(--plum-700); text-decoration: none;
  padding: 5px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffdf8, #efe5f6);
  border: 1px solid rgb(230 198 126 / .7);
  box-shadow: 0 2px 6px -2px rgb(0 0 0 / .35), inset 0 1px 0 rgb(255 255 255 / .9);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.main-nav a:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgb(0 0 0 / .5), inset 0 1px 0 #fff; color: var(--plum-900); }
.main-nav a[aria-current="page"] {
  color: var(--plum-950);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-color: var(--gold-deep);
}
.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(230 198 126 / .55); color: var(--white);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 760px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand-emblem { width: 52px; }
  .brand-wordmark { justify-self: center; width: min(210px, 52vw); }
  .nav-toggle { display: inline-grid; place-items: center; }
  .btn-login { display: none; }
  .main-nav { width: 100%; display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding-block: 8px 6px; }
  .main-nav a { text-align: center; padding: 10px 16px; font-size: 1.05rem; }
  .main-nav .nav-login { display: block; }
}
.main-nav .nav-login { display: none; }
@media (max-width: 760px) { .main-nav li.nav-login { display: block; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  padding: 12px 28px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: var(--white);
  background: linear-gradient(180deg, var(--plum-500), var(--plum-700) 55%, var(--plum-900));
  border-color: var(--gold);
  box-shadow: 0 10px 22px -10px rgb(45 24 71 / .7), inset 0 1px 0 rgb(255 255 255 / .25);
}
.btn-primary:hover { color: var(--white); box-shadow: 0 16px 30px -12px rgb(45 24 71 / .8), inset 0 1px 0 rgb(255 255 255 / .3); }
.btn-gold {
  color: var(--plum-950);
  background: linear-gradient(180deg, #f3dc9f, var(--gold-bright) 40%, var(--gold));
  border-color: var(--gold-deep);
  box-shadow: 0 10px 22px -10px rgb(150 113 47 / .8), inset 0 1px 0 rgb(255 255 255 / .6);
}
.btn-gold:hover { color: var(--plum-950); }
.btn-ghost { color: var(--plum-700); background: transparent; border-color: color-mix(in srgb, var(--plum-500) 45%, transparent); }
.btn-ghost:hover { background: var(--lavender); color: var(--plum-900); }
.btn-block { width: 100%; }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--font-ui); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep);
}
.script { font-family: var(--font-script); font-style: italic; font-weight: 500; }
.gold-text {
  background: linear-gradient(180deg, #f2d792, var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.divider { width: min(520px, 90%); margin-inline: auto; height: auto; pointer-events: none; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: .92rem; font-weight: 600; color: var(--plum-500); text-decoration: none;
}
.back-link:hover { color: var(--plum-900); }
.back-link svg { width: 16px; height: 16px; }
.page-head { padding-block: 36px 8px; display: grid; gap: 10px; }
.page-head h1 { font-size: var(--step-4); }
.page-head p { color: var(--ink-soft); max-width: 60ch; }
.section { padding-block: clamp(48px, 7vw, 96px); }

/* Care-type badge */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--plum-700);
  background: linear-gradient(180deg, #fff, var(--lavender));
  border: 1px solid var(--plum-300);
  padding: 6px 14px; border-radius: 999px;
}

/* ---------- Home: tagline + hero ---------- */
.home-intro {
  background: var(--parchment) url("../img/light-bg.webp") center / cover;
  padding-block: 22px clamp(36px, 5vw, 64px);
}
.tagline {
  text-align: center;
  font-family: var(--font-script); font-style: italic; font-weight: 600;
  font-size: clamp(1.3rem, 1rem + 1.3vw, 1.9rem);
  color: var(--plum-700);
  margin-bottom: 18px;
}
.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-lift), 0 0 0 6px rgb(255 255 255 / .55);
  background: var(--plum-900);
}
.hero-frame img { width: 100%; height: auto; aspect-ratio: 1800 / 813; object-fit: cover; }
.hero-pill {
  position: absolute; left: clamp(14px, 3vw, 40px); top: clamp(14px, 3vw, 34px);
  font-family: var(--font-script); font-style: italic; font-weight: 600; font-size: clamp(1rem, .8rem + .8vw, 1.45rem); letter-spacing: .06em;
  color: var(--white); text-decoration: none;
  padding: 8px 20px; border-radius: 12px;
  background: linear-gradient(180deg, rgb(110 75 150 / .88), rgb(45 24 71 / .9));
  border: 1px solid var(--gold-bright);
  box-shadow: 0 8px 20px -8px rgb(0 0 0 / .6);
  backdrop-filter: blur(4px);
  transition: transform .2s, background .2s;
}
.hero-pill:hover { color: var(--white); transform: translateY(-2px); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.hero-sub { text-align: center; color: var(--ink-soft); margin-top: 22px; max-width: 58ch; margin-inline: auto; }

/* ---------- Home: featured provider ---------- */
.featured {
  position: relative;
  background: var(--plum-900) url("../img/garden.webp") center / cover;
  padding-block: clamp(48px, 7vw, 96px);
}
.featured::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(31 16 48 / .35), rgb(31 16 48 / .1) 40%, rgb(31 16 48 / .45)); }
.featured .container { position: relative; display: grid; gap: 22px; justify-items: center; }
.featured-head { text-align: center; color: var(--white); }
.featured-head .eyebrow { color: var(--gold-bright); text-shadow: 0 1px 8px rgb(0 0 0 / .6); }
.featured-head h2 { color: var(--white); font-size: var(--step-3); text-shadow: 0 2px 16px rgb(0 0 0 / .45); }

/* ---------- Provider card ---------- */
.provider-card {
  width: 100%; max-width: 560px;
  display: flex; flex-direction: column;
  background: var(--parchment);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-lift);
  transition: transform .3s ease, box-shadow .3s ease;
}
.provider-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -20px rgb(45 24 71 / .55); }
.provider-card .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--lavender); }
.provider-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.provider-card:hover .media img { transform: scale(1.04); }
.provider-card .media .badge { position: absolute; left: 14px; bottom: 14px; box-shadow: var(--shadow-soft); }
.provider-card .body {
  flex: 1;
  display: grid; gap: 8px; justify-items: center; text-align: center;
  padding: 22px 26px 26px;
  background: linear-gradient(180deg, #fffaf2, var(--parchment-deep));
  border-top: 3px double color-mix(in srgb, var(--gold) 60%, transparent);
}
.provider-card h3 { font-size: var(--step-2); color: var(--gold-deep); }
.provider-card .loc { font-family: var(--font-script); font-style: italic; font-size: 1.2rem; color: var(--plum-500); display: inline-flex; align-items: center; gap: 6px; }
.provider-card .loc img { width: 12px; height: auto; }
.provider-card .summary { color: var(--ink-soft); max-width: 44ch; }
.provider-card .btn { margin-top: 8px; }

/* ---------- Home: about strip ---------- */
.mission-strip {
  position: relative;
  background: var(--plum-900) url("../img/coffee-table.webp") center 40% / cover;
  padding-block: clamp(56px, 8vw, 120px);
}
.mission-strip::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(31 16 48 / .15), rgb(31 16 48 / .55)); }
.mission-strip .container { position: relative; display: grid; gap: 26px; justify-items: center; }
.mission-strip h2 { color: var(--white); font-size: var(--step-4); font-weight: 500; text-align: center; text-shadow: 0 3px 20px rgb(0 0 0 / .5); }
.mission-strip h2 em { font-family: var(--font-script); font-weight: 600; color: var(--gold-bright); background: none; }
.glass-panel {
  max-width: 820px;
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(74 42 110 / .78), rgb(31 16 48 / .82));
  border: 1px solid rgb(230 198 126 / .6);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(8px);
  color: #f5eefb;
  font-family: var(--font-script); font-style: italic; font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); line-height: 1.55;
  text-align: center;
}

/* ---------- Browse ---------- */
.browse-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding-block: 8px 28px;
}
.search {
  position: relative; flex: 1 1 320px; min-width: 0;
}
.search svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--plum-500); pointer-events: none; }
.search input {
  width: 100%;
  font: inherit; font-family: var(--font-ui); font-size: 1rem;
  padding: 14px 18px 14px 50px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 2px 4px rgb(45 24 71 / .06);
}
.search input:focus { outline: none; border-color: var(--plum-500); box-shadow: 0 0 0 4px rgb(110 75 150 / .18); }
.filter-select {
  font-family: var(--font-ui); font-size: .95rem; color: var(--plum-700);
  padding: 13px 40px 13px 18px; border-radius: 999px; border: 1.5px solid var(--plum-300); background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236e4b96' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.results-meta { font-family: var(--font-ui); font-size: .9rem; color: var(--ink-soft); margin-bottom: 16px; }
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 28px;
  justify-items: center;
}
.listing-grid .provider-card { max-width: 420px; }
.empty-state {
  text-align: center; padding: 48px 20px; border: 1px dashed var(--plum-300); border-radius: var(--radius);
  background: var(--white); color: var(--ink-soft); display: grid; gap: 12px; justify-items: center;
}
.empty-state h2 { font-size: var(--step-1); }
.listing-grid > .empty-state, .listing-grid > .loading { grid-column: 1 / -1; width: 100%; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; font-family: var(--font-ui); }
.pagination span {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 999px;
  background: var(--plum-700); color: var(--white); font-weight: 700; border: 1px solid var(--gold);
}

/* ---------- Detail ---------- */
.detail { padding-block: 28px 80px; }
.detail-head { display: grid; gap: 10px; margin: 18px 0 24px; }
.detail-head h1 { font-size: var(--step-4); }
.detail-head .badge img { width: 22px; height: auto; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: minmax(0, 1fr); } }

.gallery { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gold); box-shadow: var(--shadow-lift); background: var(--plum-950); }
.gallery-track { display: flex; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.gallery-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-btn {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgb(251 247 239 / .85); color: var(--plum-900); border: 1px solid var(--gold);
  box-shadow: var(--shadow-soft); transition: background .2s, transform .2s;
}
.gallery-btn:hover { background: var(--white); transform: scale(1.06); }
.gallery-btn svg { width: 20px; height: 20px; }
.gallery-btn.prev { left: 14px; }
.gallery-btn.next { right: 14px; }
.gallery-count {
  position: absolute; right: 14px; bottom: 14px;
  font-family: var(--font-ui); font-size: .82rem; font-weight: 700; color: var(--white);
  background: rgb(31 16 48 / .7); padding: 4px 12px; border-radius: 999px; border: 1px solid rgb(230 198 126 / .6);
}
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 96px; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: .65; transition: opacity .2s, border-color .2s; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.thumbs img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.detail-location { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--font-script); font-style: italic; font-size: 1.3rem; color: var(--plum-700); }
.detail-location img { width: 14px; height: auto; }

.prose { display: grid; gap: 16px; margin-top: 30px; max-width: 68ch; }
.prose h2 { font-family: var(--font-script); font-style: italic; font-weight: 600; font-size: var(--step-2); color: var(--plum-500); letter-spacing: .03em; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose li::marker { color: var(--gold); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 26px; }
.fact { background: var(--white); border: 1px solid var(--lavender-deep); border-radius: var(--radius-sm); padding: 14px 16px; }
.fact dt { font-family: var(--font-ui); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.fact dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.1rem; color: var(--plum-900); }

.contact-card {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 170px);
  background: linear-gradient(180deg, #fffaf2, var(--lavender));
  border: 1px solid var(--gold); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-soft);
  display: grid; gap: 16px;
}
@media (max-width: 960px) { .contact-card { position: static; } }
.contact-card h2 { font-size: var(--step-1); }
.contact-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.contact-row img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.contact-row a, .contact-row span { min-width: 0; overflow-wrap: anywhere; font-family: var(--font-ui); font-size: .98rem; font-weight: 600; }
.contact-card .note { font-size: .95rem; color: var(--ink-soft); }

/* ---------- About ---------- */
.about-hero { background: var(--parchment); padding-block: 40px 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-grid.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
@media (max-width: 860px) { .about-grid, .about-grid.reverse { grid-template-columns: minmax(0, 1fr); } }
.oval-photo {
  width: min(360px, 100%); margin-inline: auto;
  aspect-ratio: 9 / 15; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--gold); box-shadow: var(--shadow-lift), 0 0 0 8px rgb(255 255 255 / .7);
}
.oval-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame img, .provider-card .media img, .gallery-track img, .thumbs img { height: auto; }
.provider-card .media img { height: 100%; }
.framed-photo {
  border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--gold);
  box-shadow: var(--shadow-lift), 0 0 0 8px rgb(255 255 255 / .7);
}
.framed-photo img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.about-copy { display: grid; gap: 18px; min-width: 0; }
.about-copy > p { max-width: 64ch; }
.about-copy h1 { font-size: var(--step-4); }
.about-copy .lede { font-family: var(--font-script); font-style: italic; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); color: var(--plum-500); line-height: 1.35; }
.about-copy .callout { font-family: var(--font-display); font-size: var(--step-1); color: var(--plum-700); border-left: 3px solid var(--gold); padding-left: 16px; }
.band-lavender { background: linear-gradient(180deg, var(--lavender), var(--parchment)); }
.band-lavender .section, .about-hero + .band-lavender { border-top: 1px solid var(--lavender-deep); }
.mission-copy h2 { font-size: var(--step-3); }

/* ---------- Forms ---------- */
.form-card {
  background: linear-gradient(180deg, #fffaf2, #fbf3f6);
  border: 1px solid var(--gold); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-soft);
  display: grid; gap: 18px;
}
.form-card h2 { font-size: var(--step-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-ui); font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--plum-900); }
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select {
  font: inherit; font-family: var(--font-ui); font-size: 1rem; color: var(--ink);
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid #d9cfe4; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--plum-500); box-shadow: 0 0 0 4px rgb(110 75 150 / .16); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field .error { font-family: var(--font-ui); font-size: .82rem; color: var(--danger); min-height: 0; }
.form-status { font-family: var(--font-ui); font-size: .95rem; padding: 12px 14px; border-radius: var(--radius-sm); }
.form-status.ok { background: #e7f4ee; color: var(--ok); border: 1px solid #b9dccb; }
.form-status.warn { background: #fbf1df; color: var(--gold-deep); border: 1px solid #ecd6a8; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: 36px 80px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.contact-aside { display: grid; gap: 22px; }
.contact-aside .welcome { font-family: var(--font-script); font-style: italic; font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); color: var(--plum-700); line-height: 1.5; display: grid; gap: 14px; }
.contact-aside .framed-photo img { aspect-ratio: 3/2; }

/* List your home */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.benefit { background: var(--white); border: 1px solid var(--lavender-deep); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.benefit h3 { font-size: var(--step-1); }
.benefit p { color: var(--ink-soft); font-size: 1.02rem; }
.benefit .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, var(--lavender), #fff); border: 1px solid var(--gold); }
.benefit .ico img { width: 28px; height: 28px; object-fit: contain; }
.list-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 920px) { .list-layout { grid-template-columns: minmax(0, 1fr); } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; color: var(--plum-950);
  background: linear-gradient(180deg, #f3dc9f, var(--gold)); border: 1px solid var(--gold-deep);
}
.steps strong { font-family: var(--font-display); color: var(--plum-900); display: block; }
.steps span { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- Auth dialog ---------- */
.auth-dialog {
  width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--gold); border-radius: var(--radius);
  background: var(--parchment); color: var(--ink); box-shadow: 0 40px 80px -20px rgb(31 16 48 / .6);
}
.auth-dialog::backdrop { background: rgb(31 16 48 / .55); backdrop-filter: blur(3px); }
.auth-inner { padding: 34px 32px 30px; display: grid; gap: 16px; position: relative; }
.auth-inner .emblem { width: 64px; margin-inline: auto; }
.auth-inner h2 { text-align: center; font-size: var(--step-2); }
.auth-inner .switch { text-align: center; font-family: var(--font-ui); font-size: .92rem; color: var(--ink-soft); }
.auth-inner .switch button { font: inherit; font-weight: 700; color: var(--plum-700); background: none; border: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.auth-close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink-soft); display: grid; place-items: center; }
.auth-close:hover { background: var(--lavender); color: var(--plum-900); }
.auth-close svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; font-family: var(--font-ui); font-size: .85rem; color: var(--ink-soft); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--lavender-deep); }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px; border-radius: 999px; border: 1px solid #d9cfe4; background: var(--white); font-family: var(--font-ui); font-weight: 600; font-size: .95rem; color: var(--ink); cursor: pointer; }
.social-btn:hover { border-color: var(--plum-300); background: #fdfbff; }
.social-btn svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--plum-950) url("../img/banner.webp") center / cover;
  color: #e9def4;
  position: relative;
  isolation: isolate;
  margin-top: auto;
}
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(31 16 48 / .82), rgb(31 16 48 / .95)); }
.site-footer::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright) 20%, var(--gold) 50%, var(--gold-bright) 80%, transparent);
}
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 48px 28px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand img { width: 220px; height: auto; }
.footer-brand p { font-family: var(--font-script); font-style: italic; font-size: 1.15rem; max-width: 36ch; }
.site-footer h2 { font-family: var(--font-ui); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #f3ecfa; text-decoration: none; font-family: var(--font-ui); font-size: .95rem; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-base { border-top: 1px solid rgb(230 198 126 / .25); padding-block: 18px 22px; font-family: var(--font-ui); font-size: .82rem; color: #bfb0cf; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: .08s; }
  .rise.d2 { animation-delay: .16s; }
  .rise.d3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Accounts, care types, saved homes, dashboard
   ========================================================= */
.muted { color: var(--ink-soft); }
.hint { font-family: var(--font-ui); font-size: .8rem; color: var(--ink-soft); }
.loading { font-family: var(--font-ui); color: var(--ink-soft); padding: 24px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-ghost.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-ghost.danger:hover { background: #fbecef; color: var(--danger); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link-btn {
  font-family: var(--font-ui); font-size: .92rem; font-weight: 700; color: var(--plum-700);
  background: none; border: 0; padding: 6px 2px; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px;
}
.link-btn:hover { color: var(--plum-500); }
.section-head { display: grid; gap: 10px; justify-items: center; text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--ink-soft); max-width: 60ch; }

/* Hero search */
.hero-search {
  position: relative; display: flex; gap: 8px; align-items: center;
  max-width: 640px; margin: 22px auto 0; padding: 6px 6px 6px 48px;
  background: var(--white); border: 1.5px solid var(--gold); border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.hero-search svg { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--plum-500); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--font-ui); font-size: 1rem; color: var(--ink); padding: 10px 4px; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 4px rgb(110 75 150 / .18), var(--shadow-soft); }
.hero-search .btn { padding: 10px 22px; }
.hero-ctas .btn-ghost { background: rgb(255 255 255 / .7); }

/* Care-type cards */
.types-band { background: linear-gradient(180deg, var(--parchment), var(--lavender)); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.type-card {
  display: grid; gap: 10px; align-content: start;
  padding: 26px 24px 22px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--lavender-deep);
  text-decoration: none; color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.type-card:hover { color: var(--ink); transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-soft); }
.type-card h3 { font-size: var(--step-1); }
.type-card p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.5; }
.type-count { font-family: var(--font-ui); font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--gold-deep); margin-top: 4px; }
.type-ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--plum-700), var(--plum-950)); border: 1px solid var(--gold);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .15);
}
.type-ico svg { width: 32px; height: 32px; fill: none; stroke: var(--gold-bright); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Audience split */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.audience-card {
  display: grid; gap: 14px; align-content: start;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--lavender-deep);
}
.audience-card.alt { background: linear-gradient(160deg, var(--plum-900), var(--plum-950)); border-color: var(--gold); color: #efe6f7; }
.audience-card.alt h3 { color: var(--white); }
.audience-card.alt .eyebrow { color: var(--gold-bright); }
.audience-card.alt .link-btn { color: var(--gold-bright); }
.audience-card h3 { font-size: var(--step-2); }
.audience-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1030' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Browse chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: .92rem; font-weight: 600; color: var(--plum-700);
  background: var(--white); border: 1.5px solid var(--lavender-deep); border-radius: 999px;
  padding: 7px 14px 7px 10px; cursor: pointer; transition: border-color .2s, background .2s;
}
.chip:first-child { padding-left: 16px; }
.chip:hover { border-color: var(--plum-300); }
.chip[aria-pressed="true"] { background: var(--plum-700); border-color: var(--plum-700); color: var(--white); }
.chip-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; display: block; }
.chip-n {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; background: var(--lavender); color: var(--plum-700);
}
.chip-n:empty { display: none; }
.chip[aria-pressed="true"] .chip-n { background: rgb(255 255 255 / .2); color: var(--white); }

/* Card extras */
.provider-card .media > a { display: block; width: 100%; height: 100%; }
.no-photo { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(160deg, var(--lavender), var(--parchment-deep)); }
.no-photo img { width: 30% !important; height: auto !important; opacity: .85; }
.avail { font-family: var(--font-ui); font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b9adc6; }
.avail.ok { color: var(--ok); }
.avail.ok::before { background: #3fae7f; box-shadow: 0 0 0 3px rgb(63 174 127 / .2); }

.save-btn {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgb(251 247 239 / .92); border: 1px solid var(--gold); color: var(--plum-700);
  box-shadow: var(--shadow-soft); transition: transform .2s, background .2s;
}
.save-btn:hover { transform: scale(1.08); }
.save-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.save-btn[aria-pressed="true"] { background: var(--plum-700); color: var(--gold-bright); }
.save-btn[aria-pressed="true"] svg { fill: currentColor; }
.save-btn.with-label { position: static; width: auto; height: auto; padding: 7px 16px 7px 12px; border-radius: 999px; gap: 8px; display: inline-flex; font-family: var(--font-ui); font-size: .88rem; font-weight: 700; box-shadow: none; }
.save-btn.with-label:hover { transform: none; background: var(--lavender); }
.save-btn.with-label[aria-pressed="true"]:hover { background: var(--plum-900); }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.side-stack { display: grid; gap: 20px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 170px); }
.side-stack .contact-card { position: static; }
.inquiry { gap: 14px; }
.inquiry h2 { font-size: var(--step-1); }
.inquiry textarea { min-height: 110px; }
@media (max-width: 960px) { .side-stack { position: static; } }

/* Auth dialog */
.role-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--lavender); border: 1px solid var(--lavender-deep); }
.role-tabs button {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--plum-700);
  border: 0; background: transparent; border-radius: 999px; padding: 9px 12px; cursor: pointer; transition: background .2s, color .2s;
}
.role-tabs button[aria-selected="true"] { background: linear-gradient(180deg, var(--plum-500), var(--plum-900)); color: var(--white); box-shadow: 0 6px 14px -8px rgb(45 24 71 / .8); }
.auth-heading { text-align: center; display: grid; gap: 4px; }
.auth-heading p { font-size: .98rem; color: var(--ink-soft); }
.auth-inner { gap: 14px; }

/* List-your-home */
.list-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.type-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.type-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.type-list .type-ico { width: 48px; height: 48px; border-radius: 14px; }
.type-list .type-ico svg { width: 28px; height: 28px; }
.type-list strong { display: block; font-family: var(--font-display); color: var(--plum-900); }
.type-list span:not(.type-ico) { color: var(--ink-soft); font-size: 1rem; }

/* Dashboard */
.dash { padding-block: 36px 80px; display: grid; gap: 28px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--lavender-deep); }
.dash-head h1 { font-size: var(--step-3); }
.dash-section { display: grid; gap: 18px; }
.dash-section h2 { font-size: var(--step-2); }
.dash-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--lavender-deep); }
.tabs button {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink-soft);
  background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; margin-bottom: -1px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.tabs button[aria-selected="true"] { color: var(--plum-900); border-bottom-color: var(--gold); }
.home-row {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 14px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--lavender-deep);
}
.home-row + .home-row { margin-top: 12px; }
.home-row-media { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--lavender); }
.home-row-media img { width: 100%; height: 100%; object-fit: cover; }
.home-row h3 { font-size: var(--step-1); }
.home-row-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; }
@media (max-width: 680px) {
  .home-row { grid-template-columns: 88px minmax(0, 1fr); }
  .home-row-actions { grid-column: 1 / -1; justify-content: start; }
}
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pill { font-family: var(--font-ui); font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--lavender); color: var(--ink-soft); }
.pill.ok { background: #e3f3eb; color: var(--ok); }
.editor h3 { font-size: var(--step-2); }
.editor-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.field .label { font-family: var(--font-ui); font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--plum-900); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-size: .95rem; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--plum-700); }
.photo-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-picker:empty { display: none; }
.photo-thumb { position: relative; margin: 0; width: 120px; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 1px solid var(--lavender-deep); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; background: rgb(31 16 48 / .75); color: #fff; font-size: 1.1rem; line-height: 1; }
.photo-thumb .cover { position: absolute; left: 4px; bottom: 4px; font-family: var(--font-ui); font-size: .7rem; font-weight: 700; background: var(--gold-bright); color: var(--plum-950); padding: 2px 8px; border-radius: 999px; }
.file-btn { position: relative; overflow: hidden; justify-self: start; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.inq-card { padding: 18px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--lavender-deep); display: grid; gap: 8px; }
.inq-card + .inq-card { margin-top: 12px; }
.inq-card header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.inq-card header .muted { font-family: var(--font-ui); font-size: .85rem; }
.inq-contact { font-family: var(--font-ui); font-size: .92rem; }
.dash-signin { display: grid; gap: 14px; justify-items: center; text-align: center; padding-block: 24px; }
.dash-signin h1 { font-size: var(--step-3); }
.dash-signin > p { color: var(--ink-soft); max-width: 52ch; }
.dash-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; width: 100%; max-width: 760px; margin-top: 14px; }
.choice-card { display: grid; gap: 12px; justify-items: center; padding: 28px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gold); box-shadow: var(--shadow-soft); }
.choice-card h2 { font-size: var(--step-2); }
.choice-card p { color: var(--ink-soft); }

/* City autocomplete */
.field.combo { position: relative; }
.combo-pop {
  position: absolute; left: 0; right: 0; top: 0; z-index: 30;
  background: var(--white); border: 1px solid var(--plum-300); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift); overflow: hidden;
}
.combo-list { list-style: none; margin: 0; padding: 6px; max-height: 280px; overflow-y: auto; }
.combo-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  font-family: var(--font-ui); font-size: .95rem;
}
.combo-list li:hover, .combo-list li[aria-selected="true"] { background: var(--lavender); }
.combo-city { font-weight: 700; color: var(--plum-900); }
.combo-state { color: var(--ink-soft); font-size: .85rem; }
.combo-attr { margin: 0; padding: 6px 14px 8px; font-family: var(--font-ui); font-size: .7rem; color: var(--ink-soft); border-top: 1px solid var(--lavender); }
.hint.ok { color: var(--ok); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .autofilled { animation: autofilled 1.2s ease; }
  @keyframes autofilled { 0% { background: #f6e7bf; border-color: var(--gold); } 100% { background: var(--white); } }
}

/* Auth: forgot password, "check your email", email-link page */
.auth-body { display: grid; gap: 14px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.link-btn.forgot { font-size: .82rem; padding: 0; }
.auth-sent { display: grid; gap: 12px; justify-items: center; text-align: center; padding-block: 4px 6px; }
.auth-sent svg { width: 56px; height: 56px; fill: none; stroke: var(--gold-deep); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.auth-sent h3 { font-size: var(--step-2); }
.auth-sent p { color: var(--ink-soft); max-width: 36ch; overflow-wrap: anywhere; }
.auth-sent .form-status { width: 100%; }
.auth-sent-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; margin-top: 4px; }
.auth-heading:has(#auth-title:empty) { display: none; }
.callback-card { max-width: 480px; margin: clamp(32px, 6vw, 72px) auto; text-align: center; justify-items: center; }
.callback-card > div, .callback-card > form { display: grid; gap: 14px; justify-items: center; width: 100%; }
.callback-card > form { justify-items: stretch; text-align: left; }
.callback-card > form h1, .callback-card > form > p { text-align: center; }
.callback-card h1 { font-size: var(--step-3); }
.callback-emblem { width: 80px; }

/* Verified badge, share, owner notice */
.verified-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: .8rem; font-weight: 700; color: var(--gold-deep);
}
.verified-badge svg, .verified-mark svg { width: 18px; height: 18px; fill: var(--gold); stroke: none; }
.verified-badge svg .tick, .verified-mark svg .tick { fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.verified-mark { display: inline-flex; vertical-align: middle; }
.detail-actions { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-ui); font-size: .88rem; font-weight: 700; color: var(--plum-700);
  background: rgb(251 247 239 / .92); border: 1px solid var(--gold); border-radius: 999px; padding: 7px 16px 7px 12px;
}
.share-btn:hover { background: var(--lavender); }
.share-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.owner-notice {
  margin: 18px 0 0; padding: 12px 16px; border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: .92rem; color: var(--gold-deep);
  background: #fbf1df; border: 1px solid #ecd6a8;
}
.pill.wait { background: #fbf1df; color: var(--gold-deep); }
.pill.bad { background: #fbecef; color: var(--danger); }
.note { font-family: var(--font-ui); font-size: .85rem; color: var(--danger); margin-top: 6px; }
.dash-head-actions { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; max-width: 100%; }
.dash-head > * { min-width: 0; }
/* Let dashboard columns shrink on phones; wide tables scroll inside their own box. */
.dash > *, .dash-section > *, .compare > * { min-width: 0; }
.tabs { flex-wrap: wrap; }
@media (max-width: 520px) { .dash-head-actions .btn { padding: 9px 16px; font-size: .95rem; } }

/* Admin panel */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--lavender-deep); }
.stat-n { font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; color: var(--plum-900); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-l { font-family: var(--font-ui); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.stat-note { grid-column: 1 / -1; font-family: var(--font-ui); font-size: .85rem; }
.review-card {
  display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 18px; align-items: start;
  padding: 16px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gold);
}
.review-card + .review-card { margin-top: 14px; }
.review-main { display: grid; gap: 6px; min-width: 0; }
.review-main h3 { font-size: var(--step-1); }
.review-owner { font-family: var(--font-ui); font-size: .88rem; overflow-wrap: anywhere; }
.reject-box { display: grid; gap: 8px; margin-top: 6px; }
.reject-box textarea { font: inherit; font-family: var(--font-ui); font-size: .95rem; min-height: 80px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid #d9cfe4; resize: vertical; }
.reject-box .label { font-family: var(--font-ui); font-size: .82rem; font-weight: 700; color: var(--plum-900); }
@media (max-width: 760px) {
  .review-card { grid-template-columns: 96px minmax(0, 1fr); }
  .review-card .home-row-actions { grid-column: 1 / -1; justify-content: start; }
}
.admin-row h3 { display: flex; align-items: center; gap: 6px; }
.msg.handled { opacity: .75; }
.msg header .pill { margin-left: auto; }

/* Social sign-in */
.auth-social { display: grid; gap: 12px; }
.social-list { display: grid; gap: 10px; }
.social-btn[disabled] { opacity: .6; cursor: progress; }
.social-btn svg { flex: none; }
.setup-card { max-width: 720px; }
.setup-card h2 { font-size: var(--step-2); }

/* Account settings */
.settings-card { max-width: 760px; }
.settings-card h2 { font-size: var(--step-2); }
.static-value { font-family: var(--font-ui); font-size: 1rem; color: var(--ink); padding: 10px 0 2px; overflow-wrap: anywhere; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: linear-gradient(180deg, #fffaf9, #fbf0f2); }
.danger-zone h2 { color: var(--danger); }
.danger-zone .field { max-width: 320px; }

/* Legal pages (privacy, terms, accessibility) */
.legal { padding-block: 36px 88px; }
.legal-head { display: grid; gap: 10px; max-width: 760px; padding-bottom: 28px; border-bottom: 1px solid var(--lavender-deep); }
.legal-head h1 { font-size: var(--step-4); }
.legal-updated { font-family: var(--font-ui); font-size: .88rem; font-weight: 700; color: var(--gold-deep); }
.legal-intro { color: var(--ink-soft); max-width: 68ch; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 32px; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: minmax(0, 1fr); } }
.legal-toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 170px); font-family: var(--font-ui); font-size: .9rem; }
@media (max-width: 900px) { .legal-toc { position: static; border: 1px solid var(--lavender-deep); border-radius: var(--radius); padding: 16px 18px; background: var(--white); } }
.legal-toc-title { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 7px; }
.legal-toc li::marker { color: var(--plum-300); }
.legal-toc a { color: var(--plum-700); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-body { display: grid; gap: 34px; min-width: 0; max-width: 72ch; }
.legal-summary {
  padding: 22px 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, #fffaf2, var(--lavender)); border: 1px solid var(--gold);
}
.legal-summary h2 { font-size: var(--step-1); margin-bottom: 10px; }
.legal-summary ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal-summary li::marker { color: var(--gold); }
.legal-summary-note { margin-top: 12px; font-family: var(--font-ui); font-size: .82rem; color: var(--ink-soft); }
.legal-section { display: grid; gap: 12px; scroll-margin-top: 180px; }
.legal-section h2 { font-size: var(--step-2); }
.legal-section h3 { font-size: var(--step-1); margin-top: 6px; }
.legal-section ul { margin: 0; padding-left: 1.25em; display: grid; gap: 8px; }
.legal-section ul ul { margin-top: 8px; }
.legal-section li::marker { color: var(--gold); }
.legal-callout { padding: 12px 16px; border-left: 3px solid var(--danger); background: #fbecef; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 500; }
.legal-caps { font-size: .98rem; }
.table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: .9rem; background: var(--white); border: 1px solid var(--lavender-deep); border-radius: var(--radius-sm); }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--lavender-deep); vertical-align: top; }
.legal-table th { background: var(--lavender); color: var(--plum-900); font-weight: 700; }
.legal-table code { font-size: .85rem; color: var(--plum-700); }
.legal-note { font-family: var(--font-ui); font-size: .8rem; line-height: 1.5; color: var(--ink-soft); }
.legal-note a { color: var(--plum-700); }
.auth-inner .legal-note { text-align: center; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { font-size: .82rem; color: #e9def4; text-decoration: underline; text-decoration-color: rgb(230 198 126 / .5); }
.footer-disclaimer { flex-basis: 100%; }
@media print {
  .site-header, .site-footer, .legal-toc { display: none !important; }
  .legal-layout { display: block; }
  body { background: #fff; }
}

/* Gallery photos with captions */
.gallery-track figure { flex: 0 0 100%; margin: 0; position: relative; min-width: 0; }
.gallery-track figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.gallery-track figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 12px;
  font-family: var(--font-ui); font-size: .88rem; color: #fff;
  background: linear-gradient(180deg, transparent, rgb(31 16 48 / .8));
}

/* Browse: near a ZIP, more filters, list/map */
.browse-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: -6px 0 18px; }
.near { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: .92rem; }
.near label { font-weight: 700; color: var(--plum-900); }
.near input, .near select {
  font: inherit; font-family: var(--font-ui); font-size: .95rem; padding: 8px 12px; border-radius: 999px;
  border: 1.5px solid var(--lavender-deep); background: var(--white); color: var(--ink);
}
.near input { width: 8.5em; }
.near input:focus, .near select:focus { outline: none; border-color: var(--plum-500); box-shadow: 0 0 0 3px rgb(110 75 150 / .16); }
.view-toggle { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 999px; background: var(--lavender); border: 1px solid var(--lavender-deep); }
.view-toggle button { font-family: var(--font-ui); font-size: .88rem; font-weight: 700; color: var(--plum-700); background: transparent; border: 0; border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--plum-700); color: var(--white); }
@media (max-width: 640px) { .view-toggle { margin-left: 0; } }
.filter-panel {
  flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px 24px;
  padding: 18px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--lavender-deep);
}
.filter-panel fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.filter-panel legend { font-family: var(--font-ui); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 4px; }
.filter-panel .check { font-size: .9rem; }
.filter-actions { grid-column: 1 / -1; }
.browse-map { height: min(70vh, 560px); border-radius: var(--radius); border: 1px solid var(--gold); overflow: hidden; margin-bottom: 18px; background: var(--lavender); }
.browse-map .leaflet-popup-content { font-family: var(--font-ui); font-size: .9rem; }
.distance { color: var(--ink-soft); font-style: normal; font-family: var(--font-ui); font-size: .8rem; }
.provider-card .confirmed { font-family: var(--font-ui); font-size: .76rem; color: var(--ink-soft); margin-top: -4px; }

/* Listing page: at a glance, report */
.glance { display: grid; gap: 14px; margin: 0; }
.glance > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--lavender-deep); }
@media (max-width: 560px) { .glance > div { grid-template-columns: minmax(0, 1fr); } }
.glance dt { font-family: var(--font-ui); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); padding-top: 4px; }
.glance dd { margin: 0; display: grid; gap: 4px; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li { font-family: var(--font-ui); font-size: .85rem; padding: 4px 12px; border-radius: 999px; background: var(--lavender); color: var(--plum-900); }
.report-card { padding: 4px 6px; font-family: var(--font-ui); font-size: .9rem; color: var(--ink-soft); }
.report-form { display: grid; gap: 12px; margin-top: 12px; padding: 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--lavender-deep); }
.report-form textarea { min-height: 90px; }
.human-check { min-height: 65px; }

/* Dashboard: stats, editor details, captions, compare */
.row-stats { font-family: var(--font-ui); font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
.editor-sub { font-family: var(--font-display); font-size: var(--step-1); color: var(--plum-900); margin-top: 8px; }
.check-group { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.check-group legend { margin-bottom: 8px; }
.photo-item { display: grid; gap: 6px; width: 160px; }
.photo-item .photo-thumb { width: 100%; }
.photo-caption { font: inherit; font-family: var(--font-ui); font-size: .82rem; padding: 7px 9px; border-radius: 8px; border: 1.5px solid #d9cfe4; width: 100%; }
.compare { margin-bottom: 22px; padding: 16px 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gold); }
.compare summary { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--plum-900); cursor: pointer; }
.compare-pick { margin: 14px 0; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-family: var(--font-ui); font-size: .9rem; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--lavender-deep); }
.compare-table thead th { font-family: var(--font-display); font-size: 1.05rem; color: var(--plum-900); }
.compare-table tbody th { font-weight: 700; color: var(--gold-deep); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; width: 170px; }

/* Admin: setup checklist */
.setup-note { padding: 16px 20px; border-radius: var(--radius); background: #fbf1df; border: 1px solid #ecd6a8; font-family: var(--font-ui); font-size: .92rem; color: var(--ink); }
.setup-note ul { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.setup-note code { font-size: .85rem; color: var(--plum-700); }

/* Guides */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.guide-card { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--lavender-deep); text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s, border-color .25s; }
.guide-card:hover { color: var(--ink); transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-soft); }
.guide-card h2 { font-size: var(--step-1); }
.guide-card p { color: var(--ink-soft); font-size: 1.02rem; }
.guide-card .more { font-family: var(--font-ui); font-size: .85rem; font-weight: 700; color: var(--plum-700); }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--gold);
}
.compare-types { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: .9rem; background: var(--white); min-width: 620px; }
.compare-types th, .compare-types td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--lavender-deep); }
.compare-types thead th { background: var(--lavender); color: var(--plum-900); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 200;
  translate: -50% 20px; opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px);
  font-family: var(--font-ui); font-size: .95rem; font-weight: 600; color: var(--white);
  background: var(--plum-900); border: 1px solid var(--gold); border-radius: 999px; padding: 12px 22px;
  box-shadow: var(--shadow-lift); transition: opacity .25s, translate .25s;
}
.toast.show { opacity: 1; translate: -50% 0; }
