/*
 * P7 Signature Collection — Monterey County
 * Essence: Big Sur cliffs · Carmel cypress · Monterey Bay · coastal art & elegance
 *
 * Fonts (add to <head>):
 *   Alegreya: 400, 500, 600, 700
 *   Plus Jakarta Sans: 300, 400, 500, 600, 700
 *
 * <link rel="preconnect" href="https://fonts.googleapis.com" />
 * <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous" />
 * <link href="https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap" rel="stylesheet" />
 *
 * Apply on listing page: <body class="p7-signature p7-county-monterey">
 */

@import url('https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens — Monterey (Pacific · cypress · cliff sand · coastal fog) ── */
:root {
  --brand-50:  #f5f6f4;
  --brand-100: #e6e8e3;
  --brand-200: #c8cdc4;
  --brand-300: #a3ab9e;
  --brand-400: #7d8878;
  --brand-500: #606b5e;
  --brand-600: #4d564c;
  --brand-700: #3e463e;
  --brand-800: #323934;
  --brand-900: #252b27;
  --accent-pacific: #2f6b8a;
  --accent-sand:    #c4a882;
  --accent-cypress: #4a5d4e;
  --font-serif: 'Alegreya', Georgia, serif;
  --font-sans:  'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--brand-900);
  background: var(--brand-50);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ── Sticky Nav ── */
#p7-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,205,196,0.55);
}
.p7-nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.p7-nav-address {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  max-width: 280px;
}
.p7-nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.p7-nav-links a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-700);
  text-decoration: none;
  transition: color 0.2s;
}
.p7-nav-links a:hover { color: var(--brand-900); }
.p7-nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brand-900);
  cursor: pointer;
  padding: 0.25rem;
}
.p7-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: white;
  border-top: 1px solid var(--brand-200);
  padding: 0.5rem 1.5rem 1rem;
}
.p7-nav-mobile.open { display: flex; }
.p7-nav-mobile a {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-700);
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--brand-100);
}
.p7-nav-mobile a:last-child { border-bottom: none; }

/* ── Hero ── */
#p7-hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p7-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37,43,39,0.88) 0%, rgba(50,57,52,0.46) 45%, rgba(47,107,138,0.30) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 6rem 4rem 4.5rem;
}
.p7-hero-content {
  text-align: left;
  color: white;
  max-width: 64rem;
  width: 100%;
}

/* Open House badge (animated pill above address) */
.p7-oh-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
  box-shadow: 0 4px 24px rgba(0,0,0,0.28);
  animation: p7OhPulse 2.6s ease-in-out infinite;
}
.p7-oh-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-sand, #c4a882);
}
.p7-oh-sep {
  color: #bbb;
  font-size: 1rem;
  line-height: 1;
}
.p7-oh-when {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}
@keyframes p7OhPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(0,0,0,0.28); }
  50%       { box-shadow: 0 4px 32px rgba(0,0,0,0.42), 0 0 0 5px rgba(255,255,255,0.15); }
}

/* Listing status badge (FOR SALE / FOR LEASE etc.) */
.p7-hero-badge {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.88);
  margin-bottom: 0.75rem;
}
.p7-hero-address {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  color: white;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.p7-hero-city {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin: 0 0 2rem;
  letter-spacing: 0.05em;
}

/* Hero stat boxes (price / beds / baths / sqft) */
.p7-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-bottom: 1.25rem;
}
.p7-stat-box {
  background: rgba(245,246,244,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0.125rem;
  padding: 0.75rem 1rem;
  min-width: 120px;
  text-align: center;
}
.p7-stat-box-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--brand-900);
  line-height: 1.2;
}
.p7-stat-box-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-600);
  margin-top: 0.25rem;
}
.p7-hero-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.80);
  margin: 0.375rem 0 0;
}

/* ── Hero action buttons (Print Flyer) ── */
.p7-listing-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.p7-btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
  background: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.p7-btn-hero:hover {
  background: #fff;
  color: var(--brand-900);
  border-color: #fff;
}
.p7-btn-hero svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
@keyframes p7-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.p7-animate-fade-in {
  animation: p7-fade-in 0.6s ease-out both;
}

