/* ============================================
   4140 Delridge Way SW - Premium Real Estate
   Design System & Styles
   ============================================ */

/* CSS Variables - Premium Color Palette */
:root {
  /* Primary Colors */
  --color-bg-primary: #0a0e17;
  --color-bg-secondary: #111827;
  --color-bg-card: rgba(17, 24, 39, 0.7);

  /* Accent Colors */
  --color-gold: #d4a853;
  --color-gold-light: #e8c878;
  --color-gold-dark: #b8923f;

  /* Text Colors */
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 20px;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
  --gradient-dark: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
  --gradient-radial: radial-gradient(ellipse at top, #1e293b 0%, var(--color-bg-primary) 70%);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(212, 168, 83, 0.3);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--gradient-radial);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
  color: var(--color-text-secondary);
  max-width: 65ch;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold-light);
}

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Glass Card Effect */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--color-bg-primary);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.4);
  color: var(--color-bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text-primary);
  font-weight: 600;
}

.nav-logo span {
  color: var(--color-gold);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) 0;
}

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

.nav-links a:hover {
  color: var(--color-text-primary);
}

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

/* ============================================
   Hero Section - Layered Design
   Layer 1 (base): hero-bg.png full width
   Layer 2: Text content overlay
   Layer 3: hero-home.png featured image
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Layer 1: Full-width background image */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/hero-bg.png') left center/cover no-repeat;
  z-index: 0;
}

/* Dark overlay for text readability - fade on right side */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      rgba(10, 14, 23, 0.3) 0%,
      rgba(10, 14, 23, 0.5) 40%,
      rgba(10, 14, 23, 0.85) 70%,
      rgba(10, 14, 23, 0.95) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-text {
  animation: fadeInUp 1s ease;
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 168, 83, 0.15);
  color: var(--color-gold);
  padding: var(--space-xs) var(--space-md);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  border: 1px solid rgba(212, 168, 83, 0.3);
}

/* Hide mobile-fixed-badge on desktop */
.mobile-fixed-badge {
  display: none;
}

/* Desktop badge visible by default */
.desktop-badge {
  display: inline-block;
}

.hero-title {
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hide mobile line break on desktop */
.mobile-break {
  display: none;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
  opacity: 0.9;
}

/* Hero Banner Image - Full Width */
.hero-banner-image {
  width: calc(100% + 4rem);
  margin-left: -2rem;
  margin-right: -2rem;
  margin-bottom: var(--space-lg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
}

.hero-banner-image img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hero-banner-image {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
  }
}

.hero-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-text-primary);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  animation: fadeInRight 1s ease 0.3s both;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: var(--gradient-gold);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

/* Floating Elements */
.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: var(--space-sm) var(--space-md);
  animation: float 6s ease-in-out infinite;
}

/* Default: Hide mobile stat cards on desktop */
.mobile-stat-card {
  display: none;
}

.floating-card.top-right {
  top: 20px;
  right: -30px;
  animation-delay: -2s;
}

.floating-card.bottom-left {
  bottom: 40px;
  left: -30px;
  animation-delay: -4s;
}

.floating-card-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.floating-card-text {
  font-size: 0.875rem;
  color: var(--color-text-primary);
  font-weight: 600;
}

.floating-card-subtext {
  font-size: 0.75rem;
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ============================================
   Photo Gallery with Hover Effect
   ============================================ */
.gallery-section {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-primary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-badge {
  display: inline-block;
  color: var(--color-gold);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto;
}

/* Interactive Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

/* Hover Zone Overlay - Hidden */
.hover-zones {
  display: none;
}

.hover-zone {
  display: none;
}

.hover-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 23, 0);
  transition: background var(--transition-base);
}

/* When a zone is hovered, dim the entire image first */
.gallery-item:hover .gallery-overlay {
  opacity: 0.8;
}

/* Then reveal the hovered zone */
.hover-zone:hover::before {
  background: transparent !important;
}

/* Zone label */
.zone-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--color-text-primary);
  opacity: 0;
  transition: all var(--transition-base);
  white-space: nowrap;
  border: 1px solid var(--glass-border);
}

.hover-zone:hover .zone-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 23, 0.8);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  z-index: 3;
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(transparent, rgba(10, 14, 23, 0.9));
  transform: translateY(100%);
  transition: transform var(--transition-base);
  z-index: 10;
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

.gallery-info h4 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.gallery-info p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* ============================================
   Features Section - with roof2.jpg background
   ============================================ */
