/* =============================================
   DANIEL MOROCO | LUXURY REAL ESTATE
   style.css — All site styles
   To update design: edit this file only
   ============================================= */

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

:root {
  --bg:              #f8f5f0;
  --surface:         #ffffff;
  --surface2:        #f2ede6;
  --border:          #e0d8cc;
  --gold:            #b8924a;
  --gold-light:      #d4aa6a;
  --accent:          #e8d5a3;
  --text:            #1a1510;
  --muted:           #7a6e64;
  --text-dark:       #1a1814;
  --text-on-primary: #ffffff;
  --display:         'Cormorant Garamond', Georgia, serif;
  --body:            'Jost', system-ui, sans-serif;
  --mono:            'JetBrains Mono', Menlo, monospace;

  /* Canonical names for theme loader override */
  --primary:         var(--gold);
  --primary-light:   var(--gold-light);
  --surface-alt:     var(--surface2);
  --text-muted:      var(--muted);

  /* Spacing */
  --space-xs:        4px;
  --space-sm:        8px;
  --space-md:        16px;
  --space-lg:        24px;
  --space-xl:        40px;
  --space-xxl:       64px;

  /* Radius */
  --radius-sm:       2px;
  --radius-md:       4px;
  --radius-lg:       8px;
  --radius-xl:       16px;
  --radius-pill:     999px;

  /* Shadow */
  --shadow-sm:       0 1px 2px rgba(26,21,16,0.08);
  --shadow-md:       0 4px 12px rgba(26,21,16,0.10);
  --shadow-lg:       0 12px 32px rgba(26,21,16,0.14);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAVIGATION ───────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s;
}

nav.scrolled {
  background: rgba(248, 245, 240, 0.97);
  backdrop-filter: blur(20px);
  padding: 18px 60px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.nav-logo span { color: var(--accent); font-style: italic; }
.nav-logo .nav-logo-sub {
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.2);
  line-height: 1.4;
}
nav.scrolled .nav-logo { color: var(--text); }
nav.scrolled .nav-logo span { color: var(--gold); }
nav.scrolled .nav-logo .nav-logo-sub {
  color: rgba(0,0,0,0.55);
  border-left-color: rgba(0,0,0,0.15);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

nav.scrolled .nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--accent); }
nav.scrolled .nav-links a:hover { color: var(--gold); }

.nav-cta {
  border: 1px solid rgba(255,255,255,0.4) !important;
  padding: 10px 24px;
  border-radius: 2px;
}

nav.scrolled .nav-cta {
  border-color: rgba(184,146,74,0.4) !important;
  color: var(--gold) !important;
}

.nav-cta:hover {
  background: rgba(255,255,255,0.12) !important;
}

nav.scrolled .nav-cta:hover {
  background: var(--gold) !important;
  color: #fff !important;
}

/* ── HAMBURGER BUTTON ─────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #ffffff;
  transition: all 0.3s ease;
  transform-origin: center;
}

nav.scrolled .nav-hamburger span { background: var(--text); }

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU DRAWER ───────────────────── */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(248, 245, 240, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 100px 40px 60px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu a,
.mobile-menu button {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 0;
  transition: color 0.2s;
  display: block;
  text-align: center;
  width: 100%;
}

.mobile-menu a:hover,
.mobile-menu button:hover { color: var(--gold); }

.mobile-menu .mobile-cta {
  margin-top: 16px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff !important;
  padding: 16px 48px;
  border-radius: 2px;
  width: auto;
}

.mobile-menu-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 8px auto;
}

/* ── HERO ─────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 1s ease-in-out;
}
.hero-video-standby { opacity: 0; }

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* URL set by assets.js on page load (--bg-hero-poster). The hero video
     and gradient overlay cover this layer, so any FOUC is invisible. */
  background-image: var(--bg-hero-poster);
  background-size: cover;
  background-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.0) 25%,
    rgba(0,0,0,0.45) 65%,
    rgba(248,245,240,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 40px;
  max-width: 860px;
  width: 100%;
}

.hero-eyebrow {
  position: absolute;
  top: 18vh;
  left: 0;
  right: 0;
  z-index: 10;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-headline em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
  justify-content: center;
}

.hero-stats {
  position: absolute;
  bottom: 80px;
  right: 60px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s forwards;
}

.stat-num {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1;
  display: block;
  white-space: nowrap;
}

