/**
 * Luxury Theme Stylesheet
 *
 * Dark color scheme, gold accents, editorial magazine feel. Elegant serif
 * headings, generous whitespace, premium animations. No blue anywhere —
 * all accents are gold (#C9A84C), backgrounds dark/cream.
 *
 * @package AI_Community_Page_Builder/themes/luxury
 * @since   1.0.0
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

.cpb-theme-luxury {
  --l-bg-dark:   #0F0F0F;
  --l-bg-mid:    #1A1A1A;
  --l-bg-light:  #F5F0E8;
  --l-gold:      #C9A84C;
  --l-gold-dark: #A07830;
  --l-gold-light:#E8C97A;
  --l-cream:     #F5F0E8;
  --l-text-dark: #0F0F0F;
  --l-text-light:#E8E0D0;
  --l-text-muted:#9E8E7A;
  --l-serif:     Georgia, "Times New Roman", Times, serif;
  --l-sans:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--l-sans);
  color: var(--l-text-dark);
  background: var(--l-bg-light);
  line-height: 1.7;
}

/* Selection highlight */
.cpb-theme-luxury ::selection {
  background: var(--l-gold);
  color: var(--l-bg-dark);
}

/* ==========================================================================
   Hero — Full Viewport
   ========================================================================== */

.cpb-l-hero {
  height: 100vh;
  min-height: 600px;
  background: var(--l-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cpb-l-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(201,168,76,.08) 0%, transparent 70%);
}

.cpb-l-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  max-width: 900px;
}

.cpb-l-hero__accent-line {
  width: 60px;
  height: 2px;
  background: var(--l-gold);
  margin: 0 auto 28px;
}

.cpb-l-hero__pretitle {
  font-family: var(--l-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--l-gold);
  margin: 0 0 24px;
}

.cpb-l-hero__title {
  font-family: var(--l-serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  color: var(--l-cream);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 20px;
}

.cpb-l-hero__subtitle {
  font-family: var(--l-sans);
  font-size: 16px;
  color: var(--l-text-muted);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin: 0;
}

.cpb-l-scroll-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 50%;
  color: var(--l-gold);
  margin-top: 48px;
  font-size: 20px;
  text-decoration: none;
  transition: border-color .3s ease, background .3s ease;
  animation: cpb-l-bounce 2s ease infinite;
}
.cpb-l-scroll-indicator:hover { border-color: var(--l-gold); background: rgba(201,168,76,.1); }

@keyframes cpb-l-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ==========================================================================
   Container
   ========================================================================== */

.cpb-l-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .cpb-l-container { padding: 0 40px; } }

/* ==========================================================================
   Sections
   ========================================================================== */

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

.cpb-l-section--light { background: var(--l-bg-light); }
.cpb-l-section--mid   { background: var(--l-bg-mid); }
.cpb-l-section--dark  { background: var(--l-bg-dark); }
.cpb-l-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--l-text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cpb-l-section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: currentColor;
}
.cpb-l-section-label--gold { color: var(--l-gold); }

