/* ═══════════════════════════════════════════════════════════
   LuxeStay — Premium CSS
   Dark/Light theme, animations, full responsive
   ═══════════════════════════════════════════════════════════ */

/* ── Fonts & Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Design Tokens ── */
:root {
  --font-body: 'Outfit', sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Light mode */
  --bg: #f8f7f4;
  --bg-alt: #ffffff;
  --bg-card: #ffffff;
  --surface: #f0eeea;
  --border: rgba(0,0,0,0.08);
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-inv: #ffffff;

  /* Logo Theme (Light Mode / Bright Theme: Dark Crisp Emblem) */
  --logo-primary: #111111;
  --logo-badge-bg: #ffffff;
  --logo-badge-border: #111111;

  /* Accent */
  --gold: #c9a84c;
  --gold-light: #e8c96b;
  --gold-glow: rgba(201,168,76,0.25);
  --accent: #c9a84c;
  --accent-hover: #b8933d;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08);

  /* Radius */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Transition */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.3s;
}

[data-theme="dark"] {
  --bg: #0f0f0f;
  --bg-alt: #161616;
  --bg-card: #1c1c1c;
  --surface: #242424;
  --border: rgba(255,255,255,0.08);
  --text: #f0ede6;
  --text-muted: #888888;
  --text-inv: #0f0f0f;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.3);

  /* Logo Theme (Dark Mode / Dark Theme: Bright Glowing Emblem) */
  --logo-primary: #ffffff;
  --logo-badge-bg: #1c1a17;
  --logo-badge-border: #c9a84c;
}

/* ── Base ── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
em {
  font-family: var(--font-display);
  font-style: italic;
  background: linear-gradient(135deg, #F5E6AD, #D4AF37, #B38B22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Layout ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1a1a;
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
}
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: all var(--dur) var(--ease);
  margin-top: 24px;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--dur) var(--ease);
}
.navbar.scrolled {
  background: var(--bg-alt);
  padding: 14px 0;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.navbar:not(.scrolled) .logo { color: #fff; }
.logo-svg-wrap {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}
.logo-svg-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
.logo:hover .logo-svg-wrap {
  transform: scale(1.08) rotate(3deg);
  filter: drop-shadow(0 4px 14px var(--gold-glow));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--dur);
  position: relative;
  white-space: nowrap;
}
.nav-text-mobile { display: none !important; }
.nav-text-desktop { display: inline !important; }
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.85); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--dur) var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--gold); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--dur);
  border: 1.5px solid var(--border);
}
.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  background: var(--gold-glow);
}
.theme-icon { display: none; }
[data-theme="dark"] .theme-icon.sun { display: block; }
[data-theme="light"] .theme-icon.moon { display: block; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  padding: 6px;
}
.hamburger span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--dur);
}
.navbar:not(.scrolled) .hamburger span { background: #fff; }

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.15) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 24px;
  margin: 0 auto 0 max(24px, calc((100vw - 1240px)/2 + 24px));
  color: #fff;
}
.hero-badge {
  display: inline-block;
  background: var(--gold-glow);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero-title em { color: var(--gold-light); }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-badge {
  display: inline-block;
  background: var(--gold-glow);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title { margin-bottom: 14px; }
.section-sub { color: var(--text-muted); max-width: 540px; margin: 0 auto; }

/* ── Filters ── */
.filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 22px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  transition: all var(--dur) var(--ease);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold);
  color: #1a1a1a;
  border-color: var(--gold);
  box-shadow: 0 4px 16px var(--gold-glow);
}

