/* =====================================================
   LA INTERIOR — Main CSS
   Design System: Luxury Real Estate (ISTO-inspired)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&family=Montserrat:wght@200;300;400;500&display=swap');

/* ─────────────────────────────────────────
   CSS VARIABLES — Light Theme (default)
───────────────────────────────────────── */
:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F6F3;
  --bg-tertiary: #F0EDE8;
  --text-primary: #1A1A1A;
  --text-secondary: #5A5A5A;
  --text-muted: #9A9A9A;
  --accent: #C9A96E;
  --accent-dark: #A88845;
  --accent-light: #E8D5A8;
  --border: #E0DDD8;
  --border-light: #F0EDE8;
  --overlay: rgba(0, 0, 0, 0.5);
  --overlay-dark: rgba(0, 0, 0, 0.75);
  --card-bg: #FFFFFF;
  --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 12px 50px rgba(0, 0, 0, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.95);
  --side-menu-bg: rgba(15, 15, 20, 0.92);
  --glass: rgba(255, 255, 255, 0.1);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s ease;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Montserrat', sans-serif;
}

[data-theme="dark"] {
  --bg-primary: #0D0D0D;
  --bg-secondary: #141414;
  --bg-tertiary: #1E1E1E;
  --text-primary: #F0EDE8;
  --text-secondary: #A0A0A0;
  --text-muted: #5A5A5A;
  --border: #2A2A2A;
  --border-light: #222222;
  --card-bg: #161616;
  --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 12px 50px rgba(0, 0, 0, 0.6);
  --nav-bg: rgba(13, 13, 13, 0.95);
  --overlay: rgba(0, 0, 0, 0.65);
  --overlay-dark: rgba(0, 0, 0, 0.85);
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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


body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  transition: background-color 0.4s ease, color 0.4s ease;
}


img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ─────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: transparent;
  transition: var(--transition);
}

#navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 40px;
  box-shadow: 0 1px 0 var(--border);
}

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

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-logo img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

#navbar.scrolled .nav-logo img {
  filter: none;
  height: 44px;
}

[data-theme="dark"] .nav-logo img {
  filter: brightness(0) invert(1) !important;
}

/* Hamburger */
.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 1.5px;
  background: #fff;
  transition: var(--transition);
  transform-origin: left;
}

#navbar.scrolled .hamburger span {
  background: var(--text-primary);
}

/* Nav controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  padding: 3px 0;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition-fast);
  position: relative;
}

.lang-btn.active, .lang-btn:hover {
  color: #fff;
}

.lang-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 1px;
  background: var(--accent);
}

#navbar.scrolled .lang-btn { color: var(--text-muted); }
#navbar.scrolled .lang-btn.active,
#navbar.scrolled .lang-btn:hover { color: var(--text-primary); }

.lang-divider {
  color: rgba(255,255,255,0.3);
  font-size: 11px;
}
#navbar.scrolled .lang-divider { color: var(--border); }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  color: #fff;
  font-size: 15px;
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(20deg);
}

#navbar.scrolled .theme-toggle {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.whatsapp-nav {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  transition: var(--transition-fast);
}
.whatsapp-nav:hover { color: #25D366; }
#navbar.scrolled .whatsapp-nav { color: var(--text-secondary); }

/* ─────────────────────────────────────────
   SIDE MENU
───────────────────────────────────────── */
#side-menu {
  position: fixed;
  top: 0; left: 0;
  width: 320px;
  height: 100vh;
  background: var(--side-menu-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  padding: 60px 50px;
}

#side-menu.open {
  transform: translateX(0);
}

.menu-close {
  position: absolute;
  top: 30px;
  left: 45px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-close::before,
.menu-close::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 1.5px;
  background: rgba(255,255,255,0.7);
  transition: background 0.2s;
}

