/* =============================================
   CASAS INCREÍBLES — VCARD PREMIUM
   Palette: Navy #142a5c · Silver #c0c5ce · Crystal
   ============================================= */

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

:root {
  /* Brand Core */
  --navy:       #142a5c;
  --navy-light: #1d3a7a;
  --navy-dark:  #0a142e;
  --navy-deep:  #060c1c;

  /* Silver Accent */
  --silver:     #c0c5ce;
  --silver-light:#e2e5ea;
  --silver-dark: #8b919c;

  /* Neutrals */
  --white:      #ffffff;
  --off-white:  #f0f2f5;
  --bg:         #f5f6f8;
  --text:       #1a1f2e;
  --text-soft:  #5a6172;
  --text-muted: #9199a8;

  /* Glass */
  --glass:      rgba(255,255,255,0.12);
  --glass-border:rgba(255,255,255,0.2);

  /* Typography */
  --font-display: 'DM Serif Display', serif;
  --font-body:    'Inter', sans-serif;

  /* Transitions */
  --ease-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:     0.25s;
  --t-medium:   0.5s;
  --t-slow:     0.8s;

  /* Spacing */
  --section-pad: 3rem 1.5rem;
  --radius:      16px;
  --radius-sm:   8px;
}

/* ═══════ DARK MODE ═══════ */
.dark-mode {
  --bg:         #060c1c;
  --white:      #0c1528;
  --off-white:  #0f1a30;
  --text:       #e8eaf0;
  --text-soft:  #a0a8b8;
  --text-muted: #6b7280;
  --glass:      rgba(20,42,92,0.35);
  --glass-border:rgba(43,86,163,0.25);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-fast), color var(--t-fast);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.2;
}

/* ═══════ CONTAINER ═══════ */
.vcard {
  max-width: 430px;
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 60px rgba(20,42,92,0.12);
  overflow: hidden;
  transition: background var(--t-fast);
}

/* ═══════ SPLASH SCREEN ═══════ */
.splash {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

.splash.hide {
  opacity: 0;
  visibility: hidden;
}

.splash__logo {
  width: 180px;
  animation: splashFloat 2s ease-in-out infinite alternate;
}

.splash__bar {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  margin-top: 2rem;
  overflow: hidden;
}

.splash__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--silver), var(--navy-light));
  border-radius: 4px;
  animation: splashLoad 2.5s ease-out forwards;
}

@keyframes splashFloat {
  from { transform: translateY(5px); }
  to   { transform: translateY(-5px); filter: drop-shadow(0 20px 40px rgba(20,42,92,0.5)); }
}
@keyframes splashLoad {
  to { width: 100%; }
}

/* ═══════ HERO ═══════ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-bottom: 2rem;
}

.hero__video,
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,12,28,0.95) 0%,
    rgba(6,12,28,0.6) 30%,
    rgba(6,12,28,0.15) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem 6rem;
  color: white;
}

.hero__logo {
  width: 110px;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out) 0.3s forwards;
}

@keyframes shimmerLogo {
  0% { -webkit-mask-position: 200%; mask-position: 200%; }
  100% { -webkit-mask-position: -200%; mask-position: -200%; }
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: white;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out) 0.5s forwards;
}

.hero__subtitle {
  font-size: 0.95rem;
  color: var(--silver);
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out) 0.7s forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero Quick Actions */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out) 0.9s forwards;
}

.hero__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  transition: all var(--t-fast) var(--ease-out);
}

.hero__btn:hover, .hero__btn:active {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

/* Hero Scroll Hint */
.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: var(--silver);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out) 1.2s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 30px;
  background: var(--silver);
  margin: 0.5rem auto 0;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 1; transform: scaleY(1.3); }
}

/* Theme Toggle */
.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
}