/* ── Buttons ── */
.p7-btn-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: white;
  background: var(--brand-800);
  padding: 0.875rem 2rem;
  text-decoration: none;
  border: 1px solid var(--brand-800);
  transition: background 0.2s, border-color 0.2s;
}
.p7-btn-primary:hover {
  background: var(--brand-900);
  border-color: var(--brand-900);
  color: white;
}
.p7-btn-outline {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: white;
  background: transparent;
  padding: 0.875rem 2rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.7);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.p7-btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  color: white;
}

/* ── Main Content Sections ── */
#p7-main {
  background: #fff;
}
.p7-section,
#p7-main section {
  padding: 3rem 1rem;
}
@media (min-width: 1024px) {
  .p7-section,
  #p7-main section {
    padding: 4rem 1.5rem;
  }
}
.p7-section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-500);
  text-align: center;
  margin-bottom: 0.5rem;
}
.p7-section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--brand-900);
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}
.p7-content-wrap {
  max-width: 64rem;
  margin: 0 auto;
}
.p7-wide-wrap {
  max-width: 72rem;
  margin: 0 auto;
}

/* ── Fade-in-up scroll animation ── */
.p7-fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.p7-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ── */
#p7-footer {
  background: var(--brand-900);
  color: var(--brand-200);
  padding: 3rem 1.5rem 2rem;
  overflow-x: clip;
}
.p7-footer-inner {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}
.p7-footer-policies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.p7-footer-policies a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--brand-400);
  text-decoration: none;
  transition: color 0.2s;
}
.p7-footer-policies a:hover { color: white; }
.p7-footer-policies span { color: var(--brand-600); font-size: 0.8rem; }
.p7-footer-disclaimer {
  font-size: 0.75rem;
  color: var(--brand-400);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.p7-footer-powered {
  font-size: 0.75rem;
  color: var(--brand-500);
  margin: 0;
}
.p7-footer-powered a {
  color: var(--brand-400);
  text-decoration: none;
}
.p7-footer-back-top {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-400);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.p7-footer-back-top:hover { color: white; }

/* ── Video Section ── */
.p7-video-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--brand-900);
  overflow: hidden;
}
.p7-video-wrap iframe,
.p7-video-wrap > div {
  width: 100% !important;
  height: 100% !important;
}
.p7-ext-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── 3D Virtual Tour ── */
.p7-tour-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.p7-tour-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── Finance / Mortgage Calculator ── */
.p7-finance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}
@media (max-width: 680px) {
  .p7-finance-grid { grid-template-columns: 1fr; }
}
.p7-finance-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.p7-finance-result {
  background: var(--brand-900);
  color: #fff;
  padding: 2.5rem 2rem;
  text-align: center;
}
.p7-finance-result-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
  margin: 0 0 1rem;
}
.p7-finance-result-amount {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: white;
  margin: 0 0 1rem;
  line-height: 1.1;
}
.p7-finance-result-note {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin: 0;
}
.p7-finance-estimator {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--brand-200);
}
.p7-finance-est-note {
  font-size: 0.75rem;
  color: var(--brand-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1.25rem;
}
.p7-finance-rate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.p7-rate-box {
  flex: 1 1 160px;
  background: var(--brand-900);
  padding: 1.25rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.p7-rate-box-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-300);
}
.p7-rate-box-rate {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--brand-100);
}
.p7-rate-box-payment {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
}
.p7-finance-disclaimer {
  font-size: 0.7rem;
  color: var(--brand-400);
  line-height: 1.6;
  margin-top: 1.25rem;
}

/* ── Gallery ── */
.p7-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 2rem;
}
.p7-gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  background: var(--brand-200);
}
.p7-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.p7-gallery-item:hover img { transform: scale(1.04); }

