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

/* ===================== NEXUS DESIGN SYSTEM ===================== */
:root {
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-2: #f8f9fb;
  --bg-3: #f0f2f5;
  --bg-glass: rgba(255,255,255,0.8);
  --text: #0a0e1a;
  --text-2: #5a6270;
  --text-3: #a0a8b8;
  --border: #e8ecf1;
  --border-light: #f0f2f5;

  /* Accents */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-glow: rgba(37,99,235,0.12);
  --accent: #f97316;
  --accent-glow: rgba(249,115,22,0.12);
  --success: #10b981;
  --success-glow: rgba(16,185,129,0.12);

  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 3px rgba(10,14,26,0.04);
  --shadow: 0 4px 20px rgba(10,14,26,0.06);
  --shadow-lg: 0 20px 60px rgba(10,14,26,0.1);
  --shadow-xl: 0 30px 80px rgba(10,14,26,0.14);
}

[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-2: #111827;
  --bg-3: #1a2236;
  --bg-glass: rgba(17,24,39,0.8);
  --text: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --border: #1e293b;
  --border-light: #1a2236;
  --shadow: 0 4px 20px rgba(0,0,0,0.2);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.3);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  transition:background 0.5s, color 0.5s;
}

::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:var(--bg-2); }
::-webkit-scrollbar-thumb { background:var(--primary); border-radius:3px; }
::selection { background:var(--primary-glow); color:var(--primary); }

.container { max-width:1280px; margin:0 auto; padding:0 2rem; }
@media(max-width:768px){ .container { padding:0 1rem; } }

/* ===================== LOADER ===================== */
.loader {
  position:fixed; inset:0; z-index:9999; background:var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2rem;
  transition:opacity 0.8s var(--ease-out), visibility 0.8s;
}
.loader.done { opacity:0; visibility:hidden; pointer-events:none; }
.loader-logo {
  font-family:var(--font-display); font-size:2.5rem; font-weight:700;
  color:var(--text); letter-spacing:-0.02em; display:flex; align-items:center; gap:0.25rem;
}
.loader-logo .dot { width:8px; height:8px; background:var(--primary); border-radius:50%; animation:loaderPulse 1.2s ease infinite; }
@keyframes loaderPulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(0.8);} }
.loader-track { width:160px; height:3px; background:var(--bg-3); border-radius:2px; overflow:hidden; }
.loader-fill { width:0; height:100%; background:var(--primary); border-radius:2px; animation:loaderFill 2s var(--ease-out) forwards; }
@keyframes loaderFill { 0%{width:0;} 50%{width:60%;} 100%{width:100%;} }

/* ===================== READING PROGRESS ===================== */
.reading-progress { position:fixed; top:0; left:0; height:3px; background:var(--primary); z-index:9998; transition:width 0.1s linear; }