.cpb-l-section-title {
  font-family: var(--l-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 40px;
  color: var(--l-text-dark);
}
.cpb-l-section-title--light { color: var(--l-cream); }

.cpb-l-body-text { font-size: 16px; line-height: 1.8; color: #3D3530; }
.cpb-l-body-text--light { color: var(--l-text-light); font-size: 16px; }
.cpb-l-body-text p,
.cpb-l-body-text--light p { margin: 0 0 20px; }
.cpb-l-body-text p:last-child,
.cpb-l-body-text--light p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Map Section
   ========================================================================== */

.cpb-l-map-section {
  background: var(--l-bg-dark);
  padding: 80px 0;
}
.cpb-l-map-section .cpb-l-container {
  max-width: 100%;
  padding: 0 24px;
}
@media (min-width: 768px) { .cpb-l-map-section { padding: 120px 0; } }

/* Map section uses standard .cpb-l-section-label / .cpb-l-section-title */
.cpb-l-map-section .cpb-l-section-title {
  color: var(--l-cream);
}

/* ==========================================================================
   Editorial Grid (About section)
   ========================================================================== */

.cpb-l-editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .cpb-l-editorial-grid {
    grid-template-columns: 2fr 2fr;
    gap: 64px;
  }
}

.cpb-l-editorial-grid__text {
  font-size: 16px;
  line-height: 1.8;
  color: #3D3530;
}

.cpb-l-editorial-grid__video {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
}
.cpb-l-editorial-grid__text p { margin: 0 0 20px; }
.cpb-l-editorial-grid__text p:last-child { margin-bottom: 0; }

.cpb-l-pullquote {
  border-left: 2px solid var(--l-gold);
  padding: 0 0 0 28px;
  margin: 0;
  font-family: var(--l-serif);
  font-size: 20px;
  line-height: 1.6;
  font-style: italic;
  color: #3D3530;
}
.cpb-l-pullquote p { margin: 0 0 20px; }
.cpb-l-pullquote cite {
  font-family: var(--l-sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--l-gold);
}

/* ==========================================================================
   Responsive Video (Luxury)
   ========================================================================== */

.cpb-responsive-video--luxury {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  width: 100%;
  border 1px solid rgba(201,168,76,.2);
}
.cpb-responsive-video--luxury iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Quick Facts Background Image */
.cpb-l-section--qf-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}
.cpb-l-section--qf-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.cpb-l-section--qf-bg .cpb-l-section-label { color: rgba(255,255,255,.6); }
.cpb-l-section--qf-bg .cpb-l-section-title { color: #ffffff; }
.cpb-l-section--qf-bg > .cpb-l-container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Market Stats
   ========================================================================== */

.cpb-l-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(201,168,76,.2);
}
@media (min-width: 640px) { .cpb-l-stats-row { grid-template-columns: repeat(4, 1fr); } }

.cpb-l-stat {}
.cpb-l-stat__value {
  display: block;
  font-family: var(--l-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--l-gold);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.cpb-l-stat__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--l-text-muted);
}

.cpb-l-market-body {
  font-size: 16px;
  color: var(--l-text-light);
  line-height: 1.8;
  max-width: 100%;
  margin: 0;
}
.cpb-l-market-body p { color: var(--l-text-light); }

/* Stat card v2 — used in market intelligence section */
.cpb-stat-cards-grid--luxury {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
}

.cpb-stat-card-v2--luxury {
  background: rgba(201,168,76,.06);
  border: 1px solid rgba(201,168,76,.12);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .2s ease;
}
.cpb-stat-card-v2--luxury:hover { background: rgba(201,168,76,.1); }

.cpb-stat-card-v2--luxury .cpb-stat-card-v2__value {
  font-family: var(--l-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: var(--l-gold);
  line-height: 1;
  letter-spacing: -.02em;
}
.cpb-stat-card-v2--luxury .cpb-stat-card-v2__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--l-text-muted);
}

/* ==========================================================================
   Amenities Image Grid (CSS gradient placeholders)
   ========================================================================== */

.cpb-l-amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}
@media (min-width: 768px) { .cpb-l-amenities-grid { grid-template-columns: repeat(4, 1fr); } }