/* ── Lightbox ── */
#p7-lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
}
#p7-lightbox.active { display: flex; }
#p7-lightbox-img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain; display: block;
}
.p7-lb-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  color: #fff; font-size: 2rem; cursor: pointer;
  line-height: 1; background: none; border: none; padding: 0;
  opacity: 0.8;
}
.p7-lb-close:hover { opacity: 1; }
.p7-lb-prev, .p7-lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 2.5rem; cursor: pointer;
  background: none; border: none; padding: 1rem;
  opacity: 0.7; line-height: 1;
}
.p7-lb-prev:hover, .p7-lb-next:hover { opacity: 1; }
.p7-lb-prev { left: 0.5rem; }
.p7-lb-next { right: 0.5rem; }
.p7-lb-counter {
  position: absolute; bottom: 1.25rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-sans); font-size: 0.75rem;
  letter-spacing: 0.1em; white-space: nowrap;
}

/* ── Property Details ── */
#p7-main .p7-content-wrap,
#p7-main .p7-wide-wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
#p7-main h1, #p7-main h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--brand-900);
  letter-spacing: -0.01em;
}
#p7-main h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  margin-bottom: 0.25rem;
}
#p7-main h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--brand-800);
  margin: 2rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--brand-200);
}
#p7-main h5 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--brand-800);
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--brand-200);
}
#p7-main .listing_box { margin-bottom: 2rem; }
#p7-main p {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--brand-700);
  margin-bottom: 1rem;
}
/* Feature bullet lists — 2-column grid */
#p7-main ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.375rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.5rem;
}
#p7-main li.feature {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--brand-800);
  padding: 0; margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
#p7-main li.feature::before {
  content: "◆";
  font-size: 0.45rem;
  color: var(--accent-pacific);
  flex-shrink: 0;
  position: relative;
  top: -1px;
}
#p7-main li.listing_amenity {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--brand-800);
  padding: 0; margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
#p7-main li.listing_amenity::before {
  content: "◆";
  font-size: 0.45rem;
  color: var(--accent-pacific);
  flex-shrink: 0;
  position: relative;
  top: -1px;
}
.listing_amenity_name {
  font-weight: 600;
  color: var(--brand-700);
}

/* ── Agent Section ── */
.p7-agent-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--brand-200);
  background: var(--brand-50);
  margin-top: 1rem;
}
.p7-agent-left {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem;
  border-right: 1px solid var(--brand-200);
}
.p7-agent-photo {
  width: 96px;
  height: 116px;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}
.p7-agent-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.p7-agent-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--brand-900);
  margin: 0;
}
.p7-agent-phone {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--brand-600);
  margin: 0;
}
.p7-agent-license {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--brand-500);
  margin: 0 0 0.5rem;
}
.p7-agent-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  margin-top: 0.4rem;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.p7-agent-btn-primary {
  color: white;
  background: var(--brand-800);
  border: 1px solid var(--brand-800);
}
.p7-agent-btn-primary:hover { background: var(--brand-900); border-color: var(--brand-900); color: white; }
.p7-agent-btn-outline {
  color: var(--brand-800);
  background: transparent;
  border: 1px solid var(--brand-700);
}
.p7-agent-btn-outline:hover { background: var(--brand-100); }
.p7-agent-social { margin-top: 1.25rem; }
.p7-agent-designations { margin-top: 1rem; }
.p7-agent-designations .designations { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.p7-agent-designations img { max-height: 44px; height: auto; width: auto; mix-blend-mode: multiply; display: block; }
.p7-social-links { display: flex; flex-wrap: wrap; gap: 0.625rem; align-items: center; }
.p7-social-link { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); text-decoration: none; transition: background 0.2s, color 0.2s; }
.p7-social-link:hover { background: var(--brand-800); color: #fff; }
.p7-social-link svg { width: 1rem; height: 1rem; display: block; }
.p7-agent-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  gap: 0.4rem;
}
.p7-office-logo {
  max-width: 160px;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.p7-office-name {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--brand-800);
  margin: 0;
}
.p7-office-address {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--brand-500);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 768px) {
  .p7-agent-card { grid-template-columns: 1fr; }
  .p7-agent-left { border-right: none; border-bottom: 1px solid var(--brand-200); }
}

