/* Dantes — colors, type, and radii. Swap the brand here. */

:root {
  --color-navy: #14181F;
  --color-green: #1B4332;
  --color-pin: #8C2F2F;
  --color-terracotta: #C86446;
  --color-sand: #FFFFFF;
  --color-white: #FFFFFF;
  --color-ink: #14181F;
  --color-muted: #5F6670;
  --color-soft: #5F6670;
  --color-scrim: rgb(20 24 31 / 45%);
  --color-hero-shade: rgb(20 24 31 / 72%);
  --color-hero-shade-mid: rgb(20 24 31 / 48%);
  --color-hero-shade-soft: rgb(20 24 31 / 24%);
  --color-line: #E7E5E0;
  --color-hairline: #E7E5E0;
  --color-frame: #D0D4DA;
  --color-surface: #F6F5F1;
  --color-surface-low: #F6F5F1;
  --color-mint: #E8F1EC;
  --color-chip-green: #1B4332;
  --color-on-navy: #FFFFFF;
  --color-focus: #1B4332;
  --notice-bg: #FFF6E5;
  --notice-text: #6B4A00;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-serif: "Plus Jakarta Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-size-body: 16px;
  --font-size-label: 14px;
  --text-display: 2.5rem;
  --text-h1: 2.25rem;
  --text-h2: 1.75rem;
  --text-h3: 1.25rem;
  --text-price: 1.375rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgb(20 24 31 / 6%), 0 1px 3px rgb(20 24 31 / 8%);
  --shadow-bar: 0 4px 12px rgb(20 24 31 / 10%), 0 2px 4px rgb(20 24 31 / 6%);
  --shadow-lg: 0 12px 32px rgb(20 24 31 / 16%), 0 4px 8px rgb(20 24 31 / 8%);
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --measure: 68ch;
  --max: 1120px;
  --header-h: 80px;
  --hero-overlay: linear-gradient(180deg, rgb(10 25 20 / 22%) 0%, rgb(10 25 20 / 38%) 48%, rgb(10 25 20 / 55%) 100%);
  --hero-pill-bg: rgb(0 0 0 / 28%);
  --hero-chip-bg: rgb(255 255 255 / 18%);
  --hero-chip-line: rgb(255 255 255 / 28%);
  --tab-h: 64px;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jakarta-400.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jakarta-500.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/jakarta-600.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/jakarta-700.woff2") format("woff2");
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: 1.55;
  padding-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
.wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h2,
h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-navy);
}

h1 {
  font-size: var(--text-h1);
  color: var(--color-navy);
  margin: 0 0 var(--space-3);
}

h2 {
  font-size: var(--text-h2);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.125rem;
  margin: 0 0 var(--space-2);
}

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--color-green);
}

a:hover {
  color: var(--color-navy);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--space-2);
  top: -48px;
  background: var(--color-white);
  color: var(--color-navy);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  z-index: 30;
}

.skip:focus {
  top: var(--space-2);
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-sand);
  border-bottom: 1px solid var(--color-hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  min-height: var(--header-h);
  gap: var(--space-3);
}

.header-start {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.brand {
  color: var(--color-navy);
  text-decoration: none;
  font-size: 1.35rem;
}

.brand:hover {
  color: var(--color-navy);
}

.wordmark-mark {
  color: var(--color-green);
}

.nav-desktop,
.nav-cta {
  display: none;
}

.nav-mobile summary {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  list-style: none;
  color: var(--color-navy);
  border-radius: var(--radius-md);
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile nav {
  position: absolute;
  z-index: 25;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-2) 20px var(--space-4);
  background: var(--color-sand);
  border-bottom: 1px solid var(--color-hairline);
}

.nav-mobile a,
.nav-desktop a {
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav-mobile a,
.nav-mobile button[data-open-chat] {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-navy);
  font: 500 15px var(--font-sans);
  text-align: left;
  cursor: pointer;
}

.icon {
  width: 24px;
  height: 24px;
  display: block;
}

.lang-pill {
  display: inline-flex;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  padding: 2px;
}

.lang-pill a {
  min-height: 36px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 700;
  font-size: var(--font-size-label);
}

.lang-pill a.is-current {
  background: var(--color-navy);
  color: var(--color-white);
}

.early-access {
  margin: 0;
  background: var(--notice-bg);
  color: var(--notice-text);
  text-align: center;
  padding: 10px var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.45;
  border-bottom: 1px solid var(--color-line);
}

.hero {
  padding: var(--space-6) 0 var(--space-5);
}

.home-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100svh - var(--header-h) - 48px);
  margin: 0;
  overflow: hidden;
  color: var(--color-on-navy);
  background: var(--color-navy);
}

.home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.home-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--color-hero-shade) 0%,
    var(--color-hero-shade-mid) 26%,
    var(--color-hero-shade-soft) 48%,
    transparent 76%
  );
  pointer-events: none;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  padding: 22vh 0 calc(28px + var(--tab-h));
}

.home-hero h1 {
  color: var(--color-on-navy);
  font-size: clamp(2.5rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  max-width: 16ch;
  margin: 0 0 12px;
}

.home-hero p {
  color: var(--color-on-navy);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  max-width: 36ch;
  margin: 0 0 18px;
}

.home-hero .btn-primary {
  background: var(--color-white);
  color: var(--color-navy);
}

.home-hero .btn-primary:hover {
  background: var(--color-sand);
  color: var(--color-navy);
}

.places-home {
  padding-top: 28px;
}

.places-home h2 {
  margin-bottom: 16px;
}

.city-count {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
}

.lede {
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: var(--measure);
  color: var(--color-muted);
}

.proof {
  max-width: var(--measure);
  font-weight: 700;
  color: var(--color-navy);
}

.pilot-line {
  margin-bottom: 0;
  color: var(--color-green);
  font-weight: 700;
}

.solution {
  margin-top: var(--space-5);
}

.solution.card h2 {
  margin-bottom: var(--space-4);
}

.solution ol {
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

.solution .cta-row {
  margin-bottom: 0;
}

.buyers-free {
  font-weight: 700;
  color: var(--color-green);
}

.cta-row,
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.header-tools .nav-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-green);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-green);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-navy);
  border-color: transparent;
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn-sm {
  min-height: 44px;
  padding: 8px 14px;
}

button.btn {
  width: 100%;
}

.section {
  padding: 0 0 var(--space-7);
}

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--color-green);
  font-weight: 700;
  font-size: var(--font-size-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  background: var(--color-surface);
  color: var(--color-navy);
  font-weight: 700;
  font-size: var(--font-size-label);
  text-decoration: none;
  line-height: 1.3;
}

.chip-green {
  background: var(--color-mint);
  color: var(--color-chip-green);
}

a.chip:hover {
  color: var(--color-navy);
  background: var(--color-white);
}

.stat-grid,
.card-grid,
.place-row,
.seal-list {
  display: grid;
  gap: var(--space-3);
}

.stat {
  background: var(--color-surface-low);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.75rem;
  color: var(--color-navy);
}

.stat span {
  color: var(--color-muted);
  font-size: var(--font-size-label);
}

.search-band {
  background: var(--color-surface-low);
  padding: var(--space-5) 0;
  margin-bottom: var(--space-6);
}

.search-form,
.form-grid {
  display: grid;
  gap: var(--space-3);
}

.field label,
.search-form label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-navy);
}

input,
textarea,
select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--color-navy);
  border-color: var(--color-navy);
}

.place-row {
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  overflow-x: auto;
  padding-bottom: var(--space-2);
}

.sample-card,
.card,
.form-card,
.chooser-card,
.disclaimer-box,
.seal,
details.faq-item,
.steps > li {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.sample-card {
  overflow: hidden;
}

.sample-visual {
  min-height: 180px;
  background: var(--color-navy);
  color: var(--color-on-navy);
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
}

.sample-visual .chip {
  background: var(--color-white);
  color: var(--color-navy);
}

.sample-body,
.card,
.disclaimer-box,
.seal {
  padding: var(--space-5);
}

.fact-list {
  display: grid;
  gap: 0;
  margin: 0 0 var(--space-4);
  background: var(--color-surface-low);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}

.fact-list div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-line);
}

.fact-list div:last-child {
  border-bottom: 0;
}

.fact-list dt {
  color: var(--color-muted);
}

.fact-list dd {
  margin: 0;
  font-weight: 700;
  color: var(--color-navy);
  text-align: right;
}

.card h2,
.card p:last-child,
.dev-teaser p:last-child {
  margin-bottom: 0;
}

.dev-teaser {
  background: var(--color-navy);
  color: var(--color-on-navy);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.dev-teaser h2,
.dev-teaser p {
  color: var(--color-on-navy);
}

.dev-teaser a {
  color: var(--color-mint);
}

.dev-teaser .eyebrow {
  color: var(--color-mint);
}

.dev-teaser .btn,
.dev-teaser .btn:hover,
.dev-teaser .btn:focus-visible {
  background: var(--color-white);
  color: var(--color-navy);
}

.disclaimer-box {
  border-left: 4px solid var(--color-terracotta);
  margin-top: var(--space-5);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  gap: var(--space-4);
}

.steps > li {
  counter-increment: step;
  padding: var(--space-5);
}

.steps > li h2::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-right: var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  vertical-align: middle;
}

.page-head {
  padding: var(--space-5) 0 var(--space-3);
}

