/* ════════════════════════════════════════════════════════════
   STAARI — Global CSS
   Charte : #0F172A (navy) · #F5C756 (gold) · #FFFFFF · #6B7280
   ════════════════════════════════════════════════════════════ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
       color: #0F172A; background: #FFFFFF; -webkit-font-smoothing: antialiased; }

/* ── Staari Brand Tokens ── */
:root {
  --navy:       #0F172A;
  --navy-light: #1E293B;
  --navy-mid:   #334155;
  --gold:       #F5C756;
  --gold-light: #FDE68A;
  --gold-dark:  #D4A017;
  --gray-text:  #6B7280;
  --gray-light: #9CA3AF;
  --bg-soft:    #F8FAFC;
  --bg-warm:    #FEFCE8;
  --white:      #FFFFFF;
  --success:    #10B981;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-2xl: 32px;
  --shadow-card: 0 2px 16px rgba(15,23,42,0.07), 0 1px 4px rgba(15,23,42,0.05);
  --shadow-navy: 0 8px 40px rgba(15,23,42,0.18);
  --shadow-gold: 0 4px 24px rgba(245,199,86,0.30);
  --shadow-hover: 0 12px 48px rgba(15,23,42,0.14);
}

/* ── Typography scale ── */
.text-display  { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
.text-headline { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; }
.text-title    { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 700; line-height: 1.2; }
.text-body-lg  { font-size: 1.125rem; line-height: 1.7; color: var(--gray-text); }
.text-body     { font-size: 1rem; line-height: 1.6; color: var(--gray-text); }
.text-caption  { font-size: 0.75rem; line-height: 1.5; color: var(--gray-light); }
.text-label    { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

/* ── Gradients ── */
.grad-navy { background: linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #0F2744 100%); }
.grad-gold { background: linear-gradient(135deg, #F5C756 0%, #FDE68A 50%, #D4A017 100%); }

/* ── Gold shimmer ── */
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.gold-shimmer {
  background: linear-gradient(90deg, #F5C756 0%, #FDE68A 35%, #F5C756 55%, #D4A017 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ── Staari Badge / Logo ── */
.staari-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #F5C756, #D4A017);
  box-shadow: var(--shadow-gold);
  border-radius: 50%;
}
.staari-badge-rect {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #F5C756, #D4A017);
  border-radius: var(--radius-md); padding: 5px 10px;
  box-shadow: var(--shadow-gold);
}
.score-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #F5C756, #D4A017);
  border-radius: 999px; padding: 3px 10px;
  font-size: 0.75rem; font-weight: 800; color: var(--navy);
  box-shadow: 0 2px 8px rgba(245,199,86,0.35);
}
.score-pill-lg {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #F5C756, #D4A017);
  border-radius: var(--radius-lg); padding: 10px 14px;
  box-shadow: var(--shadow-gold);
  min-width: 60px;
}

/* ── Progress bars ── */
.prog-track { height: 5px; background: #E2E8F0; border-radius: 99px; overflow: hidden; }
.prog-fill  { height: 100%; background: linear-gradient(90deg, #F5C756, #D4A017); border-radius: 99px; transition: width 1s ease; }
.prog-fill-blue  { background: linear-gradient(90deg, #3B82F6, #6366F1); }
.prog-fill-green { background: linear-gradient(90deg, #10B981, #059669); }

/* ── Cards ── */
.card {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-navy { background: var(--navy); }
.card-soft { background: var(--bg-soft); border-radius: var(--radius-xl); }

/* ── Séjour card (home grid) ── */
.sejour-card { border-radius: var(--radius-xl); overflow: hidden; background: var(--white); box-shadow: var(--shadow-card); transition: transform 0.22s ease, box-shadow 0.22s ease; }
.sejour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* Image container — fixed aspect ratio 16:10 */
.sejour-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}
.sejour-card-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.38s ease;
}
.sejour-card:hover .sejour-card-img { transform: scale(1.04); }

/* Legacy placeholder (kept for backward compat) */
.sejour-card-img-ph {
  width: 100%; height: 200px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

/* ── Type pill (Hôtel, Hôte, etc.) ── */
.type-pill {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; padding: 3px 10px;
  font-size: 0.7rem; font-weight: 700;
  backdrop-filter: blur(8px);
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,23,42,0.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 20px rgba(15,23,42,0.25);
}
.nav-link {
  color: #CBD5E1; font-size: 0.875rem; font-weight: 500;
  padding: 6px 12px; border-radius: 8px;
  transition: color 0.18s, background 0.18s;
  text-decoration: none;
}
.nav-link:hover { color: var(--gold); background: rgba(245,199,86,0.08); }
.nav-link.active { color: var(--gold); }
.nav-link-pill {
  background: linear-gradient(135deg, #F5C756, #D4A017); color: var(--navy);
  font-weight: 700; padding: 7px 16px; border-radius: 999px;
  font-size: 0.8125rem; text-decoration: none;
  transition: all 0.18s ease; box-shadow: var(--shadow-gold);
}
.nav-link-pill:hover { box-shadow: 0 6px 24px rgba(245,199,86,0.45); transform: translateY(-1px); }

/* ── Search bar (home) ── */
.search-bar {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px; padding: 8px 16px; gap: 10px;
  transition: all 0.2s ease; cursor: pointer;
  backdrop-filter: blur(8px);
}
.search-bar:focus-within, .search-bar:hover {
  background: rgba(255,255,255,0.16); border-color: rgba(245,199,86,0.45);
}
.search-input {
  background: transparent; border: none; outline: none;
  color: #fff; font-size: 0.875rem; font-weight: 500;
  width: 180px; min-width: 0;
}
.search-input::placeholder { color: #94A3B8; }

/* ── City filter pills ── */
.city-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease; background: var(--bg-soft); color: var(--navy);
}
.city-filter:hover { border-color: var(--gold); background: var(--bg-warm); }
.city-filter.active { background: var(--navy); color: var(--gold); border-color: var(--navy); }

/* ── Type filter tabs ── */
.type-tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 20px; cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.2s ease; color: var(--gray-text); white-space: nowrap;
}
.type-tab:hover { color: var(--navy); border-color: var(--gray-light); }
.type-tab.active { color: var(--navy); border-color: var(--navy); font-weight: 600; }
.type-tab i { font-size: 1.25rem; }
.type-tab span { font-size: 0.75rem; font-weight: 500; }

/* ── Checklist item ── */
.check-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 10px; transition: background 0.18s; }
.check-item:hover { background: var(--bg-soft); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       font-weight: 700; border-radius: var(--radius-lg); cursor: pointer;
       transition: all 0.2s ease; text-decoration: none; border: none; outline: none; }
.btn-gold { background: linear-gradient(135deg, #F5C756, #D4A017); color: var(--navy);
            box-shadow: var(--shadow-gold); }
.btn-gold:hover { box-shadow: 0 8px 32px rgba(245,199,86,0.45); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-outline-gold { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }
.btn-sm  { padding: 8px 18px; font-size: 0.8125rem; }
.btn-md  { padding: 11px 24px; font-size: 0.9375rem; }
.btn-lg  { padding: 14px 32px; font-size: 1rem; }
.btn-xl  { padding: 17px 40px; font-size: 1.0625rem; }

/* ── Testimonial ── */
.testimonial { border-left: 3px solid var(--gold); padding-left: 16px; }

/* ── Section wrapper ── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── Divider gold ── */
.divider-gold { height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 0; }

/* ── Stars ── */
.star { color: var(--gold); font-size: 0.75rem; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Grid layouts ── */
.grid-cards { display: grid; gap: 20px; }
@media (min-width: 640px)  { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grid-cards { grid-template-columns: repeat(4, 1fr); } }
.grid-3 { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 32px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-gold { 0%,100% { box-shadow: 0 0 0 0 rgba(245,199,86,0); } 50% { box-shadow: 0 0 0 8px rgba(245,199,86,0.2); } }
.anim-fade-up { animation: fadeUp 0.6s ease forwards; }
.pulse-gold { animation: pulse-gold 2s infinite; }

/* ── Mobile menu ── */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* ── PWA ── */
@media (display-mode: standalone) { .navbar { padding-top: env(safe-area-inset-top); } }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; } 
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }

/* ── Tooltip ── */
[data-tooltip] { position: relative; cursor: pointer; }
[data-tooltip]:hover::after {
  content: attr(data-tooltip); position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); background: var(--navy); color: #fff;
  font-size: 0.7rem; padding: 4px 10px; border-radius: 6px; white-space: nowrap;
  pointer-events: none; z-index: 50;
}

/* ── Horizontal scroll ── */
.scroll-x { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }

/* ── Location dot blink ── */
@keyframes blinkDot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.blink { animation: blinkDot 1.5s ease-in-out infinite; }

/* ── Backdrop overlay ── */
.backdrop { position: fixed; inset: 0; background: rgba(15,23,42,0.4); backdrop-filter: blur(4px); z-index: 200; display: none; }
.backdrop.open { display: block; }

/* ── Spin animation (used by NearbyStays loader) ── */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── City Selector dropdown ── */
.city-selector-dropdown {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-navy);
  overflow: hidden;
  max-height: 300px;
  overflow-y: auto;
}

/* ── Detection bar ── */
#detection-bar { min-height: 22px; transition: opacity 0.3s; }