/* ── Apartment Cards ── */
.apartments-section { background: var(--bg-alt); }
.apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.apt-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.apt-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.apt-card.hidden { display: none; }
.card-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.apt-card:hover .card-img-wrap img { transform: scale(1.07); }
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur);
}
.apt-card:hover .card-overlay { opacity: 1; }
.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(15, 15, 15, 0.78);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.badge-modern, .badge-minimal, .badge-luxury, .badge-cozy {
  background: rgba(15, 15, 15, 0.78);
  color: var(--gold-light);
}
.wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: all var(--dur);
  border: none;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.wishlist-btn:hover, .wishlist-btn.active {
  background: #ef4444;
  color: #fff;
  transform: scale(1.15);
}
.card-body { padding: 20px; }
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}
.card-title { font-size: 1.1rem; font-weight: 700; }
.card-price { text-align: right; white-space: nowrap; }
.card-price span { font-size: 1.2rem; font-weight: 800; color: var(--gold); }
.card-price { font-size: 0.75rem; color: var(--text-muted); }
.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 10px;
}
.card-location svg {
  color: var(--gold);
  flex-shrink: 0;
}
.card-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.meta-item svg {
  color: var(--gold);
  flex-shrink: 0;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-rating { font-size: 0.85rem; color: var(--text-muted); }
.card-rating span { font-weight: 700; color: var(--gold); }

/* ── Gallery ── */
.details-section { background: var(--bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Gallery Sub-Filters ── */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.gallery-filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--gold);
  color: #1a1a1a;
  border-color: var(--gold);
  box-shadow: 0 4px 15px var(--gold-glow);
}
.gallery-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: #fff;
  transform: translateY(10px);
  opacity: 0;
  transition: all var(--dur) var(--ease);
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}
.gallery-caption h4 { font-size: 1rem; margin-bottom: 4px; }
.gallery-caption p { font-size: 0.8rem; color: rgba(255,255,255,0.8); }

/* ── Amenities ── */
.amenities-section { background: var(--bg-alt); }
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.amenity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: all var(--dur) var(--ease);
  cursor: default;
}
.amenity-card:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--gold-glow);
}
.amenity-icon { font-size: 1.8rem; }

