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

/* ==========================================================================
   CSS VARIABLES & LUXURY DESIGN SYSTEM (BALANCED CONTRAST)
   ========================================================================== */
:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --color-bg: #000000;
  --color-text-main: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.85);
  --color-text-dim: rgba(255, 255, 255, 0.6);
  --glass-bg: rgba(24, 24, 24, 0.76);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(16px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  height: 800vh; /* Scroll space for 957 frames */
  font-family: var(--font-primary);
  color: var(--color-text-main);
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide default cursor on desktop with hover support */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }
}

input, button, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ==========================================================================
   ANIMATED LUXURY PRELOADER
   ========================================================================== */
.luxury-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
  padding: 20px;
}

.luxury-loader.hidden {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
  max-width: 440px;
  width: 100%;
}

.loader-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.loader-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 300;
  letter-spacing: 6px;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.loader-location {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 35px;
}

.loader-progress-container {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 16px;
}

.loader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  transition: width 0.2s ease-out;
}

.loader-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* ==========================================================================
   CUSTOM LUXURY CURSOR (ZERO INTERFERENCE WITH CLICKS)
   ========================================================================== */
.custom-cursor,
.custom-cursor *,
.cursor-dot,
.cursor-ring {
  pointer-events: none !important;
  user-select: none !important;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9), 0 0 6px rgba(255, 255, 255, 0.9);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), height 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
}

.custom-cursor.hover .cursor-ring {
  width: 46px;
  height: 46px;
  background-color: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.custom-cursor.hover .cursor-dot {
  transform: translate(-50%, -50%) scale(1.4);
}

@media (hover: none) or (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

/* ==========================================================================
   FIXED CANVAS ANIMATION BACKGROUND (LAYER 1)
   ========================================================================== */
.animation-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-bg);
  overflow: hidden;
  z-index: 1;
  pointer-events: none !important;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   TOP NAVIGATION
   ========================================================================== */
.top-nav-wide {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  background: rgba(24, 24, 24, 0.72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-full);
  z-index: 100;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: padding 0.3s ease, width 0.3s ease;
}

.nav-left, .nav-center, .nav-right {
  display: flex;
  align-items: center;
}

.nav-center {
  display: flex;
  gap: 10px;
}

.home-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  transition: var(--transition-smooth);
}

.home-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.nav-center a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-center a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-center a.active {
  color: #000;
  background: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.btn-collaborate {
  background: #ffffff;
  color: #000000;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.btn-collaborate:hover {
  transform: scale(1.04);
  background: #f0f0f0;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   HERO OVERLAY (LAYER 2 - FRAMES 0 - 150)
   ========================================================================== */
.hero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  color: #fff;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0.7) 100%);
  padding: 20px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-content {
  text-align: center;
  pointer-events: auto;
  max-width: 800px;
  width: 100%;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  font-weight: 600;
  margin: 0 0 16px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.5px;
  margin: 0 auto 36px auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-buttons a {
  padding: 13px 32px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  transform: scale(1.04);
  background: #f0f0f0;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   ABOUT / INFO OVERLAY (LAYER 3 - FRAMES 150 - 450)
   ========================================================================== */
.info-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: flex-start;
  padding-left: 8vw;
  pointer-events: none;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

.info-content {
  max-width: 480px;
  width: 100%;
  pointer-events: auto;
}

.info-content h1 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 18px 0;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.info-content .description {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.3px;
  margin-bottom: 30px;
  color: var(--color-text-muted);
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.05) 100%);
  margin-bottom: 25px;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 30px;
}

.stat h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 1px;
  margin: 0 0 6px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.stat p {
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 300;
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

.location-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  padding: 8px 16px 8px 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.location-link .icon {
  width: 30px;
  height: 30px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.location-link .icon svg {
  width: 16px;
  height: 16px;
}

.location-link span {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #fff;
}

.location-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.location-link:hover .icon {
  transform: scale(1.1);
}

/* ==========================================================================
   APARTMENTS SECTION & INTERACTIVE FILTER OVERLAY (LAYER 20 - FRAMES 450 - 750)
   ========================================================================== */
.filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  padding: 80px 20px 20px;
  box-sizing: border-box;
}

.filter-layout-container {
  display: grid;
  grid-template-columns: 460px minmax(360px, 520px);
  gap: 28px;
  max-width: 1100px;
  width: 100%;
  max-height: 84vh;
  align-items: stretch;
  pointer-events: auto;
}

/* Left Panel: Filter Controls & Listings */
.filter-sidebar {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
  pointer-events: auto !important;
}

.filter-sidebar::-webkit-scrollbar {
  display: none;
}

.filter-sidebar-header h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  color: #ffffff;
}

.filter-controls {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 16px;
  margin-bottom: 16px;
  pointer-events: auto !important;
}

.filter-group-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}

.filter-group {
  flex: 1;
}

.filter-group label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.circle-options {
  display: flex;
  gap: 8px;
  pointer-events: auto !important;
}

.circle-opt {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer !important;
  transition: var(--transition-smooth);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: auto !important;
  user-select: none;
}

.circle-opt:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.08);
}