.cpb-l-amenity-image {
  height: 180px;
  border-radius: 4px;
}
.cpb-l-amenity-image--1 { background: linear-gradient(135deg, #1a3a4a 0%, #0f5c6e 100%); }
.cpb-l-amenity-image--2 { background: linear-gradient(135deg, #2a4a1a 0%, #3d7a2a 100%); }
.cpb-l-amenity-image--3 { background: linear-gradient(135deg, #4a2a0a 0%, #8a5a1a 100%); }
.cpb-l-amenity-image--4 { background: linear-gradient(135deg, #1a1a4a 0%, #3a3a8a 100%); }

/* ==========================================================================
   Amenity Cards — Luxury (with SVG icons)
   ========================================================================== */

.cpb-amenity-cards--luxury {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 48px;
}
@media (min-width: 768px) { .cpb-amenity-cards--luxury { grid-template-columns: repeat(2, 1fr); } }

.cpb-amenity-card--luxury {
  background: var(--l-bg-dark);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .2s ease;
}
.cpb-amenity-card--luxury:hover { background: #111; }

/* SVG icon — gold, space below */
.cpb-amenity-card__icon {
  color: var(--l-gold);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.cpb-amenity-card--luxury .cpb-amenity-card__category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--l-gold);
}
.cpb-amenity-card--luxury .cpb-amenity-card__title {
  font-family: var(--l-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--l-cream);
  margin: 0;
  line-height: 1.3;
}
.cpb-amenity-card--luxury .cpb-amenity-card__desc {
  font-size: 16px;
  color: var(--l-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   Shopping Columns — Luxury
   ========================================================================== */

.cpb-shopping-cols--luxury {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 48px;
}
@media (min-width: 768px) { .cpb-shopping-cols--luxury { grid-template-columns: repeat(3, 1fr); } }

.cpb-shopping-col__title {
  font-family: var(--l-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--l-text-dark);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,168,76,.3);
}
.cpb-shopping-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Dark readable text on cream background */
.cpb-theme-luxury .cpb-shopping-col__list li {
  color: #101010;
}
.cpb-shopping-col__list li {
  font-size: 16px;
  color: #3D3530;
  padding: 6px 0 6px 16px;
  position: relative;
}
.cpb-shopping-col__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--l-gold);
}

/* ==========================================================================
   Schools List
   ========================================================================== */

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

.cpb-l-school-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(201,168,76,.15);
}
.cpb-l-school-item:last-child { border-bottom: none; }

.cpb-l-school-item__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--l-gold);
  color: var(--l-gold);
  font-family: var(--l-serif);
  font-size: 22px;
  flex-shrink: 0;
}
.cpb-l-school-item__rating--private { font-size: 18px; }
.cpb-l-school-item__rating--low     { color: #9CA3AF; }

.cpb-l-school-item__info { display: flex; flex-direction: column; gap: 4px; color: #a19e9e; }
/* School name — readable light text on mid-dark background */
.cpb-l-school-item__info strong { font-size: 16px; color: var(--l-cream); font-weight: 600; }
/* School detail line — lighter muted tone */
.cpb-l-school-item__info span   { font-size: 16px; color: var(--l-text-light); letter-spacing: .03em; }

/* ==========================================================================
   Quick Facts — Badge Card Grid
   ========================================================================== */

.cpb-l-qf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}
@media (min-width: 600px) { .cpb-l-qf-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cpb-l-qf-grid { grid-template-columns: repeat(5, 1fr); } }

.cpb-l-qf-card {
  background: #1A1A1A;
  padding: 28px 20px 24px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: background .2s ease;
}
.cpb-l-qf-card:hover { background: #222; }

.cpb-l-qf-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201,168,76,.15);
  color: var(--l-gold);
  margin-bottom: 6px;
  flex-shrink: 0;
}
.cpb-l-qf-card__icon svg { display: block; }

.cpb-l-qf-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--l-text-muted);
  line-height: 1.2;
}
.cpb-l-qf-card__value {
  font-size: 16px;
  color: var(--l-cream);
  font-weight: 500;
  line-height: 1.4;
}

/* Legacy quick facts row layout (kept for any data that might use it) */
.cpb-quick-facts--luxury {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cpb-quick-facts__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(201,168,76,.1);
  gap: 16px;
}
.cpb-quick-facts__row:last-child { border-bottom: none; }
.cpb-quick-facts__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--l-text-muted);
  flex-shrink: 0;
}
.cpb-quick-facts__value {
  font-size: 16px;
  color: var(--l-text-dark);
  text-align: right;
}

/* ==========================================================================
   FAQs
   ========================================================================== */