/* ===================== THEME TOGGLE ===================== */
.theme-toggle {
  position:fixed; bottom:6rem; right:1.5rem; z-index:90; width:44px; height:44px;
  border-radius:50%; background:var(--bg-glass); backdrop-filter:blur(12px); border:1px solid var(--border);
  color:var(--text); display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition:all 0.4s var(--ease-out); box-shadow:var(--shadow);
}
.theme-toggle:hover { background:var(--primary); color:#fff; border-color:var(--primary); transform:scale(1.1); }

/* ===================== TOAST SYSTEM ===================== */
.toast-container { position:fixed; top:6rem; right:1.5rem; z-index:500; display:flex; flex-direction:column; gap:0.75rem; pointer-events:none; }
.toast {
  background:var(--bg-glass); backdrop-filter:blur(20px); border:1px solid var(--border);
  color:var(--text); padding:1rem 1.5rem; border-radius:var(--radius-sm); font-size:0.875rem; font-weight:500;
  display:flex; align-items:center; gap:0.75rem; transform:translateX(120%); opacity:0;
  transition:all 0.5s var(--ease-out); pointer-events:all; box-shadow:var(--shadow-lg); max-width:360px;
}
.toast.show { transform:translateX(0); opacity:1; }
.toast-icon { width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.toast-success .toast-icon { background:var(--success-glow); color:var(--success); }
.toast-info .toast-icon { background:var(--primary-glow); color:var(--primary); }

/* ===================== NAVBAR ===================== */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:100; padding:1.25rem 0;
  transition:all 0.5s var(--ease-out);
}
.navbar.scrolled {
  background:var(--bg-glass); backdrop-filter:blur(24px) saturate(180%);
  border-bottom:1px solid var(--border); padding:0.75rem 0;
}
.navbar-inner { max-width:1280px; margin:0 auto; padding:0 2rem; display:flex; align-items:center; justify-content:space-between; }
.logo-brand {
  font-family:var(--font-display); font-size:1.5rem; font-weight:700;
  color:var(--text); text-decoration:none; letter-spacing:-0.02em; display:flex; align-items:center; gap:0.375rem;
}
.logo-brand .dot { width:8px; height:8px; background:var(--primary); border-radius:50%; }
.nav-links { display:none; align-items:center; gap:0.25rem; }
@media(min-width:1024px){ .nav-links { display:flex; } }
.nav-links a {
  padding:0.5rem 1rem; font-size:0.8125rem; font-weight:500;
  color:var(--text-2); text-decoration:none; border-radius:var(--radius-sm);
  transition:all 0.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color:var(--primary); background:var(--primary-glow); }
.btn-primary {
  background:var(--primary); color:#fff; padding:0.75rem 1.75rem;
  border-radius:var(--radius-sm); font-family:var(--font-body); font-weight:600; font-size:0.8125rem;
  display:inline-flex; align-items:center; gap:0.5rem; border:none; text-decoration:none; cursor:pointer;
  transition:all 0.4s var(--ease-out); box-shadow:0 4px 14px var(--primary-glow);
}
.btn-primary:hover { background:var(--primary-dark); transform:translateY(-2px); box-shadow:0 8px 25px var(--primary-glow); }
.btn-secondary {
  background:transparent; border:1.5px solid var(--border); color:var(--text);
  padding:0.75rem 1.75rem; border-radius:var(--radius-sm); font-family:var(--font-body);
  font-weight:600; font-size:0.8125rem; display:inline-flex; align-items:center; gap:0.5rem;
  text-decoration:none; cursor:pointer; transition:all 0.4s var(--ease-out);
}
.btn-secondary:hover { border-color:var(--primary); color:var(--primary); background:var(--primary-glow); }
.btn-sm { padding:0.5rem 1.25rem !important; font-size:0.75rem !important; }
.mobile-toggle { display:block; background:none; border:none; color:var(--text); padding:0.5rem; cursor:pointer; }
@media(min-width:1024px){ .mobile-toggle { display:none; } }

.mobile-menu {
  display:none; position:fixed; inset:0; z-index:999;
  background:var(--bg-glass); backdrop-filter:blur(40px);
  flex-direction:column; align-items:center; justify-content:center; gap:2rem;
}
.mobile-menu.open { display:flex; }
.mobile-menu a { font-family:var(--font-display); font-size:2rem; font-weight:600; color:var(--text); text-decoration:none; }
.mobile-menu a:hover { color:var(--primary); }
.mobile-close { position:absolute; top:1.5rem; right:1.5rem; background:none; border:none; color:var(--text); cursor:pointer; }

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
  position:fixed; bottom:0; left:0; right:0; z-index:200;
  background:var(--bg-glass); backdrop-filter:blur(20px); border-top:1px solid var(--border);
  padding:1.25rem 0; transform:translateY(100%); transition:transform 0.5s var(--ease-out);
}
.cookie-banner.show { transform:translateY(0); }
.cookie-inner { max-width:1280px; margin:0 auto; padding:0 2rem; display:flex; align-items:center; justify-content:space-between; gap:1.5rem; flex-wrap:wrap; }
.cookie-text { font-size:0.8125rem; color:var(--text-2); }
.cookie-text a { color:var(--primary); text-decoration:none; }

/* ===================== HERO ===================== */
.hero { position:relative; min-height:100vh; display:flex; align-items:center; overflow:hidden; padding-top:5rem; }
.hero-grid { display:grid; grid-template-columns:1fr; gap:3rem; align-items:center; }
@media(min-width:1024px){ .hero-grid { grid-template-columns:1.1fr 1fr; gap:4rem; } }
.hero-label {
  display:inline-flex; align-items:center; gap:0.75rem;
  font-size:0.6875rem; font-weight:700; color:var(--primary);
  letter-spacing:0.15em; text-transform:uppercase; margin-bottom:1.5rem;
  background:var(--primary-glow); padding:0.5rem 1rem; border-radius:100px;
}
.hero-title {
  font-family:var(--font-display); font-size:clamp(2.5rem, 5vw, 4.5rem);
  font-weight:700; line-height:1.05; margin-bottom:1.5rem;
  color:var(--text); letter-spacing:-0.03em;
}
.hero-title em { color:var(--primary); font-style:normal; }
.hero-subtitle { font-size:1.0625rem; color:var(--text-2); font-weight:400; line-height:1.8; max-width:480px; margin-bottom:2.5rem; }
.hero-actions { display:flex; gap:1rem; flex-wrap:wrap; }