/* ── Location / Map ── */
.p7-location-address {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--brand-600);
  text-align: center;
  margin: 0.25rem 0 2rem;
}
.p7-map-wrap {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid var(--brand-200);
}
.p7-map-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* ── Contact Section ── */
#p7-contact {
  background: var(--brand-50);
}
#p7-contact .p7-content-wrap { text-align: center; }
#p7-contact .p7-section-eyebrow { color: var(--brand-600); text-align: center; }
#p7-contact .p7-section-heading { color: var(--brand-900); text-align: center; }
#p7-contact .p7-btn-primary { display: inline-block; margin-top: 1.5rem; }
.p7-contact-subtitle {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--brand-600);
  margin: 0;
  line-height: 1.7;
  text-align: center;
}
.p7-contact-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--brand-200);
  padding: 2.5rem;
  max-width: 38rem;
  margin: 2rem auto 0;
  text-align: left;
}
.p7-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.p7-form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.p7-form-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-700);
}
.p7-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  color: var(--brand-900);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s;
}
.p7-form-input::placeholder { color: var(--brand-400); }
.p7-form-input:focus { border-color: var(--brand-600); }
.p7-form-textarea { resize: vertical; min-height: 120px; }
.p7-contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 2.5rem;
  background: var(--brand-900);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.p7-contact-submit:hover { background: var(--brand-700); }
