:root {
  --bg: #0a192f;
  --bg-dark: #0a192f;
  --bg-darker: #020c1b;
  --bg-muted: #112240;
  --bg-card: #112240;
  --text-main: #e6f1ff;
  --text-muted: #8892b0;
  --accent: #38BDF8;
  --accent-soft: #38BDF8;
  --border-soft: #233554;
  --radius-lg: 20px;
  --shadow-soft: 0 26px 60px rgba(2, 12, 27, 0.7);
  --transition-fast: 0.2s ease;
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #0a192f;
  color: var(--text-main);
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

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

/* HERO */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}

.hero-inner {
  position: relative;
  padding: 80px 0 100px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* HERO GALLERY */

.hero-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-gallery-shell {
  position: relative;
  padding: 6px;
  border-radius: 20px;
  background: rgba(10,25,47,0.95);
  border: 1px solid rgba(56,189,248,0.1);
  overflow: hidden;
  cursor: pointer;
}

.hero-gallery-strip {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hero-gallery-strip::-webkit-scrollbar {
  height: 0;
}


.hero-gallery-item {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 12;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
}

.hero-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 10px;
}

.hero-gallery-hint {
  color: rgba(255,255,255,0.6);
}

.hero-gallery-link {
  border: none;
  background: none;
  color: rgba(255,255,255,0.9);
  padding: 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

.hero-gallery-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* HERO ARROWS */

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero-arrow-left { left: 18px; }
.hero-arrow-right { right: 18px; }

/* CTA BOX */

.hero-cta-card {
  background: rgba(17,34,64,0.95);
  padding: 20px 24px;
  border-radius: 22px;
  border: 1px solid rgba(56,189,248,0.12);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  align-self: start;
  height: fit-content;
}

.hero-cta-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: url('https://mts-media.s3.us-south.cloud-object-storage.appdomain.cloud/assets/cpu-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  pointer-events: none;
}

.hero-cta-card > * {
  position: relative;
  z-index: 1;
}

/* JENNY INLINE (inside CTA card) — secondary to agent branding */
.hero-jenny-inline {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(56,189,248,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-jenny-logo {
  width: 64px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.35));
  margin-bottom: 10px;
  opacity: 0.92;
}

.hero-jenny-spanish {
  font-size: 0.68rem;
  font-weight: 600;
  font-style: italic;
  color: #38BDF8;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.hero-jenny-headline {
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 400;
  color: rgba(230,241,255,0.88);
  margin-bottom: 2px;
}

.hero-jenny-headline .jenny-accent {
  font-size: 0.88rem;
  font-style: normal;
}

.hero-jenny-phone {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  color: #e6f1ff;
  text-decoration: none;
  line-height: 1.15;
  margin: 4px 0;
  letter-spacing: -0.01em;
}

.hero-jenny-phone-plain,
.hero-jenny-phone-plain .hero-jenny-call-verb {
  font-style: normal;
}

.hero-jenny-call-verb {
  font-weight: 400;
}

.hero-jenny-bullets {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e6f1ff;
  margin: 4px 0 2px;
}

.hero-jenny-code {
  font-size: 0.85rem;
  color: #8892b0;
  margin-top: 2px;
}

.hero-jenny-code .jenny-code {
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-jenny-disclaimer {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 0.55rem;
  color: rgba(136,146,176,0.55);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Agent Branding — primary contact signal in CTA card */

.hero-agent-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-agent-photo {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.55);
  box-shadow: 0 8px 20px rgba(0,0,0,0.55);
  flex-shrink: 0;
}

.hero-agent-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.hero-agent-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.65);
}

.hero-agent-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
}

.hero-agent-role {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(230,241,255,0.85);
}

.hero-agent-title {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
}

.hero-agent-phone {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

/* Address / Price / Stats */

.hero-cta-card h1 {
  font-size: clamp(1.4rem, 1.9vw, 1.8rem);
  margin: 0 0 4px;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0;
  margin-bottom: 14px;
}

.hero-price {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-stats-condensed {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-stats-condensed span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.15);
  font-size: 0.85rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 10px;
  border: none;
  font-size: 0.94rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #020c1b;
  font-weight: 600;
}

.hero-actions-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.jingle-cta-btn {
  background: rgba(217, 70, 239, 0.2);
  color: #f5d0fe;
  font-weight: 600;
  border: 1px solid rgba(232, 121, 249, 0.45);
  animation: jingles-jukebox-glow 1.8s ease-in-out infinite;
}

.jingle-cta-btn i {
  margin-right: 8px;
  font-size: 0.9rem;
  color: #f0abfc;
  animation: jingle-note-pulse 1.8s ease-in-out infinite;
}

.jingle-cta-btn:hover {
  background: rgba(217, 70, 239, 0.32);
  border-color: rgba(240, 171, 252, 0.7);
  color: #fce7f3;
}

@keyframes jingles-jukebox-glow {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(232, 121, 249, 0.42),
      0 0 22px rgba(217, 70, 239, 0.24);
  }
  50% {
    box-shadow:
      0 0 16px rgba(232, 121, 249, 0.6),
      0 0 32px rgba(217, 70, 239, 0.34);
  }
}

@keyframes jingle-note-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .jingle-cta-btn,
  .jingle-cta-btn i,
  #trailerModal .trailer-video-large {
    animation: none;
  }
}

.hero-actions-main .btn {
  width: 100%;
  justify-content: center;
}
.btn-secondary-outline {
  background: transparent;
  color: #f9fafb;
  border: 1px solid rgba(249,250,251,0.7);
}

.btn-secondary-outline:hover {
  background: rgba(249,250,251,0.06);
  border-color: #ffffff;
}


/* GENERIC SECTIONS */

.section {
  padding: 80px 0;
}

.section-dark {
  background: #0a192f;
}

.section-darker {
  background: #020c1b;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  margin: 0 0 8px;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* HIGHLIGHTS */

.highlights {
  background: #0a192f;
  border-top: 1px solid rgba(56,189,248,0.08);
  border-bottom: 1px solid rgba(56,189,248,0.08);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 0;
}

.highlight .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.highlight .value {
  font-size: 0.98rem;
}

/* SPLIT LAYOUT */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.split-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

/* CARDS */

.card {
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  border: 1px solid rgba(56,189,248,0.08);
  box-shadow: var(--shadow-soft);
}

.card-dark {
  background: #112240;
}

/* AT A GLANCE – PROPERTY SPECS CARD (Polished Modern Theme) */

.specs-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #112240;
  border: 1px solid rgba(56,189,248,0.08);
  box-shadow: var(--shadow-soft);
  padding: 26px 24px;
}