/* ═══════ STATS BAR ═══════ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--navy);
}

.stat {
  background: var(--navy-dark);
  padding: 1.5rem 0.5rem;
  text-align: center;
  color: white;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2rem;
  display: block;
  color: var(--silver-light);
}

.stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--silver-dark);
  margin-top: 0.3rem;
  display: block;
}

/* ═══════ SECTION COMMON ═══════ */
.section {
  padding: var(--section-pad);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--navy-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dark-mode .section__label {
  color: var(--silver);
}

.section__label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--navy-light);
}

.dark-mode .section__label::before {
  background: var(--silver);
}

.section__title {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.section__desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ═══════ FILTERS ═══════ */
.prop-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.prop-filters::-webkit-scrollbar { display: none; }

.filter-btn {
  background: transparent;
  border: 1px solid rgba(20,42,92,0.15);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: all var(--t-fast);
  white-space: nowrap;
}

.dark-mode .filter-btn {
  border-color: rgba(255,255,255,0.15);
  color: var(--text-muted);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.dark-mode .filter-btn.active, .dark-mode .filter-btn:hover {
  background: var(--silver-light);
  color: var(--navy-deep);
  border-color: var(--silver-light);
}

/* ═══════ PROPERTIES CAROUSEL ═══════ */
.properties-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.3s var(--ease-out);
}

.properties-scroll::-webkit-scrollbar { height: 4px; }
.properties-scroll::-webkit-scrollbar-thumb {
  background: var(--navy);
  border-radius: 4px;
}

.prop-card {
  min-width: 88%;
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--off-white);
  box-shadow: 0 4px 20px rgba(20,42,92,0.06);
  border: 1px solid rgba(20,42,92,0.04);
  transition: box-shadow var(--t-fast);
}

.dark-mode .prop-card {
  background: var(--off-white);
  border-color: rgba(255,255,255,0.04);
}

.prop-card__img {
  height: 240px;
  position: relative;
  overflow: hidden;
}

.prop-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.prop-card:hover .prop-card__img img,
.prop-card:active .prop-card__img img {
  transform: scale(1.05);
}

.prop-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--navy);
  color: white;
  padding: 0.35rem 1rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prop-card__fav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}

.prop-card__fav.active {
  background: white;
  color: #ef4444;
  border-color: white;
  transform: scale(1.1);
}

.prop-card__badge--hot {
  background: #ef4444;
}

.prop-card__body {
  padding: 1.5rem;
}

.prop-card__name {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.prop-card__location {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.prop-card__location i {
  color: var(--navy-light);
  font-size: 0.75rem;
}

.prop-card__price {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.2rem;
}

.dark-mode .prop-card__price {
  color: var(--silver-light);
}

.prop-card__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  border-top: 1px solid rgba(20,42,92,0.08);
  padding-top: 1rem;
}

.dark-mode .prop-card__specs {
  border-color: rgba(255,255,255,0.08);
}

.spec {
  text-align: center;
}

.spec i {
  color: var(--navy-light);
  font-size: 1rem;
  margin-bottom: 0.2rem;
  display: block;
}

.dark-mode .spec i {
  color: var(--silver);
}

.spec span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.spec small {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prop-card__action {
  margin-top: 1rem;
  padding: 0.8rem;
  font-size: 0.85rem;
}

/* ═══════ ZONE EXPLORER ═══════ */
.zones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.zone-card {
  position: relative;
  height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.zone-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

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

.zone-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,12,28,0.85), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

.zone-card__name {
  color: white;
  font-family: var(--font-display);
  font-size: 1rem;
}

.zone-card__count {
  color: var(--silver);
  font-size: 0.75rem;
}

.zone-card--featured {
  grid-column: 1 / -1;
  height: 160px;
}

/* ═══════ MORTGAGE CALCULATOR ═══════ */
.calc-section {
  background: var(--navy-deep);
  color: white;
  position: relative;
  overflow: hidden;
}

.calc-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(29,58,122,0.3), transparent 70%);
  pointer-events: none;
}

/* ════════ TOOLS & CAROUSEL ════════ */
.tools-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.tool-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--silver);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  transition: all var(--t-fast) ease;
  white-space: nowrap;
}