.page-head.is-compact {
  padding: 12px 0 4px;
}

.page-head.is-compact h1 {
  margin-bottom: 0;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: var(--space-2);
  color: var(--color-muted);
}

.prose > * {
  max-width: var(--measure);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: var(--space-2);
}

.form-card {
  padding: var(--space-5);
  border-radius: var(--radius-md);
}

.hint,
.opt {
  color: var(--color-muted);
  font-weight: 500;
}

.hint {
  margin: var(--space-2) 0 0;
}

.step-aside {
  margin: var(--space-2) 0 0;
  color: var(--color-muted);
  font-size: var(--font-size-label);
  font-weight: 500;
}

.guide-offer {
  margin-top: var(--space-6);
  max-width: var(--measure);
  background: var(--color-surface-low);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.guide-offer h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.guide-offer p:last-child {
  margin-bottom: 0;
}

.consent {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-weight: 500;
}

.consent input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin-top: 0.25rem;
  flex: 0 0 auto;
}

.form-fallback {
  background: var(--color-mint);
  color: var(--color-ink);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.faq-list {
  display: grid;
  gap: var(--space-3);
}

details.faq-item {
  padding: var(--space-4);
  box-shadow: none;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-navy);
  min-height: 48px;
  display: flex;
  align-items: center;
}

details.faq-item p:last-child {
  margin-bottom: 0;
}

.chooser {
  padding: var(--space-7) 0;
}

.chooser-card {
  display: block;
  padding: var(--space-6);
  text-decoration: none;
  color: var(--color-ink);
  border-radius: var(--radius-md);
}

.chooser-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.chooser-card:hover {
  border-color: var(--color-green);
  color: var(--color-ink);
}

.site-footer {
  background: var(--color-navy);
  color: var(--color-on-navy);
  padding: var(--space-7) 0 var(--space-6);
}

.site-footer a {
  color: var(--color-mint);
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
}

.site-footer h2 {
  color: var(--color-on-navy);
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: var(--space-2);
}

.site-footer .disclaimer,
.copyright {
  color: var(--color-on-navy);
  max-width: var(--measure);
}

.footer-brand {
  color: var(--color-on-navy);
  text-decoration: none;
  font-size: 1.45rem;
}

.footer-brand .wordmark-mark {
  color: var(--color-mint);
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: var(--tab-h);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: var(--color-sand);
  border-top: 1px solid var(--color-hairline);
}

.tabbar a {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--color-muted);
  text-decoration: none;
  font-size: var(--font-size-label);
  font-weight: 700;
}

.tabbar a[aria-current="page"] {
  color: var(--color-navy);
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.city-grid,
.credit-list,
.city-options {
  display: grid;
  gap: var(--space-4);
}

.city-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-ink);
}

.city-card:hover {
  color: var(--color-ink);
  border-color: var(--color-green);
}

.city-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--color-surface);
}

.city-card img,
.city-figure img,
.credit img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.city-card-body {
  display: grid;
  gap: 6px;
  padding: 10px 2px 0;
}

.city-card h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}

.city-card h3,
.city-card p,
.photo-credit {
  margin: 0;
}

.city-card .chip {
  justify-self: start;
}

.city-figure {
  margin: 0 0 var(--space-5);
}

.city-figure img {
  border-radius: var(--radius-md);
}

.photo-credit {
  margin-top: var(--space-2);
  color: var(--color-muted);
}

.city-field {
  border: 0;
  margin: 0 0 var(--space-4);
  padding: 0;
  min-width: 0;
}

.city-field legend {
  padding: 0;
  margin-bottom: var(--space-2);
  font-weight: 700;
  color: var(--color-navy);
}

.city-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

label.chip {
  cursor: pointer;
  min-height: 44px;
}

.chip input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--color-green);
}

.chip:has(input:checked) {
  background: var(--color-navy);
  color: var(--color-on-navy);
}

.city-about {
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.credit h2 {
  font-size: 1.75rem;
}

.credit .fact-list {
  margin-top: var(--space-4);
}

.credit .fact-list div {
  flex-direction: column;
  align-items: flex-start;
}

.credit .fact-list dd {
  text-align: left;
  font-weight: 500;
}

.credit-source {
  overflow-wrap: anywhere;
  font-weight: 500;
}

.listing-note,
.fine-print,
.missing-line,
.source-note,
.project-place {
  color: var(--color-muted);
}

.fine-print,
.missing-line,
.source-note {
  font-size: var(--font-size-label);
}

.source-note {
  font-weight: 500;
}

.tier-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 8px 0 12px;
}

.tier-filter button {
  min-height: 40px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  background: var(--color-surface);
  color: var(--color-navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tier-filter button[aria-pressed='true'] {
  background: var(--color-navy);
  color: var(--color-on-navy);
  border-color: var(--color-navy);
}

.project-group {
  margin-top: 8px;
}

.project-group h2 {
  font-size: 1.125rem;
  margin-bottom: var(--space-3);
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 22px;
  row-gap: 28px;
}

.project-card[hidden] {
  display: none !important;
}

.project-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.project-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--color-surface);
}

.project-photo-link {
  display: block;
  height: 100%;
  color: inherit;
}

.project-photo-link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -4px;
}

.project-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-photo .project-status {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  pointer-events: none;
  min-height: 0;
  padding: 3px 8px;
  background: var(--color-sand);
  color: var(--color-navy);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: none;
}

.project-photo .badge-protected {
  background: var(--color-green);
  color: var(--color-on-navy);
}

.project-photo-credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 8px;
  pointer-events: none;
  background: var(--color-scrim);
  color: var(--color-on-navy);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-body {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 2px 2px 0;
}

.project-card h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-navy);
}

.project-meta,
.project-place {
  margin: 0;
  color: var(--color-soft);
  font-size: 14px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-price {
  margin: 4px 0 0;
  color: var(--color-ink);
  line-height: 1.35;
}

.project-price .price-from {
  color: var(--color-soft);
  font-size: 14px;
  font-weight: 400;
}

.project-price strong {
  font-size: 16px;
  font-weight: 600;
}

.project-price .price-ask {
  font-size: 16px;
  font-weight: 600;
}

.project-price .price-source {
  display: block;
  margin-top: 2px;
  color: var(--color-soft);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.project-links a {
  text-underline-offset: 3px;
}

.gap-line {
  margin: 0;
  min-width: 0;
  color: var(--color-soft);
  font-size: 12px;
  line-height: 1.4;
}

.gap-line summary {
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gap-line[open] summary {
  white-space: normal;
}

.gap-line .source-note,
.project-body .source-note {
  margin: 4px 0 0;
  font-size: 12px;
}

.chip-soon {
  background: var(--color-surface);
  color: var(--color-navy);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
}

.different {
  margin: 0 0 var(--space-5);
}

.different .card {
  box-shadow: none;
}

.fee-note {
  margin: var(--space-4) 0 0;
  max-width: var(--measure);
  color: var(--color-soft);
  font-size: 14px;
  line-height: 1.45;
}

.city-copy p {
  margin-bottom: 6px;
}

.listing-note {
  margin-top: 0;
  margin-bottom: 8px;
}

.listing-cta {
  margin-top: var(--space-5);
}

.project-view {
  margin: 0;
}

.project-view a {
  font-weight: 700;
}

.missing-more {
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-2);
}

.missing-more summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-navy);
}

.project-card p,
.project-card h3 {
  margin: 0;
}

.project-card.is-checked,
.project-card.is-protected {
  border: 0;
  background: transparent;
}

.tag-listed,
.tag-checked,
.badge-protected {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 0;
  margin: 0;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.tag-listed {
  background: var(--color-surface);
  color: var(--color-muted);
}

.tag-checked {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-navy);
}

.badge-protected {
  background: var(--color-green);
  color: var(--color-on-navy);
}

.project-photo .tag-listed,
.project-photo .tag-checked {
  background: var(--color-sand);
  color: var(--color-navy);
  box-shadow: var(--shadow-bar);
}

.project-photo .badge-protected {
  box-shadow: var(--shadow-bar);
}

.filter-empty {
  margin: 0 0 var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
}

