/* ============================================
   VAKOKA — Site Découverte Locale
   Modern 2026 Edition · Mobile-First Responsive
   Blue-themed design system
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* --- Brand: Blue --- */
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --primary-lighter: #60A5FA;
  --primary-soft: #EFF4FF;
  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;

  /* --- Accents --- */
  --secondary: #06B6D4;        /* cyan */
  --secondary-dark: #0891B2;
  --accent: #38BDF8;           /* sky */
  --indigo: #6366F1;

  /* --- Neutrals (cool slate) --- */
  --dark: #0F172A;             /* slate-900 */
  --dark-light: #1E293B;       /* slate-800 */
  --slate-700: #334155;
  --gray-100: #F4F7FB;
  --gray-200: #E7ECF3;
  --gray-300: #D6DEE9;
  --gray-400: #B4BFD0;
  --gray-500: #8A96A8;
  --gray-600: #64748B;
  --gray-700: #475569;
  --gray-800: #334155;
  --white: #FFFFFF;

  /* --- Status --- */
  --danger: #EF476F;
  --success: #10B981;
  --warning: #F59E0B;

  /* --- Effects --- */
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.06);
  --shadow: 0 4px 14px rgba(15,23,42,0.08);
  --shadow-md: 0 8px 24px rgba(15,23,42,0.10);
  --shadow-lg: 0 16px 40px rgba(15,23,42,0.14);
  --shadow-blue: 0 10px 30px rgba(37,99,235,0.28);
  --shadow-blue-lg: 0 18px 44px rgba(37,99,235,0.36);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --gradient-brand: linear-gradient(135deg, #2563EB 0%, #3B82F6 45%, #06B6D4 100%);
  --gradient-hero: linear-gradient(135deg, #1E40AF 0%, #2563EB 45%, #3B82F6 100%);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--gray-100);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

::selection {
  background: var(--primary);
  color: var(--white);
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 24px 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--dark);
  position: relative;
  padding-left: 14px;
  letter-spacing: -0.02em;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  background: var(--gradient-brand);
  border-radius: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}

.badge-primary { background: var(--primary); color: var(--white); }
.badge-secondary { background: var(--secondary); color: var(--white); }
.badge-accent { background: var(--warning); color: var(--dark); }
.badge-success { background: var(--success); color: var(--white); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* --- Popup Publicitaire (Overlay) --- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.popup-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.popup-ad {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: popupIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupIn {
  from { transform: scale(0.85) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.popup-ad-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15,23,42,0.45);
  color: var(--white);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(6px);
  transition: var(--transition-fast);
}

.popup-ad-close:hover { background: rgba(15,23,42,0.75); transform: rotate(90deg); }

.popup-ad-img {
  width: 100%;
  height: 200px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  text-align: center;
  padding: 20px;
  position: relative;
}

.popup-ad-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.25), transparent 50%);
  pointer-events: none;
}

.popup-ad-img .pub-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.popup-ad-img .pub-title {
  font-size: 1.3rem;
  font-weight: 800;
  position: relative;
}

.popup-ad-body {
  padding: 20px;
  text-align: center;
}

.popup-ad-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.popup-ad-body p {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 14px;
}

.popup-ad-body .btn {
  display: inline-block;
  padding: 11px 26px;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  box-shadow: var(--shadow-blue);
}

.popup-ad-body .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue-lg);
}

/* --- Header / Navbar --- */
.header {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(15,23,42,0.06), 0 4px 20px rgba(15,23,42,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions .btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--slate-700);
  transition: var(--transition-fast);
}

.header-actions .btn-icon:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  padding: 8px;
}

.btn-menu span {
  width: 20px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Mobile Nav (Side Drawer) --- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-nav {
  position: fixed;
  top: 0;
  left: -300px;
  width: 290px;
  height: 100%;
  background: var(--white);
  z-index: 2001;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.active { left: 0; }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-header .logo { font-size: 1.2rem; }

.mobile-nav-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gray-600);
  transition: var(--transition-fast);
}

.mobile-nav-close:hover { background: var(--gray-200); }

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-700);
  transition: var(--transition-fast);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.mobile-nav-links a .nav-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* --- Bottom Nav (Mobile) --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 -4px 24px rgba(15,23,42,0.08);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gray-500);
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

