/* =====================================================================
   Lilafken — App Home (mobile-first, Temu/Airbnb-style shell)
   Self-contained: does NOT depend on css/main.css
   Variables exposed so it works even if main.css isn't loaded.
   ===================================================================== */

:root {
  --carbon:        #06100A;
  --carbon-2:      #0A170F;
  --forest:        #0B1D13;
  --forest-2:      #0F2A1B;
  --gold:          #C9A040;
  --gold-2:        #E0B855;
  --gold-soft:     rgba(201,160,64,0.18);
  --electric:      #4DFFD2;
  --cream:         #F5F0EB;
  --text:          #F2EEE7;
  --text-mute:     rgba(242,238,231,0.62);
  --text-dim:      rgba(242,238,231,0.42);
  --glass:         rgba(255,255,255,0.06);
  --glass-strong:  rgba(255,255,255,0.10);
  --glass-border:  rgba(255,255,255,0.10);
  --wa-green:      #25D366;
  --r-md:          12px;
  --r-lg:          18px;
  --r-xl:          24px;
  --r-full:        999px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --bnav-h:        72px;
  --safe-bottom:   env(safe-area-inset-bottom, 0px);
  --safe-top:      env(safe-area-inset-top, 0px);
}

/* ── Reset / base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--carbon);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.app-shell {
  /* leave room for the fixed bottom nav */
  padding-bottom: calc(var(--bnav-h) + var(--safe-bottom) + 8px);
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(201,160,64,0.06), transparent 55%),
    radial-gradient(ellipse at bottom, rgba(77,255,210,0.04), transparent 60%),
    var(--carbon);
}

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

/* Utility: prevent iOS tap highlight on app surfaces */
.app-shell, .app-shell * {
  -webkit-tap-highlight-color: transparent;
}

/* ── App header (status-bar style) ──────────────────────────────── */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 10px) 16px 10px;
  background: linear-gradient(180deg, rgba(6,16,10,0.92) 0%, rgba(6,16,10,0.0) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.app-brand-mark {
  width: 30px; height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #1A1108;
  display: grid; place-items: center;
  font-weight: 900; font-size: 14px;
  box-shadow: 0 6px 22px rgba(201,160,64,0.35);
}
.app-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.app-brand-name em { color: var(--gold); font-style: normal; }

.app-top-actions { display: flex; gap: 6px; }
.app-icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  display: grid; place-items: center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.app-icon-btn:active { transform: scale(0.92); background: var(--glass-strong); }
.app-icon-btn svg { width: 18px; height: 18px; }

/* ── HERO (compact, ~70-75vh max) ───────────────────────────────── */
.app-hero {
  position: relative;
  margin: 4px 12px 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  min-height: 480px;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--text);
}
.app-hero::before {
  /* Fondo oscuro — el hero-video.js inyecta el video MP4 sobre este capa.
     Sin foto de fondo (eliminada hero-costa.webp por no representar Lilafken). */
  content: '';
  position: absolute; inset: 0;
  background: #06100A;
  z-index: -2;
}
.app-hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,16,10,0.20) 0%, rgba(6,16,10,0.20) 35%, rgba(6,16,10,0.90) 100%),
    radial-gradient(circle at 80% 10%, rgba(77,255,210,0.10), transparent 50%);
  z-index: -1;
}
@keyframes heroZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.10); }
}

.app-hero-content {
  padding: 20px 22px 24px;
}

.app-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(77,255,210,0.10);
  border: 1px solid rgba(77,255,210,0.30);
  color: var(--electric);
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}
.app-hero-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 8px var(--electric);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.5); }
}

.app-hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.app-hero-title em {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold-2);
  font-weight: 500;
}
.app-hero-sub {
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(245,240,235,0.85);
  margin: 0 0 16px;
  max-width: 28ch;
}

