/* Todd Sprague — Denver metro real estate. Design preview (unlisted).
   Self-contained: system font stacks only, no external requests. */

:root {
  color-scheme: light;
  /* Concept B — the official Todd Sprague Homes brand palette (delivered board):
     Navy #0F2D4A, Slate Blue #4F7CAB, Warm Tan #D9C3A7, Charcoal #6D7A86,
     Off White #F7F8FA. The monogram triad (#06243A/#5986B1/#668AA7) is a
     separate axis and not forced here. */
  --paper: #F7F8FA;
  --paper-2: #EEF2F6;
  --card: #ffffff;
  --ink: #0F2D4A;
  --ink-soft: #33495E;
  --muted: #6D7A86;
  --line: #DCE3EA;
  --line-strong: #C6D0DA;
  --accent: #4F7CAB;
  --accent-deep: #0F2D4A;
  /* Foregrounds that sit ON an ink or accent fill. These are the ones that turn
     invisible or illegible when the tokens invert, so they are tokens themselves. */
  --on-ink: #F7F8FA;
  --on-accent: #ffffff;
  --skip-fg: #ffffff;
  --foot-bg: #0F2D4A;
  --foot-ink: #D6E0EA;
  --foot-ink-strong: #ffffff;
  --foot-link: #D9C3A7;
  --foot-rule: rgba(214, 224, 234, .18);
  --foot-fine: rgba(214, 224, 234, .62);
  --note-bg: #FBF5EB;
  --note-line: #E6D6BE;
  --note-code-bg: #F4EBDB;
  --head-bg: rgba(247, 248, 250, .93);
  --fab-bg: rgba(15, 45, 74, .88);
  --hero-glow: rgba(79, 124, 171, .10);
  --btn-shadow: rgba(15, 45, 74, .55);
  --card-shadow: rgba(15, 45, 74, .06);
  --shadow: 0 1px 2px rgba(15, 45, 74, .06), 0 18px 40px -26px rgba(15, 45, 74, .35);
  --serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Lato", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1080px;
}

/* Night scheme: tokens only. No rule below needs to know which mode is active.
   Concept B dark: navy-led surfaces, slate accents lifted so they read against
   near-black, tan retained as the warm accent that carries on dark. */
html[data-vmt="light"] { color-scheme: light; }
html[data-vmt="dark"] {
  color-scheme: dark;
  --paper: #0E1B2B;
  --paper-2: #14233A;
  --card: #122033;
  --ink: #E9EEF4;
  --ink-soft: #C4CFDC;
  --muted: #8B98A6;
  --line: #24364B;
  --line-strong: #364C63;
  --accent: #7FA3C9;
  --accent-deep: #A8C6E2;
  --on-ink: #0E1B2B;
  --on-accent: #0E1726;
  --skip-fg: #0E1B2B;
  --foot-bg: #081117;
  --foot-ink: #C7D2DE;
  --foot-ink-strong: #F2F5F9;
  --foot-link: #D9C3A7;
  --foot-rule: rgba(199, 210, 222, .18);
  --foot-fine: rgba(199, 210, 222, .6);
  --note-bg: #241D14;
  --note-line: #3A3022;
  --note-code-bg: #2C241A;
  --head-bg: rgba(14, 27, 43, .93);
  --fab-bg: rgba(233, 238, 244, .9);
  --hero-glow: rgba(127, 163, 201, .14);
  --btn-shadow: rgba(0, 0, 0, .55);
  --card-shadow: rgba(0, 0, 0, .35);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 40px -26px rgba(0, 0, 0, .8);
}

/* Appearance control. Fixed, so it is outside the flow and cannot move a measured
   box; hidden in the markup and unhidden by the behaviour script, so a visitor
   without JavaScript never sees a dead button. localStorage key, html attributes
   and labels are the same contract the WordPress Visitor Mode Toggle and
   taybiz.com use, so a visitor's choice means the same thing everywhere. */
