/* ============================================================
   Tinkham Homes — quiet-luxury editorial theme
   Palette: evergreen ink / warm ivory / brass
   Type: Prata (display) + Figtree (text)
   ============================================================ */

:root {
  --ink: #16211c;
  --ink-soft: #24322b;
  --ivory: #f6f2e9;
  --ivory-deep: #ece6d8;
  --paper: #fbf9f4;
  --brass: #a9834f;
  --brass-bright: #c8a468;
  --text: #2c332f;
  --text-muted: #6b736e;
  --line: rgba(22, 33, 28, 0.14);
  --line-light: rgba(246, 242, 233, 0.22);
  --radius-sm: 16px;
  --radius: 26px;
  --radius-lg: 42px;
  --pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Prata", "Times New Roman", serif;
  --font-text: "Figtree", -apple-system, "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-text);
  font-weight: 300;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* no gray flash on tap; keep focus rings for keyboard users */
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
}

h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }

a { color: inherit; }

/* ---------- shared pieces ---------- */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}
.eyebrow--light { color: var(--brass-bright); }
.eyebrow--brass { color: var(--brass-bright); }

.btn {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.1rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.btn--brass {
  background: var(--brass);
  color: #fff;
}
.btn--brass:hover {
  background: var(--brass-bright);
  transform: translateY(-2px);
}
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.btn--full { width: 100%; }
.btn--dark {
  border-color: var(--line);
  color: var(--ink);
}
.btn--dark:hover {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

/* thank-you page */
.thankyou {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1.6rem;
}
.thankyou__logo { height: 54px; width: auto; margin-bottom: 2rem; }
.thankyou h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.thankyou > p { color: var(--text-muted); max-width: 46ch; margin-bottom: 2rem; }
.thankyou__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.thankyou__contact {
  margin-top: 2.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.thankyou__contact a { color: var(--brass); }

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2rem;
}

.section__head {
  margin-bottom: 3.5rem;
  max-width: 640px;
}
.section__lead {
  margin-top: 1.1rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.section--ink {
  max-width: none;
  width: min(1460px, calc(100% - 2.2rem));
  margin: 1.4rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  color: rgba(246, 242, 233, 0.86);
}
.section--ink h2 { color: var(--ivory); }

.section--ivory {
  max-width: none;
  width: min(1460px, calc(100% - 2.2rem));
  margin: 1.4rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ivory);
}
.section--ivory .section__head,
.section--ivory .quotes {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.section--ivory .section__head { margin-bottom: 3.5rem; }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- brand splash ---------- */

.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #000;
  cursor: pointer;
  transition: transform 0.8s var(--ease);
  will-change: transform;
}
.splash__logo {
  width: min(88vw, 940px);
  /* logo art has a baked black background; screen-blending onto the
     black splash hides the image edges. Brightness lift makes the
     gray phoenix read clearly on dark screens. */
  mix-blend-mode: screen;
  filter: brightness(1.55);
  opacity: 0;
  transform: scale(1.05);
  animation: splashLogo 1.7s var(--ease) 0.2s forwards;
}
@keyframes splashLogo {
  to { opacity: 1; transform: scale(1); }
}
.splash__hint {
  position: absolute;
  bottom: 2.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(246, 242, 233, 0.45);
  opacity: 0;
  animation: splashLogo 1s var(--ease) 1.6s forwards;
}
.splash.is-done {
  transform: translateY(-100%);
}
body.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
}
/* scrolled backdrop lives on a pseudo-element: backdrop-filter on .nav
   itself would make it the containing block for the fixed menu panel */
.nav::before {
  content: "";
  position: absolute;
  inset: 0.55rem 0.9rem;
  z-index: -1;
  opacity: 0;
  border-radius: var(--pill);
  background: rgba(251, 249, 244, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px -18px rgba(22, 33, 28, 0.4), 0 0 0 1px var(--line);
  transition: opacity 0.4s var(--ease);
}
.nav.is-scrolled::before { opacity: 1; }

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__brand {
  position: relative;
  display: block;
  text-decoration: none;
}
.nav__logo {
  display: block;
  height: 58px;
  width: auto;
  transition: opacity 0.4s var(--ease);
}
.nav__logo--dark {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.nav.is-scrolled .nav__logo--light,
.nav.is-open .nav__logo--light { opacity: 0; }
.nav.is-scrolled .nav__logo--dark,
.nav.is-open .nav__logo--dark { opacity: 1; }

.nav__links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s;
}
.nav.is-scrolled .nav__links a { color: var(--text); }
.nav__links a:hover { color: var(--brass-bright); }
.nav.is-scrolled .nav__links a:hover { color: var(--brass); }

.nav__cta { padding: 0.75rem 1.5rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px 4px;
  cursor: pointer;
}
.nav__toggle span {
  width: 26px;
  height: 2px;
  background: #fff;
  transition: all 0.35s var(--ease);
}
.nav.is-scrolled .nav__toggle span,
.nav.is-open .nav__toggle span { background: var(--ink); }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - 1.8rem);
  margin: 0.9rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(13, 20, 16, 0.82) 8%, rgba(13, 20, 16, 0.42) 55%, rgba(13, 20, 16, 0.25) 100%),
    linear-gradient(to top, rgba(13, 20, 16, 0.85), transparent 40%);
}