.app-hero-ctas {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.app-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  min-height: 48px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.app-btn:active { transform: scale(0.96); }
.app-btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #1A1108;
  box-shadow: 0 10px 26px rgba(201,160,64,0.32);
}
.app-btn-wa {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 10px 26px rgba(37,211,102,0.35);
}
.app-btn-wa svg { width: 18px; height: 18px; }
.app-btn-ghost {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.app-hero-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: rgba(245,240,235,0.85);
  flex-wrap: wrap;
}
.app-hero-stats span {
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.app-hero-stats strong { color: var(--gold-2); font-weight: 700; }
.app-hero-stats .sep { color: var(--text-dim); margin: 0 -4px; }

/* ── Section primitives ─────────────────────────────────────────── */
.app-section { padding: 24px 16px 8px; }
.app-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.app-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.app-section-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
}
.app-section-link::after { content: '›'; font-size: 1rem; }

/* ── Stories (Instagram-style horizontal swipe) ─────────────────── */
.stories-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 16px 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.stories-rail::-webkit-scrollbar { display: none; }
.story {
  flex: 0 0 auto;
  width: 72px;
  text-align: center;
  scroll-snap-align: start;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text);
}
.story-ring {
  width: 72px; height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 140deg, var(--gold), var(--electric), var(--gold-2), var(--gold));
  position: relative;
  transition: transform 0.2s var(--ease);
}
.story:active .story-ring { transform: scale(0.94); }
.story-ring::before {
  content: '';
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: var(--carbon);
}
.story-img {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--carbon);
}
.story-label {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mute);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* ── Filter chips (sticky under hero) ───────────────────────────── */
.filter-bar {
  position: sticky;
  top: calc(var(--safe-top) + 60px);
  z-index: 30;
  background: linear-gradient(180deg, rgba(6,16,10,0.92) 60%, rgba(6,16,10,0.0));
  padding: 10px 0 14px;
  margin: 4px 0 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.chips-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chips-rail::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 9px 16px;
  min-height: 38px;
  border-radius: var(--r-full);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:active { transform: scale(0.95); }
.chip.is-active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #1A1108;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(201,160,64,0.30);
}

/* ── Promo card (Refugio Invierno) ──────────────────────────────── */
.promo-card {
  margin: 8px 16px 16px;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1B1430 0%, #0B1D13 100%);
  border: 1px solid rgba(166,143,207,0.30);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 140px;
  isolation: isolate;
}
.promo-card-body {
  padding: 16px 14px 16px 16px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.promo-kicker {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #C9B6F0; margin-bottom: 6px;
}
.promo-title {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 700;
  font-size: 1.15rem; line-height: 1.1;
  color: var(--cream); margin: 0 0 8px;
}
.promo-tiers {
  display: flex; gap: 12px; margin-bottom: 10px;
  font-size: 0.8rem;
}
.promo-tier b {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--gold-2);
}
.promo-tier span {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.promo-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.85rem;
  color: var(--gold-2);
}
.promo-card-img {
  background-image: url('../img/lifestyle/meditacion.webp');
  background-size: cover; background-position: center;
  position: relative;
}
.promo-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(0,0,0,0.0) 0%, #0B1D13 95%);
}

