/* ==========================================================================
   CASA DEL VIRREY - LUXURY REAL ESTATE STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #0b0f19;
  --bg-card: rgba(22, 31, 51, 0.85);
  --bg-card-hover: rgba(30, 43, 70, 0.95);
  --border-card: rgba(212, 175, 55, 0.3);
  --border-light: rgba(255, 255, 255, 0.1);
  
  --gold: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-light: #f5e6a3;
  --blue-accent: #38bdf8;
  --blue-glow: rgba(56, 189, 248, 0.25);
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --glass-backdrop: blur(16px);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ==========================================================================
   NAVIGATION BAR & LANGUAGE SWITCHER
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 2rem;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-crest {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #997a15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0f19;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0 15px var(--gold-glow);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 1px;
}

.brand-text span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 3px;
  cursor: pointer;
}

.lang-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--gold);
  color: #0b0f19;
  box-shadow: 0 2px 10px var(--gold-glow);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold), #b89220);
  color: #0b0f19;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.3rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--gold-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #f5e6a3, var(--gold));
}

/* ==========================================================================
   HERO SECTION WITH BLENDED P3-2 BACKGROUND IMAGE
   ========================================================================== */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 7.5rem 2rem 4rem;
  background-color: var(--bg-dark);
  overflow: hidden;
}

/* Hero Background Image on Right with Left-to-Right Blend Mask */
.hero-bg-blended {
  position: absolute;
  top: 0;
  right: 0;
  width: 70vw;
  min-width: 500px;
  height: 100%;
  background-image: url('../JPGS/p3-2.jpg');
  background-size: cover;
  background-position: right top;
  z-index: 1;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,1) 90%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,1) 90%);
}

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-dark) 0%, rgba(11, 15, 25, 0.95) 25%, rgba(11, 15, 25, 0.4) 65%, rgba(11, 15, 25, 0) 100%),
              linear-gradient(to bottom, rgba(11, 15, 25, 0.7) 0%, transparent 25%, transparent 75%, var(--bg-dark) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.hero-main-box {
  max-width: 780px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-card);
  color: var(--gold-light);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--gold-light) 80%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 3.5rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.3rem;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: var(--glass-backdrop);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.metric-card {
  background: rgba(22, 31, 51, 0.85);
  border: 1px solid var(--border-light);
  backdrop-filter: var(--glass-backdrop);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
  opacity: 0.8;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-card);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  margin-top: 0.2rem;
}

.metric-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ==========================================================================
   SCROLL-DRIVEN FLYTHROUGH CANVAS SECTION
   ========================================================================== */

.flythrough-section {
  position: relative;
  height: 400vh;
  background: var(--bg-dark);
}

.flythrough-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flythrough-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flythrough-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(11, 15, 25, 0.85) 100%),
              linear-gradient(to bottom, rgba(11, 15, 25, 0.7) 0%, transparent 20%, transparent 80%, rgba(11, 15, 25, 0.9) 100%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flythrough-card {
  position: absolute;
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid var(--border-card);
  backdrop-filter: var(--glass-backdrop);
  padding: 2rem;
  border-radius: var(--radius-lg);
  max-width: 450px;
  color: var(--text-main);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: auto;
}

.flythrough-card.active {
  opacity: 1;
  transform: translateY(0);
}

.flythrough-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.flythrough-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 10;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--border-card);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollAnim 1.5s infinite;
}

@keyframes scrollAnim {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ==========================================================================
   DEVELOPER VISION & STITCHED FACADE COMPARISON SLIDER
   ========================================================================== */

.section-padding {
  padding: 6rem 2rem;
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 1180px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-header h2 span {
  color: var(--gold);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.comparison-container {
  position: relative;
  width: 100%;
  height: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  user-select: none;
}

.comparison-before,
.comparison-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.comparison-before img,
.comparison-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comparison-after {
  width: 50%;
  overflow: hidden;
  border-right: 2px solid var(--gold);
}

.comparison-after img {
  width: 1240px;
  max-width: none;
}

.comparison-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--gold);
  cursor: ew-resize;
  z-index: 10;
}

.handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #0b0f19;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  font-size: 1.2rem;
  font-weight: bold;
}