.bottom-nav a .nav-icon { font-size: 1.3rem; }

.bottom-nav a:hover,
.bottom-nav a.active {
  color: var(--primary);
}

.bottom-nav a.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 0 0 4px 4px;
}

/* Body padding for bottom nav */
body { padding-bottom: 74px; }

/* --- Hero / Search Bar --- */
.hero {
  background: var(--gradient-hero);
  position: relative;
  padding: 32px 16px 40px;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(6,182,212,0.45), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -15%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(99,102,241,0.4), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
  position: relative;
}

.hero p {
  font-size: 0.9rem;
  opacity: 0.92;
  margin-bottom: 18px;
  position: relative;
}

/* === Hero avec photo de fond (relief & ambiance) === */
.hero-photo { position: relative; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(30,64,175,0.92) 0%, rgba(37,99,235,0.82) 45%, rgba(6,182,212,0.78) 100%);
}
/* On remplace les blobs par des reflets plus doux par-dessus la photo */
.hero-photo::after {
  background: radial-gradient(circle at 80% 15%, rgba(255,255,255,0.18), transparent 45%),
              radial-gradient(circle at 10% 85%, rgba(0,0,0,0.22), transparent 55%);
}

.hero-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.hero-eyebrow [data-lucide] { width: 13px; height: 13px; }

.search-bar {
  display: flex;
  background: var(--white);
  border-radius: 100px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  border: 1px solid rgba(255,255,255,0.7);
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 13px 18px;
  font-size: 0.9rem;
  outline: none;
  color: var(--dark);
  background: transparent;
}

.search-bar button {
  background: var(--gradient-brand);
  color: var(--white);
  padding: 0 22px;
  font-size: 1.1rem;
  transition: var(--transition);
}

.search-bar button:hover { filter: brightness(1.08); }

/* --- Quick Filter Chips --- */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--white);
  color: var(--slate-700);
  border: 1.5px solid var(--gray-300);
  transition: var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.chip.active {
  background: var(--gradient-brand);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}

.chip .chip-icon { margin-right: 4px; }

/* --- Mood / Envy Categories Grid --- */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mood-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.mood-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius);
}

.mood-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.mood-card .mood-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
  position: relative;
}

.mood-card .mood-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
}

/* === Mood cards version photo colorée (relief & attractif) === */
.mood-photo {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  isolation: isolate;
  box-shadow: var(--shadow);
}
/* On neutralise le ::before hérité de .mood-card (gradient brand) */
.mood-photo::before { display: none; }
.mood-photo .mood-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--mood) 55%, transparent) 0%,
    color-mix(in srgb, var(--mood) 88%, #000) 100%);
  transition: opacity 0.3s ease;
}
.mood-photo .mood-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.mood-photo .mood-icon-wrap [data-lucide] {
  width: 24px;
  height: 24px;
  color: var(--white);
  stroke-width: 2.2;
}
.mood-photo .mood-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
  letter-spacing: -0.01em;
}
.mood-photo:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--mood) 45%, transparent);
  border-color: transparent;
}
.mood-photo:hover .mood-icon-wrap { transform: scale(1.12) rotate(-4deg); }
.mood-photo:hover .mood-veil { opacity: 0.92; }

/* --- Place Cards --- */
.place-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: block;
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-lighter);
}

.place-card-img {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
  /* Zoom doux au survol */
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* Léger zoom de la photo au survol (effet de relief) */
.place-card:hover .place-card-img {
  transform: scale(1.07);
}

/* Voile dégradé en bas de l'image pour faire ressortir les badges */
.place-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.28) 0%, transparent 45%, rgba(255,255,255,0.12) 100%);
  pointer-events: none;
  z-index: 1;
}

.place-card-img .place-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(15,23,42,0.2);
}

.place-card-img .place-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gray-500);
  transition: var(--transition-fast);
  z-index: 2;
}

.place-card-img .place-fav:hover,
.place-card-img .place-fav.liked {
  color: var(--danger);
  transform: scale(1.1);
}

.place-card-body {
  padding: 13px;
}

.place-card-body h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.place-card-body .place-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-bottom: 9px;
  flex-wrap: wrap;
}

