/* =========================================================
   CASABLANCA SITE REFRESH CSS
   Purpose: Current final-state styling only. Legacy yellow hero titles,
   old WebGL fallback assets, and mobile capsule nav styling are removed.
   ========================================================= */

:root {
  --casa-new-logo: url('https://assets.cdn.filesafe.space/E2BEbKIK8SvsJICq4vXY/media/6a3eec33e2763b2eec1f94f4.svg');
  --casa-webgl-fallback: url('https://assets.cdn.filesafe.space/E2BEbKIK8SvsJICq4vXY/media/6a3ea3fea24b71f0b2f265b2.png');
  --lux-black: #050505;
  --lux-black-2: #0d0b08;
  --lux-card: #fffaf0;
  --lux-gold: #d7ad45;
  --lux-gold-deep: #9b6e18;
  --lux-gold-light: #fff0a6;
  --lux-border: rgba(255, 226, 138, .32);
}

/* =========================================================
   STATIC LOGO SWAP / OLD LOGO MASK
   ========================================================= */
.logo-wrapper,
.footer-brand-block {
  position: relative !important;
}

.logo-wrapper::before,
.footer-brand-block::before {
  content: "" !important;
  display: block !important;
  background-image: var(--casa-new-logo) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  pointer-events: none !important;
}

.logo-wrapper::before {
  width: clamp(218px, 15.5vw, 300px) !important;
  height: clamp(128px, 8.8vw, 170px) !important;
}

.footer-brand-block::before {
  width: min(220px, 70vw) !important;
  height: 126px !important;
  margin: 0 auto 1.2rem !important;
}

.main-logo,
.footer-brand-block > img {
  opacity: 0 !important;
  visibility: hidden !important;
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  pointer-events: none !important;
}

.drawer-logo,
.site-footer-luxury img {
  content: var(--casa-new-logo) !important;
  object-fit: contain !important;
}

/* =========================================================
   DESKTOP NAV — STABLE, NO SCROLL SHRINK SPEED BUMP
   ========================================================= */
.site-header,
.site-header.is-scrolled {
  background-color: var(--lux-black) !important;
  background-image: linear-gradient(180deg, #070707 0%, #030303 100%) !important;
  border-bottom: 1px solid rgba(255, 226, 138, .16) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,.66), inset 0 -1px 0 rgba(255,255,255,.035) !important;
  transform: none !important;
}

.casa-container,
.vegas-container {
  display: none !important;
}

@media (min-width: 1024px) {
  .site-header,
  .site-header.is-scrolled,
  .header-container,
  .nav-bar-container {
    overflow: visible !important;
  }

  .nav-bar-container,
  .site-header.is-scrolled .nav-bar-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) clamp(230px, 16vw, 305px) minmax(0, 1fr) !important;
    min-height: clamp(120px, 8.2vw, 138px) !important;
    column-gap: clamp(.5rem, 1vw, 1.2rem) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transition: none !important;
  }

  .brand-group,
  .site-header.is-scrolled .brand-group {
    top: 50% !important;
    left: 50% !important;
    width: clamp(220px, 15.5vw, 305px) !important;
    height: clamp(108px, 7.4vw, 150px) !important;
    transform: translate(-50%, -50%) !important;
    z-index: 44 !important;
    transition: none !important;
  }

  .logo-wrapper,
  .site-header.is-scrolled .logo-wrapper {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -40%) !important;
    transition: none !important;
  }

  .main-logo,
  .site-header.is-scrolled .main-logo {
    width: clamp(218px, 15.5vw, 300px) !important;
    max-width: none !important;
    height: auto !important;
  }

  .nav-left { justify-self: end !important; margin: 0 !important; }
  .nav-right { justify-self: start !important; margin: 0 !important; }
}

/* =========================================================
   MOBILE: OLD HEADER / DRAWER HIDDEN BEFORE JS LOADS
   ========================================================= */
@media (max-width: 1023px) {
  #site-header,
  .site-header {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  #drawer,
  .drawer {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate3d(0, -12px, 0) scale(.98) !important;
  }

  #drawer.open,
  .drawer.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
  }

  #drawerOverlay,
  .overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #drawerOverlay.active,
  .overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* =========================================================
   LIGHTWEIGHT FADE HERO
   ========================================================= */
.casa-webgl-hero {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-height: 100svh !important;
  height: 100svh !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #f6efe3 !important;
  isolation: isolate;
}

.casa-webgl-stage {
  position: absolute !important;
  inset: 0 !important;
  z-index: 4 !important;
  background: #f6efe3 !important;
  opacity: 0;
  transition: opacity 420ms ease;
}

.casa-webgl-stage.is-ready { opacity: 1; }

.casa-fade-hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: none;
  transition: opacity 1200ms ease-in-out;
}

.casa-fade-hero-layer.is-active { opacity: 1; }

.casa-webgl-hero .hero-fallback {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  opacity: 1;
  transition: opacity 420ms ease;
}