.tool-tab.active {
  background: white;
  color: var(--navy-deep);
  border-color: white;
  box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.tools-container {
  position: relative;
}

.tool-widget {
  display: none;
  animation: fadeWidget 0.4s ease forwards;
}

.tool-widget.active {
  display: block;
}

.widget-desc {
  font-size: 0.85rem;
  color: var(--silver);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  padding: 0 1rem;
}

@keyframes fadeWidget {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.calc-box {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.calc__field {
  margin-bottom: 1rem;
}

.calc__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--silver);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.calc__val {
  color: white;
  font-weight: 700;
}

.calc__input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--t-fast);
}

/* Custom Range Slider */
input[type=range].calc__range {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  padding: 0.5rem 0;
  border: none;
}
input[type=range].calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--silver-light);
  cursor: pointer;
  margin-top: -8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
input[type=range].calc__range::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

.calc__input:focus {
  outline: none;
  border-color: var(--silver);
}

.calc__input::placeholder { color: rgba(255,255,255,0.3); }

.calc__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.calc__btn {
  width: 100%;
  padding: 1rem;
  background: white;
  color: var(--navy-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  margin-top: 0.5rem;
}

.calc__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,255,255,0.15);
}

.calc__result {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  display: none;
}

.calc__result.show { display: block; animation: fadeSlideUp 0.5s var(--ease-out); }

.calc__result-label {
  font-size: 0.8rem;
  color: var(--silver);
  margin-bottom: 0.3rem;
}

.calc__result-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: white;
}

.calc__result-note {
  font-size: 0.7rem;
  color: var(--silver-dark);
  margin-top: 0.5rem;
}

/* ═══════ TOUR / CONCIERGE FORM ═══════ */
.concierge__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.field__input {
  padding: 0.9rem 1rem;
  border: 1.5px solid rgba(20,42,92,0.12);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--off-white);
  color: var(--text);
  transition: border-color var(--t-fast);
}

.dark-mode .field__input {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: var(--text);
}

.field__input:focus {
  outline: none;
  border-color: var(--navy);
}

.dark-mode .field__input:focus {
  border-color: var(--silver);
}

/* ═══════ BUTTONS ═══════ */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: all var(--t-fast) var(--ease-out);
  width: 100%;
}

.btn--navy {
  background: var(--navy);
  color: white;
}

.btn--navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(20,42,92,0.3);
}

.btn--wa {
  background: #25D366;
  color: white;
}

.btn--wa:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.dark-mode .btn--ghost {
  color: var(--silver-light);
  border-color: var(--silver);
}

.btn--ghost:hover {
  background: var(--navy);
  color: white;
}

/* ═══════ FOOTER ═══════ */
.footer {
  background: var(--navy-deep);
  color: white;
  padding: 3rem 1.5rem 7rem;
  text-align: center;
}

.footer__logo {
  width: 100px;
  margin: 0 auto 1rem;
  opacity: 0.9;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: white;
  margin-bottom: 0.3rem;
}

.footer__sub {
  font-size: 0.8rem;
  color: var(--silver-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer__social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--silver);
  font-size: 1.1rem;
  transition: all var(--t-fast);
}

.footer__social:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  transform: translateY(-3px);
}

.footer__legal {
  font-size: 0.7rem;
  color: var(--silver-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
}

/* ═══════ FLOATING BUTTON ═══════ */
.fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow:
    0 8px 30px rgba(20,42,92,0.4),
    0 0 0 3px rgba(20,42,92,0.1);
  transition: all var(--t-fast) var(--ease-out);
}

.fab:hover {
  transform: scale(1.08);
  box-shadow:
    0 12px 40px rgba(20,42,92,0.5),
    0 0 0 5px rgba(20,42,92,0.15);
}