/* Subtle background pattern */
.specs-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 50%, #ffffff, transparent 2px);
  background-size: 20px 20px;
}

.specs-card > * {
  position: relative;
  z-index: 1;
}

.specs-header-title {
  margin: 0 0 4px;
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 600;
}

/* Core stats grid */
.specs-core-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
}

.spec-core-item {
  min-width: 0;
}

.spec-core-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.spec-core-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  font-family: "Poppins", sans-serif;
}

.spec-core-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.spec-core-wide {
  grid-column: span 2;
}

/* Dividers */
.spec-section-divider {
  border: none;
  border-top: 1px solid rgba(56,189,248,0.1);
  margin: 6px 0;
}

/* Sections (Schools, Features, etc.) */
.spec-section {
  padding-top: 8px;
}

.spec-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #38BDF8;
  font-weight: 600;
}

.spec-section-icon {
  font-size: 0.8rem;
  /* Icon styling if needed */
}

/* Schools Layout */
.spec-schools {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-school-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.spec-school-label {
  color: var(--text-muted);
}

.spec-school-value {
  color: #e5e7eb;
  font-weight: 500;
  text-align: right;
}

/* Feature Pills */
.spec-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-pill {
  font-size: 0.75rem;
  background: rgba(56,189,248,0.06);
  color: #ccd6f6;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(56,189,248,0.12);
  white-space: nowrap;
}

.spec-section-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(56,189,248,0.06);
  font-size: 0.82rem;
  gap: 12px;
}

.spec-detail-row:last-child {
  border-bottom: none;
}

.spec-detail-label {
  color: #a3a6b3;
  font-weight: 400;
  flex-shrink: 0;
  min-width: 100px;
}

.spec-detail-value {
  color: #e5e7eb;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

/* More Details Grid (Dots) */
.spec-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spec-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.spec-detail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green {
  background-color: #10b981; 
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

.dot-cyan {
  background-color: #38BDF8; 
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.3);
}

.spec-detail-text {
  color: #d1d5db;
}

/* MAP WRAPPER */
.map-wrapper iframe {
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius-lg);
  border: none;
}

/* New class for map in overview section */
.overview-map {
  margin-top: 24px;
}

/* MAP TOGGLE CONTROLS */
.map-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.map-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(56,189,248,0.15);
  background: rgba(56,189,248,0.05);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.map-toggle:hover {
  background: rgba(56,189,248,0.1);
  color: #e6f1ff;
}

.map-toggle.active {
  background: #38BDF8;
  border-color: #38BDF8;
  color: #020c1b; 
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.map-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.map-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* --- JENNY BOX COMPONENT (Updated) --- */

.jenny-card {
  background: #112240; 
  color: #e6f1ff;
  padding: 20px 20px 16px;
  margin-top: 20px;
  border: 1px solid rgba(56,189,248,0.12);
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  display: none;
}

/* Jenny call button (mobile circular) */
.jenny-action-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 4px auto 14px;
  position: relative;
  z-index: 1;
}

.jenny-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(17,34,64,0.9);
  border: 1.5px solid rgba(136,146,176,0.35);
  color: #e6f1ff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(2,12,27,0.5);
}

.jenny-call-btn:active {
  background: rgba(56,189,248,0.15);
  border-color: #38BDF8;
  transform: scale(0.95);
}

/* Background Image Overlay */
.jenny-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  
  /* The new CPU background image */
  background-image: url('https://mts-media.s3.us-south.cloud-object-storage.appdomain.cloud/assets/cpu-bg.jpg');
  background-size: cover;
  background-position: center;
  
  /* Adjusted Transparency */
  opacity: 0.22; 
  
  pointer-events: none;
  /* No grayscale filter - blue tint active */
}

.jenny-info {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 10px;
}

.jenny-headline {
  font-size: 0.95rem; 
  margin-bottom: 4px;
  line-height: 1.35;
  font-weight: 400;
}

.jenny-accent {
  font-weight: 700;
  font-style: italic;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
  display: inline-block;
  margin-top: 2px;
}