/* ── Unit grid (Temu-style 2/3/4 cols) ──────────────────────────── */
.grid-wrap { padding: 0 12px; }
.unit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.unit-card {
  position: relative;
  background: var(--carbon-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-align: left;
  color: inherit;
  padding: 0;
  display: block;
  width: 100%;
  cursor: pointer;
  animation: cardIn 0.45s var(--ease) backwards;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.unit-card:active { transform: scale(0.97); }
.unit-card:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.unit-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: #0A170F;
  overflow: hidden;
}
.unit-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.unit-card:hover .unit-card-photo img { transform: scale(1.05); }

.unit-badges {
  position: absolute;
  top: 8px; left: 8px;
  display: flex; gap: 4px;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  pointer-events: none;
  max-width: calc(100% - 56px);
}
.badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--r-full);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.badge-pet     { background: rgba(77,255,210,0.18); color: var(--electric); border: 1px solid rgba(77,255,210,0.4); }
.badge-promo   { background: rgba(166,143,207,0.22); color: #D7C7F6; border: 1px solid rgba(166,143,207,0.5); }
.badge-mar     { background: rgba(201,160,64,0.22); color: var(--gold-2); border: 1px solid rgba(201,160,64,0.45); }
.badge-lux     { background: rgba(255,255,255,0.10); color: var(--cream); border: 1px solid rgba(255,255,255,0.20); }

.unit-fav {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(6,16,10,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  z-index: 2;
  transition: transform 0.15s var(--ease), color 0.2s var(--ease);
  color: var(--text);
}
.unit-fav:active { transform: scale(0.85); }
.unit-fav.is-fav { color: #FF5C7A; }
.unit-fav svg { width: 16px; height: 16px; }

.unit-card-body { padding: 10px 12px 12px; }
.unit-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  display: flex; align-items: center; gap: 6px;
}
.unit-card-type {
  font-size: 0.72rem;
  color: var(--text-mute);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.unit-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 8px;
  font-size: 0.74rem;
  color: var(--text-mute);
}
.unit-card-meta span { display: inline-flex; align-items: center; gap: 3px; }
.unit-card-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}
.unit-card-price b {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--gold-2);
  font-weight: 700;
}
.unit-card-price b small {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  margin-left: 1px;
}
.unit-card-price .from {
  font-size: 0.66rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Reviews carousel (horizontal swipe) ────────────────────────── */
.reviews-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 16px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reviews-rail::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 86%;
  scroll-snap-align: start;
  background: var(--carbon-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 16px 16px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.review-top {
  display: flex; align-items: center; gap: 10px;
}
.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #1A1108;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}
.review-who {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1;
}
.review-name { font-weight: 700; font-size: 0.92rem; }
.review-meta { font-size: 0.7rem; color: var(--text-mute); }
.review-stars { color: var(--gold-2); font-size: 0.78rem; letter-spacing: 0.05em; }
.review-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(245,240,235,0.86);
  margin: 0;
}
.review-source {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.68rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Quick actions row (Apple Wallet style) ─────────────────────── */
.quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 16px;
}
.quick-tile {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 14px 8px 12px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  backdrop-filter: blur(10px);
  transition: transform 0.15s var(--ease), background 0.2s var(--ease);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 80px;
}
.quick-tile:active { transform: scale(0.95); background: var(--glass-strong); }
.quick-tile-emoji { font-size: 1.5rem; line-height: 1; }

/* ── Trust strip ────────────────────────────────────────────────── */
.trust-strip {
  margin: 14px 16px 18px;
  padding: 14px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--carbon-2) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.trust-strip-item b {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold-2);
  margin-bottom: 2px;
}
.trust-strip-item span {
  font-size: 0.68rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Footer mini ────────────────────────────────────────────────── */
.app-footer {
  padding: 20px 16px 8px;
  text-align: center;
  color: var(--text-mute);
  font-size: 0.78rem;
  line-height: 1.6;
}
.app-footer a { color: var(--gold-2); }
.app-footer-links {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-top: 8px;
  font-size: 0.78rem;
}

/* ── Floating WhatsApp FAB ──────────────────────────────────────── */
.fab-wa {
  position: fixed;
  right: 14px;
  bottom: calc(var(--bnav-h) + var(--safe-bottom) + 14px);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(37,211,102,0.55), 0 0 0 0 rgba(37,211,102,0.6);
  border: none;
  z-index: 40;
  animation: fabPulse 2.4s ease-in-out infinite;
  transition: transform 0.15s var(--ease);
}
.fab-wa:active { transform: scale(0.9); }
.fab-wa svg { width: 26px; height: 26px; }
@keyframes fabPulse {
  0%,100% { box-shadow: 0 10px 28px rgba(37,211,102,0.55), 0 0 0 0 rgba(37,211,102,0.55); }
  60%     { box-shadow: 0 10px 28px rgba(37,211,102,0.55), 0 0 0 14px rgba(37,211,102,0); }
}

/* ── Bottom navigation (sticky tab bar) ─────────────────────────── */
.bnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  height: calc(var(--bnav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(6,16,10,0.82);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
.bnav-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-mute);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  transition: color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.bnav-tab:active .bnav-icon { transform: scale(0.85); }
.bnav-icon {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  transition: transform 0.2s var(--ease);
}
.bnav-icon svg { width: 22px; height: 22px; }
.bnav-tab.is-active { color: var(--gold-2); }
.bnav-tab.is-active::before {
  content: '';
  position: absolute;
  top: 4px;
  width: 28px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 100%);
  box-shadow: 0 0 10px rgba(201,160,64,0.6);
}
.bnav-tab .bnav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  min-width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 6px var(--electric);
  animation: pulse 1.6s ease-in-out infinite;
}

