/* ============================================================
   Lincoln Forrester Group — styles.css
   ============================================================ */

/* ── Google Fonts are loaded in HTML <head> ── */

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
  --navy:       #1B2A3B;
  --navy-light: #233548;
  --offwhite:   #F7F5F0;
  --gold:       #C9A84C;
  --gold-dark:  #A8872F;
  --gold-text:  #7A5C00; /* dark amber — contrast-safe text on gold-tint backgrounds */
  --text-dark:  #1A1A1A;
  --text-mid:   #4A4A4A;
  --text-light: #7A7A7A;
  --white:      #FFFFFF;
  --border:     #E0DDD7;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w: 1100px;
  --section-pad: 96px 24px;
  --radius: 6px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);

  --transition: 0.25s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--offwhite);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ── Typography helpers ──────────────────────────────────── */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
.section-heading--light { color: var(--white); }
.section-subhead {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 600px;
  margin-top: 14px;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Scroll fade-in (driven by main.js) ──────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 0 24px;
}
.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav__logo span { color: var(--gold); }
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.80);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav__link:hover { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background-color: var(--navy);
  background-image: url('hero-land.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  padding: 120px 24px 110px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 59, 0.65);
  z-index: 0;
}
.hero__topo { z-index: 1; }

/* Topographic SVG overlay */
.hero__topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.06;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 22px;
}
.hero__headline em {
  font-style: normal;
  color: var(--gold);
}
.hero__subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.75);
  margin-bottom: 44px;
  line-height: 1.6;
}
.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}
.hero__phone {
  font-size: 0.9rem;
  color: rgba(255,255,255,.55);
}
.hero__phone a {
  color: rgba(255,255,255,.75);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: var(--section-pad);
  background: var(--offwhite);
}
.how__header { text-align: center; margin-bottom: 64px; }
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: var(--max-w);
  margin-inline: auto;
}
.how__step {
  text-align: center;
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
  position: relative;
}
.how__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.how__step-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.how__step-body { font-size: 0.95rem; color: var(--text-mid); }

/* connector lines between steps (desktop) */
@media (min-width: 769px) {
  .how__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px;
    right: -24px;
    width: 48px;
    height: 2px;
    background: var(--gold);
    opacity: 0.35;
  }
}

/* ============================================================
   WHY SELL TO US
   ============================================================ */
.why {
  padding: var(--section-pad);
  background: var(--navy);
}
.why__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why__text-col .section-subhead { color: rgba(255,255,255,.70); }
.why__bullets { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.why__bullet {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.why__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.why__icon svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; }
.why__bullet-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}
.why__bullet-text span { font-size: 0.88rem; color: rgba(255,255,255,.60); }
.why__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.why__stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.why__stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.why__stat-label { font-size: 0.875rem; color: rgba(255,255,255,.60); }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial {
  padding: var(--section-pad);
  background: var(--offwhite);
}
.testimonial__header { text-align: center; margin-bottom: 48px; }
.testimonial__card {
  max-width: 680px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 48px 52px;
  position: relative;
}
.testimonial__card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  left: 36px;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.25;
}
.testimonial__quote {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dark);
  margin: 0;
}
.testimonial__quote p {
  margin: 0 0 16px;
}
.testimonial__quote p:last-child {
  margin-bottom: 0;
}
.testimonial__attribution {
  margin-top: 28px;
}
.testimonial__name-meta strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}
.testimonial__name-meta span { font-size: 0.82rem; color: var(--text-light); }
.testimonial__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}
.testimonial__stars svg { width: 18px; height: 18px; fill: var(--gold); }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--section-pad);
  background: var(--white);
}
.about__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 72px;
  align-items: start;
}
.about__photo-wrap {
  position: relative;
}
.about__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about__photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  padding: 20px;
  border: 2px dashed var(--border);
}
.about__accent {
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 80px;
  height: 80px;
  background: var(--gold);
  opacity: 0.15;
  border-radius: var(--radius);
  z-index: -1;
}
.about__content { padding-top: 8px; }
.about__name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 16px;
  margin-bottom: 4px;
}
.about__title {
  font-size: 0.875rem;
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.about__body {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 560px;
}
.about__linkedin {
  display: inline-block;
  margin-top: 20px;
  color: var(--gold);
  transition: color var(--transition), transform var(--transition);
}
.about__linkedin:hover {
  color: var(--gold-dark);
  transform: translateY(-2px);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact {
  padding: var(--section-pad);
  background: var(--offwhite);
}
.contact__header { text-align: center; margin-bottom: 52px; }
.contact__form-wrap {
  max-width: 700px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 52px 56px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--offwhite);
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,42,59,.10);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A4A4A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  margin-top: 28px;
  text-align: center;
}
.form-submit .btn-primary {
  width: 100%;
  max-width: 320px;
  padding: 16px 32px;
  font-size: 1rem;
}
.contact__direct {
  text-align: center;
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}
.contact__direct a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  padding: 48px 24px;
  text-align: center;
}
.footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}
.footer__logo span { color: var(--gold); }
.footer__links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.60);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold); }
.footer__divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,.12);
  margin: 0 auto 24px;
}
.footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,.38);
  line-height: 1.8;
}
.footer__disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,.52);
  margin-top: 8px;
  font-style: italic;
}