.slider-label {
  position: absolute;
  top: 1.5rem;
  padding: 0.4rem 1rem;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.label-before { right: 1.5rem; color: var(--gold); }
.label-after { left: 1.5rem; color: var(--blue-accent); }

.zoning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.zoning-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  backdrop-filter: var(--glass-backdrop);
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.zoning-card.highlight {
  border-color: var(--border-card);
  background: linear-gradient(135deg, rgba(22, 31, 51, 0.95), rgba(30, 43, 70, 0.7));
}

.btn-subpage {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.btn-subpage:hover {
  color: #ffffff;
  border-bottom-color: var(--gold);
  transform: translateX(4px);
}

.zoning-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zoning-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.zoning-card li {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.zoning-card li i {
  color: var(--gold);
  margin-top: 0.2rem;
}

/* Orbital Flythrough Box - Identical style to flythrough-card */
.orbital-header-card {
  position: absolute !important;
  top: 5rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  text-align: center;
  background: rgba(11, 15, 25, 0.85) !important;
  border: 1px solid var(--border-card) !important;
  backdrop-filter: var(--glass-backdrop) !important;
  -webkit-backdrop-filter: var(--glass-backdrop) !important;
  padding: 2rem !important;
  margin-top: 6rem !important;
  border-radius: var(--radius-lg) !important;
  max-width: 520px !important;
  width: 90% !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
  z-index: 100 !important;
  pointer-events: auto;
}

.orbital-header-card h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.orbital-header-card h2 span {
  color: var(--gold);
}

.orbital-header-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   LOCATION & MAP SECTION (FULL BLEED BLUE BACKGROUND)
   ========================================================================== */

.full-bleed-location-bg {
  width: 100%;
  background: #111827;
  padding: 6rem 0;
  margin-top: 5rem; /* Generous spacing between 3D animation section and Location section */
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.full-bleed-context-bg {
  width: 100%;
  background: #111827;
  padding: 6rem 0;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.full-bleed-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem; /* Consistent 2rem internal padding so contents never touch page edges */
}

.location-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .location-layout {
    grid-template-columns: 1fr;
  }
}

#map-container {
  height: 100%;
  min-height: 440px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.connectivity-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.distance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  cursor: pointer;
}

.distance-item:hover,
.distance-item.active {
  border-color: var(--gold);
  transform: translateX(6px);
  background: var(--bg-card-hover);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
}

.city-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-main);
  transition: color 0.3s ease;
  line-height: 1.2;
}

.distance-item:hover .city-info h4,
.distance-item.active .city-info h4 {
  color: var(--gold);
}

.city-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.3;
}

.distance-badge-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.distance-badge {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 16px;
  border: 1px solid var(--border-card);
  white-space: nowrap;
}

.time-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-accent, #38bdf8);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Map route polyline glow animation */
.city-route-line {
  stroke-dasharray: 8, 8;
  animation: dashArrayAnim 30s linear infinite;
  transition: all 0.4s ease;
}

@keyframes dashArrayAnim {
  to {
    stroke-dashoffset: -1000;
  }
}

/* ==========================================================================
   PHOTO GALLERY & LIGHTBOX
   ========================================================================== */

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  color: #0b0f19;
  border-color: var(--gold);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.95), transparent 60%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-light);
}

.gallery-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
  gap: 1rem;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}

.lightbox-caption {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: min(680px, 90vw);
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  background: rgba(22, 31, 51, 0.95);
  backdrop-filter: blur(10px);
  color: #ffffff;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.lightbox-caption strong { display:block; color:var(--gold); font-family:var(--font-heading); font-size:1.05rem; margin-bottom:0.2rem; }
.lightbox-caption span { display:block; margin-top:.2rem; color:var(--text-muted); font-size:.78rem; text-transform:uppercase; letter-spacing:.5px; }

.lightbox-trigger { cursor: zoom-in; }

.quina-illustration {
  float: right;
  width: min(38%, 330px);
  margin: 0 0 1.2rem 2rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.quina-illustration img { display:block; width:100%; aspect-ratio:4/5; object-fit:cover; object-position:center top; }
.quina-illustration figcaption { padding:.7rem .8rem; color:var(--text-muted); font-size:.72rem; line-height:1.45; }
@media (max-width: 640px) { .quina-illustration { float:none; width:100%; max-width:360px; margin:0 auto 1.4rem; } }

@media (max-width: 700px) {
  .luchima-section > div[style*="grid-template-columns"] { grid-template-columns:1fr !important; }
  .luchima-section figure { max-width:360px; margin:0 auto !important; }
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--gold);
  color: #0b0f19;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-light);
  color: #ffffff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.lightbox-nav-btn:hover {
  background: var(--gold);
  color: #0b0f19;
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 0.75rem;
  }
  .lightbox-next {
    right: 0.75rem;
  }
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .lightbox-caption { bottom:.75rem; width:calc(100vw - 6rem); font-size:.76rem; }
}

/* ==========================================================================
   BUILT-IN SLIDE DECK PRESENTATION VIEWER
   ========================================================================== */

.deck-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 4rem 2rem 3rem;
}