.cpb-l-faqs {
  max-width: 100%;
}

.cpb-l-faq-item { border-bottom: 1px solid rgba(201,168,76,.15); }
.cpb-l-faq-item:first-child { border-top: 1px solid rgba(201,168,76,.15); }

.cpb-l-faq-toggle {
  font-family: var(--l-sans);
  font-size: 16px;
  color: var(--l-cream) !important;
  padding: 20px 0;
  letter-spacing: .01em;
}
.cpb-l-faq-toggle:hover,
.cpb-l-faq-toggle[aria-expanded="true"] { color: #ffffff !important; }

.cpb-l-faq-toggle__icon {
  color: var(--l-gold) !important;
  font-size: 22px;
}
.cpb-l-faq-toggle[aria-expanded="true"] .cpb-l-faq-toggle__icon { color: var(--l-gold) !important; }

.cpb-l-faq-body {}
.cpb-l-faq-body__inner {
  color: var(--l-text-light);
  font-size: 16px;
  line-height: 1.8;
  padding-top: 15px;
  padding-bottom: 0;
}

/* ==========================================================================
   Nearby Communities Grid
   ========================================================================== */

.cpb-nearby-comm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 768px) { .cpb-nearby-comm-grid { grid-template-columns: repeat(4, 1fr); } }

.cpb-nearby-comm-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  display: block;
  text-decoration: none;
  background: var(--l-bg-mid);
}
.cpb-nearby-comm-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}
.cpb-nearby-comm-card:hover .cpb-nearby-comm-card__img { transform: scale(1.04); }

.cpb-nearby-comm-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
}
.cpb-nearby-comm-card__text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cpb-nearby-comm-card__name {
  font-family: var(--l-serif);
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
}
.cpb-nearby-comm-card__loc {
  font-size: 12px;
  color: var(--l-gold);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cpb-nearby-comm-viewall {
  text-align: center;
  margin: 0;
}
.cpb-nearby-comm-viewall a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--l-gold);
  text-decoration: none;
  transition: color .2s ease;
}
.cpb-nearby-comm-viewall a:hover { color: var(--l-gold-light); }

/* ==========================================================================
   Agent Section
   ========================================================================== */

.cpb-l-section--agent {
  background: var(--l-bg-dark);
  padding: 80px 0;
}
@media (min-width: 768px) { .cpb-l-section--agent { padding: 120px 0; } }

.cpb-l-agent-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  grid-template-columns: 1fr;
  gap: 48px;
  align-content: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .cpb-l-agent-inner {
    grid-template-columns: 300px 1fr;
    gap: 72px;
    align-items: center;
    padding: 0 40px;
  }
}

.cpb-l-agent-photo {
  aspect-ratio: 3/4;
  background: var(--l-bg-mid);
  border: 1px solid rgba(201,168,76,.15);
  overflow: hidden;
  max-height: 400px;
}
@media (max-width: 767px) { .cpb-l-agent-photo { max-width: 220px; } }

.cpb-l-agent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.cpb-l-agent-photo__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--l-serif);
  font-size: 72px;
  color: var(--l-gold);
  background: var(--l-bg-mid);
}

.cpb-l-agent-pretitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--l-gold);
  margin: 0 0 16px;
}

.cpb-l-agent-name {
  font-family: var(--l-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: var(--l-cream);
  margin: 0 0 8px;
  letter-spacing: -.01em;
}

.cpb-l-agent-title {
  font-size: 16px;
  color: var(--l-text-muted);
  margin: 0 0 24px;
  letter-spacing: .05em;
}

.cpb-l-agent-bio {
  font-size: 16px;
  color: var(--l-text-muted);
  line-height: 1.8;
  margin: 0 0 32px;
  max-width: 520px;
}

.cpb-l-agent-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 32px;
}