@media (min-width: 640px) {
  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  button.btn {
    width: auto;
  }

  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .city-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 800px) {
  .card-grid,
  .chooser-grid,
  .seal-list {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid.cols-3,
  .seal-list.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .city-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  body {
    padding-bottom: 0;
  }

  .home-hero {
    height: 68vh;
    min-height: 68vh;
    max-height: 70vh;
  }

  .home-hero-copy {
    padding-bottom: 32px;
  }

  .nav-mobile,
  .tabbar {
    display: none;
  }

  .header-start,
  .nav-desktop,
  .header-tools {
    flex-shrink: 0;
  }

  .header-tools {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }

  .nav-desktop {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 18px;
  }

  .nav-desktop a {
    white-space: nowrap;
  }

  .header-tools .nav-cta {
    display: inline-flex;
  }
}

/* Five labels plus the review button fit the 1280 row. Below that, tighten
   the gaps so Spanish stays on one line from the desktop breakpoint. */
@media (min-width: 960px) and (max-width: 1099px) {
  .header-inner {
    gap: 8px;
  }

  .nav-desktop {
    gap: 8px;
  }

  .nav-desktop a {
    font-size: 14px;
  }

  .nav-cta.btn-sm {
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.guide {
  overflow-wrap: break-word;
}

.guide-open {
  font-size: 1.125rem;
  line-height: 1.6;
}

.guide p,
.guide li {
  line-height: 1.65;
}

.guide h2,
.guide h3 {
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}

.guide h2 {
  margin-top: var(--space-7);
}

.guide h3 {
  margin-top: var(--space-5);
}

.guide h2 + h3,
.guide .toc + h2 {
  margin-top: var(--space-4);
}

.guide h3:has(> a:only-child) {
  margin: var(--space-5) 0 0;
  padding: var(--space-4) var(--space-4) 0;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.guide h3:has(> a:only-child) + p {
  margin-top: 0;
  padding: 0 var(--space-4) var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.guide .disclaimer-box {
  margin: var(--space-5) 0;
}

.guide .disclaimer-box p:last-child {
  margin-bottom: 0;
}

.toc {
  background: var(--color-surface-low);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0 var(--space-6);
}

.toc p {
  margin: 0 0 var(--space-3);
  font-weight: 700;
  color: var(--color-navy);
}

.toc ol {
  margin: 0;
}

.toc a {
  font-weight: 600;
}

.prose .guide-checks {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  counter-reset: check;
  display: grid;
  gap: var(--space-3);
}

.guide-checks > li {
  counter-increment: check;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  margin: 0;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}

.guide-checks > li::before {
  content: counter(check);
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 700;
}

.guide-checks > li > .guide-check-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.prose > .compare-wrap {
  max-width: var(--measure);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
}

.compare th,
.compare td {
  vertical-align: top;
  text-align: left;
  padding: var(--space-3);
  border: 1px solid var(--color-line);
  overflow-wrap: break-word;
}

.compare thead th {
  background: var(--color-navy);
  color: var(--color-on-navy);
}

.compare tbody th {
  background: var(--color-surface-low);
  color: var(--color-navy);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: grid;
  gap: var(--space-3);
}

.check-item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  margin: 0;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}

.check-item input {
  width: 1.5rem;
  height: 1.5rem;
  min-height: 0;
  margin-top: 0.15rem;
  accent-color: var(--color-navy);
}

.check-item label {
  display: block;
  color: var(--color-navy);
  font-weight: 700;
  min-height: 44px;
}

.check-why {
  margin: var(--space-2) 0 0;
}

.print-state,
.print-banner,
.print-disclaimer {
  display: none;
}

.notify-card {
  margin: var(--space-4) 0 var(--space-5);
}

.notify-title {
  margin: 0 0 var(--space-2);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 1.125rem;
}

.req-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: grid;
  gap: var(--space-3);
}

.req-list > li {
  margin: 0;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}

.req-list .req-title {
  margin: 0;
  color: var(--color-navy);
  font-weight: 700;
}

.req-list .req-title + p {
  margin: var(--space-2) 0 0;
}

.interest-form {
  margin-top: var(--space-5);
}

.stage-grid {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: grid;
  gap: var(--space-3);
}

.stage-card {
  margin: 0;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.stage-card h2 {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  margin: var(--space-3) 0 var(--space-2);
  font-size: 1.25rem;
}

.stage-card p:last-child {
  margin-bottom: 0;
}

.stage-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
}

.stage-num {
  color: var(--color-green);
  font-weight: 700;
}

.stage-icon {
  display: block;
  width: 3rem;
  height: 3rem;
  margin: var(--space-3) 0;
  color: var(--color-navy);
}

.stage-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-3) 0;
  text-decoration: none;
}

.stage-badge img {
  width: 160px;
  max-width: 100%;
  height: auto;
}

.fees-list {
  margin: 0 0 var(--space-4);
  padding-left: 1.2rem;
}

@media (min-width: 960px) {
  .stage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.field-error {
  margin: var(--space-2) 0 0;
  color: var(--color-terracotta);
  font-weight: 600;
}

.form-fallback:focus {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

input[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border-color: var(--color-terracotta);
}

.check-tools {
  margin: var(--space-4) 0;
}

@media (max-width: 959px) {
  .compare {
    display: block;
  }

  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .compare tbody {
    display: grid;
    gap: var(--space-4);
  }

  .compare tr {
    display: block;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: var(--space-4);
  }

  .compare tbody th,
  .compare td {
    display: block;
    width: auto;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .compare tbody th {
    margin-bottom: var(--space-3);
    font-size: 1.0625rem;
  }

  .compare td {
    border-top: 1px solid var(--color-line);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
  }

  .compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-navy);
    font-weight: 700;
  }
}

@media (min-width: 960px) {
  .prose > .compare-wrap {
    max-width: none;
    width: min(var(--max), calc(100vw - 40px));
    margin-left: calc(50% - min(var(--max), calc(100vw - 40px)) / 2);
  }

  .compare {
    table-layout: fixed;
  }
}

@media print {
  .site-header,
  .site-footer,
  .tabbar,
  .early-access,
  .toc,
  .check-tools,
  .notify-card,
  .interest-form,
  .crumbs {
    display: none;
  }

  body {
    padding: 0 0 28mm;
    background: var(--color-white);
  }

  .print-banner,
  .print-disclaimer {
    display: block;
  }

  .print-banner {
    margin: 0 0 var(--space-4);
    color: var(--color-ink);
  }

  .print-disclaimer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 8px 16px;
    border-top: 1px solid var(--color-ink);
    background: var(--color-white);
    color: var(--color-ink);
    font-size: 11px;
    line-height: 1.4;
  }

  .print-state {
    display: block;
    margin: var(--space-2) 0 0;
    font-weight: 700;
  }

  .check-item:has(input:checked) .print-state::before {
    content: attr(data-done);
  }

  .check-item:has(input:not(:checked)) .print-state::before {
    content: attr(data-open);
  }

  .check-item,
  .guide-checks > li,
  .disclaimer-box {
    break-inside: avoid;
  }
}

.stage-bar {
  position: relative;
  margin: 0 0 10px;
}

.stage-steps {
  --stage-at: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stage-steps::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 12.5%;
  right: 12.5%;
  height: 0;
  border-top: 2px dotted var(--color-green);
  z-index: 0;
}

.stage-steps li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 3px;
  min-width: 0;
  text-align: center;
}

.stage-dot {
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border: 1.5px solid var(--color-muted);
  border-radius: 50%;
  background: var(--color-sand);
}

.stage-steps .is-done .stage-dot,
.stage-steps .is-current .stage-dot {
  background: var(--color-green);
  border-color: var(--color-green);
}

.stage-label {
  max-width: 100%;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.stage-steps .is-current .stage-label,
.stage-steps .is-done .stage-label {
  color: var(--color-green);
}

.stage-steps .is-current .stage-label {
  font-weight: 700;
}

.stage-note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.3;
}

.stage-note a {
  font-weight: 600;
}

.stage-explainer {
  margin-top: var(--space-5);
}

.listing {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}

.listing h1 {
  text-wrap: balance;
}

.listing-photo {
  margin: 0;
  position: relative;
}

.listing-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--color-surface);
}

.listing-photo figcaption {
  margin-top: var(--space-2);
  color: var(--color-soft);
  font-size: 12px;
}

.listing-photo-empty {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-muted);
}

.listing-photo-empty p {
  margin: 0;
}

.listing-place {
  margin: 0 0 var(--space-4);
  color: var(--color-soft);
}

.listing-facts,
.detail-list {
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
}

.listing-facts > div,
.detail-list > div {
  display: grid;
  gap: 4px;
}

.listing-facts dt,
.detail-list dt {
  color: var(--color-navy);
  font-weight: 700;
}

.listing-facts dd,
.detail-list dd {
  margin: 0;
}

.listing-facts .price-source {
  display: block;
  margin-top: 2px;
  color: var(--color-soft);
  font-size: 12px;
  font-weight: 400;
}

.detail-list > div {
  padding: var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.detail-list p,
.detail-intro,
.listing-site,
.claim-link {
  margin: 0;
}

.detail-list p + p {
  margin-top: var(--space-2);
}

.price-unavailable,
.detail-empty {
  color: var(--color-muted);
}

.detail-source {
  color: var(--color-soft);
  font-size: var(--font-size-label);
}

.claim-link {
  margin-top: 12px;
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.claim-link a {
  color: var(--color-muted);
}

.interest-block {
  margin-top: var(--space-4);
}

.interest {
  margin-top: 0;
}

.interest > summary {
  list-style: none;
  width: 100%;
}

.interest > summary::-webkit-details-marker {
  display: none;
}

.interest[open] > summary {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-line);
}

.interest-panel {
  display: none;
}

.interest-block:has(details[open]) .interest-panel {
  display: block;
}

.interest .form-card,
.interest-panel .form-card {
  margin-top: var(--space-4);
}

.demand-line {
  margin: 0 0 var(--space-3);
  color: var(--color-navy);
  font-weight: 700;
}

.demand-line span {
  display: block;
  font-weight: 500;
}

.interest-thanks,
.interest-confirm {
  margin-top: var(--space-4);
}

.interest-question {
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.scale,
.answer-list {
  border: 0;
  margin: 0 0 var(--space-4);
  padding: 0;
}

.scale-ends {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--color-soft);
  font-size: 12px;
  line-height: 1.3;
}

.scale-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: var(--space-2);
}