.features-section {
  padding: var(--space-2xl) 0;
  position: relative;
  background-color: #0a0e17;
  background-image: linear-gradient(rgba(10, 14, 23, 0.75), rgba(10, 14, 23, 0.75)), url('images/roof2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.features-section>.container {
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient-gold);
  transition: height var(--transition-slow);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.feature-title {
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.feature-description {
  font-size: 0.9375rem;
}

/* ============================================
   Neighborhood Section
   ============================================ */
.neighborhood-section {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-primary);
  position: relative;
  overflow: hidden;
}

.neighborhood-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.neighborhood-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: stretch;
  /* Stretch to match list height */
}

.neighborhood-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: space-between;
  /* Distribute items */
}

.neighborhood-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: 12px;
  transition: all var(--transition-base);
}

.neighborhood-item:hover {
  background: var(--glass-bg);
}

.neighborhood-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.neighborhood-item h4 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.neighborhood-item p {
  font-size: 0.875rem;
}

.neighborhood-map {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 750px;
  /* Taller map per request */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

/* Merged iframe styles */
.neighborhood-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  /* Keep map static so labels aligned */
  filter: grayscale(30%) brightness(0.9);
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-label {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0a0e17;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  z-index: 10;
}

.map-label::after {
  content: attr(data-label);
}

.map-label::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(255, 255, 255, 0.95);
}



/* Clickable Map Overlay */
.map-click-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--space-lg);
  text-decoration: none;
  transition: background var(--transition-base);
}

.map-click-overlay:hover {
  background: rgba(10, 14, 23, 0.15);
}

.map-click-hint {
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  color: var(--color-text-primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.map-click-overlay:hover .map-click-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Booking Section - with viewing.jpg background
   ============================================ */
.booking-section {
  padding: var(--space-2xl) 0;
  position: relative;
  background-color: #0a0e17;
  background-image: linear-gradient(rgba(10, 14, 23, 0.8), rgba(10, 14, 23, 0.8)), url('images/viewing.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.booking-section>.container {
  position: relative;
  z-index: 2;
}

.booking-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

/* Right-side booking content */
.booking-content {
  text-align: right;
}

.booking-content .section-title {
  margin-bottom: var(--space-md);
}

.booking-tagline {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  margin-left: auto;
  max-width: 400px;
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.125rem;
}

/* Button positioning in left column */
.booking-info {
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-info .btn {
  display: inline-block;
}

.booking-info {
  position: sticky;
  top: 100px;
}

.booking-info h2 {
  margin-bottom: var(--space-md);
}

.booking-info p {
  margin-bottom: var(--space-lg);
}

.booking-highlights {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.booking-highlights li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

.booking-highlights li::before {
  content: '✓';
  color: var(--color-gold);
  font-weight: bold;
}

.calendar-container {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: var(--space-lg);
  min-height: 500px;
}

.calendar-container iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 16px;
}

.calendar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  text-align: center;
  color: var(--color-text-secondary);
}

.calendar-placeholder-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

/* ============================================
   Listing Platforms Section
   ============================================ */
.listings-section {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-secondary);
}

.listings-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.listing-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all var(--transition-base);
  text-decoration: none;
  min-width: 180px;
}

.listing-btn:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.listing-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  transition: transform var(--transition-base);
}

.listing-btn:hover .listing-logo {
  transform: scale(1.1);
}

.listing-label {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary);
  transition: color var(--transition-base);
}

/* Zillow Brand */
.zillow-btn:hover {
  border-color: #006AFF;
  background: rgba(0, 106, 255, 0.1);
}

.zillow-btn:hover .listing-label {
  color: #006AFF;
}

/* Redfin Brand */
.redfin-btn:hover {
  border-color: #A02021;
  background: rgba(160, 32, 33, 0.1);
}

.redfin-btn:hover .listing-label {
  color: #E04040;
}

/* Compass Brand */
.compass-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.compass-btn:hover .listing-label {
  color: var(--color-text-primary);
}