.cpb-l-agent-contact__item {
  font-size: 16px;
  color: var(--l-cream);
  text-decoration: none;
  letter-spacing: .03em;
  transition: color .2s ease;
}
.cpb-l-agent-contact__item:hover { color: var(--l-gold); }

.cpb-l-view-homes-btn {
  display: inline-block;
  background: var(--l-gold);
  color: var(--l-bg-dark) !important;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  border: none;
  transition: background .2s ease;
}
.cpb-l-view-homes-btn:hover { background: var(--l-gold-light); }
.cpb-l-view-homes-btn.cpb-view-homes-btn--secondary {
  background: transparent;
  color: var(--l-gold) !important;
  border: 2px solid var(--l-gold);
  margin-top: 8px;
  display: inline-block;
}
.cpb-l-view-homes-btn.cpb-view-homes-btn--secondary:hover {
  background: var(--l-gold);
  color: var(--l-bg-dark) !important;
}

/* ==========================================================================
   Amenities Intro
   ========================================================================== */

.cpb-amenities-intro {
  font-size: 16px;
  color: var(--l-bg-dark);
  line-height: 1.8;
  margin-bottom: 40px;
}
.cpb-amenities-intro p { margin: 0 0 16px; }
.cpb-amenities-intro p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Section Title Decorated (gold underline accent)
   ========================================================================== */

.cpb-section-title--decorated {
  position: relative;
  padding-bottom: 20px;
}
.cpb-section-title--decorated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--l-gold);
}

/* ==========================================================================
   Map panel (What's Nearby)
   ========================================================================== */

.cpb-map-with-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.cpb-theme-luxury .cpb-map-with-panel {
  height: 540px;
}
@media (min-width: 768px) {
  .cpb-map-with-panel {
    grid-template-columns: 3fr 2fr;
    gap: 0;
  }
}

.cpb-map-with-panel__map {
  min-height: 400px;
  position: relative;
}

.cpb-community-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: var(--l-bg-mid);
  border: 1px solid rgba(201,168,76,.1);
}