.scale-choice {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
  font-weight: 700;
}

.scale-choice input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
}

.answer-list {
  border: 0;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.choice {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin-top: 0.2rem;
}

.interest-confirm {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--color-mint);
  border-radius: var(--radius-md);
}

.interest-confirm p {
  margin: 0;
}

.contact-choice {
  border: 0;
  margin: 0;
  padding: 0;
}

.contact-choice legend {
  padding: 0;
  margin-bottom: var(--space-2);
  font-weight: 700;
  color: var(--color-navy);
}

.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

@media (max-width: 799px) {
  .listing {
    gap: var(--space-3);
  }

  .listing-photo img,
  .listing-photo-empty {
    aspect-ratio: 16 / 9;
  }

  .listing h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-2);
  }

  .listing-place,
  .listing-facts {
    margin-bottom: var(--space-3);
  }

  .interest-block {
    margin-top: var(--space-3);
  }
}

@media (min-width: 800px) {
  .listing {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: var(--space-6);
  }
}

.badge-band {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: end;
  padding: var(--space-4);
  margin: 0 0 var(--space-4);
  border-radius: var(--radius-md);
}

.badge-band.is-light {
  background: var(--color-sand);
}

.badge-band.is-dark {
  background: var(--color-navy);
}

.badge-band figure {
  margin: 0;
}

.badge-band figcaption {
  margin-top: var(--space-2);
  font-size: var(--font-size-label);
  color: var(--color-muted);
}

.badge-band.is-dark figcaption {
  color: var(--color-sand);
}

.mock-project {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin: 0 0 var(--space-5);
}

.mock-project.is-dark {
  background: var(--color-navy);
  color: var(--color-sand);
  border-color: var(--color-navy);
}

.mock-project.is-dark h2 {
  color: var(--color-sand);
}

.mock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.mock-actions img {
  width: 160px;
  max-width: 100%;
  height: auto;
}

.mock-footer,
.mock-sign {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  margin: 0 0 var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.mock-footer img {
  width: 100px;
  height: auto;
}

.mock-sign img {
  width: 90px;
  height: auto;
}

.mock-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
  font-weight: 700;
}

/* Dantes surfaces: chat, cards, listing detail. Tokens only. */

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
  box-shadow: var(--shadow-card);
}

.brand,
.footer-brand,
.wordmark {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}

.project-card,
.city-card,
.search-card,
.rail-card,
.thread-card,
.profile-panel,
.open-facts,
.msg {
  background: var(--color-white);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  padding: 0;
}

.project-card:hover {
  box-shadow: var(--shadow-bar);
}

.project-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface);
}

.project-card-media img,
.thread-card img,
.listing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-4);
}

.project-card h3,
.thread-card h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}

.project-card h3 a,
.thread-card h3 a,
.crumbs a,
.project-source,
.price-source {
  text-decoration: none;
}

.project-card h3 a:hover,
.thread-card h3 a:hover,
.crumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-price,
.thread-price,
.price-block {
  font-size: var(--text-price);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-ink);
}

.project-price .price-from,
.price-block .price-from {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
}

.project-price .price-source,
.price-block .price-source {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-muted);
}

.project-facts,
.project-loc,
.project-source,
.missing-chip {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.project-loc {
  color: var(--color-ink);
}

.status-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-white);
  color: var(--color-ink);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.save-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: var(--shadow-bar);
  cursor: pointer;
}

.save-heart[aria-pressed='true'] {
  color: var(--color-pin);
}

.save-heart[aria-pressed='true'] path {
  fill: currentColor;
}

.status-pill-inline {
  position: static;
  display: inline-flex;
  margin: var(--space-4) 0 0;
}

.project-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.advisor-home {
  padding: var(--space-7) 0 var(--space-6);
  background: var(--color-surface);
}

.advisor-grid {
  display: grid;
  gap: var(--space-5);
}

.advisor-main h1 {
  font-size: var(--text-display);
  margin-bottom: var(--space-2);
}

.advisor-main .lede {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin: 0 0 var(--space-4);
}

.thread {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 280px;
  max-height: 640px;
  overflow: auto;
  padding: var(--space-4);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.msg {
  max-width: 42rem;
  padding: var(--space-3) var(--space-4);
  box-shadow: none;
}

.msg p {
  margin: 0 0 8px;
}

.msg p:last-child {
  margin-bottom: 0;
}

.msg-dantes {
  background: var(--color-mint);
}

.msg-user {
  align-self: flex-end;
  background: var(--color-surface);
}

.thread-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: var(--space-3);
  overflow: hidden;
  padding: 0;
}

.thread-card {
  overflow: visible;
}

.thread-card img {
  width: 112px;
  height: 100%;
  min-height: 96px;
  max-height: none;
  object-fit: cover;
}

.thread-card div {
  padding: var(--space-3) var(--space-4) var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.thread-card .score-marks {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.starter-row,
.place-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.starter,
.place-chips button {
  border: 0;
  background: var(--color-white);
  color: var(--color-ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  padding: 8px 14px;
  font: 500 var(--text-sm) var(--font-sans);
  cursor: pointer;
}

.composer {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.composer textarea,
.search-card input,
.profile-panel input,
.profile-panel textarea,
.rail-card input,
.rail-card select,
.rail-card textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: 400 var(--font-size-body) var(--font-sans);
  background: var(--color-white);
  color: var(--color-ink);
}

.search-card input {
  min-height: 56px;
  box-shadow: var(--shadow-lg);
  border: 0;
}

.composer-actions,
.advisor-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.composer-actions {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.file-btn {
  font-size: var(--text-sm);
  color: var(--color-muted);
  cursor: pointer;
}

.file-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.search-card,
.profile-panel,
.rail-card {
  padding: var(--space-5);
}

.search-card h2,
.rail-card h2,
.profile-panel {
  font-size: var(--text-h3);
}

.search-card label,
.profile-panel label,
.rail-card label {
  display: block;
  margin: var(--space-3) 0 var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
}

.continue-offer,
.fee-note,
.listing-note {
  color: var(--color-muted);
  font-size: var(--text-sm);
  max-width: 62ch;
}

.score-marks {
  margin: var(--space-4) 0;
  padding-left: 1.15rem;
  color: var(--color-text, var(--color-ink));
  font-size: var(--text-sm);
}

.score-marks li {
  margin: 0 0 6px;
}

.listing-layout {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

.listing-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
}

.listing-photo img {
  aspect-ratio: 16 / 10;
}

.facts-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-5) 0;
}

.facts-bar div,
.open-facts-list li {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}

.facts-bar dt,
.open-facts-list li > span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.facts-bar dd,
.open-facts-list p {
  margin: 4px 0 0;
}

.open-facts {
  padding: var(--space-5);
  margin-top: var(--space-5);
}

.open-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.listing-rail {
  position: sticky;
  top: 80px;
}

.rail-card .interest summary {
  min-height: 40px;
}

.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
}

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

.site-footer a {
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.8;
}

.site-footer a:hover {
  opacity: 1;
}

.site-footer .disclaimer,
.footer-tag,
.copyright {
  color: var(--color-white);
  opacity: 0.72;
  font-size: var(--text-xs);
  max-width: none;
}

.footer-tag {
  font-size: var(--text-sm);
}

.city-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.city-card {
  overflow: hidden;
  text-decoration: none;
  color: var(--color-ink);
}

.city-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  display: block;
}

.city-card-body {
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.tabbar {
  display: none;
}

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
  box-shadow: none;
}

.header-inner {
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--color-ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-green);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-icon {
  width: 20px;
  height: 20px;
}

.brand-dot {
  color: var(--color-green);
}

.brand-badge {
  display: none;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-mint);
  color: var(--color-green);
  font-size: var(--text-xs);
  font-weight: 600;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.header-tools .nav-cta,
.nav-cta {
  white-space: nowrap;
  flex: 0 0 auto;
}

.results-page .page-head,
.results-count {
  margin: 0;
}

.results-count {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 600;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  padding: 8px 0 16px;
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-muted);
}

.filter-bar select {
  min-height: 40px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  padding: 0 10px;
  font: 500 var(--text-sm) var(--font-sans);
}

.view-toggle {
  display: none;
  margin-left: auto;
}

.split-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto 48px;
}

.results-list {
  min-width: 0;
}

.results-map-wrap {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.results-map {
  height: calc(100vh - 140px);
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.map-move {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

.map-move input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--color-green);
}

.leaflet-container img {
  max-width: none !important;
  max-height: none !important;
}

.view-toggle button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-ink);
  font: 600 var(--text-sm) var(--font-sans);
  cursor: pointer;
}

.view-toggle button[aria-pressed='true'] {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}

.leaflet-div-icon.price-pin {
  background: var(--color-white);
  color: var(--color-ink);
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-bar);
  font: 700 12px var(--font-sans);
  padding: 4px 8px;
  width: auto !important;
  height: auto !important;
  white-space: nowrap;
}

.price-pin.is-hot,
.project-card.is-hot {
  outline: 2px solid var(--color-green);
}

.price-pin.is-hot {
  background: var(--color-green);
  color: var(--color-white);
}

.pin-card {
  display: grid;
  gap: 2px;
  width: 180px;
  color: var(--color-ink);
  text-decoration: none;
}

.pin-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.pin-card em {
  color: var(--color-muted);
  font-style: normal;
  font-size: 11px;
}