.deck-container {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.deck-viewport {
  position: relative;
  width: 100%;
  height: calc((100vw - 4rem) * 9 / 16 + 36px);
  max-height: calc(980px * 9 / 16 + 36px);
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Mask overlay strictly covering the Google Slides logo icon in bottom right of iframe bar */
.deck-viewport::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 36px;
  background: #ffffff;
  z-index: 10;
  pointer-events: auto;
}

.deck-viewport iframe {
  width: 100%;
  height: 100% !important;
  margin-bottom: 0;
}

.deck-slide {
  position: absolute;
  inset: 0;
  padding: 3rem 4rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.deck-slide.active {
  display: flex;
  opacity: 1;
}

.deck-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0 0.5rem;
}

.deck-nav-btns {
  display: flex;
  gap: 1rem;
}

.deck-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.deck-btn:hover {
  background: var(--gold);
  color: #0b0f19;
  border-color: var(--gold);
}

.slide-counter {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  padding: 4rem 2rem 2rem;
  background: #070911;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.inquiry-form {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 720px;
  margin: 2rem auto 0 auto;
  text-align: left;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.inquiry-form h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px var(--gold-glow);
}

.form-lang-note {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #f5e6a3;
  line-height: 1.4;
  text-align: left;
}

.form-lang-note i {
  color: var(--gold);
  margin-right: 0.4rem;
}

.form-buttons-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (max-width: 600px) {
  .form-buttons-group {
    grid-template-columns: 1fr;
  }
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  border: 1px solid #20bd5a;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1eb857;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* FLOATING WHATSAPP MENU WIDGET */
.whatsapp-widget-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.floating-whatsapp-btn {
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 211, 102, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) rotate(6deg);
  background: #1eb857;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(37, 211, 102, 0.85);
}

.whatsapp-popover {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 310px;
  background: #0f1422;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(37, 211, 102, 0.25);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-popover.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.whatsapp-popover-header {
  background: linear-gradient(135deg, #075e54, #128c7e);
  color: #ffffff;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
}

.whatsapp-popover-header i {
  font-size: 1.8rem;
}

.whatsapp-popover-header strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.whatsapp-popover-header span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
}

.whatsapp-popover-options {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.whatsapp-popover-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  text-align: left;
  transition: all 0.25s ease;
}

.whatsapp-popover-item:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: #25d366;
  transform: translateX(-3px);
}

.whatsapp-popover-item i {
  font-size: 1.4rem;
  color: #25d366;
  width: 24px;
  text-align: center;
}

.whatsapp-popover-item strong {
  display: block;
  font-size: 0.88rem;
  color: #ffffff;
}

.whatsapp-popover-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.whatsapp-popover-note {
  background: rgba(212, 175, 55, 0.08);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: #f5e6a3;
  line-height: 1.35;
  text-align: left;
}

.whatsapp-popover-note i {
  color: var(--gold);
  margin-right: 0.3rem;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.menu-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--gold);
  font-size: 1.2rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .menu-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .desktop-only-btn {
    display: none !important;
  }

  .nav-actions .btn-primary {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: var(--glass-backdrop);
    border-left: 1px solid var(--border-light);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    align-items: flex-start;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.mobile-open {
    right: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .hero-bg-blended {
    height: 65%;
    max-height: 520px;
  }

  .hero-overlay-dark {
    height: 65%;
    max-height: 520px;
    background: linear-gradient(to right, var(--bg-dark) 0%, rgba(11, 15, 25, 0.85) 30%, rgba(11, 15, 25, 0.2) 70%, rgba(11, 15, 25, 0) 100%),
                linear-gradient(to bottom, rgba(11, 15, 25, 0.6) 0%, transparent 40%, var(--bg-dark) 100%);
  }

  .hero-main-box {
    padding: 1rem 0 2rem 0;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .location-layout {
    grid-template-columns: 1fr;
  }

  .deck-viewport {
    height: calc((100vw - 2rem) * 9 / 16 + 36px);
  }

  .comparison-container {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .comparison-before img,
  .comparison-after img {
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 0.7rem 0.8rem;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .brand-crest {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .nav-actions .btn-primary {
    padding: 0.45rem 0.7rem;
    font-size: 0.75rem;
  }

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

  .hero-title {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

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

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

  .slider-label {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

@media print {
  body * { visibility: hidden; }
  .deck-viewport, .deck-viewport * { visibility: visible; }
  .deck-viewport {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    border: none;
    box-shadow: none;
  }
  .deck-slide {
    display: flex !important;
    opacity: 1 !important;
    page-break-after: always;
  }
  .deck-controls { display: none; }
}

/* GLOBAL LINK COLOR OVERRIDE */
.article-main a:not(.btn-primary),
.directory-card-link,
.law-card a {
  color: var(--gold) !important;
}
.article-main a:not(.btn-primary):hover,
.directory-card-link:hover,
.law-card a:hover {
  color: #ffffff !important;
}

/* BUTTON TEXT COLOR OVERRIDE (Keep black text on yellow/gold buttons) */
.btn-primary {
  color: #0b0f19 !important;
  justify-content: center;
}
.btn-primary:hover {
  color: #0b0f19 !important;
}

/* CTA BOX & FORM BUTTONS UNIFICATION */
.cta-box .btn-primary,
.cta-box .btn-whatsapp,
.subpage-cta-box .btn-primary,
.subpage-cta-box .btn-whatsapp,
.inquiry-form .btn-primary,
.inquiry-form .btn-whatsapp {
  padding: 0.8rem 1.6rem !important;
  font-size: 0.95rem !important;
  border-radius: var(--radius-sm) !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

/* FOOTER LINKS STYLING */
.footer nav a {
  color: var(--gold) !important;
  font-weight: 600 !important;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.footer nav a:hover,
.footer nav a:active,
.footer nav a.active {
  color: #ffffff !important;
  text-decoration: underline !important;
}