.hero-visual { position:relative; }
.hero-img-main {
  width:100%; border-radius:var(--radius-lg); overflow:hidden;
  box-shadow:var(--shadow-xl); position:relative; z-index:2;
  aspect-ratio:4/3;
}
.hero-img-main img { width:100%; height:100%; object-fit:cover; transition:transform 8s ease; }
.hero-img-main:hover img { transform:scale(1.05); }
.hero-floating-card {
  position:absolute; bottom:-1.5rem; left:-1.5rem;
  background:var(--bg-glass); backdrop-filter:blur(20px);
  border:1px solid var(--border); border-radius:var(--radius);
  padding:1.25rem 1.5rem; z-index:3; box-shadow:var(--shadow-lg);
  animation:floatCard 6s ease-in-out infinite;
}
@keyframes floatCard { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }
.hero-floating-card .num { font-family:var(--font-display); font-size:1.5rem; font-weight:700; color:var(--primary); }
.hero-floating-card .label { font-size:0.6875rem; color:var(--text-3); }

/* Decorative blob */
.hero-blob {
  position:absolute; top:-20%; right:-10%; width:500px; height:500px;
  background:radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  border-radius:50%; z-index:0; pointer-events:none;
}
[data-theme="dark"] .hero-blob { opacity:0.5; }

/* ===================== SMART SEARCH BAR ===================== */
.smart-search {
  background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:1rem; box-shadow:var(--shadow-lg); display:flex; gap:0.5rem; flex-wrap:wrap;
  transition:all 0.4s var(--ease-out);
}
.smart-search:focus-within { border-color:var(--primary); box-shadow:0 0 0 4px var(--primary-glow), var(--shadow-lg); }
.search-field { flex:1; min-width:200px; position:relative; }
.search-field label { font-size:0.625rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-3); margin-bottom:0.375rem; display:block; }
.search-field input, .search-field select {
  width:100%; height:44px; padding:0 1rem; background:var(--bg-2); border:1px solid var(--border-light);
  border-radius:var(--radius-sm); color:var(--text); font-family:var(--font-body); font-size:0.875rem;
  transition:all 0.3s;
}
.search-field input:focus, .search-field select:focus { outline:none; border-color:var(--primary); background:var(--bg); }
.search-field input::placeholder { color:var(--text-3); }

/* ===================== SECTIONS ===================== */
.section { padding:6rem 0; position:relative; }
.section-header { text-align:center; margin-bottom:3.5rem; }
.section-label {
  display:inline-flex; align-items:center; gap:0.5rem;
  font-size:0.6875rem; font-weight:700; letter-spacing:0.15em;
  text-transform:uppercase; color:var(--primary); margin-bottom:1rem;
  background:var(--primary-glow); padding:0.375rem 1rem; border-radius:100px;
}
.section-title {
  font-family:var(--font-display); font-size:clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight:700; color:var(--text); margin-bottom:0.75rem; letter-spacing:-0.02em; line-height:1.1;
}
.section-title em { color:var(--primary); font-style:normal; }
.section-desc { color:var(--text-2); max-width:520px; margin:0 auto; font-size:1rem; }

/* ===================== STATS ROW ===================== */
.stats-row { display:grid; grid-template-columns:repeat(2,1fr); gap:1.5rem; }
@media(min-width:768px){ .stats-row { grid-template-columns:repeat(4,1fr); } }
.stat-card {
  background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius);
  padding:2rem; text-align:center; transition:all 0.5s var(--ease-out);
}
.stat-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); border-color:var(--primary); }
.stat-num { font-family:var(--font-display); font-size:clamp(2rem, 3vw, 2.75rem); font-weight:700; color:var(--primary); line-height:1; }
.stat-label { font-size:0.75rem; color:var(--text-3); margin-top:0.5rem; text-transform:uppercase; letter-spacing:0.06em; }

/* ===================== PROPERTY CARDS ===================== */
.property-grid { display:grid; grid-template-columns:1fr; gap:1.5rem; }
@media(min-width:640px){ .property-grid { grid-template-columns:repeat(2,1fr); } }
@media(min-width:1024px){ .property-grid { grid-template-columns:repeat(3,1fr); } }

