:root {
  --bg: #F6F7F5;
  --navy: #132822;
  --navy-deep: #0D1C18;
  --gold: #B68A45;
  --text: #14222D;
  --muted: #52626E;

  --glass-bg: rgba(255, 255, 255, 0.38);
  --glass-bg-hover: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.68);
  --glass-shadow: 0 14px 40px -20px rgba(19, 40, 34, 0.14);
  --glass-shadow-hover: 0 24px 54px -22px rgba(19, 40, 34, 0.22);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --blur: blur(12px) saturate(145%);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 14%, rgba(30, 136, 199, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 86% 24%, rgba(107, 165, 57, 0.09) 0%, transparent 42%),
    radial-gradient(circle at 75% 75%, rgba(194, 149, 69, 0.09) 0%, transparent 44%),
    linear-gradient(180deg, #FAF8F4 0%, #F3F6F5 55%, #F8F7F2 100%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 60;
  background: linear-gradient(90deg, var(--gold), var(--navy));
  transition: width 0.12s linear;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Smooth 60fps Scroll Reveals (opacity + transform only, no heavy filter repaints) */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms);
  will-change: opacity, transform;
}

.reveal[data-reveal="blur-in"] {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.985);
}

.reveal[data-reveal="slide-left"] {
  opacity: 0;
  transform: translate3d(-28px, 0, 0) scale(0.98);
}

.reveal[data-reveal="slide-right"] {
  opacity: 0;
  transform: translate3d(28px, 0, 0);
}

.reveal[data-reveal="scale-in"] {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.94);
}

.reveal[data-reveal="intensify"] {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.96);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-backdrop,
  .hero-glass-pill,
  .hero-kicker,
  .hero-glass-pill h1,
  .hero-sub,
  .scroll-cue {
    animation: none !important;
  }
}

/* Floating Glass Navbar */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  transition: background 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(250, 249, 246, 0.82);
  border-bottom-color: rgba(19, 40, 34, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  text-decoration: none;
  color: var(--navy);
  opacity: 0.78;
  font-size: 0.87rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #132822 0%, #1E3D34 100%);
  color: #FFFFFF;
  padding: 0.68rem 1.35rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px -10px rgba(19, 40, 34, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--navy);
  padding: 0.68rem 1.35rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(19, 40, 34, 0.16);
  box-shadow: var(--glass-inset);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--navy);
  transform: translateY(-1px);
}

/* 1. Full-Viewport Hero — 1 imagem inteira + 1 frase curta */
.hero-full {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 5rem;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(250, 248, 244, 0.18) 0%, rgba(19, 40, 34, 0.16) 65%, rgba(246, 247, 245, 0.92) 100%),
    url('../images/vista-aerea.jpg') center/cover no-repeat;
  transform: scale(1.03);
  animation: kenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenBurns {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.09) translateY(-10px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.hero-glass-pill {
  background: linear-gradient(135deg, rgba(15, 23, 20, 0.36) 0%, rgba(15, 23, 20, 0.24) 100%);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-top-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 24px 56px -18px rgba(10, 18, 15, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  border-radius: 30px;
  padding: 2.75rem 2.5rem;
  animation: heroFadeIn 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.hero-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 700;
  color: #F2D299;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
  margin-bottom: 1rem;
  animation: staggerUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-glass-pill h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
  margin-bottom: 0.9rem;
  animation: staggerUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.hero-glass-pill h1 em {
  font-style: italic;
  font-weight: 600;
  color: #E8C17A;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
  animation: staggerUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

@keyframes staggerUp {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  animation: floatCue 2.4s ease-in-out infinite;
}

@keyframes floatCue {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 5px); }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

/* 2. Essence Section (Pista de Caminhada Full-Bleed + Vidro Fumê) */
.essence-section {
  position: relative;
  min-height: clamp(540px, 78svh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 5rem 0 3rem;
  overflow: hidden;
  background: var(--navy-deep);
}

.essence-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 28, 24, 0.08) 0%, rgba(13, 28, 24, 0.22) 48%, rgba(13, 28, 24, 0.78) 100%),
    url('../images/pista-caminhada.jpg') center/cover no-repeat;
  pointer-events: none;
}

.essence-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.essence-glass-card {
  max-width: 620px;
  background: linear-gradient(135deg, rgba(15, 23, 20, 0.44) 0%, rgba(15, 23, 20, 0.3) 100%);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-top-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 24px 56px -18px rgba(10, 18, 15, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  padding: 2.25rem;
  color: #FFFFFF;
}

.essence-glass-card .eyebrow {
  color: #F2D299;
}

.essence-glass-card .eyebrow::before {
  background: #F2D299;
}

.essence-glass-card h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.06;
  color: #FFFFFF;
  margin-bottom: 0.9rem;
}

.essence-glass-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  margin-bottom: 0;
}

.essence-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.essence-stat {
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.essence-stat strong {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #E8C17A;
  line-height: 1.1;
}

.essence-stat span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.84);
}

/* 2.5 360° Interactive Drone Tour (Full-Bleed, sem atalhos) */
.tour-section {
  padding: 4rem 0 2rem;
}

.tour-scroll-track {
  height: 165vh;
  position: relative;
}

.tour-sticky-wrap {
  position: sticky;
  top: 4.5rem;
}

.tour-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tour-header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.95rem, 3.4vw, 2.85rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--navy);
}

.tour-hint {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 360px;
}

.tour-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--navy-deep);
}