.stat-item { text-align: right; }

.stat-num span { color: var(--accent); }

.stat-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  display: block;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s 1.3s forwards;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ── BUTTONS ──────────────────────────────── */
.btn-primary {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  padding: 16px 36px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Hero-only override: outlined instead of filled. Keeps the default
   .btn-primary solid gold for the agent section ("Schedule a
   Consultation") and the lead-success modal close button. */
.hero .btn-primary {
  background: transparent;
  color: #fff;
  border: 2px solid var(--gold);
}
.hero .btn-primary:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.btn-secondary {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: transparent;
  color: #fff;
  padding: 16px 36px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── MARQUEE ──────────────────────────────── */
.marquee-section {
  background: var(--gold);
  padding: 14px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-shrink: 0;
}

.marquee-item::after { content: '◆'; font-size: 6px; }

/* ── SECTIONS ─────────────────────────────── */
section { padding: 100px 60px; }

.section-eyebrow {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.section-eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--gold); flex-shrink: 0; }

.section-title {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.section-title em { font-style: italic; color: var(--gold); }

/* ── LISTINGS ─────────────────────────────── */
.listings-section { background: #ffffff; }

.listings-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.listings-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3px;
  margin-bottom: 40px;
}

.listing-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--border);
}

.listing-card:first-child { grid-row: span 2; }

.listing-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  transition: transform 0.6s ease;
  background-size: cover;
  background-position: center;
}

.listing-card:first-child .listing-img { min-height: 563px; }

/* Listing images are set via inline style by the hydrate script (SITE.listings[].image).
   Class-based .p1..pN rules were removed as part of P0 #11 — images are config-driven. */

.listing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,9,8,0.92) 0%, rgba(10,9,8,0.2) 50%, transparent 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.listing-card:hover .listing-img { transform: scale(1.04); }

.listing-badge {
  position: absolute;
  top: 18px; left: 18px;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}

.badge-new { background: var(--gold); color: #fff; }
.badge-exclusive { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

.listing-price {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 300;
  color: #fff;
  margin-bottom: 4px;
}

.listing-price.large { font-size: 34px; }
.listing-address { font-size: 11px; color: rgba(255,255,255,0.7); margin-bottom: 10px; }

.listing-details { display: flex; gap: 16px; }

.listing-detail {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.listing-detail span {
  color: var(--accent);
  font-family: var(--display);
  font-size: 13px;
  margin-right: 3px;
}

.view-all-link {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--body);
  white-space: nowrap;
}

.view-all-link::after { content: '→'; font-size: 14px; }
.view-all-link:hover { gap: 16px; }

.idx-placeholder {
  text-align: center;
  padding: 36px;
  border: 1px dashed var(--border);
  border-radius: 2px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 2;
  background: var(--bg);
}

/* ── CAROUSEL ─────────────────────────────── */
.carousel-section {
  background: var(--surface2);
  padding: 80px 60px;
}

.carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.carousel-controls {
  display: flex;
  gap: 12px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.carousel-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.carousel-track-wrapper {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-card {
  flex: 0 0 340px;
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.carousel-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.carousel-card:hover .carousel-img { transform: scale(1.03); }

.carousel-info {
  padding: 20px 24px 24px;
  position: relative;
}

.carousel-badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.carousel-price {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 4px;
}

.carousel-address {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.carousel-details {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.carousel-details span {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.carousel-cta {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  border: 1px solid rgba(184,146,74,0.3);
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
  width: 100%;
}

.carousel-cta:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: var(--gold);
  width: 20px;
  border-radius: 3px;
}

.idx-notice {
  text-align: center;
  margin-top: 24px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}

.idx-notice span {
  color: var(--gold);
  margin-right: 6px;
}

@media (max-width: 1024px) {
  .carousel-section { padding: 64px 32px; }
  .carousel-card { flex: 0 0 300px; }
}

@media (max-width: 640px) {
  .carousel-section { padding: 48px 20px; }
  .carousel-card { flex: 0 0 280px; }
  .carousel-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .carousel-img { height: 180px; }
}
.magnets-section { background: var(--bg); }

.magnets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.magnet-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.magnet-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(184,146,74,0.12);
}

.magnet-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.magnet-card:hover::before { opacity: 1; }

.magnet-num {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 300;
  color: rgba(184,146,74,0.1);
  line-height: 1;
  margin-bottom: 20px;
}

.magnet-icon { display: block; margin-bottom: 18px; color: var(--gold); }
.magnet-icon svg { width: 32px; height: 32px; display: block; }

.magnet-title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}

.magnet-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.magnet-btn {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.2s;
}

.magnet-btn::after { content: '→'; font-size: 14px; }
.magnet-btn:hover { gap: 16px; }

/* ── MARKET AREAS ─────────────────────────── */
.areas-section { background: #fff; }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 48px;
}

.area-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
}

.area-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
  background-size: cover;
  background-position: center;
}

/* Area background images are set via inline style by the hydrate script
   (SITE.areas.featured[].image). Class-based .a1..aN rules were removed
   as part of P0 #11. */

.area-card:hover .area-bg { transform: scale(1.06); }
.area-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,9,8,0.85) 0%, transparent 60%); }