.jenny-phone {
  display: block;
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  line-height: 1.15;
  margin: 8px 0 6px;
  letter-spacing: -0.02em;
  transition: opacity 0.2s, transform 0.2s;
  text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

/* The new lighter area code style */
.phone-area {
    font-weight: 300; /* Light weight */
    opacity: 0.7;     /* Slight transparency */
    margin-right: 4px;
}

.jenny-phone:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.jenny-sub {
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.jenny-phone-plain,
.jenny-phone-plain .jenny-call-verb {
  font-style: normal;
}

.jenny-call-verb {
  font-weight: 400;
}

.jenny-phone-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: normal;
  gap: 2px;
}

.jenny-phone-stacked .jenny-call-verb {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jenny-phone-stacked .jenny-phone-digits {
  font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.jenny-bullets {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin: 4px 0 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.jenny-code {
  font-weight: 700;
  color: #38BDF8; 
}

.jenny-visual {
  position: relative;
  z-index: 1;
  width: 72px;
  margin: 0 auto 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jenny-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
}

.jenny-spanish {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  font-style: italic;
  color: #38BDF8;
  text-align: center;
  text-shadow: 0 2px 6px rgba(2,12,27,0.5);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.jenny-disclaimer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(56,189,248,0.15);
  padding-top: 12px;
  font-size: 0.65rem;
  color: rgba(230,241,255,0.6);
  text-align: center;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .jenny-phone {
    font-size: clamp(1.4rem, 7vw, 1.75rem);
    white-space: nowrap;
    margin: 8px 0;
  }

  .jenny-phone-stacked {
    white-space: normal;
  }

  .jenny-phone-stacked .jenny-phone-digits {
    font-size: clamp(1.45rem, 7.2vw, 1.85rem);
  }
  
  .jenny-phone:hover {
    transform: none; 
  }
  
  .jenny-visual {
    width: 64px;
  }

  .jenny-sub {
    font-size: 0.95rem;
  }

  .jenny-code {
    font-size: 1rem;
  }
  
  .jenny-headline {
    font-size: 0.92rem;
    white-space: normal;
  }
  
  .jenny-accent {
    display: inline-block;
    margin-left: 4px;
    font-size: 1rem;
  }
}

/* AGENT / CONTACT SECTION */

.agent-section {
  align-items: stretch;
}

.agent-card {
  max-width: 360px;
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.agent-photo {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0,0,0,0.7);
}

.agent-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.agent-title {
  margin: 2px 0 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.agent-contact p {
  margin: 4px 0;
  font-size: 0.9rem;
}

/* CONTACT FORM */

.contact-form {
  margin-top: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.form-field label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 10px 14px;
  font-size: 0.9rem;
  background: #0a192f;
  color: var(--text-main);
  outline: none;
}

.form-field textarea {
  border-radius: 16px;
  resize: vertical;
}

.form-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(56,189,248,0.08);
  padding: 18px 0;
  background: #020c1b;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

/* FULLSCREEN PHOTO MODAL */

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 950;
}

.modal-overlay.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-gallery {
  position: relative;
  width: 100%;
  max-width: 1200px;
}

.modal-gallery-strip {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.modal-gallery-strip::-webkit-scrollbar {
  height: 0;
}

.modal-gallery-item {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #000;
}

.modal-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-arrow-left { left: 18px; }
.modal-arrow-right { right: 18px; }

.modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}


/* VIDEO TRAILER MODAL */

.trailer-simple {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}

.trailer-simple.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.trailer-simple.closing {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.trailer-video-large {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.trailer-video-large iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  display: block;
}

#trailerModal .trailer-video-large {
  width: min(100%, calc(92vh * 9 / 16));
  max-height: 92vh;
  margin: 0 auto;
  animation: jingles-jukebox-glow 1.8s ease-in-out infinite;
}

#trailerModal .trailer-video-large iframe {
  aspect-ratio: 9 / 16;
  max-height: 92vh;
}

.trailer-close-btn {
  position: absolute;
  top: -30px;
  right: 0;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.9);
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 20;
}

.trailer-close-btn span[aria-hidden="true"] {
  font-size: 0.9rem;
}

.featured-heading {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.device-strip {
  margin-top: 20px;
  padding-top: 18px;
  display: flex;
  justify-content: center;
}

.device-logos {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;

  /* This allows spacing to stretch out so logos take up most of the video width */
  gap: 80px;
  max-width: 1000px;
  width: 100%;
}

.device-logos img {
  height: 28px;        /* Uniform logo height */
  width: auto;         /* Keep aspect ratio */
  object-fit: contain;
  opacity: 0.95;
}

/* Top-align video modals so close pill never clips */
.video-modal .modal-content {
  align-items: flex-start;
  justify-content: center;
  padding: 70px 24px 32px;
  box-sizing: border-box;
  max-height: 100vh;
  overflow-y: auto;
}

@media (max-width: 640px) {
  .video-modal .modal-content {
    padding: 60px 12px 24px;
  }
}


@media (max-width: 640px) {
  .device-logos {
    gap: 26px;
    flex-wrap: wrap;
  }

  .device-logos img {
    height: 26px;
  }
}

@media (max-width: 640px) {
  .device-logos img {
    height: 22px;
    max-width: 80px;
  }
}

@media (max-width: 640px) {
  .trailer-simple {
    padding: 0 12px;
  }
  .trailer-close-btn {
    top: -36px;
    right: 6px;
  }
}

/* Close button style for photo gallery header (matches trailer close pill) */
.modal-close-btn {
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.9);
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.modal-close-btn span[aria-hidden="true"] {
  font-size: 0.9rem;
}


/* REQUEST A TOUR MODAL – DARK, MULTI-STEP */

.tour-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 960;
}

.tour-modal-overlay.open {
  display: block;
}

.tour-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(3px);
}

.tour-modal-card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  background: #0a192f;
  border-radius: 22px;
  box-shadow: 0 26px 70px rgba(2, 12, 27, 0.9);
  padding: 22px 24px 20px;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.tour-modal-title {
  margin: 4px 28px 6px 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.tour-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* Steps (shown via JS) */

.tour-step {
  display: none;
}

/* Property summary */

.tour-modal-property {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tour-modal-property-image img {
  width: 88px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}

.tour-modal-property-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tour-modal-address-main {
  font-size: 1rem;
  font-weight: 600;
}

.tour-modal-address-sub {
  font-size: 0.85rem;
  color: rgba(229,231,235,0.8);
}

.tour-modal-property-stats {
  font-size: 0.8rem;
  color: rgba(209,213,219,0.9);
}

.tour-modal-property-stats span + span::before {
  content: " · ";
}

/* Tip */

.tour-modal-tip {
  font-size: 0.8rem;
  background: rgba(15,23,42,0.9);
  border-radius: 12px;
  padding: 10px 12px;
  color: rgba(209,213,219,0.9);
}

.tour-modal-divider {
  border: none;
  border-top: 1px solid rgba(55,65,81,0.9);
  margin: 8px 0 10px;
}

/* Slots */

.tour-slot {
  border-radius: 12px;
  border: 1px solid rgba(55,65,81,0.9);
  background: rgba(15,23,42,0.95);
  padding: 10px 12px 12px;
  margin-bottom: 10px;
}

.tour-slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tour-slot-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(156,163,175,0.98);
}

.tour-slot-remove {
  border: none;
  background: none;
  color: rgba(209,213,219,0.9);
  font-size: 0.9rem;
  cursor: pointer;
}

.tour-days-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
}

.tour-days-row::-webkit-scrollbar {
  height: 0;
}

.tour-day {
  border-radius: 10px;
  border: 1px solid rgba(75,85,99,0.9);
  background: rgba(17,24,39,0.95);
  min-width: 88px;
  padding: 8px 8px;
  cursor: pointer;

  /* Stack day + date vertically */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.tour-day-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(156,163,175,0.98);
}

.tour-day-date {
  font-size: 0.86rem;
  font-weight: 500;
  color: #e5e7eb;
}

.tour-day.selected {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.2);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.9);
}

/* Time select */

.tour-modal-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.98);
  margin: 10px 0 4px;
}

.tour-time-select-wrapper {
  position: relative;
}

.tour-time-select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(75,85,99,0.9);
  background: rgba(17,24,39,0.95);
  color: #e5e7eb;
  font-size: 0.9rem;
}

/* Add time */

.tour-add-time-btn {
  margin-top: 4px;
  border: none;
  background: none;
  color: #38BDF8;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Contact step */

.tour-input,
.tour-textarea {
  width: 100%;
  padding: 14px 16px;       /* Taller touch target */
  border-radius: 12px;      /* Slightly more rounded */
  border: 1px solid rgba(75,85,99,0.9);
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  font-size: 16px;          /* Critical for preventing iOS zoom */
  appearance: none;         /* Removes default browser styling */
}

.tour-textarea {
  resize: vertical;
}

/* Hint label styling (used inside phone label) */
.label-hint {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.65;
  margin-left: 4px;
}

/* Inline error under Request tour button */
.tour-error {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #fca5a5;
}

/* Consent */

.tour-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(209,213,219,0.9);
}