.hero__content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 9rem 2rem 3rem;
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: #fff;
  margin-bottom: 1.6rem;
}

.hero__sub {
  max-width: 520px;
  font-size: 1.08rem;
  color: rgba(246, 242, 233, 0.85);
  margin-bottom: 2.4rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__stats {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.4rem 2rem 3.2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line-light);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--brass-bright);
}
.stat__label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 242, 233, 0.7);
}

/* ---------- accolades strip ---------- */

.accolades {
  width: min(1460px, calc(100% - 2.2rem));
  margin: 1.4rem auto 0;
  padding: 2.4rem 2rem;
  background: var(--ivory);
  border-radius: var(--radius-lg);
}
.accolades__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.accolade {
  text-align: center;
  padding: 0 1rem;
}
.accolade + .accolade { border-left: 1px solid var(--line); }
.accolade strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--brass);
  margin-bottom: 0.3rem;
}
.accolade span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .accolades__inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .accolade + .accolade { border-left: 0; border-top: 1px solid var(--line); padding-top: 1.6rem; }
}

/* ---------- listings ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.chip {
  font-family: var(--font-text);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.chip:hover { border-color: var(--brass); color: var(--brass); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}

.listings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), opacity 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(22, 33, 28, 0.35);
}
.card.is-hidden { display: none; }
.card { position: relative; }
.card__link { position: absolute; inset: 0; z-index: 2; }
.card__more {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }

.card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink);
}
.card__badge--pending { background: var(--brass-bright); color: #fff; }
.card__badge--sold { background: var(--ink); color: var(--ivory); }

.card__body { padding: 1.5rem 1.6rem 1.7rem; }

.card__price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
}
.card__note {
  font-family: var(--font-text);
  font-size: 0.82rem;
  color: var(--brass);
  letter-spacing: 0.04em;
}
.card__addr { font-family: var(--font-text); font-weight: 500; font-size: 1rem; margin-top: 0.35rem; color: var(--text); }
.card__hood { font-size: 0.85rem; color: var(--text-muted); }

.card__desc {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.listings__foot {
  margin-top: 2.8rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.listings__foot a { color: var(--brass); font-weight: 500; }

/* ---------- about ---------- */

.about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 5rem;
  align-items: center;
}

.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-frame__play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 6px;
  border: 0;
  border-radius: 50%;
  background: rgba(169, 131, 79, 0.92);
  color: #fff;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.video-frame__play:hover {
  background: var(--brass-bright);
  transform: scale(1.07);
}
.video-frame.is-playing .video-frame__play { display: none; }
.about__caption {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 242, 233, 0.55);
}