.area-content { position: relative; z-index: 2; padding: 24px 20px; }
.area-name { font-family: var(--display); font-size: 22px; font-weight: 300; color: #fff; margin-bottom: 4px; }
.area-listings { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }

/* ── AGENT ────────────────────────────────── */
.agent-section {
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}

.agent-visual {
  position: relative;
  min-height: 600px;
  /* Background image set via inline style by the hydrate script (SITE.about.visualImage). */
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.agent-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 50%, var(--bg) 100%);
}

.agent-accent {
  position: absolute;
  top: 48px; left: 48px;
  width: 72px; height: 72px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
  opacity: 0.6;
  z-index: 2;
}

.agent-content {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.agent-name {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 8px;
}

.agent-title-text {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.agent-bio-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 440px;
}

.agent-creds { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }

.cred-tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 2px;
  background: #fff;
}

.brokerage-line {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 28px;
}

/* ── TESTIMONIALS ─────────────────────────── */
.testimonials-section { background: var(--bg); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 36px 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.testimonial-quote {
  font-family: var(--display);
  font-size: 64px;
  color: var(--gold);
  opacity: 0.25;
  line-height: 0.8;
  margin-bottom: 16px;
}

.stars { color: var(--gold); font-size: 12px; letter-spacing: 2px; margin-bottom: 16px; }

.testimonial-text {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 24px;
}

.testimonial-author { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.testimonial-detail { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── CHAT WIDGET ──────────────────────────── */
.chat-widget { position: fixed; bottom: 32px; right: 32px; z-index: 200; }

.chat-bubble {
  width: 60px; height: 60px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(184,146,74,0.35);
  transition: transform 0.2s;
  font-family: var(--display);
  font-size: 18px;
  color: #fff;
  font-weight: 400;
  font-style: italic;
}

.chat-bubble:hover { transform: scale(1.08); }

.chat-panel {
  position: absolute;
  bottom: 76px; right: 0;
  width: 360px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  display: none;
  flex-direction: column;
  max-height: 520px;
}

.chat-panel.open { display: flex; }

.chat-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), #8a6030);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 14px;
  font-style: italic;
  color: #fff;
  flex-shrink: 0;
}

.chat-agent-name { font-family: var(--display); font-size: 16px; font-weight: 400; color: var(--text); }
.chat-agent-status { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}

.msg { max-width: 85%; padding: 12px 16px; border-radius: 4px; font-size: 13px; line-height: 1.5; font-weight: 300; }
.msg-agent { background: var(--bg); color: var(--text); border: 1px solid var(--border); align-self: flex-start; }
.msg-user { background: var(--gold); color: #fff; align-self: flex-end; }

.msg-typing {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 4px;
  display: none;
}

.typing-dots { display: flex; gap: 4px; align-items: center; }

.dot {
  width: 5px; height: 5px;
  background: var(--muted);
  border-radius: 50%;
  animation: dotBounce 1.2s ease-in-out infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

.chat-options { padding: 0 20px 12px; display: flex; flex-wrap: wrap; gap: 8px; }

.chat-option {
  font-size: 11px;
  color: var(--gold);
  border: 1px solid rgba(184,146,74,0.3);
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  background: none;
  font-family: var(--body);
  transition: background 0.2s;
}

.chat-option:hover { background: rgba(184,146,74,0.08); }

.chat-input-row { display: flex; border-top: 1px solid var(--border); }

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--body);
  font-size: 13px;
  outline: none;
}

.chat-send {
  background: var(--gold);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: background 0.2s;
}

.chat-send:hover { background: var(--gold-light); }

/* ── MODAL ────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,21,16,0.72);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: #fff;
  border: 1px solid var(--border);
  max-width: 500px;
  width: 100%;
  padding: 52px 44px;
  position: relative;
  border-radius: 4px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.modal-close {
  position: absolute;
  top: 18px; right: 22px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--text); }

.modal-eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.modal-title {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
}

.modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 32px; line-height: 1.6; }

.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 15px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  border-radius: 2px;
  transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: #b0a89e; }

.form-submit {
  width: 100%;
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 15px;
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  border-radius: 2px;
}

.form-submit:hover { background: var(--gold-light); }

.form-disclaimer {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
  opacity: 0.7;
}

/* ── PROPERTY SEARCH MODAL ────────────────── */
.modal.modal-wide { max-width: 640px; }

.search-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
  cursor: pointer;
}