.prop-card {
  background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg);
  overflow:hidden; transition:all 0.5s var(--ease-out); text-decoration:none; color:var(--text); display:block;
}
.prop-card:hover { transform:translateY(-8px); box-shadow:var(--shadow-xl); border-color:var(--primary); }
.prop-card-img { position:relative; overflow:hidden; aspect-ratio:4/3; }
.prop-card-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.8s var(--ease-out); }
.prop-card:hover .prop-card-img img { transform:scale(1.08); }
.prop-img-overlay {
  position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  display:flex; align-items:flex-end; padding:1.25rem; gap:0.5rem;
}
.prop-badge {
  background:var(--primary); color:#fff; padding:0.25rem 0.75rem;
  border-radius:100px; font-size:0.625rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em;
}
.prop-badge-rent { background:var(--accent); }
.prop-badge-new { background:var(--success); }
.prop-price {
  margin-left:auto; font-family:var(--font-display); font-size:1.15rem; font-weight:700; color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,0.3);
}
.prop-fav {
  position:absolute; top:1rem; right:1rem; width:36px; height:36px;
  border-radius:50%; background:rgba(255,255,255,0.9); backdrop-filter:blur(8px);
  border:none; color:var(--text-3); display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:all 0.3s; z-index:2;
}
.prop-fav:hover, .prop-fav.active { background:var(--primary); color:#fff; }
.prop-body { padding:1.5rem; }
.prop-type { font-size:0.6875rem; font-weight:700; color:var(--primary); text-transform:uppercase; letter-spacing:0.1em; margin-bottom:0.375rem; }
.prop-title { font-family:var(--font-display); font-size:1.1rem; font-weight:600; color:var(--text); margin-bottom:0.5rem; line-height:1.3; }
.prop-loc { display:flex; align-items:center; gap:0.5rem; font-size:0.8125rem; color:var(--text-3); margin-bottom:1rem; }
.prop-specs { display:flex; gap:1.25rem; padding-top:1rem; border-top:1px solid var(--border); }
.prop-spec { display:flex; align-items:center; gap:0.375rem; font-size:0.75rem; color:var(--text-2); }

/* ===================== FILTERS ===================== */
.filters { display:flex; flex-wrap:wrap; gap:0.5rem; margin-bottom:2rem; align-items:center; }
.filter-btn { padding:0.625rem 1.25rem; border-radius:100px; font-size:0.8125rem; font-weight:600; border:1.5px solid var(--border); background:var(--bg); color:var(--text-2); cursor:pointer; transition:all 0.3s; }
.filter-btn:hover { border-color:var(--primary); color:var(--primary); }
.filter-btn.active { background:var(--primary); color:#fff; border-color:var(--primary); }

/* ===================== DETAIL PAGE ===================== */
.detail-hero { padding-top:7rem; }
.breadcrumb { display:flex; align-items:center; gap:0.5rem; margin-bottom:1.5rem; flex-wrap:wrap; }
.breadcrumb a { font-size:0.8125rem; color:var(--text-3); text-decoration:none; transition:color 0.3s; }
.breadcrumb a:hover { color:var(--primary); }
.breadcrumb svg { color:var(--text-3); width:14px; height:14px; }
.breadcrumb span { font-size:0.8125rem; color:var(--text-2); }

.detail-gallery { position:relative; border-radius:var(--radius-lg); overflow:hidden; aspect-ratio:16/9; background:var(--bg-2); }
.detail-gallery img { width:100%; height:100%; object-fit:cover; }
.gal-nav { position:absolute; top:50%; transform:translateY(-50%); width:48px; height:48px; background:rgba(255,255,255,0.9); backdrop-filter:blur(8px); border:none; border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--text); cursor:pointer; transition:all 0.3s; box-shadow:var(--shadow); }
.gal-nav:hover { background:var(--primary); color:#fff; }
.gal-prev { left:1rem; } .gal-next { right:1rem; }
.gal-thumbs { display:flex; gap:0.5rem; margin-top:0.75rem; overflow-x:auto; }
.gal-thumbs img { width:100px; height:70px; object-fit:cover; border-radius:var(--radius-sm); cursor:pointer; opacity:0.4; transition:all 0.3s; border:2px solid transparent; }
.gal-thumbs img.active, .gal-thumbs img:hover { opacity:1; border-color:var(--primary); }

.detail-grid { display:grid; grid-template-columns:1fr; gap:3rem; margin-top:2rem; }
@media(min-width:1024px){ .detail-grid { grid-template-columns:1.5fr 1fr; } }

.detail-title { font-family:var(--font-display); font-size:clamp(1.5rem, 3vw, 2.25rem); font-weight:700; color:var(--text); margin-bottom:0.5rem; letter-spacing:-0.02em; }
.detail-loc { display:flex; align-items:center; gap:0.5rem; color:var(--text-2); margin-bottom:2rem; }

.quick-specs { display:grid; grid-template-columns:repeat(2,1fr); gap:0.75rem; margin-bottom:2rem; }
@media(min-width:640px){ .quick-specs { grid-template-columns:repeat(4,1fr); } }
.qs-item { background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius); padding:1.25rem; text-align:center; }
.qs-num { font-family:var(--font-display); font-size:1.5rem; font-weight:700; color:var(--primary); }
.qs-label { font-size:0.6875rem; color:var(--text-3); text-transform:uppercase; letter-spacing:0.06em; }

.detail-section { margin-bottom:2.5rem; }
.ds-title { font-family:var(--font-display); font-size:1.1rem; font-weight:600; color:var(--text); display:flex; align-items:center; gap:0.625rem; margin-bottom:1rem; }
.ds-title svg { color:var(--primary); }

.info-grid { display:grid; grid-template-columns:1fr 1fr; gap:0; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.info-row { display:flex; justify-content:space-between; padding:0.875rem 1.25rem; border-bottom:1px solid var(--border-light); }
.info-row:nth-child(odd) { background:var(--bg-2); }
.info-label { color:var(--text-3); font-size:0.8125rem; }
.info-val { font-weight:600; font-size:0.8125rem; color:var(--text); }

.feature-tags { display:flex; flex-wrap:wrap; gap:0.5rem; }
.ftag { background:var(--bg-2); border:1px solid var(--border); padding:0.5rem 1rem; border-radius:100px; font-size:0.8125rem; color:var(--text-2); display:flex; align-items:center; gap:0.5rem; }
.ftag svg { color:var(--success); }

.side-card { background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius-lg); padding:2rem; position:sticky; top:100px; }
.side-price-label { font-size:0.75rem; color:var(--text-3); text-transform:uppercase; letter-spacing:0.1em; }
.side-price { font-family:var(--font-display); font-size:2.25rem; font-weight:700; color:var(--primary); margin-bottom:0.5rem; }
.side-ref { font-size:0.6875rem; color:var(--text-3); margin-bottom:1.5rem; display:flex; align-items:center; gap:0.5rem; }
.side-ref button { background:var(--bg-3); border:1px solid var(--border); border-radius:var(--radius-sm); padding:0.375rem 0.625rem; font-size:0.6875rem; color:var(--text-2); cursor:pointer; transition:all 0.3s; }
.side-ref button:hover { background:var(--primary); color:#fff; border-color:var(--primary); }

.side-actions { display:flex; flex-direction:column; gap:0.625rem; margin-bottom:1.5rem; }

/* ===================== MORTGAGE CALCULATOR WITH CHART ===================== */
.mcalc { background:var(--bg); border:1px solid var(--border); border-radius:var(--radius); padding:1.5rem; margin-top:1.5rem; }
.mcalc-title { font-family:var(--font-display); font-size:1rem; font-weight:600; color:var(--text); margin-bottom:1rem; display:flex; align-items:center; gap:0.5rem; }
.mcalc-row { display:grid; grid-template-columns:1fr 1fr; gap:0.75rem; margin-bottom:0.75rem; }
.mcalc-label { font-size:0.625rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-3); margin-bottom:0.375rem; display:block; }
.mcalc-input { width:100%; height:42px; padding:0 0.75rem; background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius-sm); color:var(--text); font-family:var(--font-body); font-size:0.875rem; }
.mcalc-input:focus { outline:none; border-color:var(--primary); }
.mcalc-result { text-align:center; padding-top:1rem; margin-top:1rem; border-top:1px solid var(--border); }
.mcalc-result-label { font-size:0.6875rem; color:var(--text-3); text-transform:uppercase; letter-spacing:0.1em; }
.mcalc-result-value { font-family:var(--font-display); font-size:1.75rem; font-weight:700; color:var(--primary); }
.mcalc-chart { margin-top:1rem; height:120px; background:var(--bg-2); border-radius:var(--radius-sm); display:flex; align-items:flex-end; justify-content:center; gap:2px; padding:1rem; overflow:hidden; }
.mcalc-bar { flex:1; background:var(--primary); border-radius:2px 2px 0 0; opacity:0.7; transition:all 0.5s; min-width:4px; }