.tour-consent-row input {
  margin-top: 3px;
}

.tour-consent-text {
  margin-top: 8px;
  font-size: 0.74rem;
  color: rgba(148,163,184,0.95);
  line-height: 1.5;
}

.tour-consent-text a {
  color: #38BDF8;
  text-decoration: underline;
}

/* Verify step */

.tour-verify-text {
  font-size: 0.9rem;
  color: rgba(229,231,235,0.95);
  margin: 6px 0 10px;
}

.tour-verify-text #verifyPhoneLabel {
  font-weight: 600;
}

.tour-code-inputs {
  display: flex;
  gap: 8px;
  margin: 8px 0 6px;
}

.tour-code-input {
  width: 48px;        /* Increased from 40px */
  height: 56px;       /* Increased from 44px */
  text-align: center;
  font-size: 1.4rem;  /* Larger numbers */
  font-weight: 600;   /* Bolder numbers */
  border-radius: 12px;
  border: 1px solid rgba(75,85,99,0.9);
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  padding: 0;         /* Removes default padding to keep text centered */
  appearance: none;
}

.tour-verify-note {
  font-size: 0.8rem;
  color: rgba(156,163,175,0.98);
  margin-top: 4px;
}

/* Success step */

.tour-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 10px auto 6px;
}

.tour-success-text {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(229,231,235,0.95);
}

.tour-success-summary {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #e5e7eb;
  background: rgba(15,23,42,0.95);
  border-radius: 10px;
  padding: 10px 12px;
}

/* Shared tour primary button */

.tour-next-btn {
  margin-top: 14px;
  width: 100%;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 11px 0;
  cursor: pointer;
}

/* Back button (re-using "skip" styling) */

.tour-skip-btn {
  margin-top: 8px;
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(148,163,184,0.95);
  font-size: 0.85rem;
  cursor: pointer;
}



/* HERO AUDIO PLAYER INSIDE CTA */

.hero-audio {
  margin-top: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(2, 8, 18, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-audio--locked {
  opacity: 0.38;
  filter: grayscale(1);
}

.hero-audio--locked .hero-audio-play,
.hero-audio--locked .hero-audio-lang-select,
.hero-audio--locked .hero-audio-seek {
  cursor: not-allowed;
}

.hero-audio-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.hero-audio-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-audio-icon { margin-right: 6px; font-size: 0.9rem; color: #ffffff; }

.hero-audio-label-text { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: #ffffff; }

.hero-audio-sub {
  font-size: 0.82rem;
  color: rgba(156,163,175,0.95);
}

.hero-audio-lang-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-audio-lang-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(148,163,184,0.95);
}

.hero-audio-lang-select {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  padding: 6px 10px;
  font-size: 0.85rem;
  outline: none;
}

.hero-audio-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-audio-play {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e5e7eb;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-fast), transform 0.08s ease, box-shadow 0.15s ease;
}

.hero-audio-play:hover:not(:disabled):not(.hero-audio-play-disabled) {
  background: rgba(37,99,235,0.9);
  color: #f9fafb;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.9);
  transform: translateY(-0.5px);
}

.hero-audio-play:disabled,
.hero-audio-play.hero-audio-play-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.hero-audio-track {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-audio-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.hero-audio-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(#22c55e, #22c55e) 0 / var(--seek, 0%) 100% no-repeat, rgba(31, 41, 55, 0.95);
}

.hero-audio-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border: none;
  border-radius: 999px;
  background: #22c55e;
}

.hero-audio-seek::-moz-range-track {
  height: 4px;
  border: none;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.95);
}

.hero-audio-seek::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: #22c55e;
}

.hero-audio-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 999px;
  background: #22c55e;
}

.hero-audio-seek:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.hero-audio-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(156,163,175,0.95);
}

.hero-audio-status {
  margin-top: 2px;
  font-size: 0.75rem;
  color: rgba(156,163,175,0.9);
  min-height: 1em; /* keeps layout from jumping when text appears */
}

.hero-audio-status.is-preparing {
  animation: hero-audio-status-pulse 1.6s ease-in-out infinite;
}

@keyframes hero-audio-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-audio-status.is-preparing {
    animation: none;
  }
}



/* Fix language dropdown arrow alignment */
.hero-audio-lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 32px;
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 12px;

  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='14' viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'><path d='M31.3 192h257.4c28.4 0 42.8 34.5 22.6 54.6L182.6 375.4c-12.5 12.5-32.8 12.5-45.3 0L8.7 246.6C-11.4 226.5 3 192 31.3 192z'/></svg>");
}

/* Fix dropdown arrow on Schedule Tour modal */
.tour-time-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 32px;
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 12px;

  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='14' viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'><path d='M31.3 192h257.4c28.4 0 42.8 34.5 22.6 54.6L182.6 375.4c-12.5 12.5-32.8 12.5-45.3 0L8.7 246.6C-11.4 226.5 3 192 31.3 192z'/></svg>");
}


/* MASONRY PHOTO GALLERY */
.modal-masonry-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #000;
}

.modal-header-bar {
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  background: rgba(5,7,15,0.98);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.masonry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 1000px;
  margin: 0 auto;
}

.masonry-item {
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Big tile, two small tiles pattern */
.masonry-item:nth-child(3n + 1) {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.masonry-item:nth-child(3n + 2),
.masonry-item:nth-child(3n + 3) {
  aspect-ratio: 4 / 3;
}

/* Property description: show more / show less */

.property-description-shell {
  position: relative;
}

.property-description {
  position: relative;
  font-size: 0.95rem;
  line-height: 1.7;
  --desc-collapsed-height: 407px;
}

.property-description p {
  margin: 0 0 10px;
}

/* Collapsed state with fade-out at bottom */
.property-description.is-collapsed {
  max-height: var(--desc-collapsed-height);
  overflow: hidden;
}

.property-description.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(
    to bottom,
    rgba(10,25,47,0) 0%,
    rgba(10,25,47,0.9) 60%,
    rgba(10,25,47,1) 100%
  );
  pointer-events: none;
}

.overview-toggles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 6px;
}

.description-toggle {
  margin-top: 0;
  border: none;
  background: none;
  padding: 0;
  color: #38BDF8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.description-toggle:hover {
  text-decoration: none;
}

.facts-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  padding: 10px 0;
  color: #38BDF8;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.facts-toggle i {
  font-size: 0.85rem;
  width: 1rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.facts-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* MOBILE FIXES for Masonry Modal */