.menu-close::before { transform: rotate(45deg); }
.menu-close::after { transform: rotate(-45deg); }
.menu-close:hover::before,
.menu-close:hover::after { background: #fff; }

.side-menu-nav {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-menu-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.side-menu-nav a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.side-menu-nav a:hover { color: #fff; }
.side-menu-nav a:hover::after { width: 100%; }

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ─────────────────────────────────────────
   HERO SLIDER
───────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  overflow: hidden;
}

.hero-slide.active { opacity: 1; }

.hero-slide-bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  animation: kenBurns 8s ease-in-out infinite alternate;
}

.hero-slide.active .hero-slide-bg {
  animation-play-state: running;
}

@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, 1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.6) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 80px;
  left: 60px;
  right: 340px;
  color: #fff;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #fff;
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.hero-content.visible .hero-subtitle,
.hero-content.visible .hero-title { opacity: 1; transform: translateY(0); }

.hero-cta-btn {
  display: inline-block;
  position: absolute;
  bottom: 80px;
  right: 60px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 14px 32px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(10px);
  white-space: nowrap;
}

.hero-cta-btn.visible { opacity: 1; transform: translateY(0); transition: opacity 0.8s ease 0.8s, transform 0.8s ease 0.8s, background 0.3s, border-color 0.3s; }
.hero-cta-btn:hover { background: rgba(201,169,110,0.2); border-color: var(--accent); color: var(--accent); }

/* Slide dots */
.hero-dots {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.4);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

/* ─────────────────────────────────────────
   WHATSAPP FLOAT BUTTON
───────────────────────────────────────── */
#whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse-wa 3s ease-in-out infinite;
}

#whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ─────────────────────────────────────────
   SECTIONS — General
───────────────────────────────────────── */
.section { padding: 100px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 60px; }

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 24px;
}

.section-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 380px;
}

/* ─────────────────────────────────────────
   SPLIT SECTION (ISTO style)
───────────────────────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 70px;
  background: var(--bg-primary);
  position: relative;
}

.split-image {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.split-section:hover .split-image img {
  transform: scale(1.03);
}

.split-letter {
  position: absolute;
  font-family: var(--font-display);
  font-size: 200px;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.4s;
}

.split-section:hover .split-letter { opacity: 0.13; }

.split-btn {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 14px 32px;
  transition: var(--transition);
  align-self: flex-start;
}

.split-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* ─────────────────────────────────────────
   PROPERTIES SECTION
───────────────────────────────────────── */
#properties {
  background: var(--bg-secondary);
  padding: 100px 0;
}

.properties-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Property Card */
.prop-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  transform: translateY(0);
}

.prop-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent);
}

.prop-card-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.prop-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.prop-card:hover .prop-card-image img {
  transform: scale(1.08);
}

.prop-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 12px;
}

.prop-discount-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #c0392b;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 5px 10px;
}

.prop-card-body {
  padding: 24px;
}

.prop-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.prop-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.prop-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
}

.prop-price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}

.prop-view-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 8px 14px;
  transition: var(--transition-fast);
}

.prop-view-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Empty state */
.properties-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.properties-empty h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

/* ─────────────────────────────────────────
   PROPERTY MODAL
───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-box {
  background: var(--bg-primary);
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
}

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

.modal-gallery {
  position: relative;
  height: 400px;
  overflow: hidden;
  flex-shrink: 0;
}

.modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-gallery-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.modal-gallery-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition-fast);
}

.modal-gallery-btn:hover {
  background: rgba(201,169,110,0.6);
}

.modal-body {
  padding: 40px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.modal-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.modal-price {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--accent);
}

.modal-price-old {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.modal-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  transition: var(--transition-fast);
}

.modal-wa-btn:hover {
  background: #20b857;
  transform: translateY(-2px);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close:hover { background: rgba(201,169,110,0.6); }

/* ─────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────── */
#about { background: var(--bg-primary); }

