/*
 * P7 Signature Collection — Placer County
 * Essence: Gold Country foothills · oak woodlands · American River · Sierra gateway
 *
 * Fonts (add to <head>):
 *   Lora: 400, 500, 600, 700
 *   Nunito 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=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,500;0,6..12,600;0,6..12,700&display=swap" rel="stylesheet" />
 *
 * Apply on listing page: <body class="p7-signature p7-county-placer">
 */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,500;0,6..12,600;0,6..12,700&display=swap');

/* ── Design Tokens — Placer (oak · copper · foothill gold) ── */
:root {
  --brand-50:  #faf7f2;
  --brand-100: #f0e8dc;
  --brand-200: #dfc9b0;
  --brand-300: #c4a482;
  --brand-400: #a8845e;
  --brand-500: #8e6848;
  --brand-600: #755540;
  --brand-700: #5e4535;
  --brand-800: #4d392c;
  --brand-900: #3d2e24;
  --accent-oak:    #7a8c4e;
  --accent-copper: #b87333;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Nunito 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(223,201,176,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(61,46,36,0.86) 0%, rgba(77,57,44,0.45) 50%, rgba(122,140,78,0.20) 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-copper, #b87333);
}
.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(250,247,242,0.93);
  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-oak);
  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-oak);
  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; }
}

/* ── Placer county accent overrides ── */
.p7-county-placer .p7-section-eyebrow {
  color: var(--accent-copper);
  letter-spacing: 0.24em;
}
.p7-county-placer .p7-finance-result,
.p7-county-placer .p7-rate-box {
  background: linear-gradient(145deg, var(--brand-900) 0%, #4a3828 100%);
}
.p7-county-placer .p7-agent-card {
  border-color: var(--brand-200);
  background: linear-gradient(180deg, var(--brand-50) 0%, #f5ede2 100%);
}
.p7-county-placer #p7-contact {
  background: linear-gradient(180deg, var(--brand-50) 0%, #f2e9dc 100%);
}
.p7-county-placer .p7-btn-primary:hover,
.p7-county-placer .p7-contact-submit:hover {
  background: var(--accent-copper);
}
.p7-county-placer .p7-gallery-item {
  border-radius: 2px;
}

/* ══ Placer — county character (oak hills · Gold Country · copper) ══ */
.p7-county-placer #p7-hero {
  overflow: hidden;
}
.p7-county-placer #p7-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background: radial-gradient(ellipse 100% 60% at 50% 100%, rgba(184,115,51,0.2) 0%, transparent 70%);
}
.p7-county-placer #p7-hero::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: 5%;
  width: min(50vw, 420px);
  height: 70%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.16;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400' fill='%237a8c4e'%3E%3Cpath d='M150 30 C130 80 90 100 100 160 C110 220 140 250 150 320 C160 250 190 220 200 160 C210 100 170 80 150 30Z'/%3E%3Cpath d='M80 200 Q150 170 220 200 Q150 230 80 200Z' fill='%23b87333' opacity='.4'/%3E%3Cpath d='M40 380 Q150 320 260 380' fill='none' stroke='%23b87333' stroke-width='4' opacity='.35'/%3E%3C/svg%3E") bottom right / contain no-repeat;
}
.p7-county-placer .p7-hero-content { position: relative; z-index: 4; }
.p7-county-placer .p7-hero-overlay { z-index: 3; }
.p7-county-placer #p7-nav {
  border-bottom: 3px double rgba(184,115,51,0.25);
}
.p7-county-placer .p7-section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.p7-county-placer .p7-section-heading::before,
.p7-county-placer .p7-section-heading::after {
  content: "";
  width: 2rem;
  height: 1.25rem;
  opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24' fill='none' stroke='%23b87333' stroke-width='1.5'%3E%3Cpath d='M2 20 Q20 8 38 20'/%3E%3Cpath d='M6 20 Q20 12 34 20' opacity='.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.p7-county-placer .p7-section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%237a8c4e'%3E%3Cpath d='M6 1 C4 4 2 5 2 8 C2 10 4 11 6 11 C8 11 10 10 10 8 C10 5 8 4 6 1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.p7-county-placer #p7-features {
  background-color: var(--brand-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cpath d='M0 30 Q20 20 40 30 T80 30' fill='none' stroke='%23b87333' stroke-width='.5' opacity='.15'/%3E%3Cpath d='M0 20 Q20 10 40 20 T80 20' fill='none' stroke='%237a8c4e' stroke-width='.5' opacity='.12'/%3E%3C/svg%3E");
}
.p7-county-placer #p7-footer::before {
  content: "";
  display: block;
  width: 100vw;
  max-width: 100vw;
  height: 2.5rem;
  margin-top: -2.5rem;
  margin-bottom: 1.75rem;
  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 40' preserveAspectRatio='none'%3E%3Cpath d='M0 35 Q300 5 600 25 T1200 15 L1200 40 L0 40Z' fill='%23b87333' opacity='.2'/%3E%3Cpath d='M0 38 Q400 18 800 32 T1200 28 L1200 40 L0 40Z' fill='%237a8c4e' opacity='.15'/%3E%3C/svg%3E") top center / 100% 100% no-repeat;
}
.p7-county-placer #p7-main li.feature::before,
.p7-county-placer #p7-main li.listing_amenity::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  top: 0.3rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='%237a8c4e'%3E%3Cpath d='M7 1 C5 4 2 5 2 8 C2 11 4 13 7 13 C10 13 12 11 12 8 C12 5 9 4 7 1Z'/%3E%3Cpath d='M7 1 L7 13' stroke='%23b87333' stroke-width='.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.p7-county-placer .p7-oh-strip {
  border: 1px solid rgba(184,115,51,0.25);
}
.p7-county-placer .p7-agent-card {
  border-left: 4px solid var(--accent-copper);
}
@media (max-width: 768px) {
  .p7-county-placer #p7-hero::after { width: 65vw; opacity: 0.12; }
}
