/* ==========================================================================
   Keystone Realty - shared styles for every page
   --------------------------------------------------------------------------
   REBRANDING: edit the custom properties in :root below.
   - --ink / --charcoal         dark backgrounds (hero, footer) and heading color
   - --paper / --paper-2        warm white page and panel backgrounds
   - --glass / --glass-deep     sea-glass accent: --glass on dark backgrounds,
                                --glass-deep for text, links and buttons on light backgrounds
   - --muted / --line           secondary text and hairline borders
   - --font-display / --font-body  heading and body fonts. If you change them,
     also update the Google Fonts <link> in the <head> of every page.
   Keep text/background pairs at 4.5:1 contrast or better.
   ========================================================================== */
:root {
  --ink: #14181b;
  --charcoal: #242a2e;
  --charcoal-2: #313840;
  --paper: #f8f5ef;
  --paper-2: #efeae1;
  --white: #fffdf9;
  --line: #dcd5c8;
  --glass: #9fd0bd;
  --glass-soft: #cfe7dc;
  --glass-deep: #2c6a5a;
  --text: #1d2226;
  --muted: #565c62;
  --on-dark: #e9e6df;
  --on-dark-muted: #b4b8b8;
  --error: #a8321e;
  --success: #24604f;

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --radius: 6px;
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 24px 50px -28px rgba(20, 24, 27, .5);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: 1.03rem; line-height: 1.65; overflow-wrap: break-word; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .45em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 7.5vw, 5.2rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 400; }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); }
h1 em, h2 em { font-style: italic; }
p { margin: 0 0 1em; }
a { color: var(--glass-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--glass-deep); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--glass); }
::selection { background: var(--glass); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--glass); color: var(--ink); padding: .7rem 1.1rem; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }
[hidden] { display: none !important; }

.label { display: inline-flex; align-items: center; gap: .55rem; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--glass-deep); margin-bottom: 1rem; }
.label::before { content: ""; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); }
.on-dark .label, .hero .label, .cta-band .label { color: var(--glass); }
.lead { font-size: clamp(1.06rem, 1.7vw, 1.2rem); color: var(--muted); max-width: 38rem; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 2.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; }
.section-head p { margin: .4rem 0 0; color: var(--muted); max-width: 30rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .8rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; font: 600 .95rem/1.2 var(--font-body); text-decoration: none; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--glass-deep); color: #fff; }
.btn-glass { background: var(--glass); color: var(--ink); }
.btn-glass:hover { background: #bde0d2; color: var(--ink); }
.btn-deep { background: var(--glass-deep); color: #fff; }
.btn-deep:hover { background: #1f5144; color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-line-light { background: transparent; color: var(--white); border-color: rgba(233, 230, 223, .5); }
.btn-line-light:hover { border-color: var(--glass); color: var(--glass); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.text-link { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--glass-deep); padding-bottom: 2px; display: inline-flex; gap: .4rem; align-items: center; }
.text-link:hover { color: var(--glass-deep); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ink); color: var(--on-dark); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .7rem; color: var(--white); text-decoration: none; }
.logo:hover { color: var(--white); }
.logo-mark { width: 34px; height: 34px; color: var(--glass); flex: none; }
.logo-text { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; letter-spacing: -.01em; }
.logo-text small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: .3rem; }
.nav-toggle { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem .9rem; border: 1px solid rgba(233, 230, 223, .35); border-radius: var(--radius); background: transparent; color: var(--white); cursor: pointer; font-weight: 600; font-size: .9rem; }
.nav-toggle .bars { position: relative; width: 18px; height: 1.5px; background: currentColor; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease); }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem var(--gutter) 1.4rem; }
.site-nav a { display: block; padding: .9rem 0; color: var(--white); text-decoration: none; font-family: var(--font-display); font-size: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-nav a[aria-current="page"] { color: var(--glass); font-style: italic; }
.site-nav .nav-cta { margin-top: 1rem; border: 1px solid var(--glass); text-align: center; font-family: var(--font-body); font-size: 1rem; font-weight: 600; background: var(--glass); color: var(--ink); border-radius: var(--radius); }
.site-nav .nav-cta[aria-current="page"] { color: var(--ink); font-style: normal; background: #bde0d2; }
@media (min-width: 920px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; align-items: center; gap: 2rem; padding: 0; }
  .site-nav a { padding: .4rem 0; border: 0; font-family: var(--font-body); font-size: .93rem; font-weight: 500; color: var(--on-dark); position: relative; }
  .site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--glass); transform: scaleX(0); transition: transform .3s var(--ease); }
  .site-nav a:not(.nav-cta):hover::after, .site-nav a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }
  .site-nav a[aria-current="page"] { font-style: normal; color: var(--white); }
  .site-nav .nav-cta { margin: 0; padding: .65rem 1.15rem; font-size: .9rem; }
  .site-nav .nav-cta:hover { background: #bde0d2; }
}