/* ============================================================
   INVENTORY PAGE
   ============================================================ */
.inventory-hero {
  background: var(--navy);
  padding: 80px 24px 72px;
  text-align: center;
}
.inventory-hero__content { max-width: 600px; margin-inline: auto; }
.inventory-hero__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.inventory-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

.inventory-section {
  padding: var(--section-pad);
  background: var(--offwhite);
}
.inventory-section__inner {
  max-width: var(--max-w);
  margin-inline: auto;
}
.listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.listing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.listing-card__image {
  height: 200px;
  background: linear-gradient(135deg, var(--border) 0%, var(--offwhite) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
}
.listing-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-card__coming-soon {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.listing-card__coming-soon-badge {
  background: rgba(27,42,59,.75);
  color: rgba(255,255,255,.80);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 40px;
  backdrop-filter: blur(4px);
}
.listing-card__body { padding: 24px 28px 28px; }
.listing-card__location {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.listing-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.listing-card__description {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-card__details {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.listing-card__detail {
  font-size: 0.875rem;
  color: var(--text-mid);
}
.listing-card__detail strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 2px;
}
.listing-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.listing-card__price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
}
.badge-terms {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.30);
  padding: 4px 12px;
  border-radius: 40px;
}
.btn-outline {
  display: inline-block;
  padding: 9px 22px;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  background: transparent;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ── Listings loading / empty / error states ─────────────── */
.listings-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  text-align: center;
}
.listings-state__msg {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 480px;
  line-height: 1.7;
}
.listings-state__msg a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.listings-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.badge-under-contract {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-text);
  background: rgba(201,168,76,.18);
  border: 1px solid rgba(201,168,76,.40);
  padding: 4px 12px;
  border-radius: 40px;
}

.inventory-cta {
  background: var(--navy);
  padding: 72px 24px;
  text-align: center;
}
.inventory-cta__inner { max-width: 560px; margin-inline: auto; }
.inventory-cta h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.inventory-cta p {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  margin-bottom: 36px;
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST BREAKPOINTS
   ============================================================ */
@media (max-width: 900px) {
  .why__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__photo-wrap { max-width: 260px; }
  .contact__form-wrap { padding: 40px 36px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 72px 24px; }

  .how__grid { grid-template-columns: 1fr; }
  .how__step::after { display: none !important; }

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

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

  .hero { padding: 88px 24px 80px; }
  .contact__form-wrap { padding: 36px 24px; }

  .footer__links { gap: 20px; }
}

@media (max-width: 480px) {
  .nav__logo { font-size: 1rem; }
  .listing-card__footer { flex-direction: column; align-items: flex-start; }
  /* Topo SVG adds zero visual value at this size and costs render budget */
  .hero__topo { display: none; }
}

/* ============================================================
   FORM VALIDATION STATES
   ============================================================ */
.form-error {
  display: block;
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 4px;
  min-height: 1.1em; /* prevents layout shift when error appears */
}
.form-field--error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,.10) !important;
}

/* ── In-page success state (replaces form wrapper content) ── */
.form-success {
  text-align: center;
  padding: 52px 32px;
}
.form-success svg {
  width: 48px;
  height: 48px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  margin: 0 auto 20px;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.form-success p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 440px;
  margin-inline: auto;
}

/* ============================================================
   LISTING MODAL
   ============================================================ */

/* Make cards clickable */
.listing-card {
  cursor: pointer;
}

/* Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: 24px 16px;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.is-open { display: flex; align-items: flex-start; justify-content: center; }

/* Panel */
.modal-panel {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 1040px;
  overflow: hidden;
  animation: scaleIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-panel { animation: none; }
}

/* Header */
.modal-header {
  background: var(--navy);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.modal-header__text { flex: 1; min-width: 0; }
.modal-header__location {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.modal-header__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.modal-close {
  flex-shrink: 0;
  background: rgba(255,255,255,.1);
  border: none;
  color: rgba(255,255,255,.7);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
  margin-top: 2px;
}
.modal-close:hover { background: rgba(255,255,255,.2); color: var(--white); }

/* Body: two-column */
.modal-body {
  display: grid;
  grid-template-columns: 1fr 300px;
}

/* Left column */
.modal-left { overflow: hidden; }

/* Carousel */
.modal-carousel { position: relative; background: #000; aspect-ratio: 16/9; overflow: hidden; }
.modal-carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-carousel__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.modal-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background var(--transition);
}
.modal-carousel__btn:hover { background: rgba(0,0,0,.75); }
.modal-carousel__btn--prev { left: 12px; }
.modal-carousel__btn--next { right: 12px; }
.modal-carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.modal-carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.modal-carousel__dot.is-active { background: #fff; transform: scale(1.2); }

/* Thumbnails */
.modal-carousel__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  background: #111;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.modal-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .55;
  transition: opacity var(--transition), border-color var(--transition);
}
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-thumb.is-active { border-color: var(--gold); opacity: 1; }

/* Listing copy */
.modal-copy {
  padding: 28px 32px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  border-bottom: 1px solid var(--border);
}
.modal-copy__headline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}
.modal-copy p { margin-bottom: 10px; }
.modal-copy p:last-child { margin-bottom: 0; }
.modal-copy strong { font-weight: 600; color: var(--text-dark); }
.modal-copy em { font-style: italic; }
.modal-copy__heading { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy); margin: 16px 0 6px; }
.modal-copy__list { padding-left: 1.25rem; margin-bottom: 10px; }
.modal-copy__list li { margin-bottom: 4px; list-style: disc; }
.modal-copy__pricing {
  background: #f0f7f0;
  border: 1px solid #c8e6c9;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 12px 0;
  font-size: 0.875rem;
  color: #2e7d32;
  font-weight: 500;
}

/* Right sidebar */
.modal-sidebar {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.modal-pricing-block {
  padding: 24px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-pricing-block__cash {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.modal-pricing-block__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}
.modal-finance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 18px;
}
.modal-finance-cell {
  text-align: center;
}
.modal-finance-cell__label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 3px;
}
.modal-finance-cell__value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-dark);
}
.modal-sidebar__cta {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition);
}
.modal-sidebar__cta:hover { background: var(--navy-light); }
.modal-sidebar__cta--disabled {
  background: var(--border);
  color: var(--text-light);
  cursor: default;
}
.modal-sidebar__cta--disabled:hover { background: var(--border); }

/* Inquiry form */
.modal-inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-inquiry-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.modal-inquiry-input::placeholder { color: var(--text-light); }
.modal-inquiry-input:focus { border-color: var(--navy); }
.modal-inquiry-textarea { resize: none; }
.modal-inquiry-submit { margin-top: 4px; }
.modal-inquiry-feedback {
  font-size: 0.82rem;
  text-align: center;
  padding: 6px 0 2px;
}
.modal-inquiry-feedback--success { color: #2e7d32; }
.modal-inquiry-feedback--error   { color: #c0392b; }

/* Details list */
.modal-details {
  padding: 20px 22px;
  flex: 1;
}
.modal-details__heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}
.modal-detail-row {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.modal-detail-row:last-child { border-bottom: none; }
.modal-detail-row__label {
  width: 110px;
  flex-shrink: 0;
  color: var(--text-light);
  font-size: 0.78rem;
}
.modal-detail-row__value {
  color: var(--text-dark);
  font-weight: 500;
  word-break: break-word;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-sidebar { border-left: none; border-top: 1px solid var(--border); }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-panel { border-radius: 10px 10px 0 0; max-height: 92vh; overflow-y: auto; }
}

/* ── Server-error message below submit button ─────────────── */
.form-server-error {
  margin-top: 14px;
  font-size: 0.875rem;
  color: #c0392b;
  text-align: center;
  line-height: 1.6;
}