#tourCanvas {
  width: 100%;
  height: clamp(380px, 68svh, 720px);
  display: block;
  object-fit: cover;
  background: var(--navy-deep);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

#tourCanvas.is-dragging {
  cursor: grabbing;
}

.tour-hud-top {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}

.tour-badge,
.tour-drag-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 20, 0.56);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tour-badge strong {
  color: #E8C17A;
  font-variant-numeric: tabular-nums;
}

.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E8C17A;
  box-shadow: 0 0 0 3px rgba(232, 193, 122, 0.28);
}

.tour-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.tour-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #E8C17A, #FFFFFF);
}

/* 3. Directory */
.directory {
  padding: 3rem 0 6.5rem;
}

.directory-header {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.directory-header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.directory-note {
  font-size: 0.94rem;
  color: var(--muted);
}

.controls-bar {
  border-radius: 20px;
  padding: 0.95rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(19, 40, 34, 0.1);
  color: var(--muted);
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--navy);
  color: var(--navy);
}

.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.filter-count {
  font-size: 0.72rem;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.search-wrap {
  position: relative;
  min-width: 240px;
}

.search-wrap svg {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 40, 34, 0.14);
  color: var(--text);
  padding: 0.55rem 1rem 0.55rem 2.45rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--navy);
}

/* Glass Cards Grid */
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.space-card {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(19, 40, 34, 0.09);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.space-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.45) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.space-card.is-visible:hover {
  transform: translateY(-6px) scale(1.015);
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(182, 138, 69, 0.45);
  box-shadow: 0 28px 60px -22px rgba(19, 40, 34, 0.25), var(--glass-inset);
}

.space-card.is-visible:hover::after {
  transform: translateX(120%);
}

.space-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.space-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.space-card:hover .space-card-media img {
  transform: scale(1.04);
}

.space-card-body {
  padding: 1.65rem 1.65rem 1.2rem;
  flex: 1;
}

.space-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.space-index {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.space-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
  background: rgba(182, 138, 69, 0.1);
  border: 1px solid rgba(182, 138, 69, 0.22);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.space-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.58rem;
  font-weight: 600;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.space-card p {
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.55;
}

.space-card-foot {
  border-top: 1px solid rgba(19, 40, 34, 0.08);
  padding: 0.95rem 1.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.space-sector {
  color: var(--muted);
}

.space-cta {
  color: var(--navy);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.space-cta svg {
  transition: transform 0.2s ease;
}

.space-card:hover .space-cta svg {
  transform: translateX(3px);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  border-radius: var(--radius);
  color: var(--muted);
}

/* 4. Location Section */
.location-section {
  padding-bottom: 5.5rem;
}

.location-card {
  border-radius: 26px;
  padding: 3.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.location-card h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.location-card p {
  color: var(--muted);
  max-width: 520px;
  font-size: 0.95rem;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(19, 40, 34, 0.08);
  padding: 2.25rem 2rem;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--muted);
}

/* Slide-Over Frosted Glass Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(19, 40, 34, 0.25);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(520px, 100vw);
  background: rgba(250, 250, 248, 0.86);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: -20px 0 60px -20px rgba(19, 40, 34, 0.22);
  z-index: 91;
  padding: 2.25rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.drawer-close {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(19, 40, 34, 0.16);
  color: var(--navy);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.drawer-close:hover {
  background: #FFFFFF;
  border-color: var(--navy);
}

.drawer-gallery {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.drawer-gallery:empty {
  display: none;
}

.drawer-gallery img,
.drawer-gallery video {
  width: 100%;
  border-radius: 16px;
  max-height: 240px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: block;
  background: var(--navy-deep);
}

.drawer-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.drawer-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.drawer-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.highlight-pill {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(19, 40, 34, 0.12);
  color: var(--navy);
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}

.drawer-meta {
  border-top: 1px solid rgba(19, 40, 34, 0.1);
  margin-bottom: 1.75rem;
}

.drawer-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(19, 40, 34, 0.1);
  font-size: 0.88rem;
}

.drawer-meta-row span {
  color: var(--muted);
}

.drawer-meta-row strong {
  color: var(--navy);
  font-weight: 600;
  text-align: right;
}

.drawer-pins-title {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.drawer-pins {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pin-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(19, 40, 34, 0.12);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--navy);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.pin-link-card:hover {
  background: #FFFFFF;
  border-color: var(--navy);
  transform: translateY(-1px);
}

.pin-link-label {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
}

.pin-link-coords {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pin-link-action {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .spaces-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-backdrop { animation: none; transform: none; }
}

@media (max-width: 640px) {
  .container, .nav-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .nav-link { display: none; }
  .hero-glass-pill { padding: 2.25rem 1.5rem; }
  .essence-section { min-height: 74svh; padding: 14rem 0 2rem; }
  .essence-glass-card { padding: 1.5rem 1.35rem; border-radius: 22px; }
  .essence-stats { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .essence-stat { padding: 0.65rem 0.6rem; border-radius: 12px; }
  .essence-stat strong { font-size: 1.25rem; }
  .tour-section { padding: 2.5rem 0 1rem; }
  .tour-scroll-track { height: auto; }
  .tour-sticky-wrap { position: static; }
  #tourCanvas { height: 54svh; min-height: 360px; }
  .tour-hud-top { top: 0.9rem; left: 1rem; right: 1rem; }
  .tour-drag-cue { display: none; }
  .spaces-grid { grid-template-columns: 1fr; }
  .location-card { padding: 2rem 1.4rem; }
  .search-wrap { width: 100%; }
}