@media (max-width: 640px) {
  .modal-header-bar {
    padding: 0 16px;
    height: 60px;
  }

  .modal-price {
    display: none;
  }

  .modal-scroll-area {
    padding: 16px;
  }

  .masonry-grid {
    grid-template-columns: 1fr;
  }

  .masonry-item {
    grid-column: span 1 !important;
    aspect-ratio: 4 / 3 !important;
  }
}

/* CONTACT CARD (formerly LOAN OFFICER CARD) */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.lo-profile {
  display: flex;
  align-items: flex-start; 
  gap: 16px;
}

.lo-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(56,189,248,0.15);
}

.listing-agent-card .lo-avatar {
  width: 88px;
  height: 88px;
  border: 2px solid rgba(255,255,255,0.45);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.listing-agent-card {
  margin-top: 24px;
}

.listing-agent-card .hero-agent-label {
  margin-bottom: 4px;
}

.listing-agent-card .lo-name {
  font-size: 1.3rem;
  font-weight: 700;
}

.listing-agent-card .lo-phone {
  font-size: 1.05rem;
  font-weight: 600;
}

.lo-cta-card .lo-direct-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 10px 0 4px;
}

.lo-cta-card .lo-phone {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0;
  letter-spacing: -0.02em;
}

.lo-cta-card .lo-email {
  display: block;
  font-size: 0.95rem;
  color: #9ca3af;
  margin-top: 4px;
  text-decoration: none;
  word-break: break-word;
}

.lo-cta-card .lo-email:hover {
  color: #e6f1ff;
}

.lo-cta-card .lo-branding-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.lo-cta-card .lo-logo {
  height: 72px;
  max-width: 220px;
}

.lo-cta-card {
  margin-bottom: 24px;
}

#overview:has(.lo-cta-card) {
  padding-bottom: 48px;
}

.lo-cta-card .lo-cta-branding-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.lo-cta-card .financing-apply-btn {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.lo-cta-card .lo-disclosures {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.45;
}

.lo-cta-card .financing-legal-logos {
  justify-content: flex-end;
  margin-top: 10px;
}

.lo-cta-card .financing-legal-logo {
  height: 27px;
}

.lo-cta-card .financing-legal-logo-ncau {
  height: 24px;
}

@media (max-width: 991px) {
  .lo-cta-card .lo-branding {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .lo-cta-card .lo-branding-meta,
  .lo-cta-card .lo-cta-branding-right {
    align-items: center;
    width: 100%;
  }

  .lo-cta-card .financing-apply-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 28px;
  }

  .lo-cta-card .lo-disclosures {
    text-align: center;
  }

  .financing-branding-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .financing-logo-left {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .financing-card .financing-apply-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 28px;
  }
}

@media (max-width: 640px) {
  .lo-cta-card .lo-phone {
    display: none !important;
  }
}

.lo-info {
  flex: 1;
}

.lo-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.lo-title {
  font-size: 0.8rem;
  color: #d1d5db;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lo-nmls, .lo-company {
  font-size: 0.8rem;
  color: #9ca3af;
}

.lo-phone {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.9rem;
  color: #38BDF8;
  text-decoration: none;
  font-weight: 500;
}

/* Desktop Branding */
.lo-branding {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(56,189,248,0.1);
  padding-top: 16px;
  margin-top: 16px;
}

.lo-logo {
  height: 40px;
  object-fit: contain;
}

/* Specific styling for the Agent Tour Button inside branding row */
#agentCardTourBtn {
  padding: 8px 14px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.lo-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 4px;
}

.lo-compliance a {
  color: #9ca3af;
  text-decoration: none;
}

.lo-icons {
  display: flex;
  gap: 8px;
}

.lo-icons img {
  height: 24px;
  width: 24px; /* Forces equal width */
  object-fit: contain; /* Keeps aspect ratio inside the square */
  opacity: 0.7;
}

@media (max-width: 640px) {
  .lo-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Digital Business Card Grid (Hidden on Desktop) */
.mobile-contact-grid {
  display: none;
}

/* --- NEARBY PLACES SECTION --- */
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.nearby-card {
  padding: 24px 20px;
}

.nearby-header {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nearby-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nearby-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.4;
}

.nearby-info {
  display: flex;
  flex-direction: column;
}

.nearby-name {
  color: #e5e7eb;
  font-weight: 500;
}

.nearby-category {
  font-size: 0.75rem;
  color: #6b7280; /* Muted gray */
  margin-top: 2px;
}

.nearby-dist {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 400;
  white-space: nowrap;
  margin-left: 12px;
  background: rgba(255,255,255,0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .nearby-grid {
    grid-template-columns: 1fr;
  }
}
/* --- MOBILE VIEW STYLES --- */

/* Default: Hide Mobile Header on Desktop */
.mobile-hero {
  display: none;
}

/* On Mobile/Tablet (Width < 992px) */
@media (max-width: 991px) {
  
  /* Hide the Desktop Hero */
  header.hero {
    display: none !important;
  }

  /* Show Mobile Hero */
  .mobile-hero {
    display: block;
    background: #020c1b;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(56,189,248,0.1);
  }

  /* Show Jenny card on mobile */
  .jenny-card {
    display: block;
  }
  
  .mobile-break {
    display: block;
    margin-top: 4px; /* Optional: adds a tiny bit of space between the lines */
  }

  /* 1. CAROUSEL AREA */
  .mobile-carousel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3; /* Taller distinct look */
    overflow: hidden;
  }

  .mobile-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  
  .mobile-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .mobile-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
  }

  .mobile-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Photo Counter Pill */
  .mobile-photo-count {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    z-index: 2;
    font-weight: 500;
  }

  /* Overlay Gradient & Text */
  .mobile-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
    pointer-events: none;
  }

  .mobile-address {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  }

  /* Updated Location Style (Replaces .mobile-price) */
  .mobile-location {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    margin-top: 4px;
    font-weight: 400; /* Lighter weight for location */
  }

  .mobile-price {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-top: 4px;
    font-weight: 500;
  }

  /* 2. ACTION GRID (Digital Card) */
  .mobile-action-section {
    padding-top: 24px;
  }

  .mobile-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }

  .action-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
  }

  .action-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(56,189,248,0.2);
    background: rgba(56,189,248,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #e6f1ff;
    transition: all 0.2s ease;
  }

  .action-circle-item:active .action-circle {
    background: rgba(56,189,248,0.15);
    transform: scale(0.95);
  }

  .action-label {
    font-size: 0.75rem;
    color: #a3a6b3;
    font-weight: 500;
  }

  .mobile-divider {
    border: none;
    border-top: 1px solid rgba(56,189,248,0.1);
    margin: 0 0 24px;
  }

  /* 3. CTA STACK & AUDIO */
  .mobile-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-wide-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
  }

  /* Mobile Audio Player */
  .mobile-audio-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px 14px;
    gap: 12px;
  }

  .mobile-audio-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mobile-audio-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .mobile-audio-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #a3a6b3;
    letter-spacing: 0.05em;
  }

  .mobile-audio-timer {
    font-size: 0.85rem;
    color: #fff;
    font-variant-numeric: tabular-nums;
  }

  .mobile-audio-bar-container {
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 99px;
    overflow: hidden;
  }

  .mobile-audio-bar-fill {
    width: 0%;
    height: 100%;
    background: #22c55e;
  }

  .mobile-secondary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .mobile-small-btn {
    font-size: 0.85rem;
    padding: 10px;
    width: 100%;
  }
}