@media (max-width: 800px) {
  .view-toggle {
    display: inline-flex;
    gap: 6px;
  }

  .split-results {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 1440px);
  }

  .results-map-wrap {
    position: static;
    display: none;
  }

  .results-page.is-map .results-list {
    display: none;
  }

  .results-page.is-map .results-map-wrap {
    display: block;
  }

  .results-map {
    height: 70vh;
  }
}

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-white);
  text-align: center;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 32px));
  padding: 48px 0;
}

.hero-pill {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hero-chip-line);
  background: var(--hero-pill-bg);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-sub {
  margin: 14px auto 0;
  max-width: 38rem;
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 500;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px auto 0;
  padding: 8px 8px 8px 18px;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
}

.hero-search-icon {
  color: var(--color-green);
  display: inline-flex;
}

.hero-search input {
  flex: 1 1 auto;
  width: auto;
  min-width: 8rem;
  border: 0;
  background: transparent;
  font: 400 1rem var(--font-sans);
  color: var(--color-ink);
  -webkit-text-fill-color: var(--color-ink);
  caret-color: var(--color-ink);
  min-height: 44px;
  box-shadow: none;
}

.hero-search input:focus {
  outline: none;
}

.hero-submit {
  border-radius: var(--radius-pill);
  min-height: 44px;
  padding: 0 18px;
  white-space: nowrap;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.hero-try {
  color: var(--color-white);
  font-size: var(--text-xs);
  align-self: center;
}

.hero-chip {
  border: 1px solid var(--hero-chip-line);
  background: var(--hero-chip-bg);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font: 600 var(--text-xs) var(--font-sans);
  cursor: pointer;
}

.hero-credit {
  position: absolute;
  right: 16px;
  bottom: 10px;
  z-index: 1;
  margin: 0;
  font-size: 11px;
}

.hero-credit a {
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.85;
}

.trust-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}

.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 14px 0;
  list-style: none;
}

.trust-strip li {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
}

.feature-section {
  padding: 48px 0 64px;
  background: var(--color-white);
}

.feature-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.feature-eyebrow {
  margin: 0 0 4px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.feature-note {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.view-all,
.ask-link {
  color: var(--color-green);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
}

.feature-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card,
.project-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.feature-card {
  border-radius: 16px;
}

.project-card {
  border-radius: var(--radius-md);
}

.feature-card:hover,
.project-card:hover {
  box-shadow: var(--shadow-bar);
}

.feature-media,
.project-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  overflow: hidden;
}

.feature-media img,
.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.type-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-green);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 700;
}

.feature-body,
.project-body {
  padding: 16px 18px 18px;
}

.feature-price,
.project-price strong,
.project-price .price-ask {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}

.feature-cite,
.project-source,
.project-photo-credit,
.missing-chip {
  margin: 2px 0 0;
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.feature-card h3,
.project-card h3 {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 700;
}

.feature-card h3 a,
.project-card h3 a {
  color: var(--color-ink);
  text-decoration: none;
}

.feature-place,
.project-loc,
.project-facts {
  margin: 2px 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.feature-body .ask-link,
.project-body .ask-link {
  display: inline-flex;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-line);
  width: 100%;
}

.chat-panel {
  padding: 8px 0 64px;
  background: var(--color-surface);
}

.chat-layout {
  display: grid;
  gap: 20px;
}

.site-footer {
  background: var(--color-white);
  color: var(--color-muted);
  border-top: 1px solid var(--color-line);
  padding: 28px 0;
}

.footer-plain {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  align-items: center;
}

.site-footer .disclaimer,
.site-footer .copyright,
.footer-links {
  color: var(--color-muted);
  opacity: 1;
  font-size: var(--text-xs);
  margin: 0;
  max-width: 70ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.site-footer a {
  color: var(--color-muted);
  opacity: 1;
}

@media (min-width: 900px) {
  .brand-badge {
    display: inline-flex;
  }

  .chat-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  }

  .hero {
    min-height: 580px;
  }
}

@media (max-width: 800px) {
  .header-tools .nav-cta {
    display: none;
  }

  .header-tools .profile-toggle {
    display: inline-flex;
    max-width: 112px;
    padding: 0 8px;
  }

  .feature-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-try {
    display: none;
  }

  .hero-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 28px;
  }

  .hero-search-icon {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .hero-search input {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
  }

  .hero-submit {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .trust-strip ul {
    flex-direction: column;
  }
}

@media (min-width: 900px) {
  .advisor-grid,
  .listing-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  }
}

.project-body .project-photo-credit {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: var(--text-xs);
  pointer-events: auto;
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-ink);
  border-color: var(--color-line);
}

.price-block .price-from,
.price-block strong {
  display: inline;
}

.price-source a,
.listing-photo a {
  color: var(--color-muted);
  text-decoration: none;
}

.profile-toggle {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-ink);
  font: 600 var(--text-xs) var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .advisor-main h1 {
    font-size: 2rem;
  }

  .facts-bar {
    grid-template-columns: 1fr;
  }

  .thread-card {
    grid-template-columns: 112px 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

.split-results .project-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.split-results .missing-chip,
.split-results .project-photo-credit,
.split-results .project-source,
.split-results .ask-link {
  display: none;
}

@media (min-width: 1100px) {
  .split-results .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

body:has(.results-page) {
  background: var(--color-white);
}

@media (min-width: 801px) {
  html:has(.results-page),
  body:has(.results-page) {
    height: 100dvh;
    overflow: hidden;
  }
}

.results-page {
  position: relative;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-h));
  min-height: 0;
  overflow: hidden;
}

.results-page .results-actions {
  display: contents;
}

/* One filter row. Every control is 40px; menus are positioned in map.js. */
.results-page .filter-bar {
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  box-shadow: inset 0 -1px 0 var(--color-line);
  background: var(--color-white);
  position: relative;
  top: auto;
  z-index: 25;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.results-page .filter-bar::-webkit-scrollbar {
  display: none;
}

.results-page .results-search {
  flex: 0 0 240px;
  width: 240px;
  min-width: 200px;
  max-width: 280px;
}

.results-page .results-search input,
.results-page .filter-trigger,
.results-page .save-search {
  height: 40px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-ink);
  font: 600 14px var(--font-sans);
  padding: 0 14px;
  box-sizing: border-box;
}

.results-page .results-search input {
  width: 100%;
}

.results-page .filter-menu {
  position: relative;
  flex: 0 0 auto;
}

.results-page .filter-trigger {
  display: inline-flex;
  align-items: center;
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.results-page .filter-trigger.is-set,
.results-page .filter-menu.is-open .filter-trigger {
  background: var(--color-mint);
  border-color: var(--color-green);
  color: var(--color-green);
}

.results-page .save-search {
  width: auto;
  flex: 0 0 auto;
  margin-left: auto;
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
  white-space: nowrap;
}

.results-page .save-search[aria-pressed='true'] {
  background: var(--color-navy);
  border-color: var(--color-navy);
}

.filter-panel {
  z-index: 30;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 24px));
  padding: 6px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

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

.filter-panel button[data-value] {
  display: block;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-ink);
  font: 600 14px var(--font-sans);
  text-align: left;
  cursor: pointer;
}

.filter-panel button[data-value]:hover,
.filter-panel button[aria-selected='true'] {
  background: var(--color-mint);
  color: var(--color-green);
}

.filter-panel-more {
  display: grid;
  gap: 10px;
  width: 280px;
  padding: 12px;
}

.filter-panel .map-move,
.filter-panel .pin-note {
  position: static;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  top: auto;
  left: auto;
  white-space: normal;
}

.filter-panel .pin-note {
  color: var(--color-muted);
  font-size: var(--text-xs);
  line-height: 1.4;
}

.filter-menu .visually-hidden {
  pointer-events: none;
}

.results-page .view-toggle {
  display: none;
}

.results-page .split-results {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  width: 100%;
  margin: 0;
  gap: 0;
  grid-template-columns: minmax(280px, 2fr) minmax(0, 3fr);
}

.results-page .results-list {
  order: 0;
  height: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  background: var(--color-surface);
  border-left: 1px solid var(--color-line);
  container-type: inline-size;
}

.results-page .results-list .site-footer {
  margin: 24px -24px -24px;
  background: var(--color-white);
}

.results-page .results-map-wrap {
  position: relative;
  top: auto;
  height: 100%;
  min-height: 0;
  padding: 0 12px 12px;
  z-index: 1;
}

@media (min-width: 801px) {
  body:has(.results-page) {
    display: flex;
    flex-direction: column;
  }

  body:has(.results-page) > #main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  .results-page {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  .results-page .filter-bar {
    height: auto;
    padding: 12px;
    border-bottom: 1px solid var(--color-line);
    box-shadow: none;
  }

  .results-page .split-results {
    margin-top: 12px;
  }
}

.results-page .results-map {
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface);
  z-index: 1;
}

.results-page .results-map .leaflet-top .leaflet-control {
  margin-top: 12px;
}

.results-page .results-map .leaflet-left .leaflet-control {
  margin-left: 12px;
}

.results-page .results-map .leaflet-bottom .leaflet-control-attribution {
  margin: 0 8px 8px 0;
  border-radius: var(--radius-sm);
}

.map-zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 56px;
  z-index: 500;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-navy);
  color: var(--color-white);
  font: 600 12px var(--font-sans);
  letter-spacing: normal;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-bar);
}