/* ---------- Property image placeholders ---------- */
.ph { position: relative; overflow: hidden; display: grid; place-items: end center; aspect-ratio: 4 / 3; background: linear-gradient(180deg, var(--sky-a, #d9ebe3) 0%, var(--sky-b, #f3ede2) 70%); color: var(--ink); }
.ph svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.ph-label { position: absolute; z-index: 2; left: .75rem; top: .75rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; background: rgba(20, 24, 27, .78); color: var(--white); padding: .22rem .6rem; border-radius: 3px; }
.ph.room { --sky-a: #e9e2d5; --sky-b: #d6cbb7; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--on-dark); padding: clamp(3rem, 8vw, 6rem) 0 0; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 85% 10%, rgba(159, 208, 189, .2), transparent 60%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 120px); }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero h1 em { color: var(--glass); }
.hero .lead { color: var(--on-dark-muted); }
.hero-grid { display: grid; gap: 2.5rem; align-items: end; }
.hero-skyline { position: relative; margin-top: .5rem; }
.hero-skyline svg { width: 100%; height: auto; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } .hero-skyline { height: 400px; margin: 0 calc(var(--gutter) * -1) 0 0; } .hero-skyline svg { position: absolute; bottom: 0; left: 0; height: 100%; } }

.search-card { position: relative; z-index: 2; background: var(--white); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; display: grid; gap: .9rem; margin-top: 2rem; }
.search-card .field { margin: 0; }
.search-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.search-card .field:first-child, .search-card .btn { grid-column: 1 / -1; }
.search-card .btn { align-self: end; }
@media (min-width: 720px) { .search-card { grid-template-columns: 1.6fr 1fr 1fr auto; align-items: end; padding: 1.25rem 1.4rem; } .search-card .field:first-child, .search-card .btn { grid-column: auto; } }
.hero-band { background: linear-gradient(180deg, var(--ink) 0 50%, var(--paper) 50% 100%); padding-bottom: 1rem; }
.hero-band .search-card { margin-top: 0; }

.stats-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; padding: 2.2rem 0 0; margin: 0; list-style: none; }
.stats-strip strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--ink); }
.stats-strip span { font-size: .88rem; color: var(--muted); }
@media (min-width: 820px) { .stats-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stats-strip li + li { border-left: 1px solid var(--line); padding-left: 1.4rem; } }

/* ---------- Listing cards ---------- */
.listing-grid { display: grid; gap: 1.6rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.listing-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.listing-card .status { position: absolute; z-index: 3; right: .75rem; top: .75rem; background: var(--glass); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .22rem .6rem; border-radius: 3px; }
.listing-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.listing-price { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; color: var(--ink); }
.listing-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0; letter-spacing: 0; }
.listing-title a { color: var(--text); text-decoration: none; }
.listing-title a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.listing-title a:hover { color: var(--glass-deep); }
.listing-card:focus-within { outline: 2px solid var(--glass-deep); outline-offset: 2px; }
.listing-card a:focus-visible { outline: none; }
.listing-area { font-size: .88rem; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: .6rem 0 0; padding: .8rem 0 0; border-top: 1px solid var(--line); list-style: none; font-size: .9rem; color: var(--text); }
.facts strong { font-weight: 700; }
.type-tag { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--glass-deep); }