/* --- MOBILE AUDIO CARD (MAC) STYLES --- */

.mobile-audio-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
}

/* Header */
.mac-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.mac-icon {
  color: #38BDF8;
  font-size: 1.1rem;
}

.mac-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Subtitle */
.mac-subtitle {
  color: #a3a6b3;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Dropdown Wrapper */
.mac-select-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.mac-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #0f1118;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
}

.mac-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #a3a6b3;
  pointer-events: none;
  font-size: 0.8rem;
}

/* Player Row */
.mac-player-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mac-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2563eb; /* Primary Blue */
  color: #fff;
  border: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.mac-track-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* WAVEFORM ANIMATION */
.mac-wave-container {
  position: relative;
  width: 100%;
  height: 24px;
  background: transparent;
  overflow: hidden;
}

/* The vertical bars pattern */
.mac-wave-bg, .mac-wave-fill {
  position: absolute;
  inset: 0;
  /* Creates vertical stripes: 3px bar, 2px gap */
  background-image: linear-gradient(90deg, currentColor 60%, transparent 60%);
  background-size: 5px 100%; 
}

/* Inactive bars (Gray) */
.mac-wave-bg {
  color: rgba(255,255,255,0.15);
}

/* Active bars (Green/Blue) - Width controlled by JS */
.mac-wave-fill {
  color: #22c55e; /* Green progress */
  width: 0%; /* JS updates this */
  transition: width 0.1s linear;
  /* Ensure background pattern stays fixed while container shrinks/grows */
  background-attachment: local; 
}

.mac-time {
  font-size: 0.75rem;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* --- POLISH TWEAKS FOR MOBILE --- */

/* 1. Button spacing */
.mobile-wide-btn {
  margin-bottom: 0;
}

/* 2. Add breathing room below the Audio Card */
.mobile-audio-card {
  margin-bottom: 20px;
}

/* 3. Blend the dropdown background */
.mac-select {
  /* Change from solid #0f1118 to semi-transparent black */
  background-color: rgba(0, 0, 0, 0.3) !important; 
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* 4. Align the timer slightly better with the bars */
.mac-time {
  margin-top: 4px;
  font-size: 0.7rem;
  opacity: 0.7;
}

/* --- MOBILE LAYOUT RESTRUCTURING --- */
/* This fixes the squashed columns by stacking them vertically on screens smaller than 900px */

@media (max-width: 900px) {
  
  /* Reduce section vertical padding on mobile to close gaps */
  .section {
    padding: 40px 0;
  }

  /* Hide the text link phone number on mobile (replaced by grid) */
  .lo-phone {
    display: none !important;
  }

  /* Show the 4-button contact grid */
  .mobile-contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px; /* Increased gap */
    margin-top: 24px; /* More spacing from profile info */
    margin-bottom: 8px;
    width: 100%;
  }

  .contact-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* More space between circle and text */
    text-decoration: none;
    cursor: pointer;
  }

  .contact-action-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1.5px solid rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #e6f1ff;
    transition: all 0.2s ease;
    background: rgba(56, 189, 248, 0.04);
  }

  .contact-action-item:active .contact-action-circle {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38BDF8;
    transform: scale(0.95);
  }

  .contact-action-label {
    font-size: 0.8rem; /* Slightly larger text */
    color: #a3a6b3;
    font-weight: 500;
  }
  
  /* 1. Break the Split Layout into a Single Column */
  .split {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .split-left,
  .split-right {
    width: 100%;
    min-width: 0; /* Prevents internal grid blowouts */
  }

  /* Overview → Facts & Features → Map → CTA → Agent / LO */
  .split .split-left,
  .split .split-right {
    display: contents;
  }

  .split .overview-copy,
  .split .specs-card,
  .split .overview-map,
  .split .jenny-card,
  .split .listing-agent-card,
  .split .meet-card,
  .split .financing-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .split .overview-copy { order: 1; }
  .split .specs-card { order: 2; }
  .split .overview-map { order: 3; margin-top: 0; }
  .split .jenny-card { order: 4; margin-top: 0; }
  .split .listing-agent-card { order: 5; margin-top: 0; }
  .split .meet-card { order: 5; margin-top: 0; }
  .split .financing-card { order: 6; }

  .split .specs-card:not(.is-open) {
    display: none;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
    padding: 20px 20px; /* UPDATED: Added side padding */
  }

  .highlight .label {
    font-size: 0.7rem;
  }
  
  .highlight .value {
    font-size: 0.9rem;
  }

  /* 3. Card Adjustments for Mobile */
  /* Reduce padding slightly to gain width */
  .card, .specs-card, .contact-card {
    padding: 20px 16px;
  }

  /* 4. Map Styling on Mobile */
  /* Fix height so it doesn't try to fill a tall column */
  .map-wrapper iframe {
    height: 280px;
    min-height: 280px;
  }

  /* 5. Typography Tweaks */
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  /* Make sure the Overview Text is readable */
  .property-description {
    font-size: 0.9rem;
    --desc-collapsed-height: 160px;
  }

  .property-description.is-collapsed::after {
    height: 48px;
  }

  /* 6. Fix Loan Officer Footer stacking */
  .lo-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  /* 7. RESTRUCTURE BRANDING ROW FOR MOBILE */
  /* This puts the Schedule Tour button ABOVE the Logo, centered and larger */
  .lo-branding {
    flex-direction: column-reverse; /* Swap order: Logo moves down, Button moves up */
    gap: 24px; /* Space between them */
    align-items: center;
    text-align: center;
    margin-top: 24px;
  }

  /* Full width button for mobile */
  #agentCardTourBtn {
    width: 100%;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
  }

  .listing-agent-card:not(.lo-cta-card) .lo-branding .meet-cta-btn,
  .meet-cta-wrap .meet-cta-btn {
    width: 100%;
    max-width: none;
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: 600;
  }

  /* Make logo slightly bigger on mobile */
  .lo-logo {
    height: 50px; 
    width: auto;
    opacity: 0.9;
  }
}