.casa-webgl-stage.is-ready + .hero-fallback { opacity: 0; }

.casa-webgl-hero .hero-picture,
.casa-webgl-hero .hero-picture img,
.casa-webgl-hero .hero-fallback img {
  width: 100% !important;
  height: 100% !important;
  min-height: 100svh !important;
  display: block !important;
}

.casa-webgl-hero .hero-fallback img {
  content: var(--casa-webgl-fallback) !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: saturate(1.06) contrast(1.04) brightness(.94) !important;
}

.casa-webgl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.02) 45%, rgba(0,0,0,.04) 100%),
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.02) 52%, rgba(0,0,0,.08));
}

.casa-webgl-hero .hero-text,
.casa-webgl-hero #dynamic-title,
.casa-webgl-hero .credit,
.casa-webgl-hero .hero-copy,
.casa-webgl-hero .intro-panel,
.casa-webgl-hero .hero-content,
.casa-webgl-hero .hero-grid,
.casa-hero-slide-title,
.casa-mobile-title-stabilizer {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

main > section.hero:not(.casa-webgl-hero),
.legacy-hero,
.old-hero,
.hero-split,
.hero-panel,
.hero-content:not(.casa-webgl-hero .hero-content),
.hero-copy:not(.casa-webgl-hero .hero-copy),
.intro-panel:not(.casa-webgl-hero .intro-panel),
#matterport,
.drawer-nav a[href="#matterport"],
.nav-link[href="#matterport"] {
  display: none !important;
}

/* =========================================================
   PAGE COLOR SYSTEM
   ========================================================= */
.hero-intro-section,
.private-estate-card-section,
.pricing-black-section,
.concierge-luxury-section,
section.bg-dark,
.section.bg-dark {
  background: #f6efe3 !important;
  background-image: radial-gradient(circle at 50% 0%, rgba(168,117,44,.10), transparent 34rem), linear-gradient(180deg, #fffaf0, #f6efe3) !important;
  color: #1b1712 !important;
}

.section.bg-cream,
.section.bg-ivory,
.map-positioning-section,
.floorplan-section {
  background: #fffaf0 !important;
  color: #1b1712 !important;
}

.lead,
.lead.light,
p,
li { color: #30291f !important; }

.title-lg,
.title-md,
.font-display,
h1,
h2,
h3 { color: #1b1712 !important; }

.eyebrow,
.eyebrow.center {
  color: #a8752c !important;
  letter-spacing: .18em !important;
}

.card-dark,
.mini-card,
.price-card,
.estate-summary-card,
.policy-grid .mini-card,
.concierge-option {
  background: rgba(255,250,240,.94) !important;
  color: #1b1712 !important;
  border: 1px solid rgba(168,117,44,.26) !important;
  box-shadow: 0 28px 70px rgba(63,47,28,.12), inset 0 1px 0 rgba(255,255,255,.7) !important;
}

/* =========================================================
   BUTTON READABILITY / PREMIUM BLACK-GOLD BUTTONS
   ========================================================= */
.btn,
.btn-gold,
.btn-outline,
.footer-button-row .btn,
.drawer-actions .btn,
#submitBooking {
  position: relative !important;
  overflow: hidden !important;
  color: #fff0a6 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.03) 36%, rgba(0,0,0,0) 37%),
    linear-gradient(180deg, #151512 0%, #020202 70%, #0a0907 100%) !important;
  border: 1px solid rgba(215,173,69,.76) !important;
  border-radius: 999px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(0,0,0,.9),
    0 0 0 1px rgba(255,226,138,.12),
    0 12px 28px rgba(0,0,0,.28) !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.9), 0 0 8px rgba(255,226,138,.35) !important;
}

.btn:hover,
.btn-gold:hover,
.btn-outline:hover,
#submitBooking:hover {
  color: #fff7cf !important;
  filter: brightness(1.08) saturate(1.05) !important;
}

/* =========================================================
   CONTENT FLOW / REMOVE FIRST-SCROLL SPEED BUMPS
   ========================================================= */
.hero-intro-section {
  display: block !important;
  padding-top: clamp(4.5rem, 8vw, 7rem) !important;
  padding-bottom: clamp(3.2rem, 6.5vw, 5.8rem) !important;
}

.hero-intro-section .narrow-shell {
  display: block !important;
  text-align: left !important;
  max-width: min(980px, calc(100% - clamp(1.25rem, 6vw, 6rem))) !important;
  margin-inline: auto !important;
}

.hero-intro-section .title-lg {
  max-width: 1120px !important;
  margin: 0 auto !important;
  text-align: left !important;
  font-size: clamp(2.25rem, 5.4vw, 5.25rem) !important;
  line-height: .98 !important;
}

.hero-intro-section .intro-lead {
  max-width: 930px !important;
  margin: clamp(1.1rem, 2.4vw, 1.8rem) auto 0 !important;
  text-align: left !important;
}

.hero-intro-section .reveal,
.private-estate-card-section .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.estate-summary-card > .intro-button-row { display: none !important; }

.estate-summary-card,
.estate-summary-card .title-lg,
.estate-summary-card .lead {
  text-align: left !important;
  margin-inline: auto !important;
}

.estate-summary-card .lead {
  color: rgba(21,20,19,.76) !important;
  max-width: 1020px !important;
}

@media (max-width: 768px) {
  .split-merge-section .reveal,
  .split-merge-section .split-half,
  .split-merge-section .split-half-left,
  .split-merge-section .split-half-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   PLAIN ICON SYSTEM — NO GOLD CIRCULAR BUTTON BACKGROUNDS
   ========================================================= */
.gold-svg-icon {
  width: 2.35rem !important;
  height: 2.35rem !important;
  min-width: 2.35rem !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 0 !important;
  color: #a8752c !important;
  background: transparent !important;
  box-shadow: none !important;
}

.gold-svg-icon svg {
  width: 1.75rem !important;
  height: 1.75rem !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.75 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: none !important;
}

.gold-svg-icon svg path,
.gold-svg-icon svg circle,
.gold-svg-icon svg rect,
.gold-svg-icon svg polygon,
.gold-svg-icon svg line,
.gold-svg-icon svg polyline {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.75 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.icon-card .gold-svg-icon,
.concierge-option .gold-svg-icon { margin-bottom: .9rem; }

.luxury-feature-list {
  display: grid;
  gap: 1rem;
  padding-left: 0 !important;
}

.luxury-feature-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  list-style: none;
}

.luxury-feature-list li::before { display: none !important; }

/* =========================================================
   MAP/FLOORPLAN/LIGHTBOX
   ========================================================= */
.media-card.framed-map-card,
.media-card.framed-floorplan,
.framed-map-card,
.framed-floorplan {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.framed-map-card::before,
.framed-map-card::after,
.framed-floorplan::before,
.framed-floorplan::after {
  display: none !important;
  content: none !important;
}

.framed-map-card img,
.framed-floorplan img,
.map-lightbox-image,
.floorplan-lightbox-image {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  box-shadow: none !important;
  cursor: zoom-in !important;
}

.floorplan-section .floorplan-grid {
  display: block !important;
  text-align: center !important;
}

.floorplan-section .floorplan-grid > .reveal:first-child {
  max-width: 920px !important;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem) !important;
  text-align: left !important;
}

.floorplan-section .floorplan-grid > .reveal:first-child .lead,
.floorplan-section .floorplan-grid > .reveal:first-child h2,
.floorplan-section .floorplan-grid > .reveal:first-child .eyebrow { text-align: left !important; }

.framed-floorplan {
  max-width: min(1060px, 100%) !important;
  margin: 0 auto !important;
}

/* =========================================================
   FOOTER — RESTORED SPACING + READABILITY
   ========================================================= */
.site-footer,
.site-footer-luxury,
footer {
  background: #f1e5d2 !important;
  background-image: linear-gradient(180deg, #fffaf0, #eadcc8) !important;
  color: #1b1712 !important;
  border-top: 1px solid rgba(185,138,56,.28) !important;
}

.site-footer-luxury {
  padding-block: clamp(4rem, 7vw, 7rem) !important;
}

.site-footer-luxury .footer-grid,
.footer-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .9fr) minmax(240px, .7fr) !important;
  gap: clamp(2rem, 4vw, 4.5rem) !important;
  align-items: stretch !important;
}

.footer-brand-block,
.footer-cta-card,
.footer-links-card {
  min-height: 100% !important;
  padding: clamp(1.6rem, 3vw, 3rem) !important;
  border-radius: clamp(1.5rem, 2vw, 2.4rem) !important;
  background: rgba(255,250,240,.72) !important;
  border: 1px solid rgba(168,117,44,.18) !important;
  box-shadow: 0 26px 70px rgba(63,47,28,.10) !important;
}

.footer-brand-block,
.footer-cta-card { text-align: center !important; }
.footer-links-card { text-align: center !important; }

.footer-links-card h3 {
  margin: 0 0 1.35rem !important;
  color: #a8752c !important;
  font-weight: 900 !important;
}

.footer-links-card a {
  display: block !important;
  padding: .45rem 0 !important;
  color: #0d3a2f !important;
  text-shadow: none !important;
}

.footer-button-row {
  display: grid !important;
  gap: .7rem !important;
  max-width: 330px !important;
  margin: 1.25rem auto 0 !important;
}

.footer-button-row .btn {
  width: 100% !important;
}

@media (max-width: 900px) {
  .site-footer-luxury .footer-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

#availability .trust-strip .badge,
#availability .badge,
.trust-strip .badge {
  color: #1b1712 !important;
  background: rgba(255, 250, 240, .92) !important;
  border: 1px solid rgba(185, 138, 56, .34) !important;
  box-shadow: 0 10px 24px rgba(58, 40, 18, .10) !important;
  text-shadow: none !important;
}