.about__copy h2 { margin-bottom: 1.6rem; }
.about__copy p { margin-bottom: 1.2rem; max-width: 56ch; }

.about__points {
  list-style: none;
  margin: 1.8rem 0 2.4rem;
}
.about__points li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.9rem;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.97rem;
}
.about__points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass-bright);
}

/* ---------- services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service {
  padding: 2.4rem 2.2rem 2.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(22, 33, 28, 0.3);
}

.service__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--brass);
  letter-spacing: 0.2em;
}
.service h3 { margin: 0.9rem 0 0.9rem; }
.service p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.3rem; }
.service ul { list-style: none; }
.service li {
  position: relative;
  padding: 0.42rem 0 0.42rem 1.6rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.service li::before {
  content: "·";
  position: absolute;
  left: 0.4rem;
  color: var(--brass);
  font-weight: 700;
}

/* ---------- testimonials ---------- */

.quotes { position: relative; max-width: 760px; }

.quote {
  display: none;
  animation: fadeUp 0.7s var(--ease);
}
.quote.is-active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  color: var(--ink);
}
.quote blockquote em { font-style: italic; }
.quote figcaption {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

.quotes__dots {
  display: flex;
  gap: 0.6rem;
  margin-top: 2.2rem;
}
.dot {
  width: 34px;
  height: 3px;
  border: 0;
  border-radius: 2px;
  background: rgba(22, 33, 28, 0.18);
  cursor: pointer;
  transition: background 0.3s;
}
.dot.is-active { background: var(--brass); }

/* ---------- valuation banner ---------- */

.banner {
  position: relative;
  width: min(1460px, calc(100% - 2.2rem));
  margin: 1.4rem auto;
  border-radius: var(--radius-lg);
  padding: 9rem 2rem;
  color: #fff;
  overflow: hidden;
}
.banner__media,
.banner__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 20, 16, 0.88) 0%, rgba(13, 20, 16, 0.55) 60%, rgba(13, 20, 16, 0.35) 100%);
}
.banner__content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.banner__content h2 { color: #fff; margin-bottom: 1.2rem; }
.banner__content p {
  max-width: 480px;
  color: rgba(246, 242, 233, 0.85);
  margin-bottom: 2.2rem;
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 5rem;
}

.contact__info h2 { margin-bottom: 1.4rem; }
.contact__info > p { color: var(--text-muted); max-width: 44ch; }

.contact__details {
  list-style: none;
  margin-top: 2.4rem;
}
.contact__details li {
  display: flex;
  gap: 1.4rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
  align-items: baseline;
}
.contact__details span {
  flex: 0 0 72px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
.contact__details a { text-decoration: none; }
.contact__details a:hover { color: var(--brass); }

.contact__form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.6rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field { display: block; margin-bottom: 1.2rem; }
.field span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-text);
  font-size: 0.97rem;
  font-weight: 300;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(169, 131, 79, 0.18);
}

.hp-field { display: none; }
.form__success {
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(169, 131, 79, 0.12);
  border: 1px solid rgba(169, 131, 79, 0.4);
  color: var(--brass);
  font-size: 0.92rem;
}

/* ---------- listing page ---------- */

.lhero {
  position: relative;
  min-height: calc(88svh - 0.9rem);
  margin: 0.9rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.lhero__media,
.lhero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lhero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(13, 20, 16, 0.88) 0%, rgba(13, 20, 16, 0.25) 45%, rgba(13, 20, 16, 0.35) 100%);
}
.lhero__content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 10rem 2rem 4.5rem;
}
.lhero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: #fff;
}
.lhero__price {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--brass-bright);
  margin: 0.6rem 0 1.2rem;
}
.lhero__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  list-style: none;
  margin-bottom: 2.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 242, 233, 0.85);
}
.lhero__specs li { position: relative; }
.lhero__specs li + li::before {
  content: "·";
  position: absolute;
  left: -1.15rem;
  color: var(--brass-bright);
}