/* ── Locations / Map ── */
.map-section { background: var(--bg); }
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 10px;
}
.location-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.location-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.location-map-wrap {
  position: relative;
  height: 260px;
  width: 100%;
  overflow: hidden;
}
.location-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(15%);
  transition: filter var(--dur) var(--ease);
}
.location-card:hover .location-map-wrap iframe {
  filter: grayscale(0%);
}
.location-card-body {
  padding: 24px;
}
.location-city-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.location-city-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.location-city-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.location-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ── Social Strip ── */
.social-strip {
  background: var(--surface);
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.social-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  transition: all var(--dur) var(--ease);
}
.social-btn svg { width: 18px; height: 18px; fill: #fff; }
.social-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: var(--shadow-md); }
.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.facebook { background: linear-gradient(135deg, #1877f2, #1565c0); }
.tiktok { background: linear-gradient(135deg, #010101, #333); }
.whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }

/* ── Contact ── */
.contact-section { background: var(--bg-alt); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 16px 0 24px;
}
.contact-details { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-ico { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; }
.contact-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ── Contact Form ── */
.contact-form-wrap {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  padding: 44px 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.form-group {
  margin-bottom: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--dur), box-shadow var(--dur);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
select option { background: var(--bg-card); }
textarea { resize: vertical; }
.form-success {
  display: none;
  margin-top: 14px;
  padding: 14px 18px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--r-sm);
  color: #22c55e;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-success.show { display: block; }

/* ── Footer ── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 14px 0 20px;
  line-height: 1.7;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: all var(--dur);
  color: var(--text-muted);
}
.footer-social-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-3px);
}
.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li, .footer-col ul a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--dur);
}
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ── Floating WhatsApp ── */
.fab-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  padding: 13px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: all var(--dur) var(--ease);
  animation: fabPulse 2.5s ease-in-out infinite;
}
.fab-whatsapp svg { width: 20px; height: 20px; fill: #fff; }
.fab-whatsapp:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
  animation: none;
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 6px 36px rgba(37,211,102,0.7); }
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--dur) var(--ease);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--dur);
}
.modal-close:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}
.modal-gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden;
  height: 380px;
  background: #000;
}
.modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-gallery .main-img {
  height: 100%;
  max-height: 380px;
  border-top-left-radius: var(--r-xl);
}
.modal-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  overflow-y: auto;
  max-height: 380px;
  padding: 4px;
}
.modal-sub-grid .sub-img {
  height: 118px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
  opacity: 0.85;
}
.modal-sub-grid .sub-img:hover {
  opacity: 1;
  transform: scale(1.02);
  filter: brightness(1.1);
}
.modal-info { padding: 28px 32px 32px; }
.modal-info h2 { margin-bottom: 8px; }
.modal-info .modal-location { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.modal-info .modal-desc { color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.modal-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.modal-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.modal-price { font-size: 1.6rem; font-weight: 800; color: var(--gold); }

/* ── Animations ── */
.animate-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile & Tablet Responsiveness ── */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.mobile-drawer-header, .mobile-drawer-cta, .nav-drawer-backdrop, .nav-icon {
  display: none !important;
}

@media (max-width: 768px) {
  body { padding-bottom: 65px; }
  .section { padding: 45px 0; }
  
  /* Navbar Mobile Header & Hamburger Drawer */
  .navbar {
    padding: 10px 14px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav-inner { justify-content: space-between; }
  .hamburger { display: flex !important; z-index: 10001; }
  
  /* Mobile Backdrop Overlay */
  .nav-drawer-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-drawer-backdrop.open {
    opacity: 1;
    pointer-events: all;
  }

  /* Slide-out Navigation Drawer */
  .nav-links {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 310px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(18, 18, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 24px 20px 40px 20px;
    gap: 10px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 50px rgba(0,0,0,0.8);
    border-left: 1px solid rgba(212, 175, 55, 0.25);
    z-index: 10000;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  
  .mobile-drawer-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .drawer-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
  }
  .drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .nav-text-mobile { display: inline !important; }
  .nav-text-desktop { display: none !important; }
  .nav-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #f0ede6 !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
  }
  .nav-icon { display: inline-block !important; font-size: 1.1rem; }
  .nav-links li a:hover, .nav-links li a:active {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--gold) !important;
  }
  .mobile-drawer-cta {
    display: block !important;
    margin-top: 14px;
    padding-top: 10px;
  }
  .mobile-drawer-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 0.92rem;
  }
  .nav-cta { display: none; }
  
  .logo { font-size: 1rem; gap: 8px; color: #fff !important; }
  .logo-svg-wrap { width: 32px; height: 32px; }

  /* Hero Section Mobile — 110px padding prevents header overlap */
  .hero {
    min-height: auto;
    height: auto;
    padding-top: 110px !important;
    padding-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-content { margin: 0 auto !important; text-align: center; padding: 0 16px; width: 100%; }
  .hero-badge { font-size: 0.72rem; padding: 4px 12px; margin-bottom: 12px; }
  .hero-title { font-size: 1.85rem !important; line-height: 1.2; margin-bottom: 14px; }
  .hero-sub { font-size: 0.88rem; line-height: 1.5; margin-bottom: 22px; }
  .hero-cta-group { flex-direction: column; width: 100%; gap: 10px; margin-bottom: 24px; }
  .hero-cta-group .btn { width: 100%; justify-content: center; padding: 12px 20px; font-size: 0.9rem; }
  .hero-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin-top: 16px;
    gap: 4px;
    background: rgba(0,0,0,0.35);
    padding: 10px 6px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
  }
  .stat { flex: 1; text-align: center; }
  .stat-num { font-size: 1.05rem; }
  .stat-label { font-size: 0.65rem; }
  .stat-divider { display: block; height: 24px; width: 1px; background: rgba(255,255,255,0.2); }
  .hero-scroll-hint { display: none; }

  /* Live Search Bar */
  .search-bar-wrap { margin-bottom: 20px; padding: 0 4px; }
  .search-input-group { padding: 4px 14px; }
  #searchInput { font-size: 16px; } /* Prevents iOS auto-zoom */

  /* Touch Scroll Filter Buttons */
  .filters, .gallery-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 6px 12px 14px 12px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar, .gallery-filters::-webkit-scrollbar { display: none; }
  .filter-btn, .gallery-filter-btn { flex-shrink: 0; white-space: nowrap; padding: 8px 18px; font-size: 0.82rem; }

  /* Apartment Cards Mobile */
  .apartments-grid { grid-template-columns: 1fr; gap: 20px; }
  .apt-card { border-radius: 16px; }
  .card-img-wrap img { height: 230px; }
  .card-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .card-title { font-size: 1.15rem; }
  .card-price { font-size: 1.1rem; }
  .card-meta { gap: 12px; font-size: 0.8rem; flex-wrap: wrap; }

  /* Gallery Grid Mobile */
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-item img { height: 240px; }

  /* Amenities Grid Mobile */
  .amenities-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .amenity-card { padding: 16px 12px; font-size: 0.85rem; }
  .amenity-icon { font-size: 1.5rem; }

  /* Location Cards Mobile */
  .location-grid { grid-template-columns: 1fr; gap: 24px; }
  .location-map-wrap { height: 250px; }
  .location-card-body { padding: 20px 16px; }
  .location-card-actions { flex-direction: column; gap: 10px; }
  .location-card-actions .btn { width: 100%; justify-content: center; text-align: center; }

  /* Contact & Form Mobile */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-wrap { padding: 24px 16px; border-radius: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  input, select, textarea { font-size: 16px !important; }

  /* Footer Mobile */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-col h5::after { margin: 8px auto 0 auto; }
  .social-links { flex-direction: column; width: 100%; }
  .social-btn { width: 100%; justify-content: center; }

  /* Apartment Detail Modal Mobile Sheet */
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal {
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    width: 100%;
    margin: 0;
    padding: 0 0 20px 0;
    overflow-y: auto;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
  }
  .modal-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
    z-index: 20;
  }
  .modal-gallery {
    grid-template-columns: 1fr;
    height: auto;
    border-radius: 20px 20px 0 0;
    background: #000;
  }
  .modal-gallery .main-img {
    height: 220px;
    border-radius: 20px 20px 0 0;
  }
  .modal-sub-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-height: none;
    height: auto;
    padding: 8px 12px;
    gap: 8px;
    background: var(--surface);
    -webkit-overflow-scrolling: touch;
  }
  .modal-sub-grid .sub-img {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
  }
  .modal-info {
    padding: 18px 16px 24px 16px;
  }
  .modal-info h2 {
    font-size: 1.25rem;
    margin-bottom: 6px;
  }
  .modal-info .modal-location {
    font-size: 0.82rem;
    margin-bottom: 10px;
  }
  .modal-info .modal-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  .modal-meta-row {
    gap: 8px;
    font-size: 0.78rem;
    margin-bottom: 16px;
  }
  .modal-actions {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .modal-price {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 4px;
  }
  .modal-actions .btn,
  .modal-actions .btn-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 0.9rem;
    margin-top: 0;
  }

  /* Mobile Bottom Navigation & Floating Button */
  .mobile-bottom-nav { display: flex; }
  .fab-whatsapp { padding: 14px; border-radius: 50%; bottom: 80px; right: 16px; z-index: 9998; }
  .fab-whatsapp span { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 1.85rem; }
  .section-title { font-size: 1.75rem; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ── Live Search Bar ── */
.search-bar-wrap {
  max-width: 680px;
  margin: 0 auto 28px auto;
}
.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search-input-group:focus-within {
  border-color: var(--gold);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.search-ico {
  font-size: 1.1rem;
  margin-right: 12px;
  opacity: 0.7;
}
#searchInput {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  padding: 10px 0;
  outline: none;
}
#searchInput::placeholder {
  color: var(--text-muted);
}
.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: color var(--dur) var(--ease);
}
.search-clear-btn:hover {
  color: var(--gold);
}

/* ── Mobile Bottom Navigation Bar ── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
}
[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.94);
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  gap: 3px;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
  flex: 1;
}
.mobile-nav-icon {
  font-size: 1.25rem;
}
.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--gold);
}
.mobile-nav-item.highlight {
  color: #25d366;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