#vmt-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px 9px 11px;
  font: 600 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 999px;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  box-shadow: var(--shadow);
}
#vmt-toggle:hover { color: var(--ink); border-color: var(--accent); }
#vmt-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#vmt-toggle .vmt-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
}
@media (max-width: 480px) { #vmt-toggle { right: 10px; bottom: 10px; } }

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-deep); }
a:hover { color: var(--accent); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.05rem, 1.35rem + 2.7vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.05em; }
ul { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--skip-fg); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* Unlisted design-preview marker */
.preview-flag {
  position: fixed; left: 12px; bottom: 12px; z-index: 60;
  background: var(--fab-bg); color: var(--on-ink);
  font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 11px; border-radius: 999px; pointer-events: none;
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--head-bg);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 74px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
/* Canonical artwork is used as supplied, including its original background. */
.brand { flex-shrink: 0; }
.brand-logo { width: 180px; height: 60px; object-fit: contain; border-radius: 4px; }
.brand-logo-dark { display: none; }
html[data-vmt="dark"] .brand-logo-light { display: none; }
html[data-vmt="dark"] .brand-logo-dark { display: block; }
.brand-sub { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .93rem;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.head-cta { white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1 var(--sans); text-decoration: none;
  padding: 14px 20px; border-radius: 10px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-solid { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 22px -14px var(--btn-shadow); }
.btn-solid:hover { background: var(--accent-deep); color: var(--on-accent); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.btn:focus-visible, .nav a:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}

/* ---------- hero ---------- */
.hero { padding: 76px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(58% 80% at 88% 8%, var(--hero-glow), transparent 60%),
    linear-gradient(180deg, var(--paper-2), var(--paper) 62%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.eyebrow {
  font: 600 .76rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }
.hero-sig {
  display: block; width: 240px; max-width: 60%; height: auto; margin: 6px 0 2px;
  background: #fff; padding: 8px; border-radius: 6px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-facts li {
  list-style: none; font-size: .84rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.hero-photo { margin: 0; }
.hero-photo img {
  width: 360px; max-width: 100%; height: auto;
  aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 20px; border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.hero-photo figcaption {
  margin-top: 12px; font-size: .82rem; color: var(--muted); text-align: center;
}

/* ---------- trust strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.strip-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 26px 0; }
.strip-list li { list-style: none; }
.strip-list strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.strip-list span { font-size: .86rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 74px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 38px; }
.prose { max-width: 64ch; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.lede-lg { font-size: 1.06rem; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: 0 1px 2px var(--card-shadow);
}
.card h3 { margin-bottom: 6px; }
.card .kicker { font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 14px; }
.card ul { margin-top: 16px; }
.card li { list-style: none; padding-left: 26px; position: relative; margin-bottom: 11px; color: var(--ink-soft); font-size: .97rem; }
.card li:last-child { margin-bottom: 0; }
.card li::before {
  content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 600;
}

.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.area {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; min-height: 100%;
}
.area h3 { font-size: 1.06rem; }
.area p { margin: 8px 0 0; font-size: .93rem; color: var(--muted); }
.area .tag {
  display: inline-block; margin-top: 16px; font: 600 .7rem/1 var(--sans);
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep);
}

/* ---------- listings ---------- */
.callout-note {
  background: var(--note-bg); border: 1px solid var(--note-line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 14px 18px; font-size: .92rem; color: var(--ink-soft);
  max-width: 78ch;
}
.callout-note strong { color: var(--ink); }
.callout-note code { font-size: .88em; background: var(--note-code-bg); padding: 1px 5px; border-radius: 4px; }
.listings {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px; margin-top: 28px;
}
.listing {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column;
}
.listing-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.listing-price {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 600; margin: 0;
  letter-spacing: -.01em;
}
.listing-status {
  font: 600 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 5px 9px; white-space: nowrap;
}
.listing-status.is-sold { color: var(--ink-soft); background: var(--paper-2); }
.listing-addr { font-size: 1.12rem; margin: 12px 0 3px; }
.listing-sub { margin: 0 0 14px; font-size: .86rem; color: var(--muted); }
.listing-specs {
  display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}
.listing-specs li { list-style: none; font-size: .9rem; color: var(--ink-soft); }
.listing-records { margin: 16px 0 0; padding: 0; display: grid; gap: 7px; }
.listing-records div { display: flex; justify-content: space-between; gap: 14px; font-size: .88rem; }
.listing-records dt { color: var(--muted); }
.listing-records dd { margin: 0; text-align: right; color: var(--ink); font-weight: 500; }
.listing-foot {
  margin: auto 0 0; padding-top: 16px; font-size: .74rem; color: var(--muted);
  letter-spacing: .02em;
}
.listings-fallback { color: var(--muted); font-size: .95rem; }
.listings-source { margin: 22px 0 0; font-size: .78rem; color: var(--muted); }
/* ---------- testimonial ---------- */
.quote-band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 70px 0; }
.quote { max-width: 62ch; margin: 0 auto; text-align: center; }
.quote blockquote {
  margin: 0 0 18px; font-family: var(--serif); font-size: clamp(1.3rem, 1rem + 1.3vw, 1.85rem);
  line-height: 1.35; color: var(--ink);
}
.quote blockquote::before { content: "“"; display: block; font-size: 2.6rem; line-height: .5; color: var(--accent); margin-bottom: 14px; }
.quote cite { font-style: normal; font-size: .9rem; color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list li { list-style: none; margin-bottom: 22px; }
.contact-list .label { display: block; font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.contact-list .value { font-family: var(--serif); font-size: 1.22rem; }
.contact-list .value a { text-decoration: none; }
.contact-list .value a:hover { text-decoration: underline; }
.contact-list .sub { font-size: .9rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-foot { background: var(--foot-bg); color: var(--foot-ink); padding: 54px 0 40px; font-size: .9rem; }
.site-foot a { color: var(--foot-link); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; }
.foot-logo { display: block; width: 260px; max-width: 100%; height: auto; margin: 0 0 18px; }
.foot-name { font-family: var(--serif); font-size: 1.2rem; color: var(--foot-ink-strong); margin-bottom: 6px; }
.foot-rule { height: 1px; background: var(--foot-rule); margin: 34px 0 22px; }
.foot-fine { color: var(--foot-fine); font-size: .8rem; line-height: 1.6; }
.foot-fine p { margin: 0 0 .6em; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .head-inner { flex-wrap: wrap; gap: 12px 24px; }
  .nav { order: 3; flex-basis: 100%; margin-left: 0; flex-wrap: wrap; gap: 4px 20px; }
  .head-cta { margin-left: auto; }
}
@media (max-width: 480px) {
  .brand-logo { width: 145px; height: 49px; }
  .brand-sub { font-size: .6rem; letter-spacing: .07em; }
  .head-cta { font-size: .8rem; padding: 10px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 38px; }
  .hero-photo { max-width: 380px; }
  .strip-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .areas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .head-cta { margin-left: auto; }
  .head-inner { gap: 16px; }
  .cols, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .hero { padding: 52px 0 46px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .strip-list, .areas { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media (max-width: 380px) {
  .head-inner { gap: 8px; }
  .brand-logo { width: 135px; height: 45px; }
  .brand-sub { font-size: .55rem; }
  .head-cta { font-size: .75rem; padding: 10px; }
}

/* Keep section headings visible below the wrapped sticky navigation. */
main section[id] { scroll-margin-top: 150px; }
@media (max-width: 480px) { main section[id] { scroll-margin-top: 210px; } }
@media (max-width: 380px) { main section[id] { scroll-margin-top: 290px; } }
.back-home { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 24px; color: var(--ink); font-weight: 600; text-underline-offset: 4px; }

/* ---------- current listing (featured) ---------- */
.feature {
  background: linear-gradient(180deg, var(--paper-2), var(--paper) 60%);
}
.feature-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: stretch; }
.feature-photo { margin: 0; }
.feature-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.feature-body { display: flex; flex-direction: column; }
.feature-price {
  font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 600; margin: 0 0 4px; letter-spacing: -.01em; color: var(--ink);
}
.feature-body h2 { margin-bottom: 8px; }
.feature-addr { margin: 0 0 14px; font-family: var(--serif); font-size: 1.3rem; color: var(--ink-soft); }
.feature-status {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
  font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep);
}
.feature-specs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  list-style: none; margin: 0 0 20px; padding: 0;
}
.feature-specs li {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 10px; text-align: center;
}
.feature-specs .spec-num { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.1; }
.feature-specs .spec-lbl { display: block; margin-top: 4px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.feature-meta { margin: 16px 0 0; font-size: .78rem; color: var(--muted); }
.feature-media {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  list-style: none; margin: 18px 0 0; padding: 0;
}
.feature-media li { font-size: .9rem; }
.media-link { font-weight: 600; text-decoration: none; }
.media-link:hover { text-decoration: underline; }

/* ---------- floor plans ---------- */
.floor-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.floor-grid figure { margin: 0; }
.floor-grid img {
  width: 100%; border-radius: 14px;
  border: 1px solid var(--line-strong); box-shadow: 0 1px 2px var(--card-shadow);
}
@media (max-width: 760px) { .floor-grid { grid-template-columns: 1fr; } }
.feature-status::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--hero-glow); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.feature-status.is-contract { color: var(--ink-soft); }
.feature-status.is-contract::before { background: var(--muted); box-shadow: none; animation: none; }
.feature-desc { color: var(--ink-soft); margin-bottom: 20px; }
.feature-desc p { margin-bottom: .9em; }
.feature-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

/* ---------- photo gallery grid ---------- */
.listing-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px; margin-top: 26px;
}

/* ---------- inline slideshow ---------- */
.listing-slideshow {
  position: relative; margin: 30px 0 0;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  background: var(--card);
}
.slideshow-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
}
.slideshow-prev, .slideshow-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  border: 1px solid rgba(255,255,255,.35); background: rgba(10,14,16,.55);
  color: #fff; cursor: pointer; font-size: 1.9rem; line-height: 1;
  padding: 12px 18px; border-radius: 12px;
}
.slideshow-prev { left: 14px; }
.slideshow-next { right: 14px; }
.slideshow-prev:hover, .slideshow-next:hover { background: rgba(10,14,16,.8); }
.slideshow-prev:focus-visible, .slideshow-next:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.slideshow-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px; font-size: .85rem;
  background: linear-gradient(180deg, transparent, rgba(10,14,16,.72));
  color: #fff;
}
.slideshow-count { font-variant-numeric: tabular-nums; }
.slideshow-live { color: #fff; font-weight: 600; text-decoration: none; }
.slideshow-live:hover { text-decoration: underline; }

.listing-thumb {
  padding: 0; border: 1px solid var(--line-strong); border-radius: 10px;
  overflow: hidden; cursor: zoom-in; background: var(--card);
  aspect-ratio: 4 / 3;
}
.listing-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .2s ease, opacity .2s ease;
}
.listing-thumb:hover img { transform: scale(1.03); }
.listing-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.listing-gallery-note { margin: 14px 0 0; font-size: .78rem; color: var(--muted); }

/* ---------- lightbox ---------- */
body.has-lightbox { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 14, 16, .92); display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-frame { margin: 0; max-width: min(1080px, 92vw); max-height: 82vh; }
.lightbox-frame img {
  max-width: 100%; max-height: 82vh; display: block;
  border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
}
.lightbox-caption {
  position: absolute; bottom: 88px; left: 0; right: 0; text-align: center;
  color: #e8e4dc; font-size: .88rem; z-index: 210;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; z-index: 210; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06); color: #fff; cursor: pointer;
  font-size: 1.6rem; line-height: 1; padding: 10px 16px; border-radius: 10px;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.14); }
.lightbox-close:focus-visible, .lightbox-prev:focus-visible, .lightbox-next:focus-visible { outline: 2px solid var(--accent); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-actions {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; z-index: 210;
}
.lightbox-link {
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  padding: 10px 16px; border-radius: 10px; text-decoration: none; font-size: .92rem; font-weight: 600;
}
.lightbox-link:hover { background: rgba(255,255,255,.22); }
.lightbox-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 1100px) {
  .head-cta { margin-left: auto; }
}
@media (max-width: 480px) {
  .brand-logo { width: 145px; height: 49px; }
  .brand-sub { font-size: .6rem; letter-spacing: .07em; }
  .head-cta { font-size: .8rem; padding: 10px; }
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-photo { max-width: 560px; }
}
@media (max-width: 480px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}


/* REcolorado manages the frame content; keep its original colors. */
.idx-frame-wrap { overflow: hidden; background: #F7F8FA; border: 1px solid var(--line); border-radius: var(--radius); }
.idx-frame { display: block; width: 100%; height: 1000px; border: 0; }
@media (max-width: 600px) { .idx-frame { height: 1200px; } }

/* Dedicated consumer search page. */
.search-wrap { width: min(1600px, calc(100% - 48px)); margin-inline: auto; }
.search-page .section { padding-block: 32px 48px; }
.search-page .section-head { margin-bottom: 24px; }
.search-page .idx-frame { height: max(850px, calc(100vh - 180px)); }
.search-help { margin-top: 16px; color: var(--ink-soft); font-size: .95rem; }
.search-help summary { cursor: pointer; width: fit-content; }
.search-help p { max-width: 650px; margin-top: 12px; }
@media (max-width: 600px) {
  .search-wrap { width: calc(100% - 24px); }
  .search-page .idx-frame { height: 1100px; }
}

/* Branded entrance: load the MLS frame only when the visitor starts searching. */
.search-page [hidden] { display: none !important; }
.search-entrance { position: relative; isolation: isolate; min-height: 540px; display: flex; align-items: center; overflow: hidden; border-radius: 20px; background: #102d46; color: #fff; }
.search-entrance-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; z-index: -2; }
.search-entrance::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,29,48,.94), rgba(9,29,48,.78) 45%, rgba(9,29,48,.14)); z-index: -1; }
.search-entrance-copy { padding: 56px; max-width: 650px; }
.search-entrance .eyebrow { color: #d4e0e9; }
.search-entrance h1 { color: #fff; font-size: clamp(2.5rem,5vw,4.5rem); line-height: 1.08; margin: 16px 0 24px; }
.search-entrance-copy > p:not(.eyebrow) { color: #ecf1f6; max-width: 440px; }
.search-entrance .btn { margin-top: 18px; background: #fff; color: #16324a; border-color: #fff; gap: 18px; }
.search-entrance .btn:hover { background: #e2eaf1; }
.search-entrance-copy .search-entrance-note { font-size: .85rem; margin-top: 20px; }
.search-contact { color: #fff; text-underline-offset: 4px; }
.search-return { border: 0; background: transparent; color: var(--ink); font: inherit; padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
#home-search { scroll-margin-top: 170px; }
@media (max-width: 600px) {
  .search-entrance { min-height: 520px; }
  .search-entrance-copy { padding: 32px 24px; }
  .search-entrance::before { background: rgba(9,29,48,.78); }
  .search-entrance .btn { width: 100%; }
}

/* Standalone content pages retain the section heading proportions. */
.content-page .section-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: .35em; }

.cma-section { background: var(--paper, #f7f8fa); }
.cma-form { max-width: 720px; }
.cma-form label { display: block; font-weight: 600; margin-bottom: .6rem; }
.cma-form input { display: block; width: 100%; box-sizing: border-box; padding: .9rem 1rem; margin-bottom: 1.25rem; border: 1px solid var(--ink-soft); border-radius: 8px; font: inherit; color: var(--ink); background: var(--bg, #fff); }
.cma-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cma-form .cma-note { color: var(--ink-soft); font-size: .9rem; }
.cma-form button { cursor: pointer; font: inherit; }

/* Brokerage identification stays secondary to Todd Sprague Homes. */
.brokerage-brand { flex: 0 0 auto; padding: 6px 9px; border-radius: 6px; background: #fff; }
.brokerage-logo { display: block; width: 52px; height: auto; }
@media (max-width: 600px) { .brokerage-logo { width: 42px; } }

/* Standard list markers for buyer and seller guidance. */
#buyers .card ul, #sellers .card ul { padding-left: 1.25rem; }
#buyers .card li, #sellers .card li { list-style: disc outside; padding-left: .35rem; }
#buyers .card li::before, #sellers .card li::before { content: none; }

.build-info { margin: 1.5rem 0 0; font-size: .625rem; line-height: 1.5; opacity: .7; }
.build-info a { color: inherit; }

/* Match the visible TSH artwork height and place brokerage after phone. */
.brokerage-brand { padding: 3px 5px; }
.brokerage-logo { width: auto; height: 43px; }
@media (max-width: 600px) { .brokerage-logo { width: auto; height: 36px; } .head-inner { column-gap: 14px; } }