.map-zoom-hint[hidden] {
  display: none;
}

.results-toolbar {
  display: block;
  margin-bottom: 12px;
}

.results-toolbar h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.results-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 32px;
}

.results-count,
.results-sort {
  margin: 0;
}

.results-sort {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}

.results-sort select {
  height: 32px;
  min-height: 32px;
  border: 0;
  background: transparent;
  font: 600 14px var(--font-sans);
  padding: 0 4px 0 0;
}

.results-page .project-grid {
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@container (min-width: 540px) {
  .results-page .project-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

.results-page .project-card {
  height: auto;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.results-page .project-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 12px;
}

.results-page .project-price,
.results-page .project-card h3,
.results-page .project-loc,
.results-page .project-facts {
  margin: 0;
}

.results-page .project-price strong,
.results-page .project-price .price-ask {
  font-size: 1.25rem;
  line-height: 1.2;
}

.results-page .project-card h3,
.results-page .project-loc,
.results-page .project-facts {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  line-height: 1.35;
}

.results-page .project-card h3 {
  -webkit-line-clamp: 2;
  font-size: 1rem;
}

.results-page .project-loc,
.results-page .project-facts {
  -webkit-line-clamp: 1;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.results-page .project-loc {
  color: var(--color-ink);
}

.results-page .project-source,
.results-page .project-photo-credit,
.results-page .missing-chip,
.results-page .ask-link,
.results-page .project-desc,
.results-page .project-specs {
  display: none;
}

.leaflet-div-icon.price-pin,
.leaflet-div-icon.pin-count {
  background: var(--color-pin) !important;
  color: var(--color-white) !important;
  border: 2px solid var(--color-white) !important;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-bar);
  font: 700 12px var(--font-sans);
  line-height: 22px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.leaflet-div-icon.price-pin.is-dot {
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  line-height: 10px;
}

.leaflet-div-icon.pin-count {
  background: var(--color-navy) !important;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}

.leaflet-div-icon.pin-count .pin-face {
  font: 700 13px var(--font-sans);
}

.leaflet-div-icon.price-pin.is-approx {
  border-style: dashed !important;
}

.project-card[hidden] {
  display: none !important;
}

.card-photo-count {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  margin: 0;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-scrim);
  color: var(--color-white);
  font: 700 12px var(--font-sans);
}

.example-banner,
.example-note {
  margin: 0 0 8px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.example-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-surface);
}

.map-bounds-toggle {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 500;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-ink);
  font: 600 12px var(--font-sans);
  box-shadow: var(--shadow-bar);
  white-space: nowrap;
}

.map-bounds-toggle input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
}

.results-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 4px;
}

.results-pages button {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
  font: 700 14px var(--font-sans);
  cursor: pointer;
}

.results-pages button[aria-current='page'] {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white);
}

.results-pages button:disabled {
  opacity: 0.4;
  cursor: default;
}

.leaflet-div-icon.price-pin.is-hot,
.leaflet-div-icon.pin-count.is-hot {
  outline: 2px solid var(--color-green);
  z-index: 1000 !important;
}

.project-card.is-hot {
  outline: 2px solid var(--color-pin);
}

.listing-collage {
  position: relative;
}

.listing-collage .listing-photo {
  margin: 0;
}

.listing-collage img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.listing-collage .listing-credit {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  max-width: calc(100% - 150px);
  margin: 0;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-scrim);
  color: var(--color-white);
  font-size: 11px;
  line-height: 1.3;
}

.listing-collage .listing-credit a {
  color: var(--color-white);
}

.see-photos {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font: 700 var(--text-sm) var(--font-sans);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.collage-grid {
  display: grid;
  gap: 4px;
  min-height: 240px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.listing-collage.is-count-1 .collage-grid {
  grid-template-columns: 1fr;
  min-height: 420px;
}

.listing-collage.is-count-2 .collage-grid {
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}

.listing-collage.is-count-3 .collage-grid,
.listing-collage.is-count-4 .collage-grid,
.listing-collage.is-count-5 .collage-grid {
  grid-template-columns: 1.5fr 1fr;
  min-height: 420px;
}

.listing-collage.is-count-3 .collage-cell:first-child,
.listing-collage.is-count-4 .collage-cell:first-child,
.listing-collage.is-count-5 .collage-cell:first-child {
  grid-row: 1 / -1;
}

.collage-cell {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--color-surface);
  cursor: pointer;
}

.collage-cell img,
.listing-collage .collage-cell img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.photo-count {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  margin: 0;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-scrim);
  color: var(--color-white);
  font: 700 12px var(--font-sans);
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  background: var(--color-scrim);
  color: var(--color-white);
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox-bar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.photo-lightbox-bar p,
.photo-lightbox-credit {
  margin: 0;
}

.photo-lightbox-bar button,
.photo-lightbox-nav {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-ink);
  font-size: 1.4rem;
  cursor: pointer;
}

.photo-lightbox img {
  max-width: min(960px, 100%);
  max-height: 72vh;
  margin: 0 auto;
  object-fit: contain;
}

.photo-lightbox-credit {
  grid-column: 1 / -1;
  padding: 12px 16px 20px;
  text-align: center;
  font-size: var(--text-sm);
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 0 0 16px;
}

.fact-item {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 8px;
  align-items: start;
}

.fact-icon {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-green);
}

.fact-item.is-unknown .fact-icon {
  background: var(--color-line);
}

.fact-label,
.fact-value,
.fact-collapsed {
  margin: 0;
}

.fact-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-muted);
}

.fact-value {
  font-size: var(--text-sm);
}

.fact-item.is-unknown .fact-value,
.fact-collapsed {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.home-facts h3 {
  margin: 8px 0;
  font-size: 1rem;
}

.lead-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: var(--shadow-lg);
}

.lead-dialog::backdrop {
  background: var(--color-scrim);
}

.lead-dialog .form-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.lead-dialog .form-card[hidden] {
  display: none;
}

.lead-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lead-dialog-head h2 {
  margin: 0;
  font-size: var(--text-h3);
}

.lead-dialog-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 1.3rem;
  cursor: pointer;
}

.lead-dialog .field,
.lead-dialog textarea {
  margin: 0;
}

.lead-dialog textarea {
  min-height: 72px;
}

.lead-fine {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.35;
}

.rail-price {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.listing-rail .btn {
  width: 100%;
}

@media (max-width: 700px) {
  .fact-grid {
    grid-template-columns: 1fr;
  }
}

.listing-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.listing-tool,
.listing-dialog-close {
  border: 1px solid var(--color-line);
  background: var(--color-white);
  box-shadow: var(--shadow-bar);
}

.listing-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--color-ink);
  font: 600 14px var(--font-sans);
  cursor: pointer;
}

.listing-tool-icon {
  display: inline-flex;
}

.listing-tool[aria-pressed='true'] {
  color: var(--color-pin);
}

.listing-tool[aria-pressed='true'] .listing-tool-icon path {
  fill: currentColor;
}

.listing-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.listing-price-main {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
}

.listing-price-main .price-block {
  margin: 0;
}

.listing-cite,
.listing-cite a {
  order: 3;
  flex: 1 1 100%;
  margin: 0;
  letter-spacing: normal;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-muted);
  text-decoration: none;
}

.listing-price-row .status-pill-inline {
  order: 2;
  position: static;
  display: inline-flex;
  align-items: center;
  margin: 0 0 0 auto;
  white-space: nowrap;
}

.listing-header h1 {
  margin: 8px 0 0;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.listing-header .listing-place {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.listing-header .listing-place a {
  color: var(--color-green);
  font-weight: 600;
}

.listing-specs {
  order: 4;
  flex: 1 1 100%;
  min-width: 0;
  margin: 2px 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.listing-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--color-line);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.listing-byline p {
  margin: 0;
}

.listing-byline-label {
  font-weight: 700;
  color: var(--color-ink);
}

.listing-rail .btn-text,
.listing-rail .interest > summary.btn-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-green);
  font: 600 var(--text-sm) var(--font-sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}

.listing-rail .fee-note {
  margin: 12px 0 0;
  font-size: var(--text-xs);
  line-height: 1.45;
}

.listing-section {
  margin-top: 28px;
}

.listing-section h2 {
  margin-bottom: 8px;
}

.mini-map {
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.rail-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  background: var(--color-white);
}

.rail-actions {
  display: flex;
  gap: 8px;
  margin: 8px 0 12px;
}

.listing-rail .btn {
  width: 100%;
  margin-top: 8px;
}

.listing-rail .ask-row {
  display: none;
}

.listing-dock {
  display: none;
}

.listing-modal[hidden] {
  display: none;
}

.listing-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: transparent;
}

.listing-scrim {
  position: absolute;
  inset: 0;
  background: var(--color-scrim);
}

.listing-dialog {
  position: absolute;
  z-index: 1;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}

.listing-dialog-tools {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  height: 0;
  padding: 12px 12px 0;
  pointer-events: none;
}

.listing-dialog-tools .listing-tools,
.listing-dialog-tools .listing-dialog-close {
  position: relative;
  top: 0;
  right: auto;
  pointer-events: auto;
}

.listing-dialog-tools .listing-tools {
  position: static;
}