/* ===================== AI CHAT WIDGET ===================== */
.ai-chat { position:fixed; bottom:1.5rem; right:1.5rem; z-index:80; }
.ai-chat-btn {
  width:56px; height:56px; border-radius:50%; background:var(--primary); color:#fff;
  border:none; display:flex; align-items:center; justify-content:center;
  cursor:pointer; box-shadow:0 8px 30px var(--primary-glow); transition:all 0.4s var(--ease-out);
}
.ai-chat-btn:hover { transform:scale(1.1); }
.ai-chat-panel {
  position:absolute; bottom:70px; right:0; width:360px; max-height:500px;
  background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-xl); display:flex; flex-direction:column;
  opacity:0; visibility:hidden; transform:translateY(20px) scale(0.95);
  transition:all 0.4s var(--ease-out); overflow:hidden;
}
.ai-chat-panel.open { opacity:1; visibility:visible; transform:translateY(0) scale(1); }
.ai-chat-header { padding:1rem 1.25rem; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:0.75rem; }
.ai-chat-header .dot { width:8px; height:8px; background:var(--success); border-radius:50%; animation:aiPulse 2s ease infinite; }
@keyframes aiPulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.ai-chat-header h4 { font-family:var(--font-display); font-size:0.9375rem; font-weight:600; }
.ai-chat-body { flex:1; padding:1rem 1.25rem; overflow-y:auto; display:flex; flex-direction:column; gap:0.75rem; max-height:350px; }
.ai-msg { padding:0.75rem 1rem; border-radius:var(--radius); font-size:0.8125rem; max-width:85%; }
.ai-msg.bot { background:var(--bg-2); border:1px solid var(--border); color:var(--text-2); align-self:flex-start; border-bottom-left-radius:4px; }
.ai-msg.user { background:var(--primary); color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }
.ai-chat-footer { padding:0.75rem 1.25rem; border-top:1px solid var(--border); display:flex; gap:0.5rem; }
.ai-chat-footer input { flex:1; height:40px; padding:0 1rem; background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius-sm); color:var(--text); font-size:0.8125rem; }
.ai-chat-footer input:focus { outline:none; border-color:var(--primary); }
.ai-chat-footer button { height:40px; padding:0 1rem; background:var(--primary); color:#fff; border:none; border-radius:var(--radius-sm); font-weight:600; font-size:0.75rem; cursor:pointer; }
.ai-suggestions { display:flex; flex-wrap:wrap; gap:0.5rem; padding:0 1.25rem 0.75rem; }
.ai-suggestion { padding:0.375rem 0.75rem; background:var(--bg-2); border:1px solid var(--border); border-radius:100px; font-size:0.6875rem; color:var(--text-2); cursor:pointer; transition:all 0.3s; }
.ai-suggestion:hover { background:var(--primary-glow); border-color:var(--primary); color:var(--primary); }

/* ===================== COMPARISON MODAL ===================== */
.modal-overlay { position:fixed; inset:0; z-index:300; background:rgba(10,14,26,0.7); backdrop-filter:blur(8px); display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition:all 0.4s var(--ease-out); padding:2rem; }
.modal-overlay.active { opacity:1; visibility:visible; }
.modal { background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg); width:100%; max-width:900px; max-height:90vh; overflow-y:auto; transform:translateY(20px); transition:transform 0.4s var(--ease-out); }
.modal-overlay.active .modal { transform:translateY(0); }
.modal-header { padding:1.25rem 2rem; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.modal-title { font-family:var(--font-display); font-size:1.15rem; font-weight:600; }
.modal-close { width:36px; height:36px; border-radius:50%; background:var(--bg-2); border:1px solid var(--border); color:var(--text); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all 0.3s; }
.modal-close:hover { background:var(--primary); color:#fff; }
.modal-body { padding:2rem; }

.compare-table { width:100%; border-collapse:collapse; }
.compare-table th, .compare-table td { padding:1rem 1.25rem; text-align:left; border-bottom:1px solid var(--border); font-size:0.875rem; }
.compare-table th { font-family:var(--font-display); font-weight:600; color:var(--text); background:var(--bg-2); }
.compare-table td { color:var(--text-2); }
.compare-table td:first-child { font-weight:600; color:var(--text-3); text-transform:uppercase; font-size:0.6875rem; letter-spacing:0.06em; }
.compare-table tr:hover td { background:var(--bg-2); }

/* ===================== VIRTUAL TOUR ===================== */
.vtour-box { background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius); padding:3rem 2rem; text-align:center; }
.vtour-box svg { color:var(--primary); margin-bottom:1rem; }
.vtour-box h4 { font-family:var(--font-display); font-size:1.25rem; margin-bottom:0.5rem; }
.vtour-box p { color:var(--text-2); font-size:0.875rem; margin-bottom:1.5rem; }

/* ===================== ACCORDION ===================== */
.accordion { border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; }
.ai-item { border-bottom:1px solid var(--border); }
.ai-item:last-child { border-bottom:none; }
.ai-trigger { width:100%; padding:1.25rem 1.5rem; background:transparent; border:none; color:var(--text); font-family:var(--font-body); font-size:0.9375rem; font-weight:600; display:flex; justify-content:space-between; align-items:center; cursor:pointer; text-align:left; transition:color 0.3s; }
.ai-trigger:hover { color:var(--primary); }
.ai-trigger svg { transition:transform 0.3s var(--ease-out); color:var(--text-3); }
.ai-item.open .ai-trigger svg { transform:rotate(180deg); color:var(--primary); }
.ai-content { max-height:0; overflow:hidden; transition:max-height 0.5s var(--ease-out); }
.ai-item.open .ai-content { max-height:500px; }
.ai-body { padding:0 1.5rem 1.25rem; color:var(--text-2); font-size:0.875rem; line-height:1.7; }

/* ===================== TIMELINE ===================== */
.timeline-item { position:relative; padding-left:2.5rem; padding-bottom:2rem; border-left:2px solid var(--border); }
.timeline-item:last-child { border-left:2px solid transparent; }
.timeline-dot { position:absolute; left:-7px; top:0; width:12px; height:12px; background:var(--primary); border-radius:50%; border:3px solid var(--bg); box-shadow:0 0 0 3px var(--primary-glow); }
.timeline-year { font-family:var(--font-display); font-size:1.25rem; font-weight:700; color:var(--primary); }
.timeline-text { color:var(--text-2); font-size:0.875rem; margin-top:0.25rem; }

/* ===================== TEAM ===================== */
.team-card { background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; transition:all 0.5s var(--ease-out); }
.team-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.team-img { position:relative; overflow:hidden; aspect-ratio:1; }
.team-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.8s var(--ease-out); }
.team-card:hover .team-img img { transform:scale(1.05); }
.team-overlay { position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%); opacity:0; transition:opacity 0.4s; display:flex; align-items:flex-end; padding:1.25rem; gap:0.5rem; }
.team-card:hover .team-overlay { opacity:1; }
.team-social { display:flex; gap:0.5rem; }
.team-social a { width:36px; height:36px; background:rgba(255,255,255,0.9); backdrop-filter:blur(8px); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--text); transition:all 0.3s; }
.team-social a:hover { background:var(--primary); color:#fff; }
.team-info { padding:1.25rem; }
.team-name { font-family:var(--font-display); font-size:1.1rem; font-weight:600; }
.team-role { font-size:0.8125rem; color:var(--primary); margin-top:0.25rem; }

/* ===================== CONTACT ===================== */
.contact-grid { display:grid; grid-template-columns:1fr; gap:3rem; }
@media(min-width:1024px){ .contact-grid { grid-template-columns:1fr 1.2fr; gap:4rem; } }
.cinfo { display:flex; flex-direction:column; gap:1rem; }
.cinfo-card { background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius); padding:1.25rem; display:flex; align-items:center; gap:1rem; transition:all 0.4s; }
.cinfo-card:hover { border-color:var(--primary); }
.cinfo-icon { width:48px; height:48px; background:var(--primary-glow); border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; color:var(--primary); flex-shrink:0; }
.cinfo-label { font-size:0.6875rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-3); margin-bottom:0.25rem; }
.cinfo-value { font-size:0.9375rem; font-weight:500; color:var(--text); }
.cinfo-value a { color:var(--text); text-decoration:none; }
.cinfo-value a:hover { color:var(--primary); }