/* ── Modal (unit detail) ────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 101;
  max-height: 92vh;
  background: var(--carbon-2);
  border-radius: 28px 28px 0 0;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
}
.modal-sheet.is-open { transform: translateY(0); }
.modal-grabber {
  width: 44px; height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}
.modal-close {
  position: absolute;
  top: 16px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(6,16,10,0.6);
  border: 1px solid var(--glass-border);
  color: var(--text);
  display: grid; place-items: center;
  z-index: 5;
  backdrop-filter: blur(8px);
  transition: transform 0.15s var(--ease);
}
.modal-close:active { transform: scale(0.9); }
.modal-close svg { width: 18px; height: 18px; }

.modal-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* Modal gallery */
.modal-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #050B07;
}
.modal-gallery::-webkit-scrollbar { display: none; }
.modal-gallery img {
  flex: 0 0 100%;
  width: 100%;
  height: 290px;
  object-fit: cover;
  scroll-snap-align: start;
  background: #0A170F;
}
.modal-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 4px;
}
.modal-gallery-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
  transition: background 0.2s var(--ease), width 0.2s var(--ease);
}
.modal-gallery-dot.is-active {
  background: var(--gold-2);
  width: 18px;
  border-radius: 3px;
}

.modal-body { padding: 12px 18px 20px; }
.modal-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 6px;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.modal-rating { color: var(--gold-2); font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.modal-rating small { color: var(--text-mute); font-weight: 500; font-size: 0.72rem; }
.modal-tag {
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 12px 0 16px;
  padding: 12px 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
}
.modal-spec {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-mute);
}
.modal-spec b {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.modal-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 16px 0 8px;
}
.modal-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(245,240,235,0.88);
  margin: 0 0 8px;
}
.modal-amenities {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.modal-amenity {
  font-size: 0.74rem;
  padding: 6px 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  color: var(--text);
}

.modal-prices {
  margin-top: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.modal-price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 14px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.9rem;
}
.modal-price-row:last-child { border-bottom: none; }
.modal-price-row b {
  font-family: 'Playfair Display', serif;
  color: var(--gold-2);
  font-size: 1.05rem;
}
.modal-price-row span { color: var(--text-mute); }

.modal-cta-bar {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(10,23,15,0) 0%, var(--carbon-2) 30%);
  padding: 14px 18px calc(14px + var(--safe-bottom));
  display: flex;
  gap: 8px;
}
.modal-cta-bar .app-btn { min-height: 52px; font-size: 1rem; }