.listing-dialog-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  color: var(--color-ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.listing-modal .wrap.listing-layout {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 16px 16px 32px;
}

.listing-modal .listing-collage .listing-photo {
  border-radius: 0;
  box-shadow: none;
}

body.has-listing-modal {
  overflow: hidden;
}

.results-page .ask-fab,
.ask-fab {
  position: absolute;
  left: calc(40% - 28px);
  right: auto;
  bottom: 44px;
  z-index: 5;
  width: auto;
  transform: translateX(-100%);
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-green);
  color: var(--color-white);
  font: 700 var(--text-sm) var(--font-sans);
  box-shadow: var(--shadow-bar);
  cursor: pointer;
  white-space: nowrap;
}

body:has(.chat-drawer.is-open) .ask-fab,
body.has-listing-modal .ask-fab,
body:has(.chat-drawer.is-open) .view-toggle,
body.has-listing-modal .view-toggle {
  display: none;
}

.chat-drawer {
  position: fixed;
  z-index: 40;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s ease;
}

.chat-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.chat-drawer-handle {
  display: none;
  width: 48px;
  height: 22px;
  margin: 6px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.chat-drawer-handle::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: var(--radius-pill);
  background: var(--color-line);
}

.chat-drawer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-line);
}

.chat-tabs {
  display: flex;
  gap: 4px;
  min-width: 0;
}

.chat-tab {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-muted);
  font: 600 14px var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
}

.chat-tab.is-active,
.chat-tab[aria-selected='true'] {
  background: var(--color-mint);
  color: var(--color-green);
}

.chat-drawer-close {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.chat-drawer .chat-pane {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.chat-drawer .chat-pane[hidden] {
  display: none;
}

.chat-drawer .thread {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  border-radius: 0;
  box-shadow: none;
}

.chat-drawer .thread > * {
  flex: 0 0 auto;
}

.chat-drawer .composer {
  margin: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-line);
  background: var(--color-white);
}

.chat-empty {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-greeting {
  margin: 0;
  color: var(--color-ink);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-suggest {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-ink);
  font: 600 13px var(--font-sans);
  text-align: left;
  cursor: pointer;
}

.composer-compact .composer-field {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 4px 4px 4px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-white);
}

.composer-compact .composer-field:focus-within {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-green) 22%, transparent);
}

.composer.composer-compact textarea,
.composer.composer-compact textarea:focus,
.composer.composer-compact textarea:focus-visible {
  flex: 1;
  width: auto;
  min-height: 24px;
  max-height: 96px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  resize: none;
  overflow: auto;
  appearance: none;
  background: transparent;
  font: 400 16px var(--font-sans);
  line-height: 1.35;
}

.composer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
}

.composer-icon input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.composer-send {
  background: var(--color-green);
  color: var(--color-white);
}

.chat-drawer .profile-panel {
  overflow: auto;
  max-height: none;
  height: 100%;
  margin: 0;
  box-shadow: none;
}

.chat-drawer #chat-pane-profile {
  overflow: auto;
  padding: 8px 16px 24px;
}

.agent-card,
.agent-sent {
  margin: 8px 0 12px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.agent-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--color-ink);
  font-size: 16px;
  font-weight: 600;
}

.agent-field input,
.agent-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--color-frame);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
  font: 400 16px/1.3 var(--font-sans);
}

.agent-phone {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.agent-phone .agent-field:first-child {
  flex: 0 0 108px;
}

.agent-phone .agent-field:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.agent-card .btn {
  min-height: 48px;
  font-size: 16px;
}

.agent-optin,
.agent-preview,
.agent-error,
.agent-sent p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.4;
}

.agent-sent p + p {
  margin-top: 8px;
}

.agent-error {
  color: var(--color-pin);
}

.agent-continue {
  color: var(--color-green);
  font-weight: 600;
  text-decoration: underline;
}

.request-tracker {
  margin: 0 0 20px;
}

.request-tracker h2,
.request-item h3 {
  margin: 0 0 8px;
  font-size: var(--text-h3);
  font-weight: 600;
}

.request-item {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.request-status {
  margin: 0 0 4px;
  color: var(--color-green);
  font-size: 14px;
  font-weight: 600;
}

.request-item p,
.request-when {
  margin: 0 0 4px;
}

.request-when {
  color: var(--color-muted);
}

.profile-contact {
  margin: 12px 0;
}

@media (max-width: 720px) {
  .agent-field,
  .agent-field input,
  .agent-field select,
  .agent-card .btn,
  .agent-optin,
  .agent-continue,
  .agent-sent p,
  .request-status,
  .request-item h3,
  .request-item p {
    font-size: 20px;
  }
}

.chat-drawer #chat-pane-profile .profile-panel {
  height: auto;
  overflow: visible;
  padding: 0 0 16px;
}

.saved-lists h2,
.profile-head h2 {
  margin: 0 0 12px;
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.saved-lists {
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-line);
}

.saved-lists + .profile-panel {
  margin-top: 24px;
}

.saved-empty {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.saved-list {
  margin: 0 0 16px;
}

.saved-list h3 {
  margin: 0 0 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
}

.saved-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.saved-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--color-ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.saved-list a:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.saved-list img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: 0 0 auto;
}

.saved-list a span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.saved-list a strong {
  font-size: 14px;
}

.saved-list a span span {
  color: var(--color-muted);
  font-size: 12px;
}

.save-popover {
  position: fixed;
  z-index: 80;
  width: min(320px, calc(100vw - 24px));
}

.save-popover[hidden],
.save-toast[hidden],
.save-remove[hidden] {
  display: none;
}

.save-popover-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-bar);
}

.save-popover-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.save-list-choices {
  display: grid;
  gap: 4px;
  max-height: 180px;
  overflow: auto;
}

.save-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font-size: 14px;
  font-weight: 600;
}

.save-list-row input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  flex: 0 0 auto;
}

.save-new-list {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.save-popover input[type='text'] {
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font: 500 14px var(--font-sans);
}

.save-popover-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.save-remove {
  margin-right: auto;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-pin);
  font: 700 14px var(--font-sans);
  cursor: pointer;
}

.save-popover.is-sheet {
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: auto;
}

.save-popover.is-sheet .save-popover-card {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.save-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 24px);
  padding: 8px 8px 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-bar);
  font: 600 14px var(--font-sans);
}

.save-toast button {
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--color-white);
  font: 700 14px var(--font-sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (min-width: 801px) {
  .listing-layout {
    align-items: start;
  }

  .listing-rail {
    position: sticky;
    top: 88px;
  }

  .listing-modal .listing-rail {
    top: 12px;
  }

  .listing-dialog {
    top: 16px;
    bottom: 16px;
    left: calc(40% + 8px);
    right: 16px;
    width: auto;
    border-radius: var(--radius-md);
  }

  .chat-drawer {
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(400px, 100vw);
    transform: translateX(100%);
  }

  .chat-drawer.is-open {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 800px) {
  .results-page {
    height: auto;
    min-height: calc(100dvh - var(--header-h));
    overflow: visible;
  }

  .results-page .split-results {
    display: block;
    height: auto;
  }

  .results-page .results-list {
    order: 0;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-left: 0;
    padding-bottom: 24px;
  }

  .results-page .results-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px 0;
  }

  .results-page .results-actions .ask-fab {
    position: static;
    width: auto;
    margin: 0;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
  }

  .results-page .project-grid {
    grid-template-columns: 1fr;
  }

  .results-page:not(.is-map) .results-map-wrap {
    display: block;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
  }

  .results-page:not(.is-map) .results-map {
    display: none;
    height: 0;
  }

  .results-page.is-map .results-list {
    display: none;
  }

  .results-page.is-map .results-map-wrap {
    display: block;
    position: relative;
    width: auto;
    height: calc(100dvh - var(--header-h) - 92px);
    padding: 12px;
    overflow: visible;
  }

  .results-page.is-map .results-map {
    display: block;
    position: relative;
    width: auto;
    height: 100%;
    overflow: hidden;
  }

  body:has(.results-page.is-map) {
    overflow: hidden;
  }

  body:has(.results-page.is-map) .site-footer {
    display: none;
  }

  .results-page .view-toggle {
    display: inline-flex;
    position: static;
    align-self: center;
    width: auto;
    margin: 0;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: none;
  }

  .results-page .view-toggle button {
    min-height: 36px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    background: var(--color-white);
    color: var(--color-ink);
  }

  .results-page .view-toggle button[aria-pressed='true'] {
    background: var(--color-green);
    color: var(--color-white);
  }

  .listing-dialog {
    left: 0;
    right: 0;
    top: 16dvh;
    bottom: 0;
    width: auto;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .listing-dock {
    display: block;
    position: sticky;
    bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--color-white);
    border-top: 1px solid var(--color-line);
  }

  .listing-dock .btn {
    width: 100%;
  }

  .listing-rail {
    position: static;
  }

  .chat-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60dvh;
    transform: translateY(110%);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .chat-drawer.is-open {
    transform: translate3d(0, 0, 0);
  }

  .chat-drawer.is-expanded {
    height: 100dvh;
    border-radius: 0;
  }

  .chat-drawer-handle {
    display: block;
  }
}

/* Frame the map on the element Leaflet actually mounts. The line token is too pale on the tiles. */
.results-page .results-map.leaflet-container {
  position: relative;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.results-page .results-map.leaflet-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 450;
  border: 1px solid var(--color-frame);
  border-radius: inherit;
  pointer-events: none;
}

.memory-example,
.memory-empty {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.memory-example {
  margin-bottom: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.memory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.memory-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line);
}

.memory-label {
  display: block;
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted);
}