.place-card-body .place-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.place-card-body .place-tags span {
  padding: 3px 9px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
}

/* Place Grid */
.place-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* --- Horizontal Scroll Cards --- */
.scroll-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scroll-cards::-webkit-scrollbar { display: none; }

.scroll-cards .place-card {
  flex-shrink: 0;
  width: 260px;
}

/* --- Publicité / Ads --- */
.ad-banner {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin: 16px 0;
  box-shadow: var(--shadow-md);
}

.ad-banner .ad-content {
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  position: relative;
}

.ad-banner .ad-label {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(4px);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 100px;
}

/* Ad styles — modern blue family */
.ad-orange .ad-content { background: linear-gradient(135deg, #2563EB, #06B6D4); }
.ad-teal .ad-content { background: linear-gradient(135deg, #0891B2, #0E7490); }
.ad-purple .ad-content { background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.ad-gold .ad-content { background: linear-gradient(135deg, #0EA5E9, #2563EB); }

.ad-content .ad-text {
  position: relative;
  z-index: 1;
}

.ad-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,0.22), transparent 55%);
  pointer-events: none;
}

.ad-content .ad-text h4 {
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.ad-content .ad-text p {
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
}

.ad-content .ad-text .ad-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 18px;
  background: var(--white);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 700;
  transition: var(--transition-fast);
  box-shadow: var(--shadow);
}

.ad-content .ad-text .ad-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Sidebar Ad (Desktop) */
.ad-sidebar {
  display: none;
}

/* --- Section with Layout (Sidebar) --- */
.content-with-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-main {
  flex: 1;
  min-width: 0;
}

.content-sidebar {
  width: 100%;
}

.content-sidebar .ad-sidebar-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
}

.content-sidebar .ad-sidebar-item .ad-content {
  min-height: 250px;
}

/* --- Map Container --- */
.map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(135deg, #DBEAFE, #CFFAFE);
  color: var(--gray-600);
}

.map-placeholder .map-icon { font-size: 2.5rem; }
.map-placeholder p { font-size: 0.85rem; }

/* --- Google Maps Embed Placeholder --- */
.google-map-embed {
  width: 100%;
  height: 100%;
  background: #E4EAF2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.google-map-embed::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(37,99,235,0.18) 49.5%, rgba(37,99,235,0.18) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(37,99,235,0.18) 49.5%, rgba(37,99,235,0.18) 50.5%, transparent 50.5%);
  background-size: 44px 44px;
  opacity: 0.5;
}

.google-map-embed span {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  box-shadow: var(--shadow-md);
}

/* Map markers */
.map-marker {
  position: absolute;
  z-index: 2;
  background: var(--gradient-brand);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  box-shadow: 0 6px 16px rgba(37,99,235,0.4);
  animation: markerDrop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes markerDrop {
  from { transform: rotate(-45deg) translateY(-20px); opacity: 0; }
  to { transform: rotate(-45deg) translateY(0); opacity: 1; }
}

.map-marker::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 4px;
  background: rgba(15,23,42,0.2);
  border-radius: 50%;
}

.map-marker span {
  transform: rotate(45deg);
}

/* --- Filters Bar --- */
.filters-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

.filter-btn {
  flex-shrink: 0;
  padding: 7px 15px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--white);
  color: var(--slate-700);
  border: 1.5px solid var(--gray-300);
  transition: var(--transition-fast);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--gradient-brand);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}

/* --- Result Counter --- */
.result-counter {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 14px;
}

.result-counter strong { color: var(--primary); }

/* --- Place Detail Page --- */
.place-detail-hero {
  width: 100%;
  height: 250px;
  background: var(--gray-200);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.place-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.28), transparent 55%);
  pointer-events: none;
}

.place-detail-hero .detail-back {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--dark);
  box-shadow: var(--shadow-md);
  z-index: 2;
  transition: var(--transition-fast);
}

.place-detail-hero .detail-back:hover { transform: scale(1.08); }

.place-detail-hero .detail-fav {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gray-500);
  box-shadow: var(--shadow-md);
  z-index: 2;
  transition: var(--transition-fast);
}

.place-detail-hero .detail-fav:hover { transform: scale(1.08); color: var(--danger); }

