/**
 * AI Community Page Builder — Base Public Stylesheet
 *
 * Provides: CSS reset for plugin elements, base typography, breadcrumbs,
 * footer agent widget (full + condensed), and print styles.
 *
 * Theme-specific styles are in templates/themes/{theme}/style.css.
 *
 * Mobile-first: base styles target mobile, breakpoints add desktop layout.
 *
 * @package AI_Community_Page_Builder
 * @since   1.0.0
 */

/* ==========================================================================
   1. CSS Custom Properties (shared across all themes)
   ========================================================================== */

:root {
  --cpb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --cpb-font-serif: Georgia, "Times New Roman", Times, serif;
  --cpb-transition: all .2s ease;
}

/* ==========================================================================
   2. Scoped Reset
   (Only applied inside .cpb-page-* wrappers to avoid theme conflicts)
   ========================================================================== */

.cpb-page *,
.cpb-page *::before,
.cpb-page *::after {
  box-sizing: border-box;
}
.cpb-page {
  overflow-x: hidden;
}


.cpb-page img:not(.cpb-co-agent-card__photo):not(.cpb-brand-bar__photo):not(.cpb-m-agent-card__photo):not(.cpb-fh-agent-hero-card__photo):not(.cpb-footer__photo) {
  max-width: 100%;
  height: auto;
  display: block;
}

.cpb-co-agent-card__photo {
  width: 150px !important;
  height: 150px !important;
  object-fit: cover !important;
}

.cpb-page ul,
.cpb-page ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cpb-page a {
  text-decoration: none;
  transition: var(--cpb-transition);
}

/* ==========================================================================
   3. Base Typography Utilities
   ========================================================================== */

.cpb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.cpb-text-center { text-align: center; }
.cpb-text-left   { text-align: left;   }
.cpb-text-right  { text-align: right;  }

/* ==========================================================================
   4. Breadcrumbs
   ========================================================================== */

.cpb-breadcrumbs {
  font-size: 14px;
  margin-bottom: 16px;
}

.cpb-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cpb-breadcrumbs__item {
  display: flex;
  align-items: center;
}

.cpb-breadcrumbs__item + .cpb-breadcrumbs__item::before {
  content: '›';
  margin: 0 8px;
  opacity: .5;
}

.cpb-breadcrumbs__item--current {
  opacity: .7;
}

.cpb-breadcrumbs a {
  opacity: .8;
}

.cpb-breadcrumbs a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ==========================================================================
   5. Agent Footer Widget
   ========================================================================== */

.cpb-footer {
  font-family: var(--cpb-font);
  width: 100%;
  margin-top: 48px;
  padding: 40px 0 48px;
  text-align: center;
}

/* ---- Full Footer ---- */
.cpb-footer__inner--full {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px 48px;
  text-align: left;
}

/* Footer columns handled by flex */

.cpb-footer__broker-label {
  display: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 10px;
}

.cpb-footer__broker-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cpb-footer__broker-logo {
  display: block;
  max-width: 80px;
  height: auto;
  flex-shrink: 0;
  border-radius: 4px;
}

.cpb-footer__broker-details {
  flex: 1;
  min-width: 0;
}

.cpb-footer__broker-name {
  font-weight: 700;
  margin: 0 0 4px;
}

.cpb-footer__broker-address {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 4px;
  opacity: .85;
}

.cpb-footer__broker-phone {
  font-size: 16px;
  margin: 0 0 4px;
}

.cpb-footer__col--profile { text-align: center; }

.cpb-footer__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 16px;
  display: block;
}

.cpb-footer__photo--placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cpb-footer__name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1E293B;
}

.cpb-footer__title {
  font-size: 16px;
  color: #64748B;
  margin: 0 0 12px;
}

.cpb-footer__bio {
  font-size: 16px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.cpb-footer__col h4 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748B;
  margin: 0 0 16px;
}

