/*
 * P7 Signature Collection — Trinity County
 * Essence: Trinity Alps · wild rivers · gold-rush heritage · alpine wilderness
 *
 * Fonts (add to <head>):
 *   Libre Baskerville: 400, 700
 *   Work Sans: 300, 400, 500, 600
 *
 * <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=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Work+Sans:wght@300;400;500;600&display=swap" rel="stylesheet" />
 *
 * Apply on listing page: <body class="p7-signature p7-county-trinity">
 */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Work+Sans:wght@300;400;500;600&display=swap');

/* ── Design Tokens — Trinity (pine · river · granite · gold-rush) ── */
:root {
  --brand-50:  #f2f3ef;
  --brand-100: #e0e4d8;
  --brand-200: #c2cab8;
  --brand-300: #9aa892;
  --brand-400: #748566;
  --brand-500: #566648;
  --brand-600: #445238;
  --brand-700: #354030;
  --brand-800: #2a3328;
  --brand-900: #1e261c;
  --accent-river: #3d6b7a;
  --accent-gold:  #b8956a;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans:  'Work 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(194,202,184,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(30,38,28,0.85) 0%, rgba(42,51,40,0.48) 50%, rgba(61,107,122,0.22) 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-gold, #b8956a);
}
.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(242,243,239,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-river);
  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-river);
  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; }
}

/* ── Trinity county accent overrides ── */
.p7-county-trinity .p7-section-eyebrow {
  color: var(--accent-gold);
  letter-spacing: 0.22em;
}
.p7-county-trinity .p7-finance-result,
.p7-county-trinity .p7-rate-box {
  background: linear-gradient(145deg, var(--brand-900) 0%, #243a42 100%);
}
.p7-county-trinity .p7-agent-card {
  border-color: var(--brand-200);
  background: linear-gradient(180deg, var(--brand-50) 0%, #e8ebe2 100%);
}
.p7-county-trinity #p7-contact {
  background: linear-gradient(180deg, var(--brand-50) 0%, #e4e8df 100%);
}
.p7-county-trinity .p7-btn-primary,
.p7-county-trinity .p7-contact-submit {
  background: var(--brand-800);
}
.p7-county-trinity .p7-btn-primary:hover,
.p7-county-trinity .p7-contact-submit:hover {
  background: var(--brand-700);
}

/* ══ Trinity — county character (Alps · river · gold-rush) ══ */
.p7-county-trinity #p7-hero {
  overflow: hidden;
}
.p7-county-trinity #p7-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.2;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 80px,
    rgba(61,107,122,0.06) 80px,
    rgba(61,107,122,0.06) 82px
  );
}
.p7-county-trinity #p7-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300' preserveAspectRatio='none' fill='%233d6b7a'%3E%3Cpath d='M0 220 L80 140 L160 180 L240 90 L320 130 L400 60 L480 110 L560 40 L640 80 L720 30 L800 70 L800 300 L0 300Z'/%3E%3Cpath d='M0 260 Q200 200 400 240 T800 220 L800 300 L0 300Z' fill='%23b8956a' opacity='.35'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
}
.p7-county-trinity .p7-hero-content { position: relative; z-index: 4; }
.p7-county-trinity .p7-hero-overlay { z-index: 3; }
.p7-county-trinity #p7-nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-river), var(--accent-gold));
  opacity: 0.85;
}
.p7-county-trinity #p7-nav { position: fixed; }
.p7-county-trinity .p7-section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}
.p7-county-trinity .p7-section-heading::before,
.p7-county-trinity .p7-section-heading::after {
  content: "✦";
  font-size: 0.75rem;
  color: var(--accent-gold);
  opacity: 0.7;
}
.p7-county-trinity .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='%23b8956a'%3E%3Cpath d='M6 1 L7 4 L10 4.5 L7.5 6.5 L8 10 L6 8.5 L4 10 L4.5 6.5 L2 4.5 L5 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.p7-county-trinity #p7-features {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60 Q30 40 60 60 T120 60' fill='none' stroke='%233d6b7a' stroke-width='.4' opacity='.12'/%3E%3Cpath d='M0 80 Q30 60 60 80 T120 80' fill='none' stroke='%233d6b7a' stroke-width='.4' opacity='.08'/%3E%3Cpath d='M0 40 Q30 20 60 40 T120 40' fill='none' stroke='%233d6b7a' stroke-width='.4' opacity='.08'/%3E%3C/svg%3E");
}
.p7-county-trinity #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 40 L0 28 L100 8 L200 22 L300 6 L400 18 L500 4 L600 16 L700 8 L800 20 L900 10 L1000 18 L1100 6 L1200 14 L1200 40Z' fill='%23b8956a' opacity='.3'/%3E%3C/svg%3E") top center / 100% 100% no-repeat;
}
.p7-county-trinity #p7-main li.feature::before,
.p7-county-trinity #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='%23b8956a'%3E%3Cpath d='M5 0 L6.5 3.5 L10 4 L7.5 6.5 L8 10 L5 8.2 L2 10 L2.5 6.5 L0 4 L3.5 3.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.p7-county-trinity .p7-finance-result::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M20 160 Q60 80 100 120 T180 60' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.p7-county-trinity .p7-finance-result { position: relative; overflow: hidden; }
@media (max-width: 768px) {
  .p7-county-trinity .p7-section-heading::before,
  .p7-county-trinity .p7-section-heading::after { font-size: 0.6rem; }
}