.overview {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 4rem;
  align-items: start;
}
.overview__copy h2 { margin-bottom: 1.5rem; }
.overview__copy p { margin-bottom: 1.2rem; max-width: 58ch; }

.facts {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2rem 2.2rem;
}
.facts__title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.facts__list { margin-bottom: 1.6rem; }
.facts__list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.facts__list dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  align-self: center;
}
.facts__list dd { color: var(--text); text-align: right; }
.facts__note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.tour { padding: 7rem 2rem; }
.tour__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 5rem;
  align-items: center;
}
.tour__copy h2 { margin-bottom: 1.4rem; }
.tour__copy p { margin-bottom: 2rem; max-width: 48ch; }
.tour .video-frame { justify-self: center; width: 100%; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery__item {
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--ivory-deep);
  aspect-ratio: 4 / 3;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  background: rgba(10, 15, 12, 0.94);
  padding: 3.5rem 4.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  border-radius: var(--radius);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(246, 242, 233, 0.12);
  color: var(--ivory);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--brass); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav--prev { left: 1.2rem; top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: 1.2rem; top: 50%; translate: 0 -50%; }
.lightbox__count {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  translate: -50% 0;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: rgba(246, 242, 233, 0.7);
}

@media (max-width: 960px) {
  .overview { grid-template-columns: 1fr; gap: 3rem; }
  .tour__inner { grid-template-columns: 1fr; gap: 3rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .lightbox { padding: 3.5rem 1rem; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ---------- home search page ---------- */

.search-body { background: var(--paper); }
.nav--solid::before { opacity: 1; }
.nav--solid .nav__logo--light { opacity: 0; }
.nav--solid .nav__logo--dark { opacity: 1; }
.nav--solid .nav__links a { color: var(--text); }
.nav--solid .nav__links a:hover { color: var(--brass); }
.nav--solid .nav__toggle span { background: var(--ink); }

.search-app {
  padding: 6.4rem 1.2rem 1.2rem;
}

.searchbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.2rem 1rem;
}
.searchbar__field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 260px;
  min-width: 220px;
  padding: 0.6rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--text-muted);
}
.searchbar__field input {
  border: 0;
  outline: none;
  background: none;
  width: 100%;
  font-family: var(--font-text);
  font-size: 0.92rem;
  color: var(--text);
}
.searchbar select,
.results__sort select {
  font-family: var(--font-text);
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.searchbar__views {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  overflow: hidden;
  background: #fff;
}
.searchbar__views button {
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-text);
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  color: var(--text-muted);
}
.searchbar__views button.is-active { background: var(--ink); color: var(--ivory); }
.searchbar__save { padding: 0.65rem 1.4rem; margin-left: auto; }

.results__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.results__head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink);
}
.results__count {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.results__grid { display: grid; gap: 1rem; }
.results__note {
  margin: 1.6rem 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.results__note a { color: var(--brass); }

.rcard {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.rcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -20px rgba(22, 33, 28, 0.35);
}
.rcard__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.rcard__media img { width: 100%; height: 100%; object-fit: cover; }
.rcard__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: var(--pill);
  background: var(--ivory);
  color: var(--ink);
}
.rcard__badge--sold { background: var(--ink); color: var(--ivory); }
.rcard__body { padding: 1rem 1.2rem 1.1rem; }
.rcard__price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
}
.rcard__specs { font-size: 0.9rem; color: var(--text); margin-top: 0.15rem; }
.rcard__addr { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.15rem; }
.rcard__addr .card__more { display: inline; margin: 0 0 0 0.4rem; }
.rcard__mls {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 0.55rem;
}
.search__head { max-width: none; margin-bottom: 2rem; padding: 1rem 0.8rem 0; }
.search__head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.search__note { max-width: 60ch; color: var(--text-muted); margin-bottom: 1.6rem; }
.search__note a { color: var(--brass); }