.meet-cta-btn {
  margin-top: 12px;
  width: 100%;
  max-width: 280px;
  gap: 8px;
}

.meet-cta-btn i {
  font-size: 1.05em;
  line-height: 1;
}

.hero-agent-info .meet-cta-btn,
.lo-info .meet-cta-btn {
  display: inline-flex;
  justify-content: center;
}

.meet-cta-wrap {
  margin-top: 24px;
}

#meetVideoModal .meet-video-stack {
  width: 100%;
  max-width: 1100px;
  align-self: stretch;
}

#meetVideoModal .meet-video-frame {
  width: 100%;
  border-radius: 16px 16px 0 0;
}

#meetVideoModal .meet-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
  aspect-ratio: 16 / 9;
}

.meet-credit-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 20px;
  background: linear-gradient(180deg, #112240 0%, #0a192f 100%);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-top: 3px solid #38BDF8;
  border-radius: 0 0 16px 16px;
}

.meet-credit-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.45);
  flex-shrink: 0;
}

.meet-credit-copy {
  min-width: 0;
  flex: 1;
}

.meet-credit-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.meet-credit-title,
.meet-credit-company {
  font-size: 0.88rem;
  color: #8892b0;
  margin-top: 2px;
}

.meet-credit-nmls {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.meet-credit-call {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  min-width: 92px;
}

.meet-credit-call .contact-action-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #e6f1ff;
  background: rgba(56, 189, 248, 0.04);
}

.meet-credit-call:hover .contact-action-circle {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
}

.meet-credit-call .contact-action-label {
  font-size: 0.8rem;
  color: #a3a6b3;
  font-weight: 500;
}

.meet-credit-phone-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e6f1ff;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .meet-credit-bar {
    flex-wrap: wrap;
    padding: 14px 16px;
  }
}

/* ==========================================================================
   DESKTOP PROPERTY WEBSITE HERO
   Only rendered inside header.hero, which is hidden below 992px.
   Mobile continues to use .mobile-hero unchanged.
   ========================================================================== */

.site-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: visible;
  background: #020c1b;
  /* Dark pause between the photograph and the snapshot bar. */
  padding-bottom: 28px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  background: #0a192f;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.site-nav-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 28px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.site-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav-meet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-nav-link {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(230, 241, 255, 0.88);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: #fff;
  background: rgba(56, 189, 248, 0.1);
}

.site-nav-meet i {
  color: #38BDF8;
  font-size: 1rem;
}

.site-nav-more {
  position: relative;
}

.site-nav-more-btn i {
  margin-left: 6px;
  font-size: 0.7rem;
}

.site-nav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px 0;
  background: #112240;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(2, 12, 27, 0.55);
  z-index: 60;
}

.site-nav-more-menu[hidden] {
  display: none;
}

.site-nav-more-item {
  display: block;
  width: 100%;
  appearance: none;
  border: none;
  background: transparent;
  color: #e6f1ff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
}

.site-nav-more-item:hover,
.site-nav-more-item:focus-visible {
  background: rgba(56, 189, 248, 0.1);
}

.site-hero-stage {
  position: relative;
  flex: 1;
  min-height: calc(100vh - 64px);
  overflow: hidden;
}

.site-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: #020c1b;
}

.site-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(2, 12, 27, 0.94) 0%,
      rgba(2, 12, 27, 0.78) 16%,
      rgba(2, 12, 27, 0.42) 32%,
      rgba(2, 12, 27, 0.1) 48%,
      transparent 62%
    ),
    linear-gradient(
      to right,
      rgba(2, 12, 27, 0.42) 0%,
      rgba(2, 12, 27, 0.12) 36%,
      transparent 58%
    );
}

.site-hero-chrome {
  position: absolute;
  z-index: 2;
  left: 40px;
  bottom: 36px;
  /* Stay clear of the floating agent / Jenny card on the right. */
  right: 468px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  pointer-events: none;
}

.site-hero-details {
  position: relative;
  max-width: 760px;
  pointer-events: auto;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.site-hero-details h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.site-hero-location {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  font-weight: 400;
}

.site-hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  margin-top: 18px;
}

.site-hero-spec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.site-hero-spec i {
  color: #38BDF8;
  font-size: 1rem;
}

.site-hero-gallery-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
}