/* What's Nearby — Per-category tab colors (Luxury — with theme prefix for specificity) */
.cpb-theme-luxury .cpb-wn-tab[data-cat="0"]:hover { background: rgba(37,99,235,.12); color: #2563EB; }
.cpb-theme-luxury .cpb-wn-tab--active[data-cat="0"],
.cpb-theme-luxury .cpb-wn-tab--active[data-cat="0"]:hover { background: #2563EB; color: #fff; border-color: #2563EB; }
.cpb-theme-luxury .cpb-wn-tab[data-cat="1"]:hover { background: rgba(5,150,105,.12); color: #059669; }
.cpb-theme-luxury .cpb-wn-tab--active[data-cat="1"],
.cpb-theme-luxury .cpb-wn-tab--active[data-cat="1"]:hover { background: #059669; color: #fff; border-color: #059669; }
.cpb-theme-luxury .cpb-wn-tab[data-cat="2"]:hover { background: rgba(249,115,22,.12); color: #F97316; }
.cpb-theme-luxury .cpb-wn-tab--active[data-cat="2"],
.cpb-theme-luxury .cpb-wn-tab--active[data-cat="2"]:hover { background: #F97316; color: #fff; border-color: #F97316; }
.cpb-theme-luxury .cpb-wn-tab[data-cat="3"]:hover { background: rgba(239,68,68,.12); color: #EF4444; }
.cpb-theme-luxury .cpb-wn-tab--active[data-cat="3"],
.cpb-theme-luxury .cpb-wn-tab--active[data-cat="3"]:hover { background: #EF4444; color: #fff; border-color: #EF4444; }
.cpb-theme-luxury .cpb-wn-tab[data-cat="4"]:hover { background: rgba(236,72,153,.12); color: #EC4899; }
.cpb-theme-luxury .cpb-wn-tab--active[data-cat="4"],
.cpb-theme-luxury .cpb-wn-tab--active[data-cat="4"]:hover { background: #EC4899; color: #fff; border-color: #EC4899; }
.cpb-theme-luxury .cpb-wn-tab[data-cat="5"]:hover { background: rgba(124,58,237,.12); color: #7C3AED; }
.cpb-theme-luxury .cpb-wn-tab--active[data-cat="5"],
.cpb-theme-luxury .cpb-wn-tab--active[data-cat="5"]:hover { background: #7C3AED; color: #fff; border-color: #7C3AED; }


/* ---- Mobile fixes ---- */
@media (max-width: 767px) {
  .cpb-l-editorial-grid {
    grid-template-columns: 1fr;
  }
  .cpb-l-container {
    padding: 0 16px;
  }
  .cpb-l-section {
    padding: 48px 0;
  }
  .cpb-l-section-title {
    font-size: 1.6rem;
    word-break: break-word;
  }
  .cpb-responsive-video--luxury {
    max-width: 100%;
  }
  .cpb-l-agent-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .cpb-l-agent-photo {
    margin: 0 auto;
  }
  .cpb-l-agent-details {
    align-items: center;
  }
  .cpb-l-qf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cpb-theme-luxury .cpb-map-with-panel {
    height: auto;
  }
  .cpb-map-with-panel__map {
    min-height: 300px;
  }
  .cpb-community-map {
    min-height: 300px;
  }
  .cpb-stat-cards-grid--luxury {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .cpb-amenity-cards--luxury {
    grid-template-columns: 1fr;
  }
  .cpb-shopping-cols--luxury {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cpb-shopping-cols--luxury .cpb-shopping-col__list li {
    padding-left: 0;
  }
  .cpb-shopping-cols--luxury .cpb-shopping-col__list li::before {
    display: none;
  }
  .cpb-theme-luxury .cpb-nearby-comm-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   IDX Listings — Luxury (editorial, refined, sharp lines, gold accents)
   ========================================================================== */

.cpb-theme-luxury .cpb-listings-showcase {
  margin-top: 16px;
}
/* Row: clearfix only — work WITH IMPress floats */
.cpb-theme-luxury .cpb-listings-showcase .impress-property-showcase.impress-row {
  margin: 0;
}
.cpb-theme-luxury .cpb-listings-showcase .impress-property-showcase.impress-row::after {
  content: '';
  display: table;
  clear: both;
}
/* Card: keep IMPress float, force 3-col widths via calc() — fixed height for editorial overlay */
.cpb-theme-luxury .cpb-listings-showcase .impress-showcase-property {
  float: left !important;
  width: calc((100% - 64px) / 3) !important;
  height: 260px;
  margin: 0 32px 32px 0;
  padding: 0;
  background: var(--l-bg-dark);
  border: 1px solid rgba(15, 15, 15, .08);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  transition: transform .35s ease, box-shadow .35s ease;
  box-sizing: border-box;
}
.cpb-theme-luxury .cpb-listings-showcase .impress-showcase-property:nth-child(3n) {
  margin-right: 0;
}
.cpb-theme-luxury .cpb-listings-showcase .impress-showcase-property:nth-child(3n+1) {
  clear: left;
}
.cpb-theme-luxury .cpb-listings-showcase .impress-showcase-property::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--l-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.cpb-theme-luxury .cpb-listings-showcase .impress-showcase-property:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 15, 15, .14);
}
.cpb-theme-luxury .cpb-listings-showcase .impress-showcase-property:hover::after {
  transform: scaleX(1);
}
@media (max-width: 900px) {
  .cpb-theme-luxury .cpb-listings-showcase .impress-showcase-property {
    width: calc((100% - 22px) / 2) !important;
    margin: 0 22px 22px 0;
  }
  .cpb-theme-luxury .cpb-listings-showcase .impress-showcase-property:nth-child(3n) {
    margin-right: 22px;
  }
  .cpb-theme-luxury .cpb-listings-showcase .impress-showcase-property:nth-child(3n+1) {
    clear: none;
  }
  .cpb-theme-luxury .cpb-listings-showcase .impress-showcase-property:nth-child(2n) {
    margin-right: 0;
  }
  .cpb-theme-luxury .cpb-listings-showcase .impress-showcase-property:nth-child(2n+1) {
    clear: left;
  }
}
@media (max-width: 560px) {
  .cpb-theme-luxury .cpb-listings-showcase .impress-showcase-property {
    width: 100% !important;
    float: none !important;
    margin: 0 0 24px 0 !important;
    clear: both !important;
  }
}
/* Photo anchor: full card surface — image fills, dark gradient overlays bottom */
.cpb-theme-luxury .cpb-listings-showcase .impress-showcase-photo {
  display: block;
  position: absolute;
  inset: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.cpb-theme-luxury .cpb-listings-showcase .impress-showcase-photo::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  background: linear-gradient(180deg, rgba(15,15,15,0) 0%, rgba(15,15,15,.55) 50%, rgba(15,15,15,.92) 100%);
  pointer-events: none;
  z-index: 1;
}
/* Image — fills card, fixed height per Task 1 */
.cpb-theme-luxury .cpb-listings-showcase .impress-showcase-property img {
  width: 100% !important;
  height: 260px !important;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  display: block;
  background: var(--l-bg-dark);
  filter: saturate(.95);
  transition: transform .8s ease, filter .5s ease;
}
.cpb-theme-luxury .cpb-listings-showcase .impress-showcase-property:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}
/* Price — positioned over image, centered, serif, white */
.cpb-theme-luxury .cpb-listings-showcase .impress-price {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 78px;
  z-index: 2;
  display: block;
  text-align: center;
  font-family: var(--l-serif);
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.cpb-theme-luxury .cpb-listings-showcase .impress-status { display: none; }
/* Address — positioned just below price, centered, lighter white */
.cpb-theme-luxury .cpb-listings-showcase .impress-address {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 50px;
  z-index: 2;
  display: block;
  text-align: center;
  margin: 0;
  padding: 0;
  font-family: var(--l-sans);
  font-size: 12px;
  color: rgba(255,255,255,.85);
  line-height: 1.4;
  letter-spacing: .04em;
}
.cpb-theme-luxury .cpb-listings-showcase .impress-street {
  display: inline;
  text-align: center;
  font-family: var(--l-sans);
  font-weight: 500;
  color: #fff;
  font-size: 12px;
  letter-spacing: .04em;
  margin: 0;
  text-transform: none;
}
.cpb-theme-luxury .cpb-listings-showcase .impress-cityname,
.cpb-theme-luxury .cpb-listings-showcase .impress-state {
  display: inline;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .18em;
}
/* Beds/Baths/Sqft — bottom row, centered with gold pin separators */
.cpb-theme-luxury .cpb-listings-showcase .impress-beds-baths-sqft {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 0 18px;
  font-size: 11px;
  color: #fff;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.cpb-theme-luxury .cpb-listings-showcase .impress-beds,
.cpb-theme-luxury .cpb-listings-showcase .impress-baths,
.cpb-theme-luxury .cpb-listings-showcase .impress-sqft {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.cpb-theme-luxury .cpb-listings-showcase .impress-acres { display: none; }
.cpb-theme-luxury .cpb-listings-showcase .impress-beds + span::before,
.cpb-theme-luxury .cpb-listings-showcase .impress-baths + span::before,
.cpb-theme-luxury .cpb-listings-showcase .impress-sqft + span::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 10px;
  background: var(--l-gold);
  margin-right: 18px;
  opacity: .75;
}

.cpb-theme-luxury .cpb-listings-cta-wrap {
  text-align: center;
  margin-top: 48px;
}
/* BUG 4 fix — listings CTA on Luxury needs white text on the gold button */
.cpb-theme-luxury .cpb-listings-cta.cpb-l-view-homes-btn,
.cpb-theme-luxury .cpb-listings-cta.cpb-l-view-homes-btn:hover {
  color: #fff !important;
}