.search__idx-note {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.card__mls {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* full-MLS hero (primary search) */
.mls-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.5rem;
  align-items: center;
  padding: 3.2rem 2.4rem;
  margin-bottom: 1.6rem;
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--radius-lg);
}
.mls-hero[hidden] { display: none; }
.mls-hero__copy h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  color: var(--ivory);
  margin-bottom: 1rem;
}
.mls-hero__copy p { color: rgba(246, 242, 233, 0.8); max-width: 42ch; }
.mls-hero__widget {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 1.6rem;
  min-height: 120px;
}
.mls-hero__fallback { color: var(--text-muted); font-size: 0.9rem; }
/* theme hooks exposed by RealScout web components */
.mls-hero__widget realscout-advanced-search,
.mls-hero__widget realscout-simple-search {
  --rs-as-button-color: #a9834f;
  --rs-as-button-text-color: #ffffff;
  --rs-as-background-color: #f6f2e9;
  --rs-as-widget-width: 100%;
}

/* Chelsea's own listings section */
.cl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.cl-head__title h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0.2rem 0; }
.cl-count { font-size: 0.82rem; color: var(--text-muted); }
.cl-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.search-app__body {
  display: grid;
  grid-template-columns: minmax(340px, 430px) 1fr;
  gap: 1.2rem;
  align-items: start;
}
.search-app__results { min-width: 0; }
.search-app__map {
  position: sticky;
  top: 5.6rem;
  min-width: 0;
}
#searchMap {
  height: calc(100vh - 6.8rem);
  min-height: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  isolation: isolate;
  z-index: 0;
}

.map-pin {
  display: inline-block;
  transform: translate(-50%, -100%);
  padding: 0.35rem 0.75rem;
  border-radius: var(--pill);
  background: var(--brass);
  color: #fff;
  font-family: var(--font-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(22, 33, 28, 0.5);
}
.map-pin--sold { background: var(--ink); color: var(--ivory); }

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm);
  font-family: var(--font-text);
}
.map-pop { width: 200px; }
.map-pop img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}
.map-pop strong { display: block; font-size: 0.95rem; color: var(--ink); }
.map-pop span { display: block; font-size: 0.82rem; color: var(--text-muted); margin: 0.15rem 0 0.4rem; }
.map-pop a { color: var(--brass); font-weight: 600; font-size: 0.8rem; text-decoration: none; }

@media (min-width: 961px) {
  .searchbar__views { display: none; }
}
@media (max-width: 960px) {
  .search-app { padding-top: 5.8rem; }
  .mls-hero { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.2rem 1.4rem; }
  .cl-head { align-items: flex-start; }
  .search-app__body { grid-template-columns: 1fr; }
  .search-app__map { position: static; }
  #searchMap { height: calc(100vh - 17rem); min-height: 380px; }
  .search-app__body.is-list .search-app__map { display: none; }
  .search-app__body.is-map .search-app__results { display: none; }
}

/* ---------- as featured in (press) ---------- */
.press {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}
.press__inner {
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 1rem;
}
.press__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 3rem;
  margin-top: 1.2rem;
}
.press__outlet {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--ink);
  letter-spacing: 0.01em;
}
.press__outlet + .press__outlet::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1.6em;
  background: var(--line);
}
@media (max-width: 600px) {
  .press__outlet + .press__outlet::before { display: none; }
}

/* ---------- neighborhoods ---------- */