.place-detail-info {
  padding: 16px;
}

.place-detail-info h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.place-detail-info .detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.place-detail-info .detail-meta .rating {
  color: var(--warning);
  font-weight: 700;
}

.place-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-item {
  text-align: center;
  padding: 14px 8px;
  background: var(--primary-soft);
  border-radius: var(--radius);
  border: 1px solid var(--primary-100);
}

.stat-item .stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-item .stat-label {
  font-size: 0.62rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Tabs */
.detail-tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 16px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.detail-tabs::-webkit-scrollbar { display: none; }

.detail-tab {
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-600);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: var(--transition-fast);
  cursor: pointer;
  background: none;
}

.detail-tab:hover { color: var(--primary); }
.detail-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Reviews */
.review-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
}

.review-item:last-child { border-bottom: none; }

.review-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.review-info .review-name {
  font-size: 0.82rem;
  font-weight: 700;
}

.review-info .review-date {
  font-size: 0.7rem;
  color: var(--gray-500);
}

.review-stars {
  color: var(--warning);
  font-size: 0.75rem;
}

.review-text {
  font-size: 0.86rem;
  color: var(--slate-700);
  line-height: 1.6;
}

/* --- Full Map Page --- */
.fullmap-container {
  height: calc(100vh - 60px);
  position: relative;
}

.fullmap-map {
  width: 100%;
  height: 100%;
}

.fullmap-panel {
  position: absolute;
  bottom: 80px;
  left: 12px;
  right: 12px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 40vh;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--gray-200);
}

.fullmap-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fullmap-panel-header h3 {
  font-size: 0.95rem;
  font-weight: 800;
}

.fullmap-panel-header .toggle-panel {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.fullmap-panel-header .toggle-panel:hover { background: var(--gray-200); }

.fullmap-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

/* --- Favorites Page --- */
.favorites-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.favorites-empty .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.favorites-empty h3 { font-size: 1.1rem; color: var(--gray-700); margin-bottom: 8px; }
.favorites-empty p { font-size: 0.85rem; margin-bottom: 16px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue-lg);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* --- About Page --- */
.about-hero {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 48px 16px;
  text-align: center;
  color: var(--white);
}

.about-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6,182,212,0.4), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.about-hero h1 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  position: relative;
}

.about-hero p {
  font-size: 0.9rem;
  opacity: 0.9;
  position: relative;
}

.about-content {
  padding: 24px 16px;
}

.about-content h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.about-content p {
  font-size: 0.9rem;
  color: var(--slate-700);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-lighter);
}

.value-card .value-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
}

.value-card h4 {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.value-card p {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 36px 16px;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.footer-logo span { -webkit-text-fill-color: var(--accent); }

.footer-desc {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-400);
  padding: 4px 0;
  transition: var(--transition-fast);
}

.footer-col a:hover { color: var(--primary-lighter); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gray-400);
  transition: var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--gradient-brand);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue);
}

/* --- Page Header (Inner pages) --- */
.page-header {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 22px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.page-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(6,182,212,0.4), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header .back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
  transition: var(--transition-fast);
  position: relative;
  z-index: 1;
}

.page-header .back-btn:hover { background: rgba(255,255,255,0.35); }

.page-header h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
}

/* --- Search Page Specific --- */
.search-page-filters {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--gray-200);
}

.search-page-filters .filters-row {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.search-page-filters .filters-row::-webkit-scrollbar { display: none; }

.search-page-filters .filter-group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-page-filters .filter-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-600);
}

.search-page-filters .filter-select {
  padding: 7px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--white);
  color: var(--dark);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition-fast);
}

.search-page-filters .filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Toggle view */
.view-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}

.view-toggle button {
  width: 34px;
  height: 30px;
  border-radius: 100px;
  background: transparent;
  color: var(--gray-600);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-toggle button.active {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

/* --- Neighbourhoods Section --- */
.neighbourhood-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.neighbourhood-chips::-webkit-scrollbar { display: none; }

.neighbourhood-chips .n-chip {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--white);
  color: var(--slate-700);
  border: 1.5px solid var(--gray-300);
  transition: var(--transition-fast);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.neighbourhood-chips .n-chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-400);
  transition: background 0.2s ease;
}