/* ---------- Agent / about ---------- */
.agent-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .agent-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; } }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, #2b3237, #171b1e); display: grid; place-items: center; }
.portrait svg { width: 62%; color: #3f4a50; }
.portrait .ph-label { top: auto; bottom: .8rem; }
.portrait::after { content: ""; position: absolute; inset: 1rem; border: 1px solid rgba(159, 208, 189, .35); border-radius: 3px; pointer-events: none; }
.creds { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: .7rem; }
.creds li { display: flex; gap: .7rem; align-items: flex-start; }
.creds svg { width: 20px; height: 20px; flex: none; color: var(--glass-deep); margin-top: .2rem; }
.signature { font-family: var(--font-display); font-style: italic; font-size: 1.7rem; color: var(--ink); margin: 0; }

/* ---------- Reviews ---------- */
.reviews { background: var(--paper-2); }
.review-grid { display: grid; gap: 1.2rem; }
@media (min-width: 860px) { .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.review { margin: 0; padding: 1.8rem; background: var(--white); border-top: 3px solid var(--glass-deep); border-radius: 0 0 var(--radius) var(--radius); display: flex; flex-direction: column; gap: .9rem; }
.review-tag { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.review blockquote { margin: 0; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.35; color: var(--ink); }
.review figcaption { margin-top: auto; font-size: .9rem; color: var(--muted); }
.review figcaption strong { color: var(--text); display: block; }
.stars { display: flex; gap: 2px; color: var(--glass-deep); }
.stars svg { width: 16px; height: 16px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--charcoal); color: var(--on-dark); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border: 60px solid rgba(159, 208, 189, .1); border-radius: 50%; }
.cta-inner { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; }
.cta-band h2 { color: var(--white); }
.cta-band h2 em { color: var(--glass); }
.cta-band p { color: var(--on-dark-muted); max-width: 34rem; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.3fr auto; } }

/* ---------- Page head ---------- */
.page-head { background: var(--ink); color: var(--on-dark); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: .2em; }
.page-head p { color: var(--on-dark-muted); max-width: 40rem; margin: 0; }
.crumbs { font-size: .86rem; color: var(--on-dark-muted); margin-bottom: 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs a { color: var(--glass); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }

/* ---------- Listings page filters ---------- */
.filters { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: -1.75rem 0 1.5rem; position: relative; z-index: 2; box-shadow: var(--shadow); }
.filters .field { margin: 0; }
.filters .span-2 { grid-column: 1 / -1; }
@media (min-width: 900px) { .filters { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)) auto; align-items: end; } .filters .span-2 { grid-column: auto; } }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 1.5rem; margin-bottom: 1.6rem; }
.results-bar p { margin: 0; font-weight: 600; }
.results-bar .field { margin: 0; display: flex; align-items: center; gap: .6rem; }
.results-bar select { width: auto; min-width: 200px; }
.empty { text-align: center; padding: 3rem 1rem; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); }
.reset-btn { min-height: 48px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: .35rem; margin-bottom: 1.05rem; align-content: start; }
label, .legend { font-weight: 600; font-size: .9rem; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid #a9a397; border-radius: var(--radius); background: #fff; color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--glass-deep); outline-offset: 1px; border-color: var(--glass-deep); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.error { color: var(--error); font-size: .85rem; font-weight: 500; margin: 0; min-height: 1.25em; }
.hint { color: var(--muted); font-size: .84rem; margin: 0; }
.form-grid { display: grid; gap: 0 1.1rem; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .full { grid-column: 1 / -1; } }
.form-success { margin: 1rem 0 0; padding: 1rem 1.1rem; background: var(--glass-soft); color: #173f35; border-left: 4px solid var(--glass-deep); border-radius: var(--radius); font-weight: 600; }
.form-success:empty { display: none; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); }
fieldset { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; }
.fs-title { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); padding: 0; margin-bottom: .8rem; }