.areas-page {
  max-width: 1460px;
  margin: 0 auto;
  padding: 7.5rem 1.4rem 1rem;
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.area-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  min-height: 340px;
  background: var(--ink);
}
.area-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.area-card:hover img { transform: scale(1.05); }
.area-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 20, 16, 0.92) 0%, rgba(13, 20, 16, 0.35) 55%, rgba(13, 20, 16, 0.15) 100%);
}
.area-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.8rem 2rem;
}
.area-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  color: var(--brass-bright);
  margin-bottom: 0.5rem;
}
.area-card__body h2,
.area-card__body h3 {
  color: #fff;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 0.4rem;
}
.area-card__body p {
  font-size: 0.9rem;
  color: rgba(246, 242, 233, 0.82);
  max-width: 52ch;
  margin-bottom: 0.8rem;
}
.area-card__cta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-bright);
}
.area-card--small { min-height: 220px; }
.area-card--small .area-card__body { padding: 1.3rem 1.5rem; }

.area-hero { padding: 0; }
.area-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 9rem 2rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 4rem;
  align-items: center;
}
.area-hero__copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--ivory);
  margin-bottom: 0.8rem;
}
.area-hero__tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--brass-bright);
  margin-bottom: 1.2rem;
}
.area-hero__copy > p:not(.area-hero__tagline):not(.eyebrow) {
  margin-bottom: 2rem;
  max-width: 52ch;
}
.area-hero__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.area-map { padding: 5rem 2rem; }
.area-map__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 3.5rem;
  align-items: center;
}
.area-map__copy h2 { margin-bottom: 1rem; }
.area-map__copy a { color: var(--brass); }
#areaMap {
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  isolation: isolate;
  z-index: 0;
}

.area-props__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.area-props__empty {
  max-width: 56ch;
  padding: 2.4rem 2.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.area-props__empty p { margin-bottom: 1.4rem; color: var(--text-muted); }

.area-similar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.banner--ink {
  background: var(--ink);
  color: #fff;
}
.banner--ink .banner__content h2 { color: var(--ivory); }
.banner--ink .banner__content p { color: rgba(246, 242, 233, 0.8); }

@media (max-width: 960px) {
  .areas-grid { grid-template-columns: 1fr; }
  .area-hero__inner { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 7.5rem; }
  .area-map__inner { grid-template-columns: 1fr; gap: 2rem; }
  #areaMap { height: 320px; }
  .area-props__grid { grid-template-columns: 1fr; }
  .area-similar__grid { grid-template-columns: 1fr; }
}

/* ---------- blog ---------- */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.post-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(22, 33, 28, 0.35);
}
.post-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.5rem 1.6rem 1.7rem; }
.post-card__meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.6rem;
}
.post-card__body h2,
.post-card__body h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.post-card__excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 8.5rem 1.4rem 3rem;
}
.article__head h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin: 0.4rem 0 0.9rem;
}
.article__hero {
  margin: 2rem 0;
}
.article__hero img {
  width: 100%;
  border-radius: var(--radius);
}
.article__body {
  font-size: 1.05rem;
  line-height: 1.8;
}
.article__body h2 {
  font-size: 1.5rem;
  margin: 2.2rem 0 0.8rem;
}
.article__body p { margin-bottom: 1.2rem; }
.article__body a { color: var(--brass); }
.article__body strong { font-weight: 600; color: var(--ink); }

.author-card {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  margin: 3rem 0;
  padding: 1.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.author-card img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.author-card h3 { margin: 0.2rem 0 0.4rem; }
.author-card p:not(.eyebrow) {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.author-card .eyebrow { margin-bottom: 0; }
.author-card .btn { padding: 0.7rem 1.5rem; }

.article__related { margin-top: 1rem; }
.posts-grid--related { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 960px) {
  .posts-grid, .posts-grid--related { grid-template-columns: 1fr; }
  .author-card { flex-direction: column; text-align: center; }
}

/* ---------- mortgage calculator ---------- */

.calc { padding: 7rem 2rem; }
.calc__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 5rem;
  align-items: center;
}
.calc__copy h2 { margin-bottom: 1.4rem; }
.calc__copy p { max-width: 46ch; margin-bottom: 1.2rem; }
.calc__disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.calc__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2.4rem 2.6rem;
}