.site-hero-counter {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.site-hero-view-photos {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(2, 12, 27, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.site-hero-view-photos i {
  font-size: 1rem;
  color: #fff;
}

.site-hero-view-photos:hover,
.site-hero-view-photos:focus-visible {
  background: rgba(2, 12, 27, 0.86);
  border-color: rgba(56, 189, 248, 0.8);
  outline: none;
}

.site-hero-chrome--split {
  right: 40px;
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(320px, 920px);
  align-items: start;
  gap: 28px;
}

.site-hero-chrome--split .site-hero-details {
  max-width: none;
  padding-top: 12px;
}

.site-hero-call {
  margin-top: 26px;
  max-width: 520px;
}

.site-hero-secondary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  max-width: 920px;
  margin-left: auto;
  pointer-events: auto;
}

.site-hero-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(2, 12, 27, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-hero-thumbs[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
  width: calc((100% - 36px) / 4);
  margin-left: auto;
}

.site-hero-thumbs[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: calc((100% - 24px) / 2);
  margin-left: auto;
}

.site-hero-thumbs[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-hero-thumb {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  background: #020c1b;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.site-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.25s ease;
}

.site-hero-thumb:hover,
.site-hero-thumb:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.5);
  outline: none;
}

.site-hero-thumb:hover img,
.site-hero-thumb:focus-visible img {
  transform: scale(1.05);
}

.site-hero-chrome--split .site-hero-gallery-cta {
  justify-content: flex-end;
}

.site-action-card {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 3;
  width: min(400px, calc(100% - 56px));
  padding: 22px 22px 16px;
  align-self: auto;
  overflow: visible;
  background: rgba(10, 25, 47, 0.68);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.16);
}

.site-action-card::before {
  display: none;
}

.site-action-card .hero-actions-main {
  margin-top: 16px;
  z-index: 2;
}

.site-action-card .hero-actions-main .btn {
  gap: 10px;
  padding: 13px 18px;
  font-size: 0.98rem;
  border-radius: 12px;
}

.site-action-card .jingle-cta-btn {
  background: rgba(217, 70, 239, 0.2);
  color: #f5d0fe;
  border: 1px solid rgba(232, 121, 249, 0.45);
  animation: jingles-jukebox-glow 1.8s ease-in-out infinite;
}

.site-action-card .jingle-cta-btn i {
  color: #f0abfc;
  animation: jingle-note-pulse 1.8s ease-in-out infinite;
}

.site-action-card .jingle-cta-btn:hover {
  background: rgba(217, 70, 239, 0.32);
  border-color: rgba(240, 171, 252, 0.7);
  color: #fce7f3;
}

.site-action-agent {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 4px;
  padding: 0;
  border: none;
}

.site-action-agent-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-action-photos {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.site-action-card .hero-agent-photo {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.site-action-card .hero-agent-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(230, 241, 255, 0.72);
}

.site-action-card .hero-agent-name {
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.15;
}

.site-action-card .hero-agent-role {
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(230, 241, 255, 0.88);
}

.site-action-card .hero-agent-title {
  font-size: 0.88rem;
  color: rgba(230, 241, 255, 0.72);
}

.site-action-agent-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-action-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-action-phone i {
  color: #38BDF8;
  font-size: 1rem;
}

.site-action-phone:hover {
  color: #fff;
}

.site-action-logo {
  display: block;
  position: static;
  max-height: 56px;
  max-width: 168px;
  margin: 16px auto 2px;
  object-fit: contain;
}

.site-action-meet {
  display: flex;
  justify-content: center;
  margin: 14px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-action-card:not(:has(.site-action-meet)) .site-action-agent {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-action-card .site-action-meet .meet-cta-btn {
  width: auto;
  max-width: none;
  min-width: 0;
  margin-top: 0;
  padding: 11px 22px;
}

.site-action-card .hero-jenny-inline {
  margin-top: 14px;
}

.site-action-card .hero-jenny-logo {
  width: 48px;
}

/* Dedicated line: bubble and number on one row, buttons underneath. */
.hero-jenny-phone-first {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-action-card:has(.hero-jenny-phone-first) .site-action-agent {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.site-action-card .hero-jenny-inline.hero-jenny-phone-first {
  margin-top: 14px;
  padding-top: 0;
  border-top: none;
}

.site-action-card:has(.hero-jenny-phone-first) .hero-agent-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(176, 186, 204, 0.95);
}

.hero-jenny-phone-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.hero-jenny-phone-row:hover {
  color: #fff;
  opacity: 0.92;
}

.hero-jenny-phone-row .hero-jenny-logo,
.site-action-card .hero-jenny-phone-row .hero-jenny-logo {
  display: block;
  width: 52px;
  height: auto;
  margin: 0;
  flex-shrink: 0;
}

.hero-jenny-phone-digits {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}

.hero-jenny-phone-first .hero-jenny-spanish {
  margin: 8px 0 0;
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  text-align: left;
}

.hero-jenny-phone-first .hero-jenny-disclaimer {
  width: 100%;
  margin: 10px 0 0;
  padding: 0;
  border: none;
  font-size: 0.62rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: rgba(166, 176, 194, 0.95);
}

.hero-jenny-helper {
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: rgba(230, 241, 255, 0.82);
}

.site-action-card .hero-jenny-phone-first + .hero-actions-main {
  margin-top: 16px;
  padding-top: 0;
  border-top: none;
}

.mobile-jenny-phone {
  margin-bottom: 18px;
}

.mobile-action-section .share-popover {
  top: calc(100% + 8px);
  bottom: auto;
}

.site-action-card .share-popover {
  top: calc(100% + 8px);
  bottom: auto;
  z-index: 5;
  animation: siteSharePopIn 0.15s ease-out;
}

@keyframes siteSharePopIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (min-width: 992px) {
  html {
    scroll-behavior: smooth;
  }

  #overview,
  #facts,
  #map,
  #schools,
  #presented-by,
  #photos {
    scroll-margin-top: 80px;
  }

  main .container {
    max-width: 1360px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .split {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 36px;
  }

  .highlights-grid {
    gap: 0;
    padding: 30px 0 32px;
  }

  .highlight {
    padding: 6px 32px;
    border-right: 1px solid rgba(56, 189, 248, 0.14);
  }

  .highlight:first-child {
    padding-left: 4px;
  }

  .highlight:last-child {
    border-right: none;
    padding-right: 4px;
  }

  .highlight .label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    margin-bottom: 8px;
  }

  .highlight .value {
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.2;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 1280px) {
  .site-hero-chrome:not(.site-hero-chrome--split) {
    left: 28px;
    right: 416px;
    bottom: 32px;
  }

  .site-hero-chrome--split {
    left: 28px;
    right: 24px;
    bottom: 28px;
    gap: 20px;
  }

  .site-hero-secondary {
    max-width: 780px;
  }

  .site-hero-chrome:not(.site-hero-chrome--split) .site-hero-details {
    max-width: 640px;
  }

  .site-hero-details h1 {
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  }

  .site-action-card {
    width: 360px;
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 1100px) {
  .site-hero-specs {
    gap: 12px 16px;
  }

  .site-hero-spec {
    font-size: 0.86rem;
  }

  .site-nav-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .site-nav-link {
    padding: 8px 8px;
    font-size: 0.84rem;
  }

  .site-hero-chrome:not(.site-hero-chrome--split) {
    left: 24px;
    right: 364px;
    bottom: 28px;
  }

  .site-hero-chrome--split {
    left: 20px;
    right: 16px;
    bottom: 24px;
    grid-template-columns: minmax(340px, 1fr) minmax(240px, 620px);
    gap: 16px;
  }

  .site-hero-secondary {
    max-width: 620px;
  }

  .site-hero-chrome:not(.site-hero-chrome--split) .site-hero-details {
    max-width: none;
  }

  .site-action-card {
    width: 320px;
    top: 16px;
    right: 16px;
    padding: 16px 16px 12px;
  }

  .site-action-card .hero-jenny-phone-digits {
    font-size: 1.45rem;
  }

  .site-action-card .hero-jenny-phone-row .hero-jenny-logo {
    width: 42px;
  }

  .site-action-card .hero-jenny-phone-digits {
    font-size: 1.4rem;
  }

  .site-action-card .hero-jenny-phone-row .hero-jenny-logo {
    width: 46px;
  }
}