/* ---------- Single listing ---------- */
.listing-head { display: grid; gap: 1rem; padding: clamp(1.8rem, 4vw, 2.8rem) 0 1.6rem; }
.listing-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0; }
.listing-head .big-price { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); line-height: 1; }
@media (min-width: 900px) { .listing-head { grid-template-columns: 1fr auto; align-items: end; } .listing-head .price-box { text-align: right; } }
.gallery-main .ph { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.gallery-thumbs { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.thumb { width: 100%; padding: 0; border: 2px solid transparent; border-radius: var(--radius); background: none; cursor: pointer; overflow: hidden; }
.thumb .ph { aspect-ratio: 4 / 3; }
.thumb .ph-label { display: none; }
.thumb[aria-pressed="true"] { border-color: var(--glass-deep); }
.detail-grid { display: grid; gap: 2.5rem; padding: 2.5rem 0 clamp(3rem, 7vw, 5rem); }
@media (min-width: 980px) { .detail-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; } .detail-aside { position: sticky; top: 96px; } }
.key-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.key-facts div { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.key-facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.key-facts dt { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.key-facts dd { margin: .2rem 0 0; font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); }
@media (min-width: 640px) { .key-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .key-facts div:nth-child(odd) { border-right: 0; } .key-facts div:not(:nth-child(4n)) { border-right: 1px solid var(--line); } .key-facts div:nth-last-child(-n+4) { border-bottom: 0; } }
.feature-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .6rem 1.5rem; }
@media (min-width: 640px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature-list li { display: flex; gap: .6rem; align-items: flex-start; }
.feature-list svg { width: 18px; height: 18px; flex: none; color: var(--glass-deep); margin-top: .25rem; }
.detail-block { margin-bottom: 2.5rem; }
.detail-block h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.calc { background: var(--charcoal); color: var(--on-dark); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); }
.calc h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.calc label { color: var(--white); }
.calc input, .calc select { background: #1b2023; color: var(--white); border-color: #5d666c; }
.calc .error { color: #ffb4a3; }
.calc .hint { color: var(--on-dark-muted); }
.calc-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-grid .full { grid-column: 1 / -1; }
.calc-result { margin-top: .5rem; padding: 1.2rem; border-radius: var(--radius); background: rgba(159, 208, 189, .12); border: 1px solid rgba(159, 208, 189, .35); }
.calc-result .amount { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3rem); color: var(--glass); line-height: 1.05; }
.calc-result dl { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; margin: .9rem 0 0; font-size: .92rem; }
.calc-result dt { color: var(--on-dark-muted); }
.calc-result dd { margin: 0; text-align: right; font-weight: 600; }
.calc-note { font-size: .82rem; color: var(--on-dark-muted); margin: 1rem 0 0; }
.agent-mini { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.agent-mini .avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; background: linear-gradient(160deg, #2b3237, #171b1e); display: grid; place-items: center; color: var(--glass); font-family: var(--font-display); font-size: 1.4rem; }
.agent-mini p { margin: 0; font-size: .9rem; color: var(--muted); }
.agent-mini strong { display: block; color: var(--ink); font-size: 1.05rem; }

/* ---------- Valuation page ---------- */
.contact-grid { display: grid; gap: 2rem; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; align-items: start; } }
.steps { list-style: none; counter-reset: step; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.2rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: .9rem; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 1.5rem; color: var(--glass-deep); border-top: 2px solid var(--glass-deep); padding-top: .2rem; }
.steps h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { max-width: 26rem; margin-top: .9rem; }
.site-footer h2 { font-family: var(--font-body); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--glass); margin-bottom: .9rem; font-weight: 700; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .95rem; }
.footer-list a { color: var(--on-dark); text-decoration: none; }
.footer-list a:hover { color: var(--glass); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.built { font-size: .75rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.filters .error:empty { display: none; }