.modal-back {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 16px;
  text-decoration: none;
  transition: color 0.2s;
}
.modal-back:hover { color: var(--gold); }

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.result-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.result-card:hover { border-color: var(--gold); transform: translateY(-2px); }

.result-img {
  height: 150px;
  background-size: cover;
  background-position: center;
}

.result-body { padding: 14px 16px 16px; }

.result-price {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 4px;
  line-height: 1.1;
}

.result-address {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.result-meta {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.account-prompt {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  text-align: center;
}

.account-prompt-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.account-prompt-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.account-prompt-secondary {
  width: 100%;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 13px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 10px;
  transition: border-color 0.2s, color 0.2s;
  border-radius: 2px;
}
.account-prompt-secondary:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 640px) {
  .search-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .result-grid { grid-template-columns: 1fr; }
}

/* ── FOOTER ───────────────────────────────── */
footer {
  background: var(--text);
  border-top: 1px solid #2a2118;
  padding: 56px 60px 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}

.footer-logo {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 14px;
  cursor: pointer;
}

.footer-logo span { color: var(--accent); font-style: italic; }
.footer-bio { font-size: 13px; color: #8a7e74; line-height: 1.7; margin-bottom: 20px; }
.footer-heading { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 13px;
  color: #8a7e74;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid #2a2118;
  padding-top: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-disclaimer { font-size: 10px; color: #5a5048; line-height: 1.8; max-width: 580px; }
.footer-copy { font-size: 10px; color: #3a3028; white-space: nowrap; }

/* ── ANIMATIONS ───────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40%           { transform: scale(1.1); opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET (max 1024px)
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  nav { padding: 20px 32px; }
  nav.scrolled { padding: 16px 32px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  section { padding: 72px 32px; }
  .hero-content { padding: 0 32px 80px; }
  .hero-stats { right: 32px; gap: 24px; }

  .listings-grid { grid-template-columns: 1fr 1fr; }
  .listings-grid .listing-card:first-child { grid-column: span 2; grid-row: span 1; }
  .listings-grid .listing-card:first-child .listing-img { min-height: 340px; }

  .magnets-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .areas-grid { grid-template-columns: 1fr 1fr; }

  .agent-section { grid-template-columns: 1fr; }
  .agent-visual { min-height: 320px; }
  .agent-visual::after { background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%); }
  .agent-content { padding: 52px 32px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .modal { padding: 36px 24px; }
  .chat-panel { width: 320px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE (max 640px)
   ══════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* NAV */
  nav { padding: 16px 20px; }
  nav.scrolled { padding: 14px 20px; }

  /* HERO */
  .hero { min-height: 100svh; align-items: center; justify-content: center; }

  .hero-content {
    padding: 0 20px 120px;
    max-width: 100%;
    text-align: center;
    width: 100%;
  }

  .hero-eyebrow {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 20px;
    justify-content: center;
    font-size: 9px;
    letter-spacing: 3px;
  }

  .hero-headline {
    font-size: clamp(32px, 9vw, 48px);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 28px;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
  }

  /* Hide stats on mobile — too cluttered */
  .hero-stats { display: none; }

  /* Scroll indicator — hide on mobile to reduce clutter */
  .scroll-indicator { display: none; }

  /* SECTIONS */
  section { padding: 56px 20px; }

  .section-title { font-size: clamp(28px, 8vw, 40px); }

  /* LISTINGS */
  .listings-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .listings-grid {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .listings-grid .listing-card:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }

  .listing-img,
  .listings-grid .listing-card:first-child .listing-img {
    min-height: 260px;
  }

  .listing-price.large { font-size: 26px; }
  .listing-price { font-size: 22px; }
  .listing-address { font-size: 10px; }

  /* MAGNET CARDS */
  .magnets-grid { margin-top: 32px; gap: 12px; }

  .magnet-card { padding: 32px 24px; }
  .magnet-num { font-size: 40px; margin-bottom: 12px; }
  .magnet-title { font-size: 22px; }

  /* AREAS */
  .areas-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    margin-top: 28px;
  }

  .area-card { min-height: 180px; }
  .area-name { font-size: 16px; }
  .area-listings { font-size: 9px; }
  .area-content { padding: 16px 14px; }

  /* AGENT */
  .agent-section { grid-template-columns: 1fr; }
  .agent-visual { min-height: 260px; }
  .agent-visual::after { background: linear-gradient(to bottom, transparent 50%, var(--bg) 100%); }
  .agent-content { padding: 40px 20px; }
  .agent-name { font-size: 36px; }
  .agent-bio-text { font-size: 14px; max-width: 100%; }

  /* TESTIMONIALS */
  .testimonials-grid { margin-top: 28px; gap: 12px; }
  .testimonial-card { padding: 28px 24px; }
  .testimonial-text { font-size: 15px; }

  /* CHAT WIDGET */
  .chat-widget { bottom: 20px; right: 16px; }
  .chat-bubble { width: 52px; height: 52px; font-size: 16px; }

  .chat-panel {
    position: fixed;
    bottom: 80px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: 70vh;
    border-radius: 12px;
  }

  /* MODAL */
  .modal-overlay { padding: 12px; align-items: flex-end; }

  .modal {
    padding: 36px 20px 28px;
    border-radius: 12px 12px 4px 4px;
    max-height: 88vh;
  }

  .modal-title { font-size: 26px; }

  /* FOOTER */
  footer { padding: 48px 20px 28px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .footer-bottom > div:last-child {
    align-items: flex-start;
  }

  /* IDX placeholder */
  .idx-placeholder { padding: 24px 16px; font-size: 11px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (max 390px)
   ══════════════════════════════════════════════ */
@media (max-width: 390px) {
  .hero-headline { font-size: 34px; }
  .areas-grid { grid-template-columns: 1fr; }
  .area-card { min-height: 160px; }
}

/* ══════════════════════════════════════════════
   AVM WIDGET + RESULTS MODAL — Feature #3 Phase 1A
   Reuses .form-input / .form-submit / .result-grid /
   .result-card primitives; only the container chrome
   and the estimate-display block are new.
   ══════════════════════════════════════════════ */

.avm-widget-host {
  margin-top: 20px;
  width: 100%;
  max-width: 560px;
}
/* Match the hero copy cascade (fadeUp keyframe defined at style.css:1520).
   .hero-actions runs at 0.9s; the widget picks up 400ms later so it
   lands as the final element of the staggered intro. Scoped to the
   hero-specific ID — if the widget ever mounts on a dedicated
   /home-value page (Phase 1B) it won't inherit this entrance. */
#hero-avm-widget {
  opacity: 0;
  animation: fadeUp 0.8s 1.3s forwards;
}
.avm-widget {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}
.avm-widget-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
}
.avm-widget-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.avm-widget-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 2px solid var(--gold);
  color: #fff;
}
.avm-widget-input::placeholder {
  color: rgba(255, 255, 255, 0.9);
}
.avm-widget-input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 2px rgba(184, 146, 74, 0.2);
}
.avm-widget-submit {
  flex: 0 0 auto;
  white-space: nowrap;
  width: auto;
  margin-top: 0;
  background: transparent;
  color: #fff;
  border: 2px solid var(--gold);
  transition: background 0.2s, color 0.2s;
}
.avm-widget-submit:hover {
  background: var(--gold);
  color: #fff;
}
.avm-widget-note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.avm-widget-error {
  margin-top: 10px;
  font-size: 13px;
  color: #ffd4cc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Results modal */
.avm-demo-badge {
  display: inline-block;
  margin: 6px 0 14px;
  padding: 6px 12px;
  background: #fff4de;
  border: 1px solid #e6c98b;
  color: #7a5a14;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.avm-address {
  font-size: 13px;
  color: #4a3f37;
  margin: 6px 0 16px;
  letter-spacing: 0.02em;
}
.avm-estimate {
  padding: 20px 0 22px;
  border-top: 1px solid rgba(184, 146, 74, 0.2);
  border-bottom: 1px solid rgba(184, 146, 74, 0.2);
  margin-bottom: 22px;
  text-align: center;
}
.avm-estimate-value {
  font-size: 42px;
  font-weight: 300;
  color: #1d1815;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.avm-estimate-range {
  margin-top: 8px;
  font-size: 14px;
  color: #5a5049;
}
.avm-confidence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.avm-confidence-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #aaa;
  display: inline-block;
}
.avm-conf-high    .avm-confidence-dot { background: #3e9e56; }
.avm-conf-medium  .avm-confidence-dot { background: #d8a514; }
.avm-conf-low     .avm-confidence-dot { background: #b84a3a; }
.avm-conf-unknown .avm-confidence-dot { background: #9a8f85; }

.avm-comps {
  margin-bottom: 24px;
}
.avm-comps-heading {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a3f37;
  margin-bottom: 12px;
}

.avm-disclaimer {
  margin: 18px 0 22px;
  font-size: 12px;
  color: #6a5f56;
  line-height: 1.6;
}
.avm-disclaimer-short {
  font-style: italic;
}
.avm-disclaimer-full summary {
  margin-top: 8px;
  cursor: pointer;
  color: var(--gold);
  font-style: normal;
}
.avm-disclaimer-long {
  margin-top: 10px;
  white-space: pre-wrap;
}

.avm-cta {
  display: flex;
  justify-content: center;
}
.avm-cta .form-submit {
  max-width: 360px;
  width: 100%;
}

@media (max-width: 560px) {
  .avm-widget-row { flex-direction: column; }
  .avm-widget-submit { width: 100%; }
  .avm-estimate-value { font-size: 34px; }
}

/* ── Post-AVM seller modal (Phase 1B) ──────────────────────────────
   Banner above the form, Net Calculator card below the fields,
   plus light styling for the new <select> dropdowns. Re-uses the
   gold accent + ivory tone from the rest of the modal stack. */

.avm-postmodal-banner {
  text-align: center;
  padding: 16px 18px 18px;
  margin: 0 0 22px;
  border: 1px solid rgba(184, 146, 74, 0.28);
  border-radius: 4px;
  background: linear-gradient(180deg, #fbf5e9 0%, #f7eed8 100%);
}
.avm-postmodal-banner-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a5a14;
  margin-bottom: 6px;
}
.avm-postmodal-banner-value {
  font-size: 30px;
  font-weight: 300;
  color: #1d1815;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.avm-postmodal-banner-range {
  margin-top: 4px;
  font-size: 12px;
  color: #5a5049;
}

/* Selects — match the existing .form-input look so the dropdowns
   sit naturally next to the text inputs in the same modal. */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23b8924a' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Read-only address input — visually distinct so the user knows it's
   pre-filled and not editable. Same border, dimmer fill. */
input.form-input[readonly] {
  background-color: #f4ede0;
  color: #4a3f37;
  cursor: default;
}

/* Net Calculator card — lives inside the form, between the fields
   and the submit button. Hidden by default; shown when the user
   picks a mortgage_balance range (or always, if the netCalculator
   config sets showIfNoMortgage=true). */
.avm-net-calc {
  margin: 4px 0 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(184, 146, 74, 0.28);
  border-radius: 4px;
  background: #fbfaf6;
}
.avm-net-calc[hidden] { display: none; }
.avm-net-calc-heading {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a3f37;
  margin-bottom: 12px;
}
.avm-net-calc-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.avm-net-calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #2a221d;
}
.avm-net-calc-row.deduct {
  color: #6a5f56;
}
.avm-net-calc-row.total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(184, 146, 74, 0.28);
  font-weight: 500;
  color: #1d1815;
}
.avm-net-calc-row.total span:last-child {
  color: var(--gold);
}
.avm-net-calc-note {
  margin-top: 12px;
  font-size: 11px;
  font-style: italic;
  color: #6a5f56;
  line-height: 1.5;
}