.neighbourhood-chips .n-chip:hover {
  border-color: var(--secondary);
  color: var(--secondary-dark);
  transform: translateY(-2px);
}
.neighbourhood-chips .n-chip:hover::before { background: var(--secondary); }

.neighbourhood-chips .n-chip.active {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(6,182,212,0.35);
}
.neighbourhood-chips .n-chip.active::before { background: var(--white); }

/* --- Budget Indicator --- */
.budget-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
}

.budget-indicator .budget-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
}

.budget-indicator .budget-dot.active {
  background: var(--success);
}

/* --- Skeleton Loading --- */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

/* ============================================
   TABLET (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 32px 0; }

  .hero {
    padding: 56px 24px 64px;
  }

  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.02rem; }

  .mood-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .place-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .about-values {
    grid-template-columns: repeat(4, 1fr);
  }

  .content-with-sidebar {
    flex-direction: row;
    gap: 28px;
  }

  .content-main { flex: 1; }

  .content-sidebar {
    width: 300px;
    flex-shrink: 0;
  }

  .ad-sidebar { display: block; }

  .footer-links {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .popup-ad { max-width: 560px; }
  .popup-ad-img { height: 260px; }
  .popup-ad-img .pub-title { font-size: 1.5rem; }

  .place-detail-hero { height: 360px; }
  .place-detail-info h1 { font-size: 1.7rem; }

  .place-detail-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .fullmap-panel {
    max-width: 400px;
    bottom: 24px;
    left: auto;
    right: 24px;
    max-height: 60vh;
  }
}

/* ============================================
   DESKTOP (min-width: 1024px)
   ============================================ */
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  .section { padding: 40px 0; }

  /* Desktop nav replaces mobile nav */
  .btn-menu { display: none; }
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }

  .header .container {
    height: 68px;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .desktop-nav a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--slate-700);
    padding: 6px 0;
    position: relative;
    transition: var(--transition-fast);
  }

  .desktop-nav a:hover,
  .desktop-nav a.active {
    color: var(--primary);
  }

  .desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 2px;
  }

  .hero {
    padding: 80px 32px 96px;
  }

  .hero h1 { font-size: 2.8rem; }

  .mood-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .place-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .content-sidebar {
    width: 320px;
  }

  .popup-ad { max-width: 640px; }
  .popup-ad-img { height: 320px; }

  .place-detail-hero { height: 420px; }

  .place-card-img { height: 185px; }

  .scroll-cards .place-card { width: 300px; }

  .fullmap-panel {
    max-width: 420px;
    max-height: 70vh;
  }
}

/* Desktop nav hidden by default */
.desktop-nav { display: none; }

/* ============================================
   LARGE DESKTOP (min-width: 1280px)
   ============================================ */
@media (min-width: 1280px) {
  .mood-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .place-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Utility: text-truncate --- */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Print styles --- */
@media print {
  .header, .bottom-nav, .popup-overlay, .ad-banner, .ad-sidebar,
  .mobile-nav, .mobile-nav-overlay { display: none !important; }
  body { padding-bottom: 0; }
}

/* ============================================
   AUTH / CONNEXION PAGE
   ============================================ */
.btn-header-login {
  display: none;
  padding: 8px 18px;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: var(--shadow-blue);
}

.btn-header-login:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue-lg);
}

@media (min-width: 1024px) {
  .btn-header-login { display: inline-flex; align-items: center; gap: 6px; }
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 20px 16px;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(6,182,212,0.45), transparent 65%);
  border-radius: 50%;
}

.auth-page::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -15%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(99,102,241,0.4), transparent 65%);
  border-radius: 50%;
}

.auth-container {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.auth-header {
  text-align: center;
  padding: 36px 24px 16px;
}

.auth-header .auth-logo {
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.auth-header .auth-logo span { -webkit-text-fill-color: var(--accent); }

.auth-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.auth-header p {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.auth-body {
  padding: 16px 24px 32px;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  background: none;
  transition: var(--transition-fast);
}

.auth-tab:hover { color: var(--primary); }
.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Auth Form */
.auth-form { display: none; }
.auth-form.active { display: block; }

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
  background: var(--gray-100);
  font-family: inherit;
}

.form-group input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.form-group input::placeholder {
  color: var(--gray-400);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group { flex: 1; }

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.8rem;
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-600);
  cursor: pointer;
}

.form-options a {
  color: var(--primary);
  font-weight: 600;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-blue);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue-lg);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* Social Login */