.memory-value,
.memory-edit {
  margin: 2px 0 0;
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.memory-edit {
  width: 100%;
  min-height: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--color-frame);
  border-radius: var(--radius-sm);
}

.memory-actions {
  display: flex;
  gap: 4px;
}

.memory-actions button {
  min-height: 32px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--color-green);
  font: 600 12px var(--font-sans);
  cursor: pointer;
}

.listing-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 14px 0 0;
  color: var(--color-navy);
  font-size: 1.05rem;
  font-weight: 600;
}

.listing-stats strong {
  margin-right: 6px;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.fact-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.fact-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-navy);
}

.fact-tile-icon {
  display: flex;
  flex: 0 0 auto;
  color: var(--color-navy);
}

.fact-tile p {
  display: grid;
  gap: 2px;
  margin: 0;
  min-width: 0;
}

.fact-tile strong {
  font-size: 14px;
  font-weight: 700;
}

.fact-tile p span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
}

.profile-meter {
  margin: 0 0 14px;
}

.profile-meter p,
.profile-meter-label {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.profile-why,
.lead-success > p {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
}

.profile-bar {
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-line);
  overflow: hidden;
}

.profile-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-green);
}

.memory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.memory-chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-ink);
  font: 600 13px var(--font-sans);
  cursor: pointer;
}

.memory-chip:has(input),
.memory-chip:has(select) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-md);
}

.memory-chip input,
.memory-chip select {
  width: 150px;
  min-height: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
}

.memory-reach {
  display: grid;
  gap: 6px;
  width: min(100%, 320px);
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.memory-reach label {
  font-size: 12px;
  font-weight: 700;
}

.memory-reach input {
  width: 100%;
  min-height: 40px;
}

.memory-reach .btn {
  justify-self: start;
  margin-top: 4px;
}

.profile-pill {
  margin-left: 6px;
  color: var(--color-green);
  font-size: 11px;
  font-weight: 700;
}

.profile-nudge {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 36px;
  padding: 6px 20px;
  border: 0;
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-navy);
  font: 600 12px var(--font-sans);
  text-align: left;
  cursor: pointer;
}

.profile-nudge[hidden] {
  display: none;
}

.profile-nudge .profile-bar {
  flex: 0 0 96px;
}

.welcome-back {
  margin: 0 0 10px;
  color: var(--color-white);
  font-size: 1.05rem;
  font-weight: 700;
}

.welcome-back[hidden] {
  display: none;
}

.field-help {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.35;
}

.lead-opt-in {
  margin: 0;
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.lead-continue {
  justify-self: start;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-green);
  font: 600 14px var(--font-sans);
  cursor: pointer;
  text-align: left;
}

.request-strip {
  display: grid;
  gap: 8px;
  margin: 12px auto;
}

.request-strip[hidden] {
  display: none;
}

.request-heading {
  margin: 0 0 8px;
  font-size: 1rem;
}

.request-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-ink);
  text-align: left;
}

.request-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.request-card.is-compact {
  grid-template-columns: 56px minmax(0, 1fr);
}

.request-card.is-compact img {
  width: 56px;
  height: 56px;
}

.request-name {
  margin: 0;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.request-steps {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.request-steps li {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
}

.request-steps li.is-done {
  color: var(--color-green);
}

.request-steps li.is-current {
  color: var(--color-navy);
}

.request-answer {
  display: block;
  margin-top: 2px;
  color: var(--color-ink);
  font-weight: 500;
}

.request-example,
.wa-preview-kicker {
  display: inline-flex;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.request-usual,
.request-status {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 500;
}

.wa-preview {
  display: grid;
  gap: 6px;
}

body > .wa-preview {
  position: fixed;
  z-index: 30;
  top: 76px;
  left: 50%;
  width: min(320px, calc(100% - 32px));
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
}

.wa-phone {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-ink);
}

.wa-app {
  margin: 0;
  padding: 8px 12px;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
}

.wa-from,
.wa-body {
  margin: 8px 12px 0;
  font-size: 14px;
}

.wa-from {
  font-size: 12px;
  font-weight: 700;
}

.wa-body {
  margin-bottom: 12px;
}

.demo-reply {
  position: fixed;
  z-index: 35;
  right: 12px;
  bottom: 84px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-navy);
  font: 700 12px var(--font-sans);
  cursor: pointer;
  box-shadow: var(--shadow-bar);
}

body:has(dialog[open]) > .demo-reply {
  display: none;
}

.demo-inline {
  justify-self: start;
}

.lead-success {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.lead-success h2 {
  margin: 0;
  font-size: var(--text-h3);
}

.lead-success .btn-text {
  justify-self: start;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font: 600 14px var(--font-sans);
  cursor: pointer;
}

.chat-mock,
.saved-chip {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-navy);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.chat-mock {
  border: 1px dashed var(--color-green);
}

.saved-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.saved-chip button,
.ask-agent {
  min-height: 32px;
}

.saved-chip button {
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-green);
  font: 700 var(--text-xs) var(--font-sans);
  cursor: pointer;
}

.thread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.chat-rail .thread-listing {
  flex: 0 0 82%;
  width: 82%;
  scroll-snap-align: start;
}

.chat-area-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.thread-listing {
  width: 100%;
}

.chat-drawer .thread-listing .project-card-media {
  aspect-ratio: 16 / 9;
  max-height: 148px;
}

.chat-drawer .thread-listing .project-price strong {
  font-size: 1.125rem;
}

.project-card.is-picked {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

.results-relax {
  margin: 0;
  color: var(--color-navy);
  font-size: var(--text-sm);
  font-weight: 600;
}

.typing {
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--color-mint);
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-green);
  animation: dantes-typing 1s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dantes-typing {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (max-width: 700px) {
  .fact-tiles {
    grid-template-columns: 1fr 1fr;
  }
}

.agent-claim {
  max-width: 480px;
  margin: 8px auto 48px;
}

.agent-claim [hidden] {
  display: none !important;
}

.agent-claim h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.agent-claim h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.agent-id {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.agent-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--color-surface);
}

.agent-thumb-empty {
  border: 1px solid var(--color-line);
}

.agent-id .listing-place {
  margin: 2px 0 0;
}

.agent-id .status-pill-inline {
  margin-top: 8px;
}

.agent-question,
.agent-expired {
  margin: 0 0 12px;
  color: var(--color-navy);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.agent-claim .chip {
  margin: 0 0 12px;
}

.agent-claim .btn-primary {
  display: flex;
  width: 100%;
  margin-top: 16px;
}

.agent-text {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font: 600 14px var(--font-sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.agent-fine {
  margin-top: 10px;
}

.agent-fine a {
  color: var(--color-green);
}

.agent-session {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
}

.agent-session button {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-green);
  font: 700 13px var(--font-sans);
  cursor: pointer;
}

.agent-success {
  color: var(--color-green);
}

.agent-docs {
  margin: 16px 0;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.agent-docs h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.agent-drop {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 148px;
  place-items: center;
  align-content: center;
  padding: 18px;
  border: 1.5px dashed var(--color-green);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.agent-drop.is-over {
  background: var(--color-mint);
}

.agent-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.agent-drop .hint {
  font-weight: 500;
}

.agent-doc-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.agent-doc-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-size: 14px;
  font-weight: 600;
}

.agent-doc-list li span:last-child {
  color: var(--color-green);
  font-size: 13px;
  text-align: right;
}

.agent-suggests {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.agent-suggest {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.agent-suggest p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
}

.agent-suggest .chip,
.agent-suggest .agent-text {
  width: auto;
  margin: 0;
}

.agent-question-card {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.agent-question-card p,
.agent-question-card label {
  margin: 0;
}

.agent-question-card textarea {
  min-height: 96px;
}

.agent-claim .profile-meter {
  margin-bottom: 16px;
}

.agent-claim .fact-tiles {
  margin-bottom: 8px;
}

button.fact-tile {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.fact-tile strong {
  white-space: normal;
  overflow-wrap: anywhere;
}

.agent-example {
  color: var(--color-green);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.otp {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.otp input {
  width: 44px;
  min-width: 0;
  height: 52px;
  min-height: 52px;
  padding: 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.agent-choices {
  display: flex;
  gap: 8px;
}

.agent-choices .chip {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--color-line);
  cursor: pointer;
  font: 700 15px var(--font-sans);
}

.agent-upload {
  display: grid;
  gap: 8px;
  min-height: 120px;
  place-items: center;
  padding: 16px;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-navy);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.agent-upload input {
  width: 100%;
}

.agent-sheet {
  width: min(480px, 100%);
  max-height: 80dvh;
  margin: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.agent-sheet[open] {
  display: block;
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
}

.agent-sheet .lead-dialog-head,
.agent-sheet [data-sheet-body] {
  padding: 16px;
}

.agent-sheet .lead-dialog-head {
  padding-bottom: 0;
}

.agent-sheet [data-sheet-body] {
  display: grid;
  gap: 12px;
}

@media (min-width: 800px) {
  .agent-sheet {
    margin: auto;
    border-radius: var(--radius-md);
  }
}