.cform-wrap { background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius-lg); padding:2.5rem; }
.form-group { margin-bottom:1.25rem; }
.form-label { display:block; font-size:0.625rem; font-weight:700; text-transform:uppercase; letter-spacing:0.12em; color:var(--text-3); margin-bottom:0.5rem; }
.form-input { width:100%; height:50px; padding:0 1rem; background:var(--bg); border:1.5px solid var(--border); border-radius:var(--radius-sm); color:var(--text); font-family:var(--font-body); font-size:0.9375rem; transition:all 0.3s; }
.form-input:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 4px var(--primary-glow); }
.form-input::placeholder { color:var(--text-3); }
textarea.form-input { height:auto; padding:1rem; resize:vertical; }
select.form-input { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none stroke='%235a6270' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 1rem center; padding-right:2.5rem; }

.form-success { display:none; text-align:center; padding:3rem 2rem; }
.form-success-icon { width:68px; height:68px; margin:0 auto 1.5rem; background:var(--success); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.form-success h3 { font-family:var(--font-display); font-size:1.5rem; font-weight:600; color:var(--text); margin-bottom:0.75rem; }
.form-success p { color:var(--text-2); margin-bottom:1.5rem; }

/* ===================== CTA ===================== */
.cta-section { background:var(--bg-2); padding:5rem 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.cta-content { text-align:center; max-width:600px; margin:0 auto; }
.cta-title { font-family:var(--font-display); font-size:clamp(1.75rem, 3vw, 2.5rem); font-weight:700; color:var(--text); margin-bottom:1rem; letter-spacing:-0.02em; }
.cta-title em { color:var(--primary); font-style:normal; }
.cta-desc { color:var(--text-2); margin-bottom:2rem; }

/* ===================== MAP ===================== */
.map-container { border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--border); }
.map-container iframe { width:100%; height:350px; border:none; filter:grayscale(60%) contrast(1.1); }
[data-theme="dark"] .map-container iframe { filter:grayscale(80%) invert(90%) contrast(1.1); }

/* ===================== FOOTER ===================== */
.footer { background:var(--bg-2); padding:4rem 0 0; border-top:1px solid var(--border); }
.footer-grid { display:grid; grid-template-columns:1fr; gap:2.5rem; margin-bottom:2.5rem; }
@media(min-width:768px){ .footer-grid { grid-template-columns:2fr 1fr 1fr 1.5fr; } }
.footer-brand .logo-brand { color:var(--text); }
.footer-brand p { color:var(--text-2); font-size:0.875rem; margin:0.75rem 0; }
.footer-title { font-size:0.6875rem; font-weight:700; text-transform:uppercase; letter-spacing:0.12em; color:var(--text-3); margin-bottom:1rem; }
.footer-links li { list-style:none; margin-bottom:0.625rem; }
.footer-links a { font-size:0.875rem; color:var(--text-2); text-decoration:none; transition:all 0.3s; }
.footer-links a:hover { color:var(--primary); }
.footer-contact { display:flex; align-items:center; gap:0.625rem; font-size:0.875rem; color:var(--text-2); margin-bottom:0.625rem; }
.footer-contact svg { color:var(--primary); flex-shrink:0; }
.footer-social { display:flex; gap:0.75rem; margin-top:1rem; }
.footer-social a { width:40px; height:40px; background:var(--bg-3); border:1px solid var(--border); border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; color:var(--text-2); transition:all 0.4s; }
.footer-social a:hover { background:var(--primary); color:#fff; border-color:var(--primary); transform:translateY(-3px); }
.footer-bottom { border-top:1px solid var(--border); padding:1.25rem 0; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; }
.footer-bottom p { font-size:0.75rem; color:var(--text-3); }

/* ===================== LIGHTBOX ===================== */
.lightbox { display:none; position:fixed; inset:0; z-index:400; background:rgba(10,14,26,0.92); align-items:center; justify-content:center; padding:2rem; }
.lightbox.active { display:flex; }
.lightbox-close { position:absolute; top:1.5rem; right:1.5rem; width:48px; height:48px; background:var(--bg-3); border:none; border-radius:50%; color:var(--text); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all 0.3s; z-index:2; }
.lightbox-close:hover { background:var(--primary); color:#fff; }
.lightbox-img { max-width:90vw; max-height:85vh; object-fit:contain; border-radius:var(--radius); }

/* ===================== PAGE HEADER ===================== */
.page-header { padding:9rem 0 3rem; text-align:center; background:var(--bg-2); border-bottom:1px solid var(--border); }
.page-header h1 { font-family:var(--font-display); font-size:clamp(2rem, 4vw, 3.25rem); font-weight:700; color:var(--text); letter-spacing:-0.02em; }
.page-header h1 em { color:var(--primary); font-style:normal; }
.page-header p { color:var(--text-2); margin-top:0.75rem; }

/* ===================== WHATSAPP ===================== */
.whatsapp-float { position:fixed; bottom:1.5rem; left:1.5rem; z-index:50; width:52px; height:52px; background:#25D366; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; box-shadow:0 4px 20px rgba(37,211,102,0.3); transition:all 0.3s; }
.whatsapp-float:hover { transform:scale(1.1); }

/* ===================== BACK TO TOP ===================== */
.back-to-top { position:fixed; bottom:6rem; left:1.5rem; z-index:40; width:44px; height:44px; border-radius:50%; background:var(--bg-2); border:1px solid var(--border); color:var(--text); display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition:all 0.4s; cursor:pointer; box-shadow:var(--shadow); }
.back-to-top.visible { opacity:1; visibility:visible; }
.back-to-top:hover { background:var(--primary); color:#fff; border-color:var(--primary); }

/* ===================== ANIMATIONS ===================== */
.reveal { opacity:0; transform:translateY(40px); transition:all 0.8s var(--ease-out); }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-left { opacity:0; transform:translateX(-40px); transition:all 0.8s var(--ease-out); }
.reveal-left.visible { opacity:1; transform:translateX(0); }
.reveal-right { opacity:0; transform:translateX(40px); transition:all 0.8s var(--ease-out); }
.reveal-right.visible { opacity:1; transform:translateX(0); }
.reveal-scale { opacity:0; transform:scale(0.95); transition:all 0.8s var(--ease-out); }
.reveal-scale.visible { opacity:1; transform:scale(1); }

.stagger-children > * { opacity:0; transform:translateY(24px); transition:all 0.7s var(--ease-out); }
.stagger-children.visible > * { opacity:1; transform:translateY(0); }
.stagger-children.visible > *:nth-child(1){transition-delay:0s}
.stagger-children.visible > *:nth-child(2){transition-delay:0.08s}
.stagger-children.visible > *:nth-child(3){transition-delay:0.16s}
.stagger-children.visible > *:nth-child(4){transition-delay:0.24s}
.stagger-children.visible > *:nth-child(5){transition-delay:0.32s}
.stagger-children.visible > *:nth-child(6){transition-delay:0.4s}

/* ===================== RESPONSIVE ===================== */
@media(max-width:768px){
  .section { padding:4rem 0; }
  .hero-title { font-size:2.25rem; }
  .ai-chat-panel { width:calc(100vw - 2rem); right:-1rem; }
  .cookie-inner { flex-direction:column; text-align:center; }
}