.social-logins {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-social:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-social .social-icon {
  font-size: 1.2rem;
}

.btn-google:hover { border-color: #EA4335; color: #EA4335; }
.btn-facebook:hover { border-color: #1877F2; color: #1877F2; }
.btn-apple:hover { border-color: #000; color: #000; }

.auth-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 16px;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 700;
}

.auth-back {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.auth-back a { color: var(--primary); font-weight: 600; }

/* Password strength indicator */
.password-strength {
  height: 4px;
  border-radius: 2px;
  background: var(--gray-200);
  margin-top: 6px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease, background 0.3s ease;
}

.password-strength-bar.weak { width: 33%; background: var(--danger); }
.password-strength-bar.medium { width: 66%; background: var(--warning); }
.password-strength-bar.strong { width: 100%; background: var(--success); }

.password-strength-text {
  font-size: 0.7rem;
  margin-top: 4px;
  color: var(--gray-500);
}

/* --- Reduced motion accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   REFONTE 2.0 — Icônes Lucide, images réelles,
   publicités marques Malgaches, vraie carte
   ============================================ */

/* --- Icônes Lucide (général) --- */
/* Lucide transforme <i data-lucide> en <svg class="lucide lucide-<name>"> */
.lucide {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  display: inline-block;
  vertical-align: -0.125em;
}

/* Les icônes dans les boutons/icônes héritent de la taille du texte */
.btn-icon .lucide { width: 19px; height: 19px; }
.btn-header-login .lucide { width: 16px; height: 16px; }
.btn-primary .lucide,
.btn-submit .lucide { width: 17px; height: 17px; vertical-align: -3px; margin-left: 2px; }

/* Section-title : l'icône prend la couleur de marque */
.section-title .lucide {
  width: 18px;
  height: 18px;
  color: var(--primary);
  vertical-align: -3px;
  margin-right: 2px;
}

/* Mobile nav : icônes contour remplacent les emojis */
.mobile-nav-links a .nav-icon .lucide { width: 20px; height: 20px; }
.mobile-nav-close .lucide { width: 18px; height: 18px; }

.mobile-login-btn {
  background: var(--gradient-brand) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  padding: 10px 16px !important;
  font-weight: 700;
  text-align: center;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.mobile-login-btn .lucide { width: 18px; height: 18px; }

/* Bottom nav : icônes Lucide */
.bottom-nav a .nav-icon .lucide,
.header-actions .btn-icon .lucide { width: 22px; height: 22px; }

/* --- Hero : accent de couleur + icône recherche --- */
.hero-accent {
  background: linear-gradient(135deg, #67E8F9, #A5F3FC);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.search-bar { position: relative; }
.search-icon-left {
  display: flex;
  align-items: center;
  padding-left: 18px;
  color: var(--gray-400);
}
.search-icon-left .lucide { width: 18px; height: 18px; }
.search-bar input { padding-left: 10px; }
.search-bar button .lucide { width: 20px; height: 20px; }

/* --- Section head (titre + voir tout) --- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.see-all {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}
.see-all .lucide { width: 15px; height: 15px; }

/* --- Cartes de lieux : images réelles --- */
.place-card-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--gray-200);
}
/* L'ancien emoji centré disparaît au profit de l'image de fond */
.place-card-img > span:last-child:not(.place-badge):not(.place-fav) { display: none; }

/* Rating star couleur ambre */
.place-meta .rating {
  color: var(--warning);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.place-meta .rating .lucide { width: 13px; height: 13px; fill: var(--warning); }

/* Badge avec icône */
.badge .lucide { width: 11px; height: 11px; vertical-align: -1px; margin-right: 2px; }

/* Bouton favori : icône cœur contour */
.place-fav span .lucide { width: 17px; height: 17px; }
.place-fav.liked,
.place-fav:hover { color: var(--danger); }
.place-fav.liked span .lucide { fill: var(--danger); }

/* --- Carte interactive (OpenStreetMap iframe) --- */
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
  filter: saturate(1.05);
}
.fullmap-map #vakokaMap { width: 100%; height: 100%; z-index: 0; }

/* Mini carte lieu sur la page carte */
.mini-place {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
}
.mini-place .mini-img {
  width: 84px;
  min-width: 84px;
  height: auto;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-200);
}
.mini-place .place-card-body { flex: 1; }
.mini-place h3 { font-size: 0.85rem; }

/* ============================================
   PUBLICITÉS — Marques Malgaches
   Carte visuelle haut de gamme, jeune & attractive
   ============================================ */
.brand-ad {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin: 18px 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.brand-ad-label {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  color: var(--white);
  padding: 3px 9px;
  border-radius: 100px;
}
.brand-ad-img {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.brand-ad-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}
/* Le logo de marque flotte sur l'image */
.brand-mark {
  position: relative;
  z-index: 2;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  font-family: 'Inter', system-ui, sans-serif;
}
.brand-mark span {
  display: inline-block;
  margin: 0 4px;
  opacity: 0.6;
}
.brand-ad-body {
  padding: 16px 18px 18px;
}
.brand-ad-body h4 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.brand-ad-body p {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 12px;
  line-height: 1.5;
}
.brand-ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--brand, var(--primary));
  color: var(--white);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition-fast);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand, #2563EB) 35%, transparent);
}
.brand-ad-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.brand-ad-cta [data-lucide] { width: 15px; height: 15px; }

/* Variante mini (format horizontal : logo + texte côte à côte) */
.brand-ad-mini .brand-ad-body-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 14%, white),
    color-mix(in srgb, var(--brand-2, var(--brand)) 10%, white));
}
.brand-ad-mini .brand-mark {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  font-size: 1.3rem;
  background: var(--brand);
  color: var(--white);
  text-shadow: none;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 35%, transparent);
}
.brand-ad-mini .brand-ad-text { flex: 1; min-width: 0; }
.brand-ad-mini .brand-ad-text h4 { font-size: 0.95rem; }
.brand-ad-mini .brand-ad-text p { margin-bottom: 8px; font-size: 0.78rem; }