.calc__slider { margin-bottom: 1.4rem; }
.calc__slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.calc__slider-head span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.calc__slider-head output {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}
.calc__slider input[type="range"] {
  width: 100%;
  accent-color: var(--brass);
  cursor: pointer;
}

.calc__result {
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.calc__monthly {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.calc__monthly small {
  font-family: var(--font-text);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.5rem;
}
.calc__rows div {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.calc__rows dt { color: var(--text-muted); }
.calc__rows dd { color: var(--text); }
.calc__rows .calc__total { border-bottom: 0; }
.calc__total dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  align-self: center;
}
.calc__total dd {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}

@media (max-width: 960px) {
  .calc__inner { grid-template-columns: 1fr; gap: 3rem; }
  .calc__card { padding: 1.8rem 1.4rem; }
}

/* ---------- valuation modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 20, 16, 0.72);
  backdrop-filter: blur(3px);
}
.modal__panel {
  position: relative;
  width: min(680px, 100%);
  height: min(760px, 92vh);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.4s var(--ease);
}
.modal__panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ivory);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s;
}
.modal__close:hover { background: var(--brass); }

/* ---------- footer ---------- */

.footer {
  width: min(1460px, calc(100% - 2.2rem));
  margin: 1.4rem auto 0.9rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  color: rgba(246, 242, 233, 0.75);
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.footer__brand { display: block; }
.footer__brand img { display: block; height: 52px; width: auto; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-left: auto;
}
.footer__links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(246, 242, 233, 0.75);
}
.footer__links a:hover { color: var(--brass-bright); }

/* ---------- social icons ---------- */
.socials { display: flex; gap: 0.6rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.socials a:hover { transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; display: block; }
.socials--light a { color: rgba(246, 242, 233, 0.8); border-color: var(--line-light); }
.socials--light a:hover { background: var(--brass); color: #fff; border-color: var(--brass); }
.socials--dark a { color: var(--brass); border-color: rgba(169, 131, 79, 0.4); }
.socials--dark a:hover { background: var(--brass); color: #fff; border-color: var(--brass); }

.contact__follow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
}
.contact__follow > span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

.footer__legal {
  width: 100%;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.8rem;
  color: rgba(246, 242, 233, 0.5);
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    background: var(--paper);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
  }
  .nav.is-open .nav__links { transform: none; }
  .nav__links a { color: var(--ink) !important; font-size: 1rem; }
  .nav.is-open::before { opacity: 0; }
  .nav__brand, .nav__toggle { position: relative; z-index: 10; }
  .nav__logo { height: 46px; }
}

@media (max-width: 960px) {
  .listings { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .about__media { max-width: 420px; }
  .contact { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 4.5rem 1.4rem; }
  .about { padding: 4.5rem 1.4rem; }
  .listings { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact__form { padding: 1.8rem 1.4rem; }
}

/* ============================================================
   Mobile optimization
   ============================================================ */
@media (max-width: 960px) {
  /* iOS Safari zooms toward any input with a sub-16px font on focus;
     16px keeps the tap experience steady on phones */
  input, select, textarea,
  .searchbar__field input,
  .searchbar select,
  .results__sort select,
  .field input, .field select, .field textarea,
  #calcPrice {
    font-size: 16px;
  }

  /* comfortable touch targets (min ~44px) */
  .chip { min-height: 42px; padding: 0.7rem 1.2rem; }
  .searchbar__field { padding: 0.75rem 1.1rem; }
  .searchbar select,
  .results__sort select { padding: 0.75rem 1rem; }
  .searchbar__views button { padding: 0.75rem 1.2rem; }
  .dot { height: 6px; }

  /* calmer scrolling on iOS */
  body { -webkit-overflow-scrolling: touch; }
}

/* respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover, .rcard:hover, .service:hover, .area-card:hover img,
  .post-card:hover { transform: none; }
}