.circle-opt.active {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.5) !important;
}

.slider-group {
  margin-right: 0;
}

.slider-label-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.slider-label-header label {
  margin-bottom: 0;
}

.slider-label-header span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.slider-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  margin-top: 10px;
  border-radius: 2px;
  cursor: pointer;
  pointer-events: auto !important;
}

.slider-fill {
  position: absolute;
  height: 100%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  left: 0;
  border-radius: 2px;
  pointer-events: none;
}

.slider-handle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: -6px;
  transform: translateX(-50%);
  cursor: grab !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6);
  touch-action: none;
  pointer-events: auto !important;
}

.slider-handle::after {
  content: '';
  position: absolute;
  top: -14px;
  left: -14px;
  right: -14px;
  bottom: -14px;
}

.slider-handle:hover, .slider-handle:focus, .slider-handle:active {
  transform: translateX(-50%) scale(1.3);
  outline: none;
  cursor: grabbing !important;
}

.filter-toggles {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  pointer-events: auto !important;
}

.toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer !important;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
  pointer-events: auto !important;
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}

.toggle-btn.active-toggle {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: #ffffff !important;
}

.check-box {
  width: 10px;
  height: 10px;
  border: 1.5px solid #fff;
  display: inline-block;
  border-radius: 2px;
  transition: background 0.2s ease;
  pointer-events: none;
}

.toggle-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer !important;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: auto !important;
}

.toggle-label input {
  accent-color: #ffffff;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.filter-results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #ffffff;
  pointer-events: auto !important;
}

#clear-all-btn {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer !important;
  transition: color 0.2s ease;
  pointer-events: auto !important;
}

#clear-all-btn:hover {
  color: #aaaaaa;
}

.apartment-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 250px;
  padding-right: 4px;
  pointer-events: auto !important;
}

.apt-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  cursor: pointer !important;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  opacity: 1;
  transition: background 0.2s ease, color 0.2s ease;
  pointer-events: auto !important;
  background: rgba(255, 255, 255, 0.04);
}

.apt-item small {
  color: var(--color-text-dim);
  font-size: 0.65rem;
  letter-spacing: 0.5px;
}

.apt-item strong {
  font-weight: 600;
  color: #ffffff;
}

.apt-item:hover:not(.active):not(.apt-header) {
  background: rgba(255, 255, 255, 0.14);
}

.apt-item.active {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.apt-item.active small {
  color: #444444 !important;
}

.apt-item.active strong {
  color: #000000 !important;
}

.apt-item.active .fav-btn {
  color: #000000 !important;
}

.apt-header {
  color: var(--color-text-dim);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  cursor: default !important;
  background: transparent !important;
}

.price-col {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.fav-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer !important;
  font-size: 0.95rem;
  padding: 2px 4px;
  pointer-events: auto !important;
}

/* Right Panel: Dedicated Apartment Preview Card */
.apartment-preview-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  pointer-events: auto !important;
}