/* Variante sidebar */
.brand-ad-sidebar { margin: 0; }

/* --- Logos de marques (identité visuelle) --- */
.brand-mark-eth { color: #fff; }
.brand-mark-yas { color: #C9F26B; }
.brand-mark-telma { color: #fff; }
.brand-mark-telma span { color: #E6007E; opacity: 1; }
.brand-mark-orange { color: #000; font-weight: 900; }
.brand-mark-orange span { color: var(--brand); opacity: 1; }
.brand-mark-bni { color: #fff; }
.brand-mark-thb { color: #F2B705; }
.brand-mark-jovena { color: #fff; }

/* --- Bandeau partenaires (bas de page, style leexpress.mg) --- */
.partners-strip {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 18px !important;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  margin: 8px 0 4px;
}
.partners-head { text-align: center; margin-bottom: 14px; }
.partners-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-500);
  font-weight: 700;
}
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.partner-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--gray-100);
  color: var(--slate-700);
  border: 1px solid var(--gray-200);
  transition: var(--transition-fast);
  letter-spacing: -0.3px;
}
.partner-logo [data-lucide] { width: 15px; height: 15px; }
.partner-logo:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.partner-eth:hover { color: #0B7A3B; border-color: #0B7A3B; }
.partner-yas:hover { color: #0E8A4A; border-color: #0E8A4A; }
.partner-telma:hover { color: #5B2A86; border-color: #5B2A86; }
.partner-orange:hover { color: #FF7900; border-color: #FF7900; }
.partner-bni:hover { color: #1B6CA8; border-color: #1B6CA8; }
.partner-thb:hover { color: #C8102E; border-color: #C8102E; }

/* --- Popup pub : image de fond réelle --- */
.popup-ad-img {
  background-size: cover !important;
  background-position: center !important;
}
.popup-ad-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.82), rgba(6,182,212,0.72));
}
.popup-ad-img > div:last-child { position: relative; z-index: 2; }
.popup-ad-close [data-lucide] { width: 16px; height: 16px; }

/* --- Footer socials : icônes Lucide --- */
.footer-socials a [data-lucide] { width: 18px; height: 18px; }

/* --- Responsive des publicités marques --- */
@media (min-width: 768px) {
  .brand-ad-img { height: 220px; }
  .brand-ad-mini .brand-mark { width: 86px; height: 86px; font-size: 1.5rem; }
  .partners-logos { gap: 14px; }
  .partner-logo { padding: 11px 20px; font-size: 0.9rem; }
}
@media (min-width: 1024px) {
  .brand-ad-img { height: 260px; }
  .brand-mark { font-size: 1.4rem; }
}

/* ============================================
   STYLES COMPLÉMENTAIRES 2.0
   Détails pages : lieu, favoris, à propos, auth
   ============================================ */

/* --- Page détail lieu : hero avec image de fond --- */
.place-detail-hero {
  background-size: cover;
  background-position: center;
}
.place-detail-hero::after {
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 50%);
}
.detail-back,
.detail-fav { background: rgba(255,255,255,0.95) !important; }
.detail-back .lucide,
.detail-fav .lucide { width: 19px; height: 19px; }
.detail-fav span { display: flex; align-items: center; justify-content: center; }
.detail-fav.liked,
.detail-fav:hover { color: var(--danger) !important; }
.detail-fav.liked .lucide { fill: var(--danger); }

/* --- Onglets détail : icônes --- */
.detail-tab .lucide { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }

/* --- Photos (grille) page détail --- */
.detail-photo {
  height: 150px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--gray-200);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
.detail-photo:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

/* --- Étoiles des avis (Lucide SVG) --- */
.review-stars { display: inline-flex; gap: 1px; }
.review-stars .lucide { width: 13px; height: 13px; color: var(--warning); }

/* --- Méta détail : rating --- */
.detail-meta .rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--warning);
  font-weight: 700;
}
.detail-meta .rating .lucide { width: 14px; height: 14px; fill: var(--warning); }

/* --- Page header (inner pages) : icône + sous-titre --- */
.page-header h1 .lucide { width: 22px; height: 22px; vertical-align: -4px; }

/* --- Items de liste (favoris, contact à propos) --- */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  transition: var(--transition-fast);
}
.list-item:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--primary-lighter); }
.list-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.list-icon .lucide { width: 18px; height: 18px; }
.list-item-add {
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  box-shadow: none;
}
.list-item-add .list-icon { background: var(--white); color: var(--gray-500); }
.list-item-add:hover { border-color: var(--primary); }
.list-item-add:hover .list-icon { color: var(--primary); }

/* --- Étapes "Comment ça marche" (à propos) --- */
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-blue);
}