/* ═══════ SCROLL REVEAL ═══════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}

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

/* ═══════ UTILITY ANIMATIONS ═══════ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ═══════ PROPERTY MODAL ═══════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
  padding: 1.5rem;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 28, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  background: var(--bg);
  border-radius: var(--radius);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s var(--ease-out);
  border: 1px solid rgba(255,255,255,0.1);
}

.modal.show .modal__content {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform var(--t-fast);
}

.modal__close:hover {
  transform: scale(1.1);
}

.modal__img-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
}

.modal__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__price-tag {
  position: absolute;
  bottom: -1rem;
  right: 1.5rem;
  background: var(--navy);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(20,42,92,0.4);
}

.dark-mode .modal__price-tag {
  background: var(--navy-light);
}

.modal__body {
  padding: 2.2rem 1.8rem 1.8rem;
}

.modal__title {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.modal__location {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.modal__location i {
  color: var(--navy-light);
}

.modal__divider {
  width: 100%;
  height: 1px;
  background: rgba(20,42,92,0.08);
  margin: 1.2rem 0;
}

.dark-mode .modal__divider {
  background: rgba(255,255,255,0.08);
}

.modal__desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.modal__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.amenity-chip {
  background: rgba(20,42,92,0.06);
  color: var(--navy);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(20,42,92,0.05);
}

.dark-mode .amenity-chip {
  background: rgba(255,255,255,0.06);
  color: var(--silver);
  border-color: rgba(255,255,255,0.05);
}

.amenity-chip i {
  color: var(--navy-light);
  font-size: 0.8rem;
}

.dark-mode .amenity-chip i {
  color: var(--silver-light);
}

.dark-mode .modal__content {
  background: var(--navy-deep);
}

/* ═══════ PREMIUM MICRO-ANIMATIONS ═══════ */

/* FAB Pulse Glow */
.fab {
  animation: fabPulse 3s ease-in-out infinite;
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(20,42,92,0.4), 0 0 0 3px rgba(20,42,92,0.1); }
  50% { box-shadow: 0 8px 30px rgba(20,42,92,0.6), 0 0 0 8px rgba(20,42,92,0.08); }
}

/* Property Badge Shimmer */
.prop-card__badge {
  position: relative;
  overflow: hidden;
}

.prop-card__badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: badgeShimmer 4s ease-in-out infinite;
}

@keyframes badgeShimmer {
  0%, 70% { left: -100%; }
  100% { left: 200%; }
}

/* Stats Number Glow */
.stat__number {
  text-shadow: 0 0 20px rgba(192,197,206,0.15);
}

/* Hero Button Ripple */
.hero__btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  animation: btnRipple 3s ease-out infinite;
  opacity: 0;
}

@keyframes btnRipple {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero__btn {
  position: relative;
  overflow: visible;
}

/* Zone Card Overlay Gradient Animation */
.zone-card__overlay {
  transition: background 0.5s var(--ease-out);
}

.zone-card:hover .zone-card__overlay {
  background: linear-gradient(to top, rgba(20,42,92,0.9), transparent 70%);
}

/* Smooth prop card entrance */
.prop-card {
  transition: box-shadow var(--t-fast), transform 0.4s var(--ease-out);
}

.prop-card:active {
  transform: scale(0.98);
}

/* Tool tab hover glow */
.tool-tab:not(.active):hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}

/* Concierge form field focus animation */
.field__input:focus {
  box-shadow: 0 0 0 3px rgba(20,42,92,0.08);
}

.dark-mode .field__input:focus {
  box-shadow: 0 0 0 3px rgba(192,197,206,0.08);
}

/* Footer social hover glow */
.footer__social:hover {
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

/* Modal entrance bounce */
.modal.show .modal__content {
  animation: modalBounce 0.5s var(--ease-out);
}

@keyframes modalBounce {
  0% { transform: translateY(40px) scale(0.92); opacity: 0; }
  60% { transform: translateY(-5px) scale(1.01); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Stat bar subtle gradient animation */
.stats-bar {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark), var(--navy));
  background-size: 200% 200%;
  animation: statsGradient 8s ease infinite;
}

@keyframes statsGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ═══════ RESPONSIVE SAFETY ═══════ */
@media (max-width: 430px) {
  .vcard { max-width: 100%; box-shadow: none; }
}