.apartment-card-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  pointer-events: auto !important;
}

.apt-card-top {
  margin-bottom: 14px;
}

.apt-card-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  color: #ffffff;
}

.apt-card-title {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 4px 0;
  color: #ffffff;
}

.apt-card-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin: 0;
}

.apt-card-media {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
  background: #111;
}

.apt-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1 !important;
  filter: none !important;
  transition: opacity 0.25s ease;
}

.apt-card-price-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffffff;
}

.apt-card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.spec-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-text-dim);
}

.spec-val {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.apt-card-action {
  margin-top: auto;
}

.apt-inquire-btn {
  width: 100%;
  padding: 13px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* Empty State Message */
.empty-state-message {
  text-align: center;
  color: #fff;
  background: var(--glass-bg);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
  pointer-events: auto !important;
}

.empty-state-message svg {
  margin-bottom: 16px;
}

.empty-state-message h3 {
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 1.1rem;
  margin: 0 0 10px 0;
}

.empty-state-message p {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin: 0 0 22px 0;
  line-height: 1.6;
  max-width: 320px;
}

.empty-reset-btn {
  padding: 10px 24px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* ==========================================================================
   FEATURES SECTION (LAYER 4 - FRAMES 750 - 957)
   ========================================================================== */
.features-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: flex-start;
  padding-left: 8vw;
  pointer-events: none;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.features-content {
  max-width: 440px;
  width: 100%;
  pointer-events: auto;
}

.features-content h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 6px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.features-content h3 {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  color: var(--color-text-muted);
}

.features-content p {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.feature-item:hover, .feature-item:focus {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(8px);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

.feature-icon {
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Feature Image Preview on Hover (Strictly isolated to features hover) */
.feature-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 180px;
  pointer-events: none !important;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  display: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-preview.active {
  opacity: 1;
  visibility: visible;
  display: block;
}

.feature-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  width: 100%;
  background: rgba(14, 14, 14, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #ffffff;
  padding: 70px 8vw 35px;
  border-top: 1px solid var(--glass-border);
  box-sizing: border-box;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h2 {
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 0 8px 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-brand p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-muted);
  margin: 0;
  letter-spacing: 1.5px;
}

.footer-nav, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-content a, .footer-content button {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: color 0.25s ease;
  text-align: left;
  padding: 0;
  font-weight: 400;
}

.footer-content a:hover, .footer-content button:hover {
  color: #ffffff;
}

.footer-location a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  line-height: 1.6;
  font-weight: 400;
}

.footer-location a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  font-size: 0.75rem;
  color: var(--color-text-dim);
  letter-spacing: 0.5px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 1px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-4px);
}

/* ==========================================================================
   MODALS (CONTACT US & SOCIAL ATTRIBUTION POPUP)
   ========================================================================== */
body.modal-open {
  overflow: hidden !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-window {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 580px;
  background: linear-gradient(135deg, rgba(25, 25, 25, 0.96) 0%, rgba(15, 15, 15, 0.98) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-window {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

/* Contact Form */
.modal-header {
  margin-bottom: 24px;
}

.modal-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-header h2 {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 1.5px;
  margin: 0 0 8px 0;
  text-transform: uppercase;
}

.modal-header p {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.form-field input, .form-field select, .form-field textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: #fff;
  transition: var(--transition-smooth);
  width: 100%;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  outline: none;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.form-field select option {
  background: #111;
  color: #fff;
}

.form-field textarea {
  resize: vertical;
  min-height: 75px;
}

.form-actions {
  margin-top: 8px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.form-success-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.4;
  margin-top: 10px;
}

/* Black & White Social Modal (Xprogency Attribution) */
.social-modal-window {
  max-width: 440px;
  text-align: center;
  padding: 40px 30px;
  background: #000000;
  border: 1px solid #ffffff;
}

.bw-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: #aaaaaa;
  margin-bottom: 12px;
  border: 1px solid #333;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.social-modal-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin: 0 0 16px 0;
  color: #ffffff;
}

.bw-divider {
  width: 40px;
  height: 2px;
  background: #ffffff;
  margin: 0 auto 20px auto;
}

.bw-statement {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.bw-statement strong {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bw-subtext {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.6;
  color: #888888;
  margin: 0 0 28px 0;
}

.bw-actions {
  display: flex;
  justify-content: center;
}

.bw-btn {
  background: #ffffff;
  color: #000000;
  padding: 12px 36px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  transition: var(--transition-smooth);
}

.bw-btn:hover {
  background: #cccccc;
  transform: scale(1.04);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (DESKTOP, LAPTOP, TABLET, MOBILE)
   ========================================================================== */

/* Laptop Screens (<= 1080px) */
@media (max-width: 1080px) {
  .filter-layout-container {
    grid-template-columns: 400px minmax(320px, 440px);
    gap: 20px;
  }
  .info-content {
    max-width: 440px;
  }
  .features-content {
    max-width: 400px;
  }
}

/* Tablet / Medium Screens (<= 900px) */
@media (max-width: 900px) {
  .top-nav-wide {
    width: 94%;
    padding: 8px 12px;
  }
  .nav-center {
    gap: 6px;
  }
  .nav-center a {
    font-size: 12px;
    padding: 6px 10px;
  }
  .btn-collaborate {
    padding: 8px 16px;
    font-size: 12px;
  }

  .info-overlay {
    padding-left: 5vw;
    padding-right: 5vw;
    justify-content: center;
  }

  .filter-overlay {
    overflow-y: auto;
    padding-top: 85px;
    padding-bottom: 30px;
    display: block;
  }
  
  .filter-layout-container {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin: 0 auto;
    max-height: none;
    gap: 20px;
  }

  .filter-sidebar {
    max-height: none;
    overflow-y: visible;
  }

  .apartment-list {
    max-height: 200px;
  }

  .features-overlay {
    padding-left: 5vw;
    padding-right: 5vw;
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
}

/* Mobile Devices (<= 640px) */
@media (max-width: 640px) {
  .top-nav-wide {
    width: 96%;
    top: 10px;
    padding: 6px 8px;
  }
  .home-icon {
    width: 32px;
    height: 32px;
  }
  .home-icon svg {
    width: 15px;
    height: 15px;
  }
  .nav-center {
    gap: 3px;
  }
  .nav-center a {
    font-size: 11px;
    padding: 5px 7px;
    letter-spacing: 0.2px;
  }
  .btn-collaborate {
    padding: 6px 10px;
    font-size: 11px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  .hero-buttons a {
    padding: 11px 22px;
    font-size: 12px;
  }

  .info-content {
    padding: 25px 20px;
  }
  .info-content h1 {
    font-size: 1.8rem;
  }
  .stats-row {
    gap: 10px;
  }
  .stat h2 {
    font-size: 1.6rem;
  }

  .filter-layout-container {
    max-width: 100%;
  }
  .filter-sidebar {
    padding: 16px;
  }
  .filter-group-row {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
  }
  .apartment-card-glass {
    padding: 20px 16px;
  }
  .apt-card-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .modal-window {
    padding: 24px 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .site-footer {
    padding: 50px 6vw 25px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    padding: 10px 18px;
    font-size: 0.7rem;
  }
}

/* Extra Small Mobile (<= 380px) */
@media (max-width: 380px) {
  .top-nav-wide {
    padding: 4px 6px;
  }
  .nav-center a {
    font-size: 10px;
    padding: 4px 5px;
  }
  .btn-collaborate {
    font-size: 10px;
    padding: 5px 8px;
  }
  .hero-content h1 {
    font-size: 1.7rem;
  }
  .circle-opt {
    width: 26px;
    height: 26px;
    font-size: 0.68rem;
  }
}