/* --- Cartes valeurs (à propos) : icône Lucide --- */
.value-icon .lucide { width: 28px; height: 28px; color: var(--primary); }

/* --- About hero : reprend le style hero-photo --- */
.about-hero.hero-photo { padding: 56px 24px; }
.about-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.about-hero.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(30,64,175,0.92) 0%, rgba(37,99,235,0.82) 45%, rgba(6,182,212,0.78) 100%);
}
.about-hero h1 { font-size: 2.2rem; position: relative; }

/* --- Auth : boutons sociaux avec icônes Lucide --- */
.btn-social .social-icon { display: inline-flex; }
.btn-social .social-icon .lucide { width: 18px; height: 18px; }
.form-group label .lucide { color: var(--gray-500); }
.btn-submit .lucide { margin-right: 2px; }
.auth-back a .lucide { margin-right: 2px; }
.auth-header h2 .lucide { color: var(--primary); }

/* --- View toggle (page recherche) : icônes --- */
.view-toggle button .lucide { width: 16px; height: 16px; }

/* --- boutons primary/outline : icônes --- */
.btn-primary .lucide,
.btn-outline .lucide { width: 17px; height: 17px; vertical-align: -3px; margin-right: 2px; }

/* --- Carte : mini cards horizontal dans fullmap-panel (carte.html) --- */
.fullmap-panel-header h3 .lucide { vertical-align: -3px; }

/* --- Fix : place-fav doit rester visible au-dessus de l'image --- */
.place-card-img .place-fav { z-index: 3; }
.place-card-img .place-badge { z-index: 3; }