@media (max-width: 768px) {
  .listings-buttons {
    gap: var(--space-md);
  }

  .listing-btn {
    min-width: 140px;
    padding: var(--space-md) var(--space-lg);
  }

  .listing-logo {
    width: 48px;
    height: 48px;
  }

  .listing-label {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .listings-buttons {
    flex-direction: column;
    align-items: center;
  }

  .listing-btn {
    flex-direction: row;
    min-width: 260px;
    justify-content: center;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: var(--space-xl) 0;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--glass-border);
}

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

.footer-text {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive Design - Tablet
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .neighborhood-content {
    grid-template-columns: 1fr;
  }

  .booking-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .booking-info {
    position: static;
    order: 2;
    margin-top: var(--space-lg);
  }

  .booking-content {
    text-align: center;
    order: 1;
  }

  .booking-tagline {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   Responsive Design - Mobile
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .nav-links {
    display: none;
  }

  .navbar .container {
    padding: 0 var(--space-md);
  }

  /* Hero mobile fixes */
  .hero {
    min-height: auto;
    padding: 60px 0 var(--space-lg);
  }

  .hero::before {
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
  }

  .hero::after {
    background: linear-gradient(180deg,
        rgba(10, 14, 23, 0.3) 0%,
        rgba(10, 14, 23, 0.5) 30%,
        rgba(10, 14, 23, 0.85) 60%,
        rgba(10, 14, 23, 1) 100%);
  }

  .hero-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "subtitle"
      "visual"
      "cta";
  }

  /* Hide stats on mobile */
  .hero-stats {
    display: none !important;
  }

  /* Hide desktop badge on mobile */
  .desktop-badge {
    display: none !important;
  }

  /* Mobile fixed badge removed - listing is now on market */
  .mobile-fixed-badge {
    display: none !important;
  }



  /* Hero text container - spans across grid */
  .hero-text {
    display: contents;
  }

  /* Title - higher up on the hero-bg image */
  .hero-title {
    grid-area: title;
    text-align: center;
    font-size: 1.5rem;
    margin-top: 65px;
    margin-bottom: var(--space-md);
    line-height: 1.2;
  }

  /* Show line break only on mobile */
  .mobile-break {
    display: inline;
  }

  /* Subtitle below the title - pushed down */
  .hero-subtitle {
    grid-area: subtitle;
    text-align: center;
    font-size: 0.9rem;
    margin-top: calc(var(--space-lg) - 50px);
    margin-bottom: var(--space-sm);
  }

  /* Hero visual with home image - between subtitle and CTA */
  .hero-visual {
    grid-area: visual;
    position: relative;
    /* Adjust negative margin so it doesn't move up with the subtitle */
    margin: -55px 0 var(--space-md) 0;
  }

  /* Reduce Book a Showing button width on mobile */
  .navbar .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    width: auto;
    transform: scale(0.9);
    transform-origin: right center;
  }

  .hero-image {
    height: 280px;
    border-radius: 16px;
  }

  /* Show floating cards on mobile as stat cards - fully inside image */
  .floating-card {
    display: block;
    position: absolute;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    animation: none;
  }

  /* Hide desktop cards on mobile */
  .desktop-card {
    display: none;
  }

  /* Show mobile stat cards */
  .mobile-stat-card {
    display: block;
  }

  /* Random horizontal positions, vertical at top/bottom inside image */
  .floating-card.top-left {
    top: 15px;
    left: 12px;
    right: auto;
  }

  .floating-card.top-right {
    top: 15px;
    right: 50px;
    left: auto;
  }

  .floating-card.bottom-left {
    bottom: 15px;
    left: 40px;
    right: auto;
  }

  .floating-card.bottom-right {
    bottom: 15px;
    right: 15px;
    left: auto;
  }

  .floating-card-icon {
    display: none;
  }

  .floating-card-text {
    font-size: 0.75rem;
    font-weight: 600;
  }

  .floating-card-subtext {
    display: none;
  }

  /* Stats hidden on mobile */
  .hero-stats {
    display: none;
  }

  /* CTA buttons at bottom - after hero image */
  .hero-cta {
    grid-area: cta;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: -40px;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Gallery mobile fixes */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .gallery-item.large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item {
    aspect-ratio: 16/10;
  }

  /* Features mobile fixes */
  .features-section {
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #0a0e17;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .feature-card {
    padding: var(--space-md);
  }

  .feature-icon {
    font-size: 2rem;
  }

  /* Neighborhood mobile fixes */
  .neighborhood-map {
    height: 300px;
  }

  .neighborhood-item {
    padding: var(--space-sm);
  }

  .neighborhood-icon {
    font-size: 1.5rem;
  }

  /* Booking mobile fixes */
  .booking-wrapper {
    gap: var(--space-lg);
  }

  .booking-content .section-title {
    font-size: 1.75rem;
  }

  .booking-tagline {
    font-size: 1rem;
  }

  /* Footer mobile fixes */
  .footer-content {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Section spacing */
  .section-header {
    margin-bottom: var(--space-xl);
  }

  .section-title {
    font-size: 1.75rem;
  }
}

/* ============================================
   Responsive Design - Small Mobile
   ============================================ */
@media (max-width: 480px) {
  :root {
    --space-lg: 1.25rem;
    --space-xl: 1.75rem;
    --space-2xl: 2.5rem;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-stats {
    gap: var(--space-sm);
  }

  .stat {
    flex: 0 0 48%;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .booking-content .section-title {
    font-size: 1.5rem;
  }

  .btn-large {
    padding: var(--space-sm) var(--space-lg);
    font-size: 1rem;
  }
}