/* ─────────────────────────────────────────
   CONTACT SECTION
───────────────────────────────────────── */
#contact {
  background: var(--bg-secondary);
  padding: 100px 60px;
  text-align: center;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px 44px;
  transition: var(--transition);
}

.contact-wa-btn:hover {
  background: #20b857;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(37,211,102,0.35);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

[data-theme="dark"] .footer-logo img {
  filter: brightness(0) invert(1);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-links a:hover { color: var(--accent); }

/* ─────────────────────────────────────────
   REVEAL ANIMATIONS (base states)
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ─────────────────────────────────────────
   TOAST NOTIFICATION
───────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr; }
  .split-image { height: 400px; min-height: 300px; }
  .split-letter { display: none; }
  .hero-content { right: 200px; }
}

@media (max-width: 768px) {
  #navbar { padding: 16px 20px; }
  #navbar.scrolled { padding: 12px 20px; }

  /* Hero — кнопка перемещается под текст */
  #hero { min-height: 100svh; }
  .hero-content {
    left: 24px;
    right: 24px;
    bottom: 130px;
  }
  .hero-cta-btn {
    position: absolute;
    bottom: 60px;
    left: 24px;
    right: 24px;
    text-align: center;
    display: block;
    white-space: normal;
  }
  .scroll-indicator { display: none; }

  .section-inner { padding: 0 20px; }
  #properties { padding: 70px 0; }
  #contact { padding: 70px 20px; }

  .properties-grid { grid-template-columns: 1fr; gap: 20px; }
  .properties-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  .split-section { grid-template-columns: 1fr; min-height: auto; }
  .split-content { padding: 50px 24px; }
  .split-image { height: 280px; min-height: unset; }

  /* Modal */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
  }
  .modal-gallery { height: 240px; }
  .modal-body { padding: 24px 20px; }
  .modal-title { font-size: 22px; }
  .modal-price { font-size: 26px; }
  .modal-wa-btn { width: 100%; justify-content: center; }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 32px 20px;
  }

  /* Nav controls — скрываем lang на очень маленьких */
  .nav-controls { gap: 10px; }
}

@media (max-width: 480px) {
  #navbar { padding: 14px 16px; }

  .nav-logo img { height: 40px; }
  #navbar.scrolled .nav-logo img { height: 34px; }

  /* Hero */
  .hero-content { bottom: 140px; left: 20px; right: 20px; }
  .hero-title { font-size: clamp(24px, 7vw, 36px); letter-spacing: 0.04em; }
  .hero-cta-btn { left: 20px; right: 20px; bottom: 70px; font-size: 10px; padding: 12px 20px; }

  /* Lang switcher compact */
  .lang-btn { font-size: 10px; }
  .lang-divider { display: none; }

  /* Properties */
  .prop-card-image { height: 200px; }
  .prop-card-body { padding: 16px; }
  .prop-card-title { font-size: 17px; }

  /* Split */
  .split-content { padding: 40px 20px; }
  .split-image { height: 240px; }
  .section-title { font-size: clamp(22px, 6vw, 36px); }

  /* Modal */
  .modal-gallery { height: 200px; }
  .modal-body { padding: 20px 16px; }
  .modal-title { font-size: 20px; }

  /* Contact */
  #contact { padding: 60px 16px; }
  .contact-wa-btn { padding: 16px 28px; width: 100%; justify-content: center; }

  /* Footer */
  footer { padding: 28px 16px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }

  /* Side menu */
  #side-menu { width: 100%; padding: 60px 28px; }

  /* WhatsApp float */
  #whatsapp-float { width: 46px; height: 46px; font-size: 20px; bottom: 20px; left: 20px; }

  /* Toast */
  #toast { right: 16px; left: 16px; text-align: center; bottom: 80px; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 22px; }
  .hero-cta-btn { font-size: 9px; padding: 11px 16px; }
  .split-content { padding: 32px 16px; }
  .modal-gallery { height: 180px; }
}