.cpb-footer__contact-list {
  list-style: none !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cpb-footer__contact-list a {
  font-size: 16px;
  color: #1E293B;
}

.cpb-footer__contact-list a:hover {
  color: #2563EB;
  text-decoration: underline;
}

.cpb-footer__cta {
  display: inline-block;
  background: var(--m-primary, var(--l-gold, var(--co-primary, var(--fh-primary, #2563EB))));
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: var(--cpb-transition);
}

.cpb-footer__cta:hover {
  background: var(--m-primary-dark, var(--l-gold-dark, var(--co-primary-dark, var(--fh-primary-dark, #1E40AF))));
  color: #fff;
}

.cpb-footer__social {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cpb-footer__social a {
  font-size: 16px;
  color: #2563EB;
}

.cpb-footer__social a:hover {
  text-decoration: underline;
}

/* ---- Condensed Footer ---- */
.cpb-footer__inner--condensed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 32px;
}

.cpb-footer__condensed-info {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.cpb-footer__condensed-info a {
  color: #2563EB;
}

.cpb-footer__condensed-info a:hover {
  text-decoration: underline;
}

.cpb-footer__cta--condensed {
  white-space: nowrap;
}

/* ==========================================================================
   6. Utility Classes Used Across Themes
   ========================================================================== */

.cpb-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .cpb-container { padding-left: 32px; padding-right: 32px; }
}

.cpb-section {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .cpb-section { padding: 64px 0; }
}

.cpb-section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 24px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .cpb-section-title { font-size: 28px; }
}

/* Stats Grid */
.cpb-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .cpb-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.cpb-stat-card {
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.cpb-stat-card__value {
  font-size: 28px;
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.cpb-stat-card__label {
  font-size: 13px;
  display: block;
}

/* FAQ Accordion */
.cpb-faq-item {
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.cpb-faq-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: var(--cpb-transition);
}

.cpb-faq-toggle__icon {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 400;
  transition: transform .25s ease;
  line-height: 1;
}

.cpb-faq-item.is-open .cpb-faq-toggle__icon {
  transform: rotate(45deg);
}

.cpb-faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}

.cpb-faq-body__inner {
  padding-bottom: 18px;
  font-size: 15px;
  line-height: 1.7;
}

.cpb-faq-item.is-open .cpb-faq-body {
  max-height: 500px;
}

/* "View Homes" Button */
.cpb-view-homes-btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  transition: var(--cpb-transition);
  cursor: pointer;
}

/* Back to Top */
.cpb-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--m-primary-dark, var(--l-gold-dark, var(--co-primary-dark, var(--fh-primary-dark, #2563EB))));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  z-index: 999;
  border: none;
  text-decoration: none;
}

.cpb-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cpb-back-to-top:hover {
  background: var(--m-primary, var(--l-gold, var(--co-primary, var(--fh-primary, #1E40AF))));
  color: #fff;
}

/* Nearby Communities */
.cpb-nearby-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cpb-nearby-list li {
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.cpb-nearby-list li:last-child {
  border-bottom: none;
}

.cpb-nearby-list a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================================
   6b. Unified Hero System
   ========================================================================== */

.cpb-hero {
  position: relative;
  overflow: hidden;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

/* Background layer (image / video / iframe) */
.cpb-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cpb-hero__bg img,
.cpb-hero__bg video,
.cpb-hero__bg iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  border: 0;
  display: block;
}

/* Overlay */
.cpb-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Content */
.cpb-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
}

.cpb-hero__content-inner {
  max-width: 900px;
  margin: 0 auto;
}

.cpb-hero__title {
  margin: 0 0 12px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cpb-hero__subtitle {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ---- Two-tone hero title ---- */
.cpb-hero__title-prefix {
  display: block;
  font-weight: 400;
  font-size: 0.55em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}
.cpb-hero__title-name {
  display: block;
  color: #ffffff;
}
.cpb-hero__tagline {
  margin: 8px 0 0;
  font-style: italic;
  font-size: 1.15rem;
  opacity: 0.88;
  letter-spacing: 0.01em;
}
/* Luxury tagline gold */
.cpb-hero--luxury .cpb-hero__tagline { color: #C9A84C; }
/* Coastal/Farmhouse tagline white */
.cpb-hero--coastal .cpb-hero__tagline,
.cpb-hero--farmhouse .cpb-hero__tagline { color: rgba(255,255,255,.85); text-shadow: 0 2px 6px rgba(0,0,0,.3); }

/* ---- Per-theme hero content positioning — centered on all themes ---- */
.cpb-theme-modern .cpb-hero__content,
.cpb-theme-luxury .cpb-hero__content,
.cpb-theme-coastal .cpb-hero__content,
.cpb-theme-farmhouse .cpb-hero__content {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 40px;
}

/* All theme wrapper classes: full width */
.cpb-theme-modern,
.cpb-theme-luxury,
.cpb-theme-coastal,
.cpb-theme-farmhouse {
  width: 100%;
}

/* ---- Per-theme heights ---- */
.cpb-hero--modern    { height: 70vh; }
.cpb-hero--luxury    { height: 100vh; }
.cpb-hero--coastal   { height: 80vh; }
.cpb-hero--farmhouse { height: 70vh; }

/* ---- Per-theme overlays ---- */
.cpb-hero--modern .cpb-hero__overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}
.cpb-hero--luxury .cpb-hero__overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.65) 100%);
}
.cpb-hero--coastal .cpb-hero__overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.45) 100%);
}
.cpb-hero--farmhouse .cpb-hero__overlay {
  background: linear-gradient(to bottom, rgba(30,20,10,.2) 0%, rgba(30,20,10,.55) 100%);
}

/* ---- CSS gradient fallbacks (no image/video set) ---- */
.cpb-hero--modern.cpb-hero--auto .cpb-hero__bg {
  background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 60%, #1D4ED8 100%);
}
.cpb-hero--luxury.cpb-hero--auto .cpb-hero__bg {
  background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 50%, #2D2410 100%);
}
.cpb-hero--coastal.cpb-hero--auto .cpb-hero__bg {
  background: linear-gradient(135deg, #0C4A6E 0%, #4A90B8 60%, #BAE6FD 100%);
}
.cpb-hero--farmhouse.cpb-hero--auto .cpb-hero__bg {
  background: linear-gradient(135deg, #3B2712 0%, #78553C 50%, #A3815C 100%);
}

/* ---- Per-theme title styles ---- */
.cpb-hero--modern .cpb-hero__title,
.cpb-hero--modern .cpb-hero__subtitle {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.cpb-hero--modern .cpb-hero__title { font-size: clamp(2rem, 5vw, 3.5rem); }
.cpb-hero--modern .cpb-hero__tagline { color: rgba(255,255,255,.9); text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.cpb-hero--modern .cpb-hero__cta {
  background: rgba(0,0,0,0.40);
  border-color: rgba(255,255,255,0.35);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #fff;
  padding: 10px 20px;
}
.cpb-hero--modern .cpb-hero__cta:hover {
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.6);
}
.cpb-hero--modern .cpb-hero__cta-icon { color: #fff; opacity: 1; filter: brightness(2); }
.cpb-hero--modern .cpb-hero__cta--contact { background: rgba(0,0,0,0.50); }
.cpb-hero--luxury .cpb-hero__cta {
  background: rgba(0,0,0,0.40);
  border-color: rgba(255,255,255,0.35);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #fff;
}
.cpb-hero--luxury .cpb-hero__cta:hover { background: rgba(0,0,0,0.55); border-color: rgba(255,255,255,0.6); }
.cpb-hero--coastal .cpb-hero__cta {
  background: rgba(0,0,0,0.40);
  border-color: rgba(255,255,255,0.35);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #fff;
}
.cpb-hero--coastal .cpb-hero__cta:hover { background: rgba(0,0,0,0.55); border-color: rgba(255,255,255,0.6); }
.cpb-hero--farmhouse .cpb-hero__cta {
  background: rgba(0,0,0,0.40);
  border-color: rgba(255,255,255,0.35);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #fff;
}
.cpb-hero--farmhouse .cpb-hero__cta:hover { background: rgba(0,0,0,0.55); border-color: rgba(255,255,255,0.6); }

.cpb-hero--luxury .cpb-hero__title   { color: #C9A84C; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: .04em; }
.cpb-hero--luxury .cpb-hero__subtitle { color: rgba(255,255,255,.75); letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; }

.cpb-hero--coastal .cpb-hero__title,
.cpb-hero--coastal .cpb-hero__subtitle { color: #ffffff; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.cpb-hero--coastal .cpb-hero__title { font-size: clamp(2rem, 5vw, 3.5rem); }

.cpb-hero--farmhouse .cpb-hero__title  { color: #FFF8F0; font-size: clamp(2rem, 5vw, 3.5rem); }
.cpb-hero--farmhouse .cpb-hero__subtitle { color: rgba(255,248,240,.8); }


/* ---- Video: show on mobile, poster fallback via <video poster=""> ---- */

/* ---- Tablet: reduce height by ~20% ---- */
@media (max-width: 1024px) {
  .cpb-hero--modern    { height: 56vh; }
  .cpb-hero--luxury    { height: 80vh; }
  .cpb-hero--coastal   { height: 64vh; }
  .cpb-hero--farmhouse { height: 56vh; }
}

/* ---- Mobile: minimum 50vh ---- */
@media (max-width: 480px) {
  .cpb-hero--modern,
  .cpb-hero--luxury,
  .cpb-hero--coastal,
  .cpb-hero--farmhouse {
    height: auto;
    min-height: 50vh;
  }
  .cpb-hero__content { padding: 32px 16px 40px; }
}

/* ==========================================================================
   7. Print Styles
   ========================================================================== */


/* ==========================================================================
   7b. Brand Bar (Landing Page Mode -- header hidden)
   ========================================================================== */

.cpb-brand-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a1a;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cpb-brand-bar-fade 0.3s ease forwards;
}

.cpb-brand-bar.cpb-brand-bar--hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

@keyframes cpb-brand-bar-fade {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

.cpb-brand-bar__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  gap: 4px;
}

.cpb-brand-bar__photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-bottom: 4px;
  border: 2px solid rgba(255,255,255,0.3);
}

.cpb-brand-bar__name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.cpb-brand-bar__title {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

.cpb-brand-bar__phone,
.cpb-brand-bar__email {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 400;
}

.cpb-brand-bar__phone:hover,
.cpb-brand-bar__email:hover {
  color: #ffffff;
  text-decoration: underline;
}

.cpb-brand-bar__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.cpb-brand-bar__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  line-height: 1;
}

.cpb-brand-bar__social-link:hover {
  color: #ffffff;
}

.cpb-brand-bar__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

/* Push hero down when brand bar is visible */
body:has(.cpb-brand-bar) .cpb-hero {
  padding-top: 120px;
}

/* WP admin bar offset */
.logged-in .cpb-brand-bar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .logged-in .cpb-brand-bar {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .cpb-brand-bar__title,
  .cpb-brand-bar__social {
    display: none;
  }
}

@media print {
}

/* ==========================================================================
   8. Hero CTAs
   ========================================================================== */

.cpb-hero__ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: center;
}

.cpb-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background .2s, border-color .2s;
}

.cpb-hero__cta:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   8b. Hero Scroll Indicator (all themes, shown when Full Page Hero is ON)
   ========================================================================== */

.cpb-hero__scroll-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: border-color .3s ease, background .3s ease;
  animation: cpb-hero-bounce 2s ease infinite;
  position: absolute;
  bottom: 40px;
  left: 50%;
  margin-left: -22px;
  z-index: 10;
}
.cpb-hero__scroll-indicator:hover {
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.1);
  color: #fff;
}
@keyframes cpb-hero-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* Luxury theme gold scroll indicator */
.cpb-theme-luxury .cpb-hero__scroll-indicator {
  border-color: rgba(201,168,76,.3);
  color: #C9A84C;
}
.cpb-theme-luxury .cpb-hero__scroll-indicator:hover {
  border-color: #C9A84C;
  background: rgba(201,168,76,.1);
}

/* ==========================================================================
   9. Farmhouse Agent Hero Card
   ========================================================================== */

.cpb-fh-hero-wrapper {
  position: relative;
}

.cpb-fh-agent-hero-card {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 20px;
  max-width: 300px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cpb-fh-agent-hero-card__photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 10px;
  display: block;
  border: 2px solid rgba(0,0,0,.08);
}

.cpb-fh-agent-hero-card__placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #6b7c4e;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.cpb-fh-agent-hero-card__name {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px;
  color: #1a1a1a;
}

.cpb-fh-agent-hero-card__title {
  font-size: 12px;
  color: #666;
  margin: 0 0 10px;
}

.cpb-fh-agent-hero-card__phone {
  display: block;
  font-size: 13px;
  color: #3a5c2a;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 10px;
}

.cpb-fh-agent-hero-card__phone:hover {
  text-decoration: underline;
}

.cpb-fh-agent-hero-card__btn {
  display: block;
  background: var(--fh-primary, #6b7c4e);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
}

.cpb-fh-agent-hero-card__btn:hover {
  background: var(--fh-primary-dark, #4e5e37);
  color: #fff;
}
.cpb-fh-agent-hero-card__btn--secondary {
  background: transparent;
  color: var(--fh-primary, #6b7c4e);
  border: 2px solid var(--fh-primary, #6b7c4e);
  margin-top: 6px;
}
.cpb-fh-agent-hero-card__btn--secondary:hover {
  background: var(--fh-primary, #6b7c4e);
  color: #fff;
}

@media (max-width: 600px) {
  .cpb-fh-agent-hero-card {
    position: static;
    max-width: 100%;
    border-radius: 0;
    margin: 0;
    bottom: auto;
    right: auto;
  }
}


/* ==========================================================================
   COMMUNITY ARCHIVE — /communities/
   ========================================================================== */

.cpb-archive-page {
  width: 100%;
}

/* ---- Header ---- */
.cpb-archive-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563EB 100%);
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.cpb-archive-header__inner {
  max-width: 900px;
  margin: 0 auto;
}

.cpb-archive-header__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

/* ---- Content Wrapper ---- */
.cpb-archive-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* ---- Card Grid ---- */
.cpb-archive-grid {
  display: grid;
  grid-template-columns: repeat( 3, 1fr );
  gap: 24px;
}

/* ---- Individual Card ---- */
.cpb-archive-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .22s ease, box-shadow .22s ease;
}

.cpb-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}

/* ---- Card Link (entire card is clickable) ---- */
.cpb-archive-card__link {
  display: block;
  text-decoration: none;
  height: 300px;
  position: relative;
}

/* ---- Hero Image ---- */
.cpb-archive-card__image {
  position: absolute;
  inset: 0;
  background-color: #1e3a5f;
  background-size: cover;
  background-position: center;
  transition: filter .22s ease;
}

.cpb-archive-card:hover .cpb-archive-card__image {
  filter: brightness(1.12);
}

/* ---- Dark Gradient Overlay ---- */
.cpb-archive-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.4) 55%, rgba(0,0,0,.05) 100%);
  display: flex;
  align-items: flex-end;
}

/* ---- Text Content ---- */
.cpb-archive-card__meta {
  padding: 24px;
  color: #fff;
  width: 100%;
}

.cpb-archive-card__name {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.cpb-archive-card__location {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,.72);
}

.cpb-archive-card__cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .15s;
}

.cpb-archive-card:hover .cpb-archive-card__cta {
  gap: 8px;
}

/* ---- Empty State ---- */
.cpb-archive-empty {
  text-align: center;
  padding: 80px 20px;
}

.cpb-archive-empty__message {
  font-size: 1.1rem;
  color: #6b7280;
  margin: 0;
}

/* ---- Pagination ---- */
.cpb-archive-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.cpb-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}

.cpb-archive-pagination .page-numbers:hover {
  background: #eff6ff;
  border-color: #2563EB;
  color: #2563EB;
}

.cpb-archive-pagination .page-numbers.current {
  background: #2563EB;
  border-color: #2563EB;
  color: #fff;
}

.cpb-archive-pagination .page-numbers.dots {
  border: none;
  background: none;
  cursor: default;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .cpb-archive-grid {
    grid-template-columns: repeat( 2, 1fr );
  }
}

@media (max-width: 480px) {
  .cpb-archive-grid {
    grid-template-columns: 1fr;
  }

  .cpb-archive-header {
    padding: 40px 16px;
  }

  .cpb-archive-content {
    padding: 32px 16px 48px;
  }
}


/* ==========================================================================
   SHARED UPGRADE COMPONENTS — Phase 2 Major Upgrade
   ========================================================================== */

/* ---- Section Label (small caps above titles) ---- */
.cpb-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6B7280;
  margin: 0 0 6px;
}
.cpb-theme-luxury .cpb-section-label { color: #C9A84C; }
.cpb-theme-coastal .cpb-section-label { color: #4A90B8; }
.cpb-theme-farmhouse .cpb-section-label { color: #8B6F47; }

/* ---- Section Title with underline decorator ---- */
.cpb-section-title--decorated {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.cpb-section-title--decorated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: #2563EB;
  border-radius: 2px;
}
.cpb-theme-luxury .cpb-section-title--decorated::after { background: #C9A84C; }
.cpb-theme-coastal .cpb-section-title--decorated::after { background: #4A90B8; }
.cpb-theme-farmhouse .cpb-section-title--decorated::after { background: #8B6F47; }

/* ---- Amenity Cards Grid ---- */
.cpb-amenity-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0 32px;
}
.cpb-amenity-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cpb-amenity-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.cpb-amenity-card__category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563EB;
  margin-bottom: 8px;
}
.cpb-amenity-card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}
.cpb-amenity-card__desc {
  margin: 0;
  font-size: 0.92rem;
  color: #4B5563;
  line-height: 1.55;
}

/* Luxury variant */
.cpb-amenity-card--luxury {
  background: #1A1A1A;
  border-color: rgba(201,168,76,.2);
}
.cpb-amenity-card--luxury .cpb-amenity-card__category { color: #C9A84C; }
.cpb-amenity-card--luxury .cpb-amenity-card__title { color: #F5F0E8; }
.cpb-amenity-card--luxury .cpb-amenity-card__desc { color: rgba(245,240,232,.7); }
.cpb-amenity-card--luxury:hover { box-shadow: 0 4px 16px rgba(201,168,76,.15); }

/* Coastal category color */
.cpb-theme-coastal .cpb-amenity-card__category { color: #4A90B8; }
/* Farmhouse category color */
.cpb-theme-farmhouse .cpb-amenity-card__category { color: #8B6F47; }

/* Amenities intro text */
.cpb-amenities-intro { margin-bottom: 24px; color: #4B5563; line-height: 1.7; }
.cpb-theme-luxury .cpb-amenities-intro { color: var(--l-bg-dark); }

/* ---- Shopping Columns ---- */
.cpb-shopping-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}
.cpb-shopping-cols--luxury { border-top-color: rgba(201,168,76,.2); }
.cpb-shopping-col__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: #111827;
}
.cpb-theme-luxury .cpb-shopping-col__title { color: #C9A84C; }
.cpb-shopping-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cpb-shopping-col__list li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: #4B5563;
  border-bottom: 1px solid #F3F4F6;
}
.cpb-theme-luxury .cpb-shopping-col__list li {
  color: rgba(245,240,232,.7);
  border-bottom-color: rgba(255,255,255,.06);
}

/* ---- Stat Cards v2 Grid ---- */
.cpb-stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.cpb-stat-card-v2 {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cpb-stat-card-v2__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
}
.cpb-stat-card-v2__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B7280;
}

/* Luxury stat cards */
.cpb-stat-card-v2--luxury {
  background: rgba(201,168,76,.08);
  border-color: rgba(201,168,76,.2);
}
.cpb-stat-card-v2--luxury .cpb-stat-card-v2__value { color: #C9A84C; }
.cpb-stat-card-v2--luxury .cpb-stat-card-v2__label { color: rgba(245,240,232,.6); }

/* ---- Quick Facts Grid ---- */
.cpb-quick-facts {
  max-width: 680px;
}
.cpb-quick-facts__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid #E5E7EB;
}
.cpb-quick-facts__row:last-child { border-bottom: none; }
.cpb-quick-facts__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
}
.cpb-quick-facts__value {
  font-size: 0.88rem;
  color: #6B7280;
  text-align: right;
}

/* Luxury quick facts */
.cpb-quick-facts--luxury .cpb-quick-facts__row { border-bottom-color: rgba(255,255,255,.08); }
.cpb-quick-facts--luxury .cpb-quick-facts__label { color: #C9A84C; }
.cpb-quick-facts--luxury .cpb-quick-facts__value { color: rgba(245,240,232,.7); }

/* ---- Nearby Communities Card Grid (2×2) ---- */
.cpb-nearby-comm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 16px;
}
.cpb-nearby-comm-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cpb-nearby-comm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.cpb-nearby-comm-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #374151;
}
.cpb-nearby-comm-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.05) 60%);
}
.cpb-nearby-comm-card__text {
  position: relative;
  z-index: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cpb-nearby-comm-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.cpb-nearby-comm-card__loc {
  font-size: 0.8rem;
  color: rgba(255,255,255,.75);
}
.cpb-nearby-comm-viewall {
  text-align: center;
  margin: 8px 0 40px;
  font-size: 0.9rem;
}
.cpb-nearby-comm-viewall a {
  color: #2563EB;
  text-decoration: none;
  font-weight: 600;
}
.cpb-nearby-comm-viewall a:hover { text-decoration: underline; }
.cpb-theme-luxury .cpb-nearby-comm-viewall a { color: #C9A84C; }
.cpb-theme-coastal .cpb-nearby-comm-viewall a { color: #4A90B8; }
.cpb-theme-farmhouse .cpb-nearby-comm-viewall a { color: #8B6F47; }

/* Sidebar variant — single column */
.cpb-nearby-comm-grid--sidebar {
  grid-template-columns: 1fr;
}
.cpb-nearby-comm-grid--sidebar .cpb-nearby-comm-card {
  aspect-ratio: 16 / 8;
}

/* ---- Coastal Hero Stat Bar ---- */
.cpb-co-hero-wrapper {
  position: relative;
}
.cpb-co-stat-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cpb-co-stat-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.cpb-co-stat-bar__value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.cpb-co-stat-bar__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

/* ---- Market section body spacing ---- */
.cpb-m-section__body--mt,
.cpb-co-section__body--mt,
.cpb-fh-section__body--mt { margin-top: 24px; }


/* ---- Responsive Video Wrapper (global) ---- */
.cpb-responsive-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}
.cpb-responsive-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Responsive adjustments ---- */
@media (max-width: 768px) {
  .cpb-amenity-cards { grid-template-columns: 1fr; }
  .cpb-shopping-cols { grid-template-columns: 1fr; gap: 20px; }
  .cpb-nearby-comm-grid { grid-template-columns: 1fr; }
  .cpb-co-stat-bar {
    gap: 16px;
    padding: 12px 16px;
  }
  .cpb-co-stat-bar__value { font-size: 1.1rem; }
  .cpb-co-stat-bar__label { font-size: 0.62rem; }
  .cpb-hero__title-prefix { font-size: 0.5em; }
}

@media (max-width: 480px) {
  .cpb-stat-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cpb-co-stat-bar {
    gap: 10px;
    padding: 10px 12px;
  }
  .cpb-co-stat-bar__value { font-size: 0.95rem; }
}

/* ---- Global mobile overflow prevention ---- */
@media (max-width: 768px) {
  .cpb-quick-facts__row {
    flex-wrap: wrap;
    gap: 4px;
  }
  .cpb-quick-facts__value {
    word-break: break-word;
  }
  .cpb-quick-facts {
    max-width: 100%;
  }
  .cpb-co-stat-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .cpb-hero__ctas {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .cpb-hero__cta {
    width: auto;
    min-width: 140px;
    justify-content: center;
    font-size: 12px;
    padding: 8px 14px;
  }
  .cpb-nearby-comm-card {
    aspect-ratio: 16 / 9;
  }
  .cpb-shopping-cols {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Community Sheet — Hidden Infographic (captured by html2canvas)
   ========================================================================== */

#cpb-community-sheet {
  display: none;
  width: 816px;
  height: 1056px;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1E293B;
  overflow: hidden;
  box-sizing: border-box;
}

.cpb-sheet__header {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #0F172A;
  display: flex;
  align-items: flex-end;
}
.cpb-sheet__header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 100%);
}
.cpb-sheet__header-text {
  position: relative;
  z-index: 1;
  padding: 24px 40px;
}
.cpb-sheet__community {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.1;
}
.cpb-sheet__location {
  font-size: 18px;
  color: rgba(255,255,255,.8);
  margin: 0;
  letter-spacing: .05em;
}

.cpb-sheet__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 3px solid var(--m-primary, var(--l-gold, var(--co-primary, var(--fh-primary, #2563EB))));
}
.cpb-sheet__stat {
  padding: 14px 16px;
  text-align: center;
  border-right: 1px solid #E2E8F0;
}
.cpb-sheet__stat:last-child { border-right: none; }
.cpb-sheet__stat-val {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--m-primary, var(--l-gold, var(--co-primary, var(--fh-primary, #2563EB))));
  line-height: 1;
  margin-bottom: 2px;
}
.cpb-sheet__stat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #64748B;
}

.cpb-sheet__facts {
  padding: 12px 40px 16px;
  border-top: 1px solid #E2E8F0;
}
.cpb-sheet__section-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #374151;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E2E8F0;
}
.cpb-sheet__facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cpb-sheet__fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cpb-sheet__fact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #64748B;
}
.cpb-sheet__fact-val {
  font-size: 14px;
  font-weight: 600;
  color: #1E293B;
}

.cpb-sheet__overview {
  padding: 16px 40px;
}
.cpb-sheet__overview-text {
  font-size: 12px;
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

.cpb-sheet__shopping {
  padding: 12px 40px 16px;
  border-top: 1px solid #E2E8F0;
}
.cpb-sheet__shopping-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cpb-sheet__shop-col-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--m-primary, var(--l-gold, var(--co-primary, var(--fh-primary, #2563EB))));
  margin: 0 0 6px;
}
.cpb-sheet__shop-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cpb-sheet__shop-list li {
  font-size: 11px;
  color: #374151;
  padding: 2px 0;
  border-bottom: 1px solid #F3F4F6;
}
.cpb-sheet__shop-list li:last-child { border-bottom: none; }

.cpb-sheet__agent {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.cpb-sheet__agent-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.cpb-sheet__agent-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}
.cpb-sheet__agent-name { font-size: 16px; color: #1E293B; }
.cpb-sheet__agent-title { font-size: 12px; color: #64748B; }
.cpb-sheet__agent-phone { font-size: 13px; color: #374151; }
.cpb-sheet__broker-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}
.cpb-sheet__broker-name {
  font-size: 12px;
  color: #64748B;
  flex-shrink: 0;
}
.cpb-sheet__watermark {
  position: absolute;
  bottom: 6px;
  right: 40px;
  font-size: 9px;
  color: #CBD5E1;
  letter-spacing: .02em;
}

/* Theme color overrides for sheet */
.cpb-sheet--luxury .cpb-sheet__stats { border-bottom-color: #C9A84C; }
.cpb-sheet--luxury .cpb-sheet__stat-val { color: #C9A84C; }
.cpb-sheet--coastal .cpb-sheet__stats { border-bottom-color: #4A90B8; }
.cpb-sheet--coastal .cpb-sheet__stat-val { color: #4A90B8; }
.cpb-sheet--farmhouse .cpb-sheet__stats { border-bottom-color: #6b7c4e; }
.cpb-sheet--farmhouse .cpb-sheet__stat-val { color: #6b7c4e; }

/* "FREE" highlight in heading */
.cpb-free-highlight {
  font-weight: 800;
  color: var(--m-primary, var(--l-gold, var(--co-primary, var(--fh-primary, #2563EB))));
}
#cpb-contact h2,
#cpb-contact .cpb-co-section__title,
#cpb-contact .cpb-fh-section__title,
#cpb-contact .cpb-l-section-title,
#cpb-contact .cpb-m-section__title {
  text-align: center;
}

/* ==========================================================================
   Get In Touch — container constraint (when outside content wrapper)
   ========================================================================== */

#cpb-contact {
  width: 100%;
  max-width: 100%;
  padding: 48px 24px;
  box-sizing: border-box;
}
#cpb-contact > h2,
#cpb-contact > form,
#cpb-contact > .frm_forms {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Download Community Sheet Button
   ========================================================================== */

.cpb-download-sheet-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--m-primary, var(--l-gold, var(--co-primary, var(--fh-primary, #2563EB))));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.cpb-download-sheet-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.cpb-download-sheet-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