/* ── Stories viewer (fullscreen) ────────────────────────────────── */
.story-viewer {
  position: fixed; inset: 0;
  z-index: 200;
  background: #000;
  display: none;
  flex-direction: column;
}
.story-viewer.is-open { display: flex; }
.story-viewer-img {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.story-viewer-bars {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; gap: 4px;
  padding: calc(var(--safe-top) + 10px) 14px 0;
  z-index: 2;
}
.story-viewer-bar {
  flex: 1; height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.story-viewer-bar::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: #fff;
}
.story-viewer-bar.is-done::after { width: 100%; }
.story-viewer-bar.is-active::after {
  animation: storyFill 5s linear forwards;
}
@keyframes storyFill { from { width: 0; } to { width: 100%; } }
.story-viewer-close {
  position: absolute; top: calc(var(--safe-top) + 22px); right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  z-index: 5;
  display: grid; place-items: center;
}
.story-viewer-caption {
  position: absolute; bottom: 30px; left: 0; right: 0;
  text-align: center;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  padding: 0 24px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.story-tap-prev, .story-tap-next {
  position: absolute; top: 0; bottom: 0;
  width: 35%;
  z-index: 3;
  background: transparent;
  border: none;
  cursor: pointer;
}
.story-tap-prev { left: 0; }
.story-tap-next { right: 0; }

/* ── Ripple effect on cards (subtle) ────────────────────────────── */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple::after {
  content: '';
  position: absolute;
  top: var(--ry, 50%); left: var(--rx, 50%);
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(201,160,64,0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ripple.ripple-active::after {
  animation: rippleAnim 0.6s var(--ease);
}
@keyframes rippleAnim {
  from { width: 0; height: 0; opacity: 1; }
  to   { width: 300px; height: 300px; opacity: 0; }
}

/* ── Empty state ────────────────────────────────────────────────── */
.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-mute);
  font-size: 0.92rem;
}
.empty-state b { display: block; color: var(--text); font-size: 1rem; margin-bottom: 6px; }

/* ── Skeleton shimmer ───────────────────────────────────────────── */
.sk {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--r-md);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive: tablet ─────────────────────────────────────────── */
@media (min-width: 640px) {
  .unit-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-row { grid-template-columns: repeat(4, 1fr); }
  .review-card { flex: 0 0 56%; }
}

/* ── Responsive: desktop ────────────────────────────────────────── */
@media (min-width: 1024px) {
  body.app-shell {
    padding-bottom: 24px; /* no bottom nav on desktop */
  }
  .bnav { display: none; }
  .fab-wa {
    bottom: 24px;
    right: 24px;
    width: 64px; height: 64px;
  }
  .app-hero {
    margin: 12px auto 0;
    max-width: 1180px;
    min-height: 520px;
    max-height: 70vh;
  }
  .app-hero-content { padding: 36px 44px 36px; max-width: 56%; }
  .app-hero-title { font-size: 3rem; }
  .app-hero-sub { font-size: 1.05rem; max-width: 40ch; }
  .app-hero-ctas { max-width: 460px; }
  .app-section { max-width: 1180px; margin: 0 auto; padding: 36px 24px 8px; }
  .grid-wrap { padding: 0 24px; max-width: 1180px; margin: 0 auto; }
  .unit-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .app-section-title { font-size: 1.6rem; }
  .filter-bar { top: 0; }
  .promo-card { max-width: 1180px; margin: 12px auto 24px; min-height: 200px; grid-template-columns: 1.4fr 1fr; }
  .promo-title { font-size: 1.8rem; }
  .stories-rail { max-width: 1180px; margin: 0 auto; padding: 6px 24px 18px; }
  .reviews-rail { max-width: 1180px; margin: 0 auto; }
  .review-card { flex: 0 0 32%; }
  .modal-sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, calc(-50% + 30px));
    width: min(620px, 92vw);
    max-height: 86vh;
    border-radius: 24px;
    opacity: 0;
  }
  .modal-sheet.is-open {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
  .modal-gallery img { height: 360px; }
  .trust-strip { max-width: 1180px; margin: 14px auto 18px; grid-template-columns: repeat(6, 1fr); }
  .app-topbar { max-width: 1180px; margin: 0 auto; }
}

/* ── Tiny screens (≤360px) hardening ────────────────────────────── */
@media (max-width: 360px) {
  .app-hero-title { font-size: 1.55rem; }
  .quick-row { grid-template-columns: repeat(2, 1fr); }
  .modal-specs { grid-template-columns: repeat(2, 1fr); }
}

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .app-hero::before { animation: none; }
}