.p7-contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.p7-contact-result {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  min-height: 1.5em;
}
.p7-contact-success { color: #27ae60; }
.p7-contact-error { color: #c0392b; }
.p7-contact-divider {
  border: none;
  border-top: 1px solid var(--brand-200);
  margin: 0 0 1rem;
}

/* ── Share strip ── */
.p7-share-strip {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
}
.p7-share-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.p7-share-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-600);
}
.p7-share-btn {
  padding: 0.625rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  border: 1px solid var(--brand-300);
  background: transparent;
  color: var(--brand-700);
  transition: border-color 0.2s, color 0.2s;
}
.p7-share-btn:hover { border-color: var(--brand-800); color: var(--brand-800); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .p7-nav-links { display: none; }
  .p7-nav-hamburger { display: block; }
  #p7-hero { min-height: 100svh; }
  .p7-hero-overlay { padding: 5rem 1.5rem 3rem; }
  .p7-hero-content { max-width: 100%; }
  .p7-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  #p7-main ul { grid-template-columns: 1fr; }
  .p7-contact-row { grid-template-columns: 1fr; }
  .p7-map-wrap { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .p7-contact-form-grid { padding: 1.5rem; }
}
@media (min-width: 769px) {
  .p7-nav-mobile { display: none !important; }
}

/* ── Monterey county accent overrides ── */
.p7-county-monterey .p7-section-eyebrow {
  color: var(--accent-pacific);
  letter-spacing: 0.28em;
}
.p7-county-monterey .p7-finance-result,
.p7-county-monterey .p7-rate-box {
  background: linear-gradient(145deg, var(--brand-900) 0%, #1e3d52 100%);
}
.p7-county-monterey .p7-agent-card {
  border-color: var(--brand-200);
  background: linear-gradient(180deg, var(--brand-50) 0%, #e8ebe6 100%);
}
.p7-county-monterey #p7-contact {
  background: linear-gradient(180deg, var(--brand-50) 0%, #e4e8e3 100%);
}
.p7-county-monterey .p7-btn-primary:hover,
.p7-county-monterey .p7-contact-submit:hover {
  background: var(--accent-pacific);
}
.p7-county-monterey .p7-hero-address {
  font-style: italic;
  font-weight: 500;
}
.p7-county-monterey .p7-nav-address {
  font-style: italic;
}

/* ══ Monterey — county character (Big Sur · cypress · Pacific cliffs) ══ */
.p7-county-monterey #p7-hero {
  overflow: hidden;
}
.p7-county-monterey #p7-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
  background: linear-gradient(180deg, rgba(47,107,138,0.12) 0%, transparent 40%),
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.p7-county-monterey #p7-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(48vw, 380px);
  height: 90%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 450' fill='%234a5d4e'%3E%3Cpath d='M140 20 C120 80 100 120 95 200 C90 280 110 350 140 430 C170 350 190 280 185 200 C180 120 160 80 140 20Z'/%3E%3Cpath d='M140 20 C155 100 175 140 180 220 C185 300 165 380 140 430' fill='none' stroke='%232f6b8a' stroke-width='2' opacity='.4'/%3E%3Cellipse cx='140' cy='18' rx='35' ry='12' fill='%232f6b8a' opacity='.35'/%3E%3C/svg%3E") bottom right / contain no-repeat;
}
.p7-county-monterey .p7-hero-content { position: relative; z-index: 4; }
.p7-county-monterey .p7-hero-overlay { z-index: 3; }
.p7-county-monterey .p7-hero-overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4rem;
  pointer-events: none;
  opacity: 0.35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 64' preserveAspectRatio='none'%3E%3Cpath d='M0 32 C200 8 400 48 600 24 S1000 40 1200 16 L1200 64 L0 64Z' fill='%232f6b8a'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
}
.p7-county-monterey #p7-nav {
  border-bottom: 1px solid rgba(47,107,138,0.2);
  box-shadow: inset 0 -1px 0 rgba(196,168,130,0.15);
}
.p7-county-monterey .p7-section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.p7-county-monterey .p7-section-heading::before,
.p7-county-monterey .p7-section-heading::after {
  content: "";
  width: 2.25rem;
  height: 1rem;
  opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 20' fill='none' stroke='%232f6b8a' stroke-width='1.5'%3E%3Cpath d='M2 14 Q12 4 24 12 T46 8'/%3E%3Cpath d='M2 17 Q14 9 26 15 T46 12' opacity='.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.p7-county-monterey .p7-section-heading::after {
  transform: scaleX(-1);
}
.p7-county-monterey .p7-section-eyebrow::before {
  content: "~ ";
  color: var(--accent-pacific);
  font-weight: 600;
}
.p7-county-monterey #p7-features {
  background-color: var(--brand-50);
  background-image: radial-gradient(ellipse 50% 30% at 10% 90%, rgba(47,107,138,0.06) 0%, transparent 70%);
}
.p7-county-monterey #p7-footer::before {
  content: "";
  display: block;
  width: 100vw;
  max-width: 100vw;
  height: 3rem;
  margin-top: -3rem;
  margin-bottom: 2rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 24 Q150 40 300 20 T600 32 T900 18 T1200 28 L1200 48 L0 48Z' fill='%232f6b8a' opacity='.22'/%3E%3Cpath d='M0 32 Q200 44 400 26 T800 36 T1200 24 L1200 48 L0 48Z' fill='%23c4a882' opacity='.12'/%3E%3C/svg%3E") top center / 100% 100% no-repeat;
}
.p7-county-monterey #p7-main li.feature::before,
.p7-county-monterey #p7-main li.listing_amenity::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  top: 0.4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='%232f6b8a'%3E%3Cpath d='M5 0 C3 3 1 4 1 6 C1 8 3 10 5 10 C7 10 9 8 9 6 C9 4 7 3 5 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.p7-county-monterey .p7-gallery-item {
  box-shadow: 0 4px 20px rgba(47,107,138,0.08);
}
.p7-county-monterey .p7-map-wrap {
  border-color: rgba(47,107,138,0.25);
  box-shadow: inset 0 0 0 1px rgba(196,168,130,0.2);
}
@media (max-width: 768px) {
  .p7-county-monterey #p7-hero::after { width: 55vw; opacity: 0.14; }
  .p7-county-monterey .p7-section-heading::before,
  .p7-county-monterey .p7-section-heading::after { width: 1.5rem; }
}
