/* ============================================================
   Pépite Travel — V2 Homepage CSS
   Map-first redesign with bottom navigation (app-style)
   ============================================================ */

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

:root {
  --v2-sage: #4A5A50;
  --v2-sage-light: #5D6E60;
  --v2-earth: #1A1A1A;
  --v2-terracotta: #BD6338;
  --v2-cream: #F5F0E8;
  --v2-sand: #E8E3DC;
  --v2-white: #ffffff;
  --v2-border: rgba(26,26,26,0.1);
  --v2-shadow: 0 2px 16px rgba(0,0,0,0.12);
  --v2-shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --v2-radius: 16px;
  --v2-radius-sm: 10px;
  --v2-topbar-h: 68px;
  --v2-bottomnav-h: 68px;
  /* Safe area insets for notch phones */
  --v2-safe-top: env(safe-area-inset-top, 0px);
  --v2-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { height: 100%; }
body.v2-body { height: 100%; overflow: hidden; }

body.v2-body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--v2-white);
  color: var(--v2-earth);
  -webkit-font-smoothing: antialiased;
}

/* ── Shell ────────────────────────────────────────────────── */
.v2-shell {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Padding at bottom for fixed bottomnav (moved out of flex flow) */
  padding-bottom: calc(var(--v2-bottomnav-h) + var(--v2-safe-bottom));
}

/* ── Top bar ──────────────────────────────────────────────── */
.v2-topbar {
  height: var(--v2-topbar-h);
  padding-top: var(--v2-safe-top);
  background: var(--v2-white);
  border-bottom: 1px solid var(--v2-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 20px;
  padding-right: 16px;
  flex-shrink: 0;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Topbar: transparent + NO blur over map tab (map shows through) */
.v2-panel--active#tabCarte ~ * .v2-topbar,
body:has(#tabCarte.v2-panel--active) .v2-topbar {
  background: rgba(255,255,255,0.45);
  border-bottom: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Map intro overlay ──────────────────────────────────── */
.v2-map-intro-overlay {
  position: absolute;
  top: calc(var(--v2-topbar-h) + var(--v2-safe-top) + 16px);
  left: 16px;
  max-width: 320px;
  width: calc(100% - 148px);
  background: rgba(245, 243, 240, 0.92);
  border: 1px solid rgba(26,26,26,0.08);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  pointer-events: none;
  z-index: 450;
  text-align: left;
}
.v2-map-intro-overlay p {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--v2-earth);
  line-height: 1.55;
  margin: 0;
}

.v2-topbar-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}
.v2-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--v2-earth);
  text-decoration: none;
  letter-spacing: -0.03em;
  line-height: 1;
}
.v2-logo .logo-dot { color: var(--v2-terracotta); }
.v2-logo-subtitle {
  font-size: 0.8rem;
  color: rgba(26,26,26,0.5);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-top: 2px;
}
.v2-logo-subtitle-2 {
  font-size: 0.78rem;
  color: #C96A3D;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  margin-top: 3px;
}

.v2-topbar-actions { display: flex; gap: 8px; align-items: center; }
.v2-topbar-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-topbar-mascot img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--v2-border);
}
.v2-topbar-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--v2-sand);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--v2-earth);
  transition: background 0.15s;
  text-decoration: none;
}
.v2-topbar-btn:hover { background: var(--v2-sand-warm, #D6C6A8); }

.v2-topbar-settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--v2-earth);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  opacity: 0.7;
}
.v2-topbar-settings-btn:hover {
  opacity: 1;
  background: var(--v2-sand);
}

/* Settings icon in topbar — shown only on profil tab (tab 2) */
.v2-topbar-settings-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: rgba(26,26,26,0.5);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.v2-topbar-settings-icon:hover {
  color: var(--v2-earth);
  background: var(--v2-sand);
}

/* ── Tab panels ──────────────────────────────────────────── */
.v2-panel {
  flex: 1;
  overflow: hidden;
  display: none;
  position: relative;
}
.v2-panel--active { display: flex; flex-direction: column; }

/* Feed panel gets its own scroll */
#tabAccueil.v2-panel--active { display: block; overflow-y: auto; }
#tabProfil.v2-panel--active  { display: block; overflow-y: auto; }

/* Map panel fills remaining space */
#tabCarte { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
#tabCarte.v2-panel--active { display: block; }

/* ── Full-screen map ─────────────────────────────────────── */
.v2-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* WHY: fallback while tiles load — matches CartoDB Positron land color so the
     background blends seamlessly with the tile layer during initial render. */
  background-color: #E5EAE3;
}
/* WHY: override Leaflet default grey (#ddd) so any sub-pixel rounding between
   tiles shows this color instead of a visible grey seam. */
.leaflet-container {
  background-color: #E5EAE3;
}

/* Override Leaflet clusters to match brand colors */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-clip: padding-box;
}
.marker-cluster-small  { background-color: rgba(74,90,80,0.28); }
.marker-cluster-medium { background-color: rgba(74,90,80,0.38); }
.marker-cluster-large  { background-color: rgba(189,99,56,0.35); }

.marker-cluster-small div  { background-color: var(--v2-sage); }
.marker-cluster-medium div { background-color: var(--v2-sage); }
.marker-cluster-large div  { background-color: var(--v2-terracotta); }

.marker-cluster div {
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
}

/* Leaflet popup style */
.leaflet-popup-content-wrapper {
  border-radius: var(--v2-radius-sm) !important;
  box-shadow: var(--v2-shadow-lg) !important;
  padding: 0 !important;
  overflow: hidden;
}
.leaflet-popup-content { margin: 0 !important; width: auto !important; }
.leaflet-popup-tip-container { display: none; }

.v2-popup {
  width: 220px;
  font-family: 'DM Sans', sans-serif;
  position: relative;
}
.v2-popup-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.v2-popup-body { padding: 10px 12px 12px; }
.v2-popup-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.v2-popup-badge--pepite { background: #FEF3EC; color: var(--v2-terracotta); }
.v2-popup-badge--inco   { background: #EBF0F5; color: #3E5C76; }
.v2-popup-name { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.v2-popup-region-name { display: block; color: rgba(26,26,26,0.45); font-size: 0.74rem; font-weight: 500; margin-bottom: 4px; }
.v2-popup-region { color: rgba(26,26,26,0.55); font-size: 0.78rem; margin-bottom: 8px; }
/* WHY: !important + :link/:visited overrides needed because Leaflet ships
   .leaflet-container a { color:#0078A8 } at specificity (0,1,1) which beats
   a plain class selector. This is the 3rd attempt — belt-and-suspenders. */
.v2-popup-link,
.v2-popup-link:link,
.v2-popup-link:visited,
.leaflet-container .v2-popup-link {
  display: block;
  text-align: center;
  background: #4A5A50;
  color: #fff !important;
  text-decoration: none;
  padding: 7px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s;
}
.v2-popup-link:hover,
.leaflet-container .v2-popup-link:hover { background: #3b4840; color: #fff !important; }
.v2-popup-remove-btn {
  display: block;
  margin-top: 8px;
  width: 100%;
  padding: 6px 0;
  border: none;
  border-radius: 6px;
  background: #C96A3D;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: DM Sans, sans-serif;
}
.v2-popup-remove-btn:hover { opacity: 0.85; }

/* ── Geoloc + Random buttons (stacked right) ─────────────── */
.v2-geoloc-btn,
.v2-random-btn {
  position: absolute;
  right: 16px;
  z-index: 100;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--v2-white);
  border: none;
  box-shadow: var(--v2-shadow);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--v2-sage);
  transition: transform 0.15s, box-shadow 0.15s;
}
.v2-geoloc-btn {
  top: calc(var(--v2-topbar-h) + var(--v2-safe-top) + 12px);
}
.v2-random-btn {
  top: calc(var(--v2-topbar-h) + var(--v2-safe-top) + 66px); /* 44+12 gap */
}
.v2-geoloc-btn:hover,
.v2-random-btn:hover { transform: scale(1.08); box-shadow: var(--v2-shadow-lg); }
.v2-geoloc-btn.locating { animation: v2pulse 1.2s ease-in-out infinite; }
/* GPS pin icon in geoloc button */
.v2-geoloc-btn {
  background: var(--v2-white);
}

@keyframes v2pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
/* Dice click animation — rotation + scale pulse on user click */
.v2-random-btn.v2-dice-click {
  animation: v2DiceClick 0.5s ease-out forwards;
}
@keyframes v2DiceClick {
  0%   { transform: rotate(0deg) scale(1); }
  30%  { transform: rotate(15deg) scale(1.15); }
  60%  { transform: rotate(-10deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1); }
}

/* Dice spinning animation during random spot fly */
.v2-random-btn.v2-dice-spinning {
  animation: v2DiceSpin 0.6s linear infinite, v2DicePulse 0.8s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.9;
}
@keyframes v2DiceSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes v2DicePulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
.v2-itin-pin-active {
  width: 38px;
  height: 50px;
  overflow: visible;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.32));
}

/* ── Country clusters ───────────────────────────────────── */
.v2-country-cluster {
  background: var(--v2-white);
  border: 2px solid var(--v2-sage);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(74,90,80,0.35);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.v2-country-cluster:hover {
  transform: scale(1.12);
  box-shadow: 0 5px 20px rgba(74,90,80,0.5);
}
/* Upper half: flag image fills entire half-circle */
.v2-country-cluster-upper {
  width: 100%;
  height: 50%;
  overflow: hidden;
  position: relative;
}
.v2-country-cluster-flag-img {
  position: absolute;
  width: 150%;
  height: 150%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: center;
}
/* Fallback emoji (when no flag image) */
.v2-country-cluster-flag {
  font-size: 1.1rem;
  line-height: 1;
  padding-bottom: 1px;
}
/* Lower half: count centered */
.v2-country-cluster-lower {
  width: 100%;
  height: 50%;
  background: var(--v2-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.v2-country-cluster-count {
  font-size: 1rem;
  font-weight: 700;
  color: var(--v2-white);
  line-height: 1;
}
/* Country cluster icons always above normal spot/cluster markers */
.v2-country-cluster-icon {
  z-index: 1000 !important;
}
.v2-country-cluster-icon .leaflet-marker-icon {
  z-index: 1000 !important;
}
}

/* ── Filter chips row (chips only — Filtre button moved to search row) ─── */
.v2-filter-chips {
  position: absolute;
  top: calc(var(--v2-topbar-h) + var(--v2-safe-top) + 12px);
  left: 16px;
  right: 16px; /* full width — Filtre button is now in the search row below */
  z-index: 110;
  display: flex;
  gap: 8px;
  align-items: center;
  /* Solid background ensures chips are visible above map controls */
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 4px 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.v2-chip {
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  background: var(--v2-white);
  color: var(--v2-earth);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
  font-family: inherit;
}
.v2-chip:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.16); }
.v2-chip--active { background: var(--v2-sage); color: #fff; }
/* Etape 3/5: disabled chip state — grayed out when country not selected */
.v2-chip--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Pulse animation on Filtre button when active — intensified (task #2206421) */
#v2FilterBtn.v2-chip--active {
  animation: v2-filter-pulse 1s ease-in-out infinite;
  background: #C0522B !important;
  box-shadow: 0 0 0 3px rgba(192,82,43,0.35);
}
@keyframes v2-filter-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(192,82,43,0.35);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.95);
    box-shadow: 0 0 0 6px rgba(192,82,43,0.2);
  }
}

/* ── Filter bottom sheet overlay ─────────────────────────── */
.v2-filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.35);
  animation: v2-overlay-in 0.18s ease;
}
@keyframes v2-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Filter bottom sheet ─────────────────────────────────── */
.v2-filter-sheet {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--v2-white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  animation: v2-sheet-in 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes v2-sheet-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.v2-sheet-handle {
  width: 36px;
  height: 4px;
  background: #D0CAC4;
  border-radius: 2px;
  margin: 0 auto 16px;
}
.v2-sheet-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--v2-earth);
  margin-bottom: 18px;
  text-align: center;
}
.v2-filter-section {
  margin-bottom: 22px;
}
.v2-filter-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}
/* Prerequisite message — block above country selector (task #2211069) */
.v2-prerequisite-msg {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--v2-terracotta);
  text-align: center;
  padding: 10px 16px;
  background: rgba(168, 77, 46, 0.08);
  border-radius: 8px;
  margin-bottom: 12px;
}
#v2CountryRequiredHint {
  margin-bottom: 12px;
}
.v2-filter-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.v2-filter-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: var(--v2-white);
  color: var(--v2-earth);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.15s, color 0.15s, transform 0.1s;
  font-family: inherit;
  white-space: nowrap;
}
.v2-filter-chip-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.16); }
.v2-filter-chip-btn.selected {
  background: var(--v2-sage);
  color: #fff;
}
/* Type chips in filter sheet — same selected state, no duplicate styles needed */
.v2-type-chip.selected { background: var(--v2-sage); color: #fff; }
/* Etape 3/5: disabled chip state in filter sheet */
.v2-chip-btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
/* Type chip buttons in the sheet — match v2-chip base styles (task #2212411) */
.v2-type-chip { padding: 7px 14px; font-size: 0.82rem; font-weight: 500; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.v2-filter-sheet-footer {
  padding-top: 16px;
  border-top: 1px solid #EDE8E2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v2-filter-apply-btn {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  background: var(--v2-sage);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.v2-filter-apply-btn:hover { background: var(--v2-sage-dark); }
.v2-filter-apply-btn:disabled { background: #ccc; cursor: not-allowed; }
.v2-filter-reset-link {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
  font-family: inherit;
}
.v2-filter-reset-link:hover { color: var(--v2-sage); }

/* ── Map spot count badge ────────────────────────────────── */
.v2-map-count {
  position: absolute;
  bottom: calc(var(--v2-bottomnav-h) + var(--v2-safe-bottom) + 80px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26,26,26,0.7);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 100;
  backdrop-filter: blur(8px);
  pointer-events: none;
  white-space: nowrap;
}

/* ── Search row: search bar LEFT + Filtre button RIGHT (same line) ── */
.v2-search-row {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(var(--v2-bottomnav-h) + var(--v2-safe-bottom) + 12px);
  z-index: 420;
  display: flex;
  align-items: center;
  gap: 10px;
  /* Search input takes all space, Filtre button stays fixed width */
}
.v2-search-bar-wrap {
  flex: 1;  /* fill all remaining space between left edge and Filtre button — task #2215568 BUG 3 */
  display: flex;
  align-items: center;
  min-width: 0;
}

.v2-search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--v2-white);
  border-radius: var(--v2-radius);
  padding: 10px 14px;
  box-shadow: var(--v2-shadow-lg);
  min-width: 0;
}

.v2-search-icon { flex-shrink: 0; color: rgba(26,26,26,0.4); }

.v2-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--v2-earth);
  background: transparent;
  min-width: 0;
}
.v2-search-input::placeholder { color: rgba(26,26,26,0.4); }

/* Filtre button: same height as Créer un itinéraire (40px), 80px wide (50% of itinerary btn width) */
#v2FilterBtn.v2-chip {
  padding: 0 16px;
  height: 40px;
  min-width: 80px;
  width: auto;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.v2-grid-toggle-btn {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--v2-border);
  background: var(--v2-cream);
  color: var(--v2-earth);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.v2-grid-toggle-btn:hover { background: var(--v2-sand); }
.v2-grid-toggle-btn.active { background: var(--v2-earth); color: #fff; border-color: var(--v2-earth); }

/* ── Search results dropdown ─────────────────────────────── */
.v2-search-results {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(100% + 8px);
  background: var(--v2-white);
  border-radius: var(--v2-radius);
  box-shadow: var(--v2-shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  /* WHY: must be above paywall banner (z-index 410) so autocomplete is usable for non-premium */
  z-index: 420;
}

.v2-search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid var(--v2-border);
  text-decoration: none;
  color: var(--v2-earth);
}
.v2-search-result-item:last-child { border-bottom: none; }
.v2-search-result-item:hover { background: var(--v2-cream); }

.v2-search-result-thumb {
  width: 40px; height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--v2-sand);
}
.v2-search-result-info { flex: 1; min-width: 0; }
.v2-search-result-name { font-weight: 600; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-search-result-sub { font-size: 0.76rem; color: rgba(26,26,26,0.55); }

.v2-search-empty { padding: 20px; text-align: center; color: rgba(26,26,26,0.5); font-size: 0.86rem; }

/* ── Grid overlay ────────────────────────────────────────── */
.v2-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 90;
  background: var(--v2-white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.v2-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--v2-border);
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(26,26,26,0.6);
  margin-top: var(--v2-topbar-h);
}

.v2-grid-close {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--v2-earth); font-weight: 600; font-size: 0.86rem;
  font-family: inherit;
}

.v2-grid-list {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  padding-bottom: calc(var(--v2-bottomnav-h) + var(--v2-safe-bottom) + 16px);
  align-content: start;
}

.v2-grid-item {
  border-radius: var(--v2-radius-sm);
  overflow: hidden;
  background: var(--v2-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
  color: var(--v2-earth);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s;
}
.v2-grid-item:hover { transform: translateY(-2px); }
.v2-grid-item-img {
  width: 100%; height: 100px;
  background-size: cover;
  background-position: center;
  background-color: var(--v2-sand);
  position: relative;
}
.v2-grid-item-body { padding: 8px 10px; }
.v2-grid-item-name { font-weight: 600; font-size: 0.82rem; display: block; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-grid-item-sub { font-size: 0.72rem; color: rgba(26,26,26,0.5); }

/* ── Mascot logo — bottom center, circular, scroll-normal ─ */
.v2-mascot-footer {
  text-align: center;
  padding: 24px 0 8px;
}
.v2-mascot-footer-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.v2-mascot-footer-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 2px solid rgba(255,255,255,0.8);
}

/* ── Feed "Créer un itinéraire" CTA ─────────────────────────── */
.v2-feed-itin-cta-wrap {
  display: flex;
  justify-content: center;
  padding: 16px 16px 4px;
  margin-top: 40px;
}
.v2-feed-itin-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  background: #5B6A61;
  border: none;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.15s, background 0.15s;
}
.v2-feed-itin-cta-btn:active {
  transform: scale(0.97);
  background: #4a5651;
}
.v2-feed-itin-cta-btn--free {
  background: #C96A3D;
}
.v2-feed-itin-cta-btn--free:active {
  background: #b05a2f;
}

/* ── Bottom navigation — fixed at bottom ───────────────── */
.v2-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--v2-bottomnav-h) + var(--v2-safe-bottom));
  padding-bottom: var(--v2-safe-bottom);
  background: var(--v2-white);
  border-top: 1px solid var(--v2-border);
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  z-index: 200;
}

.v2-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(26,26,26,0.45);
  transition: color 0.15s;
  padding: 8px 4px;
  position: relative;
}
.v2-tab:hover { color: var(--v2-earth); }
.v2-tab--active { color: var(--v2-sage); }
.v2-tab--active .v2-tab-icon { stroke: var(--v2-sage); }

.v2-tab::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--v2-sage);
  border-radius: 0 0 3px 3px;
  transition: width 0.2s;
}
.v2-tab--active::before { width: 32px; }

.v2-tab-icon { flex-shrink: 0; transition: stroke 0.15s; }
.v2-tab-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }

/* ── Feed tab ─────────────────────────────────────────────── */
.v2-feed {
  min-height: 100%;
  padding-bottom: 20px;
  background: #f9f8f6;
}

.v2-hero-banner {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 4px;
}
@media (min-width: 640px) {
  .v2-hero-banner {
    height: 340px;
  }
}
@media (max-width: 767px) {
  .v2-hero-banner {
    height: auto;
    object-fit: contain;
  }
}

.v2-feed-hero {
  background: var(--v2-earth);
  color: var(--v2-white);
  padding: 32px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.v2-feed-hero-text h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.v2-feed-hero-text p  { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 4px; }

.v2-feed-hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--v2-sage);
  color: #fff;
  border: none;
  border-radius: var(--v2-radius-sm);
  padding: 12px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s;
  font-family: inherit;
}
.v2-feed-hero-cta:hover { background: var(--v2-sage-light); }

.v2-section { padding: 24px 0 4px; }
.v2-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 12px;
}
.v2-section-header h2 { font-size: 1.05rem; font-weight: 700; }
.v2-section-link { font-size: 0.82rem; color: #C96A3D; text-decoration: none; font-weight: 500; }

/* Horizontal scroll rows */
.v2-scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 20px 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.v2-scroll-row::-webkit-scrollbar { display: none; }

/* Dots for À découvrir horizontal scroll */
.v2-scroll-row-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 20px 4px;
}
.v2-scroll-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D9D9D9;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.25s;
  flex-shrink: 0;
}
.v2-scroll-row-dot.active {
  background: #C96A3D;
  width: 22px;
  border-radius: 4px;
}

/* Itinéraire step carousel wrapper — holds title + track + dots */
.v2-itin-carousel-wrap {
  position: absolute;
  top: calc(var(--v2-topbar-h) + var(--v2-safe-top) + 16px);
  left: 16px;
  right: auto;
  width: calc(100% - 110px);
  max-width: calc(100% - 110px);
  z-index: 450;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(4px);
  border-radius: var(--v2-radius);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
  padding: 8px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
@media (max-width: 480px) {
  .v2-itin-carousel-wrap {
    left: 12px;
    width: calc(100% - 104px);
    max-width: calc(100% - 104px);
  }
}

/* Header row: discreet title + step counter */
.v2-itin-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}
.v2-itin-carousel-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.v2-itin-step-counter {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--v2-terracotta);
}

/* Inner carousel — flows inside wrapper, only the track scrolls */
.v2-itin-carousel {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.v2-itin-carousel-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  pointer-events: all;
}
.v2-itin-carousel-track::-webkit-scrollbar { display: none; }
.v2-itin-carousel-card {
  flex: 0 0 92px;
  width: 92px;
  height: 96px;
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #1A1A1A;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: 2px solid transparent;
}
.v2-itin-carousel-card-img {
  width: 100%;
  height: 48px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.v2-itin-carousel-card-body {
  padding: 5px 6px 6px;
  min-height: 40px;
}
.v2-itin-carousel-card-body strong {
  display: -webkit-box;
  font-weight: 600;
  font-size: 0.65rem;
  line-height: 1.15;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1A1A1A;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.v2-itin-carousel-card--active {
  border: 2px solid #C96A3D;
  box-shadow: 0 4px 16px rgba(201, 106, 61, 0.30);
}

/* Dots row — centered under the track */
.v2-itin-step-dots,
.v2-itin-step-dot,
.v2-itin-step-dot--active {
  display: none !important;
}

/* Country cards */
.v2-country-card {
  flex-shrink: 0;
  width: 160px;
  border-radius: var(--v2-radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--v2-earth);
  background: var(--v2-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s;
}
.v2-country-card:hover { transform: translateY(-3px); }
.v2-country-card-img {
  width: 100%; height: 100px;
  background-size: cover; background-position: center;
  background-color: var(--v2-sand);
  border-radius: var(--v2-radius-sm) var(--v2-radius-sm) 0 0;
}
.v2-country-card-body { padding: 10px 12px; }
.v2-country-card-body strong { display: block; font-weight: 600; font-size: 0.84rem; margin-bottom: 3px; }
.v2-country-card-body span  { font-size: 0.72rem; color: rgba(26,26,26,0.5); display: block; }

/* Spot cards (scroll row) */
.v2-spot-card {
  flex-shrink: 0;
  width: 180px;
  border-radius: var(--v2-radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--v2-earth);
  background: var(--v2-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s;
}
.v2-spot-card:hover { transform: translateY(-3px); }
.v2-spot-card-img {
  width: 100%; height: 120px;
  background-size: cover; background-position: center;
  background-color: var(--v2-sand);
  position: relative;
  overflow: hidden;
}
.v2-spot-card-body { padding: 8px 10px; }
.v2-spot-card-body strong { display: block; font-weight: 600; font-size: 0.84rem; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-spot-card-body span  { font-size: 0.72rem; color: rgba(26,26,26,0.5); }
.v2-spot-card-meta {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  color: rgba(26,26,26,0.5);
}

/* Spot badge */
.v2-spot-badge {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.v2-spot-badge--pepite { background: rgba(255,255,255,0.92); color: var(--v2-terracotta); }
.v2-spot-badge--inco   { background: rgba(255,255,255,0.92); color: #3E5C76; }

/* Spot type badge — bottom of card body */
.v2-type-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  margin-top: 4px;
}
.v2-type-badge--pepite { background: #C96A3D; color: #FFFFFF !important; }
.v2-type-badge--incontournable { background: #3E5C76; color: #FFFFFF !important; }

/* Country destination card counters with inline icons */
.v2-country-card-body-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: rgba(26,26,26,0.5);
  font-weight: 500;
}
.v2-country-card-body-row svg { flex-shrink: 0; }
.v2-country-card-body-row + .v2-country-card-body-row { margin-top: 2px; }

/* 2-column grid */
.v2-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 8px;
}

.v2-grid-card {
  border-radius: var(--v2-radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--v2-earth);
  background: #FFFFFF;
  box-shadow: none;
  transition: transform 0.15s;
  display: block;
}
.v2-grid-card:hover { transform: translateY(-2px); }
.v2-grid-card-img {
  width: 100%; height: 100px;
  background-size: cover; background-position: center;
  background-color: var(--v2-sand);
  position: relative;
  overflow: hidden;
}
.v2-grid-card-body { padding: 10px; }
.v2-grid-card-body strong { display: block; font-weight: 700; font-size: 0.82rem; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--v2-earth); }
.v2-grid-card-body span  { font-size: 0.72rem; color: rgba(26,26,26,0.5); font-weight: 500; }
.v2-grid-card-meta {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  color: rgba(26,26,26,0.5);
}

/* Premium CTA banner */
.v2-premium-cta {
  margin: 24px 0 8px;
  left: 0;
  right: 0;
  background: rgba(74, 90, 80, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: var(--v2-radius);
  color: #fff;
  overflow: hidden;
}
/* Homepage feed tab CTA — 40px left/right inset */
#tabAccueil .v2-premium-cta {
  margin: 24px 15px 8px;
  left: auto;
  right: auto;
}
/* Map tab CTA — near full width with 40px left/right inset */
#tabCarte .v2-premium-cta {
  margin: 20px 20px;
  left: auto;
  right: auto;
}
.v2-premium-cta-inner {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.v2-premium-icon {
  font-size: 1.6rem;
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.v2-premium-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.v2-premium-cta-inner h3 { font-size: 1.1rem; font-weight: 700; }
.v2-premium-cta-inner p  { color: rgba(255,255,255,0.65); font-size: 0.86rem; line-height: 1.5; }
.v2-premium-btn {
  display: inline-block;
  background: var(--v2-sage);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--v2-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 4px;
  transition: background 0.15s;
}
.v2-premium-btn:hover { background: var(--v2-sage-light); }

/* ── Profile tab ──────────────────────────────────────────── */
.v2-profil-wrap { padding: 20px; }

.v2-profil-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--v2-white);
  border-radius: var(--v2-radius);
  padding: 18px;
  padding-right: 44px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 16px;
  position: relative;
}

/* Settings icon — top-right of profile header, icon only */
.v2-profil-settings-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26,26,26,0.4);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.v2-profil-settings-icon:hover {
  color: rgba(26,26,26,0.7);
  background: var(--v2-cream);
}
.v2-profil-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--v2-sage);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}
.v2-profil-avatar--img { background: none; }
.v2-profil-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Change 5: SVG travel avatar fills the circle */
.v2-profil-avatar svg { width: 100%; height: 100%; }
.v2-profil-info { display: flex; flex-direction: column; gap: 2px; }
.v2-profil-name { display: block; font-weight: 600; font-size: 0.95rem; }
.v2-profil-email { display: block; font-size: 0.78rem; color: rgba(26,26,26,0.5); word-break: break-all; }
.v2-profil-status { display: inline-block; margin-top: 4px; font-size: 0.72rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; width: fit-content; }
.v2-profil-premium { background: rgba(189,99,56,0.1); color: var(--v2-terracotta); }
.v2-profil-free    { background: rgba(26,26,26,0.06); color: rgba(26,26,26,0.5); }

.v2-profil-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--v2-white);
  border-radius: var(--v2-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  overflow: hidden;
  margin-bottom: 20px;
}

.v2-profil-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--v2-earth);
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid var(--v2-border);
  transition: background 0.12s;
}
.v2-profil-nav-item:last-child { border-bottom: none; }
.v2-profil-nav-item:hover { background: var(--v2-cream); }
.v2-profil-nav-item--premium { color: var(--v2-terracotta); }
.v2-profil-nav-item--muted   { color: rgba(26,26,26,0.5); }
.v2-profil-nav-item--logout  { color: rgba(26,26,26,0.5); }
.v2-profil-nav-item--edit    { color: rgba(26,26,26,0.5); font-weight: 500; }
/* PWA install button — matches "Modifier mon profil" style (sage, text-weight) */
.v2-profil-nav-item--pwa     { color: var(--v2-sage); font-weight: 500; }
.v2-profil-nav-item--pwa svg { stroke: var(--v2-sage); }
.v2-nav-arrow { margin-left: auto; color: rgba(26,26,26,0.3); }

/* "Mon carnet de voyage" section — above stats */
.v2-profil-travel-card {
  text-align: center;
  padding: 28px 20px 20px;
}
.v2-profil-travel-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--v2-earth);
  letter-spacing: -0.01em;
}

/* Profile stats — 3 counters */
.v2-profil-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--v2-white);
  border-radius: var(--v2-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 10px 8px;
  margin-bottom: 16px;
}
.v2-profil-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.v2-stat-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-bottom: 2px;
}
.v2-profil-stat-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1;
}
.v2-profil-stat-label {
  font-size: 0.58rem;
  color: rgba(26,26,26,0.5);
  text-transform: lowercase;
}
.v2-profil-stat-divider {
  width: 1px;
  height: 20px;
  background: var(--v2-border);
  flex-shrink: 0;
}

/* Guest profile */
.v2-profil-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 0 24px;
  gap: 12px;
}
.v2-profil-guest-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--v2-sand);
  display: flex; align-items: center; justify-content: center;
  color: rgba(26,26,26,0.35);
  margin-bottom: 8px;
}
.v2-profil-guest h2 { font-size: 1.25rem; font-weight: 700; }
.v2-profil-guest p  { color: rgba(26,26,26,0.6); font-size: 0.88rem; line-height: 1.6; max-width: 280px; }

.v2-auth-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: var(--v2-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.v2-auth-btn--primary {
  background: var(--v2-earth);
  color: #fff;
  margin-bottom: 8px;
}
.v2-auth-btn--primary:hover { background: #333; }
.v2-auth-btn--secondary {
  background: var(--v2-sand);
  color: var(--v2-earth);
}
.v2-auth-btn--secondary:hover { background: #d9d3ca; }

/* ── Inline Auth Module (Profil tab, logged-out) ─────────────── */
.v2-profil-auth {
  background: var(--v2-white);
  border-radius: var(--v2-radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 24px 20px;
  margin-bottom: 16px;
}

/* Google OAuth button */
.v2-profil-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  background: var(--v2-white);
  color: var(--v2-earth);
  border: 1.5px solid rgba(26,26,26,0.18);
  border-radius: var(--v2-radius-sm);
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.v2-profil-google-btn:hover {
  border-color: rgba(26,26,26,0.28);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  background: var(--v2-cream);
}

/* Divider */
.v2-profil-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 16px;
  color: rgba(26,26,26,0.35);
  font-size: 0.8rem;
}
.v2-profil-auth-divider::before,
.v2-profil-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--v2-border);
}

/* Login / Signup tabs */
.v2-profil-auth-tabs {
  display: flex;
  gap: 0;
  background: var(--v2-sand);
  border-radius: var(--v2-radius-sm);
  padding: 4px;
  margin-bottom: 20px;
}
.v2-profil-auth-tab {
  flex: 1;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: rgba(26,26,26,0.55);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
.v2-profil-auth-tab--active {
  background: #4A5A50;
  color: #fff;
}
.v2-profil-auth-tab:hover:not(.v2-profil-auth-tab--active) {
  background: rgba(74,90,80,0.1);
  color: #4A5A50;
}

/* Fields */
.v2-profil-auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.v2-profil-auth-form--hidden { display: none; }

.v2-profil-auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.v2-profil-auth-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(26,26,26,0.6);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.v2-profil-auth-field input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid rgba(26,26,26,0.14);
  border-radius: var(--v2-radius-sm);
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--v2-earth);
  background: var(--v2-cream);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
}
.v2-profil-auth-field input:focus {
  border-color: #4A5A50;
  box-shadow: 0 0 0 3px rgba(74,90,80,0.12);
  background: var(--v2-white);
}
.v2-profil-auth-field input::placeholder { color: rgba(26,26,26,0.35); }

/* Inline error alert */
.v2-profil-auth-error {
  background: #fdf0ee;
  border: 1px solid rgba(189,99,56,0.25);
  color: #a84f28;
  border-radius: var(--v2-radius-sm);
  padding: 10px 13px;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Inline success alert */
.v2-profil-auth-success {
  background: #f0fdf4;
  border: 1px solid rgba(74,90,80,0.25);
  color: #1A5A2E;
  border-radius: var(--v2-radius-sm);
  padding: 10px 13px;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Forgot password link */
.v2-profil-forgot-link {
  text-align: center;
  margin-top: 8px;
}
.v2-profil-forgot-link a {
  font-size: 0.82rem;
  color: rgba(74,90,80,0.7);
  text-decoration: none;
  font-weight: 500;
}
.v2-profil-forgot-link a:hover { color: #4A5A50; text-decoration: underline; }

/* Password reset inline form */
.v2-profil-reset-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--v2-cream);
  border-radius: var(--v2-radius-sm);
  border: 1px solid var(--v2-border);
}
.v2-profil-reset-header strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--v2-earth);
  margin-bottom: 4px;
}
.v2-profil-reset-header p {
  font-size: 0.8rem;
  color: rgba(26,26,26,0.55);
  line-height: 1.45;
  margin: 0;
}
.v2-profil-reset-error {
  background: #fdf0ee;
  border: 1px solid rgba(189,99,56,0.25);
  color: #a84f28;
  border-radius: var(--v2-radius-sm);
  padding: 9px 12px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.v2-profil-reset-cancel {
  background: none;
  border: none;
  color: rgba(74,90,80,0.6);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  padding: 2px 0;
  text-decoration: none;
}
.v2-profil-reset-cancel:hover { color: #4A5A50; }

/* ── Comparatif Gratuit vs Premium (logged-out profil) ── */
.v2-comparatif-section {
  margin-top: 24px;
  padding: 20px 16px;
  background: var(--v2-cream);
  border-radius: var(--v2-radius);
  border: 1px solid var(--v2-border);
}
.v2-comparatif-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--v2-earth);
  margin: 0 0 16px;
}
.v2-comparatif-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.v2-comparatif-col {
  background: #fff;
  border-radius: var(--v2-radius-sm);
  border: 1px solid var(--v2-border);
  overflow: hidden;
}
.v2-comparatif-col--premium {
  border-color: rgba(189, 99, 56, 0.3);
  box-shadow: 0 2px 8px rgba(189, 99, 56, 0.08);
}
.v2-comparatif-col-header {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 8px;
}
.v2-comparatif-col-header--free {
  background: rgba(74, 90, 80, 0.08);
  color: #4A5A50;
}
.v2-comparatif-col-header--premium {
  background: rgba(189, 99, 56, 0.1);
  color: #BD6338;
}
.v2-comparatif-list {
  list-style: none;
  margin: 0;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v2-comparatif-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--v2-earth);
  line-height: 1.35;
}
.v2-comparatif-list li svg {
  flex-shrink: 0;
}
.v2-comparatif-cta {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: #4A5A50;
  color: #fff;
  border: none;
  border-radius: var(--v2-radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.v2-comparatif-cta:hover { background: #3b4840; }

/* Submit button */
.v2-profil-auth-submit {
  width: 100%;
  padding: 13px;
  margin-top: 4px;
  background: #4A5A50;
  color: #fff;
  border: none;
  border-radius: var(--v2-radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.1s;
}
.v2-profil-auth-submit:hover { background: #5D6E60; }
.v2-profil-auth-submit:active { transform: scale(0.98); }

/* Promo code feedback */
.v2-promo-feedback { font-size: 0.82rem; margin-top: 5px; min-height: 1.2em; transition: color 0.15s; }
.v2-promo-feedback.valid   { color: #16a34a; font-weight: 600; }
.v2-promo-feedback.invalid { color: #dc2626; }
.v2-promo-feedback.loading { color: rgba(26,26,26,0.4); }

/* Premium activation modal */
.v2-premium-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.v2-premium-modal {
  background: #fff; border-radius: 16px; padding: 36px 28px;
  max-width: 340px; width: 90%; text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2); animation: v2ModalIn 0.3s ease;
}
.v2-premium-modal-icon { font-size: 2.5rem; margin-bottom: 12px; }
.v2-premium-modal-title {
  font-size: 1.35rem; font-weight: 700; color: #1A1A1A; margin-bottom: 8px;
}
.v2-premium-modal-text {
  font-size: 0.95rem; color: #555; line-height: 1.6; margin-bottom: 16px;
}
.v2-premium-modal-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #FFF8F0; color: #BD6338; padding: 8px 16px;
  border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}
.v2-premium-modal-btn {
  display: block; width: 100%; padding: 13px; background: #4A5A50;
  color: #fff; border: none; border-radius: 8px; font-size: 0.95rem;
  font-weight: 700; cursor: pointer; transition: background 0.15s;
}
.v2-premium-modal-btn:hover { background: #5D6E60; }
@keyframes v2ModalIn { from { opacity:0; transform:scale(0.9); } to { opacity:1; transform:scale(1); } }

.v2-profil-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--v2-white);
  border-radius: var(--v2-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  overflow: hidden;
  margin-top: 16px;
}
.v2-profil-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--v2-border);
}
.v2-profil-feature:last-child { border-bottom: none; }
.v2-profil-feature-icon { font-size: 1.5rem; flex-shrink: 0; }
.v2-profil-feature strong { display: block; font-weight: 600; font-size: 0.88rem; }
.v2-profil-feature p      { font-size: 0.76rem; color: rgba(26,26,26,0.55); margin: 0; }

/* ── Leaflet controls — push below filter chips ──────────── */
#tabCarte .leaflet-control-zoom {
  top: calc(var(--v2-topbar-h) + var(--v2-safe-top) + 12px);
  right: 70px !important;
  left: auto !important;
}

/* Map tab "Mes favoris" button positioning */
#tabCarte .v2-profil-favs-map-btn {
  position: absolute;
  top: calc(var(--v2-topbar-h) + 50px);
  left: 50px;
  z-index: 900;
}
.leaflet-top.leaflet-right { top: calc(var(--v2-topbar-h) + var(--v2-safe-top) + 12px) !important; }
.leaflet-top.leaflet-left  { display: none; } /* hide default zoom; we use custom geoloc */

.leaflet-control-zoom {
  border: none !important;
  box-shadow: var(--v2-shadow) !important;
}
.leaflet-control-zoom a {
  background: var(--v2-white) !important;
  color: var(--v2-earth) !important;
  border: none !important;
  font-size: 1.1rem !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
}
.leaflet-control-zoom-in  { border-radius: 10px 10px 0 0 !important; }
.leaflet-control-zoom-out { border-radius: 0 0 10px 10px !important; }

/* ── Desktop: layout stays mobile (sidebar hidden, single column) ── */
/* Sidebar is intentionally suppressed for all screen widths per owner request.
   Mobile layout (no sidebar, stacked columns) applies universally. */

/* ── Desktop sidebar nav (injected via JS) ── */
.v2-desktop-sidebar {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 20px 16px;
  background: var(--v2-white);
  border-right: 1px solid var(--v2-border);
  width: 200px;
  flex-shrink: 0;
  overflow-y: auto;
}
.v2-sidebar-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--v2-earth);
  text-decoration: none;
  margin-bottom: 16px;
  padding: 0 8px;
}
.v2-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(26,26,26,0.7);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  width: 100%;
}
.v2-sidebar-link:hover { background: var(--v2-cream); color: var(--v2-earth); }
.v2-sidebar-link--active { background: var(--v2-cream); color: var(--v2-terracotta); font-weight: 700; }
.v2-sidebar-link--premium { color: var(--v2-terracotta); font-weight: 600; }

/* ── Heart / Favorites button ─────────────────────────── */

/* Wrapper needed to position heart over card without nesting button inside <a> */
.v2-spot-card-wrap, .v2-grid-card-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
}
.v2-spot-card-wrap .v2-spot-card { width: 180px; }
.v2-grid-card-wrap .v2-grid-card  { width: 100%; }

.v2-heart-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26,26,26,0.5);
  transition: transform 0.15s, background 0.15s, color 0.15s;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.v2-heart-btn:hover { transform: scale(1.15); background: #fff; }
.v2-heart-btn.active .v2-heart-icon {
  fill: #e74c3c;
  stroke: #e74c3c;
  color: #e74c3c;
}
.v2-heart-btn.active { color: #e74c3c; }

/* Grid view heart buttons — positioned at top-right of each grid card */
.v2-grid-item-wrap {
  position: relative;
  display: inline-block;
}
.v2-heart-btn--grid {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 10;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26,26,26,0.5);
  transition: transform 0.15s, background 0.15s, color 0.15s;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.v2-heart-btn--grid:hover { transform: scale(1.15); background: #fff; }
.v2-heart-btn--grid.active .v2-heart-icon {
  fill: #e74c3c;
  stroke: #e74c3c;
  color: #e74c3c;
}
.v2-heart-btn--grid.active { color: #e74c3c; }

/* Profile favorites hearts — same styling but in a card context */
.v2-heart-btn--fav {
  z-index: 10;
}

.v2-popup .v2-heart-btn--popup {
  right: 23px;
  color: #4A5A50;
  background: rgba(255,255,255,0.96);
}

.v2-popup .v2-heart-btn--popup .v2-heart-icon {
  stroke: #4A5A50;
}

.v2-popup .v2-heart-btn--popup.active .v2-heart-icon {
  fill: #e74c3c;
  stroke: #e74c3c;
}

/* Profile favorites card hover — keep heart button visible */
.v2-profil-fav-card-wrap:hover .v2-heart-btn--fav {
  opacity: 1;
}

/* Favorites active chip on map — below Filtre button row */
.v2-fav-chip-active {
  position: absolute;
  top: calc(var(--v2-topbar-h) + var(--v2-safe-top) + 96px);
  left: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e74c3c;
  color: #fff;
  padding: 6px 12px 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  white-space: nowrap;
}
.v2-fav-chip-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
  font-family: inherit;
}
.v2-fav-chip-close:hover { color: #fff; }

/* Country filter chip — below Filtre button row, sage color, pulse animation */
.v2-country-chip-active {
  position: absolute;
  top: calc(var(--v2-topbar-h) + var(--v2-safe-top) + 96px);
  left: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #4A5A50;
  color: #fff;
  padding: 6px 12px 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  white-space: nowrap;
  animation: v2-country-pulse 2s ease-in-out infinite;
}
@keyframes v2-country-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Country card flag display — use cover for uniform card format */
.v2-country-card-img--flag {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--v2-sand);
}

/* Profile tab — favorites section */
.v2-profil-favs {
  background: var(--v2-white);
  border-radius: var(--v2-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 18px;
  margin-bottom: 16px;
  margin-top: 4px;
}
.v2-profil-fav-count { font-size: 0.78rem; color: rgba(26,26,26,0.4); font-weight: 500; margin-left: 8px; }

/* Favorites grid — 2-column card layout with prominent images */
.v2-profil-fav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.v2-profil-fav-empty {
  text-align: center;
  color: rgba(26,26,26,0.4);
  font-size: 0.86rem;
  padding: 20px 0;
}

.v2-fav-country-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--v2-sage);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 0 8px;
  border-bottom: 1px solid rgba(74,90,80,0.12);
  margin-bottom: 10px;
}
.v2-fav-country-header:first-child {
  padding-top: 0;
}

.v2-profil-fav-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 8px;
}

.v2-profil-fav-card-wrap {
  position: relative;
}

/* Wrapper needed to position heart over card */
.v2-profil-fav-card {
  border-radius: var(--v2-radius);
  overflow: hidden;
  background: var(--v2-white);
  text-decoration: none;
  color: var(--v2-earth);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.v2-profil-fav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
}

.v2-profil-fav-card-img {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--v2-sand);
  position: relative;
}

.v2-profil-fav-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.v2-profil-fav-card-name {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--v2-earth);
  letter-spacing: -0.01em;
}
.v2-profil-fav-card-country {
  font-size: 0.76rem;
  color: rgba(26,26,26,0.5);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Pepite paywall banner (above search bar, non-premium) ── */
.v2-pepite-paywall {
  position: absolute;
  left: 20px;
  right: 20px;
  width: auto;
  margin-left: 0;
  /* sit above the search bar with extra clearance */
  bottom: calc(var(--v2-bottomnav-h) + var(--v2-safe-bottom) + 12px + 52px + 16px);
  z-index: 410;
  display: flex;
  pointer-events: auto;
}
.v2-pepite-paywall-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(74, 90, 80, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  text-decoration: none;
  border-radius: var(--v2-radius);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
  width: 100%;
}
.v2-pepite-paywall-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.v2-pepite-paywall-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  overflow: hidden;
}
.v2-pepite-paywall-mascot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.v2-pepite-paywall-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.v2-pepite-paywall-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-pepite-paywall-cta {
  font-size: 0.74rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}
.v2-pepite-paywall-arrow {
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
  margin-left: auto;
}

/* ── Profile favorites section header ─────────────────── */
.v2-profil-favs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.v2-profil-favs-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0;
}
.v2-profil-favs-map-btn {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #C96A3D;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.v2-profil-favs-map-btn:hover { background: #b05d32; }
.v2-profil-favs-map-btn svg { stroke: #fff; }

/* ── Profile "Afficher sur la carte" button ──────────── */
.v2-profil-show-map-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #4A5A50;
  color: #fff;
  border: none;
  border-radius: var(--v2-radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  transition: background 0.15s;
}
.v2-profil-show-map-btn:hover { background: #3b4840; }

/* ── Profile "Créer un itinéraire" button ────────────── */
.v2-profil-create-itin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #4A5A50;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s;
}
.v2-profil-create-itin-btn:hover { background: #3b4840; }

/* ── Compact premium CTA (top of Accueil feed) ─────────── */
.v2-premium-cta--compact .v2-premium-cta-inner {
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 14px 16px;
  gap: 12px;
}
.v2-premium-cta--compact .v2-premium-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  margin-bottom: 0;
}
.v2-premium-cta--compact .v2-premium-cta-text {
  flex: 1;
  min-width: 0;
}
.v2-premium-cta--compact h3 { font-size: 0.9rem; font-weight: 700; }
.v2-premium-cta--compact p  { font-size: 0.76rem; color: rgba(255,255,255,0.7); margin-top: 2px; }
.v2-premium-btn--sm {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.v2-premium-btn--sm:hover { background: rgba(255,255,255,0.28); }

/* ── Nouveautés section title with custom icon ─────────── */
.v2-section-title-icon {
  display: flex;
  align-items: center;
  gap: 7px;
}
.v2-nouveautes-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Star icon for Pépites populaires section title */
.v2-pepites-star-icon {
  flex-shrink: 0;
  stroke: #1A1A1A;
  color: #1A1A1A;
}

/* Title blur removed: pépites cachées now show "Pépite cachée" text clearly */

/* Country card as button (reset button styles, preserve card styling) */
.v2-country-card {
  cursor: pointer;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
}

/* ── Lock icon + blur for non-premium pépite images ── */
.v2-blur-lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
}

/* Blur the actual image behind the lock icon for non-premium hidden gems */
.v2-spot-card-img:has(.v2-blur-lock-icon),
.v2-grid-card-img:has(.v2-blur-lock-icon) {
  overflow: hidden;
}
.v2-spot-card-img:has(.v2-blur-lock-icon)::before,
.v2-grid-card-img:has(.v2-blur-lock-icon)::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  -webkit-filter: blur(3px);
  z-index: 1;
}
/* Ensure lock icon sits above the blur pseudo-element */
.v2-spot-card-img:has(.v2-blur-lock-icon) .v2-blur-lock-icon,
.v2-grid-card-img:has(.v2-blur-lock-icon) .v2-blur-lock-icon {
  z-index: 5;
}

/* ── Scrollbar hide utility ─────────────────────────────── */
.v2-feed, .v2-profil-wrap, .v2-grid-list {
  scrollbar-width: thin;
  scrollbar-color: var(--v2-sand) transparent;
}
.v2-feed::-webkit-scrollbar,
.v2-profil-wrap::-webkit-scrollbar,
.v2-grid-list::-webkit-scrollbar { width: 4px; }
.v2-feed::-webkit-scrollbar-thumb,
.v2-profil-wrap::-webkit-scrollbar-thumb,
.v2-grid-list::-webkit-scrollbar-thumb { background: var(--v2-sand); border-radius: 2px; }

/* ── Auth success toasts ────────────────────────────────── */
@keyframes v2-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes v2-toast-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(-6px); }
}
.v2-auth-toast { animation: v2-toast-in 0.2s ease-out; }

/* WHY removed: task requires ZERO floating — blur only for locked cards */

/* ── Profile sub-tabs (Favoris / Itinéraires) ─────────── */
.v2-profil-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.v2-profil-subtab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--v2-white);
  border: 1.5px solid #e8e4dc;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--v2-sage);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.v2-profil-subtab:hover { border-color: #4A5A50; }
.v2-profil-subtab--active {
  background: #4A5A50;
  color: #fff;
  border-color: #4A5A50;
}

.v2-profil-subpanel {
  margin-bottom: 24px;
}


/* ── Profil tab: simplified auth styles ─────────────────── */
.v2-profil-auth-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--v2-earth);
  margin-bottom: 18px;
  text-align: center;
}

.v2-profil-auth-field-opt {
  font-weight: 400;
  font-size: 0.75rem;
  color: rgba(26,26,26,0.4);
  text-transform: none;
  letter-spacing: 0;
}

.v2-profil-have-account {
  text-align: center;
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(26,26,26,0.5);
}
.v2-profil-have-account a {
  color: #4A5A50;
  font-weight: 600;
  text-decoration: none;
}
.v2-profil-have-account a:hover { text-decoration: underline; }

.v2-profil-settings-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding: 10px;
  color: rgba(26,26,26,0.4);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
  border-top: 1px solid var(--v2-border);
  padding-top: 16px;
  margin-top: 16px;
}
.v2-profil-settings-link:hover { color: var(--v2-earth); }

/* ── Itinerary active actions (cancel + save, shown when itinerary on map) */
.v2-profil-itins-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.v2-profil-itins-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--v2-earth);
  margin: 0;
}
.v2-profil-itin-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.v2-profil-itin-card {
  background: var(--v2-white);
  border-radius: var(--v2-radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
}
.v2-profil-itin-card-header {
  padding: 14px 16px 10px;
  border-bottom: none;
}
.v2-itin-title-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}
.v2-profil-itin-card-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--v2-earth);
}
.v2-profil-itin-card-date {
  font-size: 0.72rem;
  color: rgba(26,26,26,0.4);
}
.v2-profil-itin-card-actions {
  display: flex;
  gap: 6px;
  padding: 0 16px 8px;
  flex-wrap: wrap;
}
.v2-profil-itin-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: none;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.v2-profil-itin-action-btn--pdf {
  background: #C96A3D;
  color: #fff;
}
.v2-profil-itin-action-btn--pdf:hover { background: #a8522d; }
.v2-profil-itin-action-btn--delete {
  background: #ffffff;
  color: #000000;
}
.v2-profil-itin-action-btn--delete:hover { background: #f0f0f0; }
.v2-profil-itin-spots {
  padding: 10px 16px;
}
.v2-profil-itin-spot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--v2-border);
}
.v2-profil-itin-spot:last-child { border-bottom: none; }
.v2-profil-itin-spot-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.v2-profil-itin-spot-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--v2-sage);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-profil-itin-spot-name {
  font-weight: 600;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-profil-itin-spot-cat {
  font-size: 0.72rem;
  color: rgba(26,26,26,0.45);
}
.v2-profil-itin-spot-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(220,38,38,0.6);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
}
.v2-profil-itin-spot-remove:hover { background: rgba(220,38,38,0.1); color: #DC2626; }
/* Clickable spot link in itinerary expand list */
.v2-profil-itin-spot-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.v2-profil-itin-spot-link:hover .v2-profil-itin-spot-name {
  color: #BD6338;
  text-decoration: underline;
}
.v2-profil-itin-empty {
  text-align: center;
  color: rgba(26,26,26,0.4);
  font-size: 0.86rem;
  padding: 20px 0;
}

/* ── CTA flash animation (non-premium, map tab) ─────── */
@keyframes v2CtaFlash {
  0%  { box-shadow: 0 4px 24px rgba(0,0,0,0.25); opacity: 1; border-radius: var(--v2-radius); }
  25% { box-shadow: 0 4px 32px rgba(189,99,56,0.7), 0 0 0 4px rgba(189,99,56,0.25); opacity: 0.92; border-radius: var(--v2-radius); }
  50% { box-shadow: 0 4px 24px rgba(0,0,0,0.3); opacity: 1; border-radius: var(--v2-radius); }
  75% { box-shadow: 0 4px 32px rgba(189,99,56,0.5), 0 0 0 4px rgba(189,99,56,0.15); opacity: 0.96; border-radius: var(--v2-radius); }
  100%{ box-shadow: 0 4px 24px rgba(0,0,0,0.25); opacity: 1; border-radius: var(--v2-radius); }
}
.cta-flash { animation: v2CtaFlash 0.6s ease-in-out 5 !important; }

/* ═══ Profile Edit Modal ══════════════════════════════════════════════ */
.v2-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.v2-profile-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.v2-profile-modal-box {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 0 24px 40px;
  box-shadow: 0 -4px 40px rgba(0,0,0,0.12);
  animation: v2SlideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes v2SlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.v2-profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 20px;
  border-bottom: 1px solid rgba(26,26,26,0.08);
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  background: #ffffff;
}

.v2-profile-modal-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0;
}

.v2-profile-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(26,26,26,0.4);
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}
.v2-profile-modal-close:hover {
  background: rgba(26,26,26,0.06);
  color: #1A1A1A;
}

.v2-profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.v2-profile-avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--v2-border, #E8E3D8);
}
.v2-profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-profile-avatar-preview--default {
  background: var(--v2-sage, #4A5A50);
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-profile-avatar-preview--default svg {
  width: 100%;
  height: 100%;
}

.v2-profile-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v2-btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--v2-border, #E8E3D8);
  background: white;
  color: var(--v2-sage, #4A5A50);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  width: fit-content;
}
.v2-btn-upload:hover { border-color: var(--v2-sage, #4A5A50); background: var(--v2-sage-light, rgba(74,90,80,0.08)); }
.v2-btn-upload--disabled { cursor: default; color: rgba(74,90,80,0.5); }

.v2-btn-remove-avatar {
  background: none;
  border: none;
  color: rgba(26,26,26,0.4);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.v2-btn-remove-avatar:hover { color: var(--v2-sage, #4A5A50); }

.v2-profile-avatar-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.v2-profile-avatar-option {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--v2-border, #E8E3D8);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.v2-profile-avatar-option:hover { border-color: var(--v2-sage, #4A5A50); transform: scale(1.05); }
.v2-profile-avatar-option.selected { border-color: var(--v2-sage, #4A5A50); border-width: 3px; }

.v2-profile-modal-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.v2-profile-modal-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

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

.v2-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(26,26,26,0.6);
  margin-bottom: 6px;
}

.v2-form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--v2-border, #E8E3D8);
  font-size: 0.95rem;
  font-family: 'DM Sans', Arial, sans-serif;
  background: white;
  color: #1a1a1a;
  box-sizing: border-box;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.v2-form-input:focus {
  outline: none;
  border-color: var(--v2-sage, #4A5A50);
  box-shadow: 0 0 0 3px rgba(74,90,80,0.1);
}
.v2-form-input::placeholder { color: rgba(26,26,26,0.35); }

.v2-password-wrapper { position: relative; }
.v2-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(26,26,26,0.35);
  padding: 4px;
  display: flex;
  align-items: center;
}
.v2-password-toggle:hover { color: var(--v2-sage, #4A5A50); }

.v2-form-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 18px;
  color: rgba(26,26,26,0.4);
  font-size: 0.8rem;
  font-weight: 500;
}
.v2-form-section-divider::before,
.v2-form-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--v2-border, #E8E3D8);
}

.v2-profile-submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--v2-sage, #4A5A50);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'DM Sans', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  margin-top: 8px;
}
.v2-profile-submit-btn:hover { background: var(--v2-sage-hover, #3D4B42); }
.v2-profile-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Nav item as button */
.v2-profil-nav-item--edit {
  background: none;
  border: none;
  font-family: 'DM Sans', Arial, sans-serif;
  cursor: pointer;
}

/* ── Itinéraire expand/collapse (profile) ────────────────── */
.v2-itin-expand-btn {
  flex-shrink: 0;
  border-radius: 20px;
  border: 1.5px solid var(--v2-border);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  margin-right: 10px;
  padding: 4px 10px 4px 8px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--v2-sage);
  white-space: nowrap;
}
.v2-itin-expand-btn:hover { background: var(--v2-sand); border-color: var(--v2-sage); }
.v2-itin-expand-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}
.v2-itin-expand-icon {
  color: var(--v2-sage);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.v2-itin-expand-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--v2-sage);
}
.v2-itin-header-info { flex: 1; min-width: 0; }
.v2-profil-itin-expand-block {
  display: flex;
  align-items: center;
  padding: 0 16px 12px;
}
.v2-itin-expand-btn {
  flex-shrink: 0;
  border-radius: 20px;
  border: 1.5px solid var(--v2-border);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  padding: 4px 10px 4px 8px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--v2-sage);
  white-space: nowrap;
}
.v2-itin-expand-btn:hover { background: var(--v2-sand); border-color: var(--v2-sage); }
.v2-itin-expand-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}
.v2-itin-expand-icon {
  color: var(--v2-sage);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.v2-itin-expand-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--v2-sage);
}
.v2-profil-itin-card-header { gap: 8px; }
.v2-profil-itin-spots-wrap { padding: 8px 16px 12px; }

/* ── "Voir sur la carte" button (terracotta) ─────────────── */
.v2-profil-itin-action-btn--map {
  background: #3F4A2C;
  color: #fff;
}
.v2-profil-itin-action-btn--map:hover { background: #2d3a20; }

   so buttons appear in same spot whether entering from Profile or Maps */

/* Desktop: side-sheet modal */
@media (min-width: 640px) {
  .v2-profile-modal {
    align-items: center;
  }
  .v2-profile-modal-box {
    border-radius: 20px;
    max-width: 480px;
    max-height: 90vh;
    margin: 20px;
    padding: 0 32px 36px;
  }
}

/* ── Profile contact + legal sections ────────────────────── */
.v2-profil-legal-section {
  margin-top: 24px;
  padding: 14px;
  background: #4A5A50;
  border-radius: 12px;
}
.v2-profil-legal-section--inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 12px 14px;
  flex-wrap: wrap;
}
.v2-profil-legal-section--inline .v2-profil-legal-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.v2-profil-legal-section--inline .v2-profil-legal-link:hover { color: rgba(255,255,255,0.7); }
.v2-profil-legal-section--inline .v2-profil-legal-sep {
  color: rgba(255,255,255,0.4);
  margin: 0 8px;
  font-size: 13px;
}
.v2-profil-section-title {
  display: none; /* hidden per owner request */
}
.v2-profil-contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--v2-border);
  border-radius: var(--v2-radius-sm);
  background: var(--v2-white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #4A5A50;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.v2-profil-contact-btn:hover {
  background: var(--v2-cream);
  border-color: #3D4A40;
}
.v2-profil-contact-btn svg { color: #4A5A50; flex-shrink: 0; }
.v2-profil-legal-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 13.5px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: color 0.15s;
}
.v2-profil-legal-link:last-child { border-bottom: none; }
.v2-profil-legal-link:hover { color: rgba(255,255,255,0.7); }
.v2-profil-legal-link svg { flex-shrink: 0; opacity: 0.75; }
/* Contact link: white text on sage background */
.v2-profil-contact-section {
  margin-top: 32px;
  padding: 20px 4px 0;
  border-top: 1.5px solid rgba(74,90,80,0.18);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}
/* Centered contact variant */
.v2-profil-contact-section--centered {
  justify-content: center;
  text-align: center;
}
/* Bigger "Nous contacter" link */
.v2-profil-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4A5A50;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.v2-profil-contact-link:hover { color: #3D4A40; }
.v2-profil-contact-link svg { color: #4A5A50; opacity: 0.85; flex-shrink: 0; }
/* Bigger centered variant for "Nous contacter" */
.v2-profil-contact-link--big {
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  width: 100%;
  gap: 6px;
}
.v2-profil-contact-link--big svg { width: 14px; height: 14px; }
/* Legal link icons (white, inline with text) */
.v2-profil-legal-section--inline .v2-profil-legal-link svg {
  flex-shrink: 0;
  color: #fff;
  opacity: 0.85;
}
/* (removed: Mentions now merged into the v2-profil-legal-section--inline block) */

/* ── Generic modal (contact + legal) ─────────────────────── */
.v2-generic-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.v2-generic-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.v2-generic-modal-box {
  position: relative;
  background: var(--v2-white);
  width: 100%;
  max-height: 85vh;
  border-radius: 20px 20px 0 0;
  padding: 0 20px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: v2ModalSlideUp 0.25s ease-out;
}
.v2-generic-modal-box--tall { max-height: 90vh; }
@keyframes v2ModalSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.v2-generic-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 12px;
  position: sticky;
  top: 0;
  background: var(--v2-white);
  z-index: 2;
}
.v2-generic-modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--v2-earth);
}
.v2-generic-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--v2-cream);
  border-radius: 50%;
  cursor: pointer;
  color: var(--v2-earth);
  flex-shrink: 0;
}
.v2-generic-modal-close:hover { background: var(--v2-sand); }
.v2-generic-modal-body { padding-top: 4px; }
.v2-generic-modal-body--scroll {
  overflow-y: auto;
  max-height: calc(85vh - 70px);
  padding-right: 4px;
}
/* Contact form textarea */
.v2-form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}
/* Contact submit button */
.v2-contact-submit-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  border: none;
  border-radius: var(--v2-radius-sm);
  background: var(--v2-sage);
  color: var(--v2-white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.v2-contact-submit-btn:hover { background: var(--v2-sage-light); }
.v2-contact-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
/* Contact messages */
.v2-contact-modal-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.45;
}
.v2-contact-modal-msg--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.v2-contact-modal-msg--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
/* Legal modal body content */
.v2-legal-loading {
  text-align: center;
  padding: 40px 0;
  color: rgba(26,26,26,0.4);
  font-size: 14px;
}
#v2LegalModalBody .v2-legal-content {
  font-size: 14px;
  line-height: 1.65;
  color: var(--v2-earth);
}
#v2LegalModalBody .v2-legal-content h2,
#v2LegalModalBody .v2-legal-content h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--v2-sage);
}
#v2LegalModalBody .v2-legal-content p { margin-bottom: 12px; }
#v2LegalModalBody .v2-legal-content ul,
#v2LegalModalBody .v2-legal-content ol { padding-left: 20px; margin-bottom: 12px; }
#v2LegalModalBody .v2-legal-empty {
  text-align: center;
  padding: 32px 0;
  color: rgba(26,26,26,0.45);
  font-size: 14px;
}
/* Desktop modal: centered card */
@media (min-width: 640px) {
  .v2-generic-modal { align-items: center; }
  .v2-generic-modal-box {
    border-radius: 20px;
    max-width: 500px;
    max-height: 85vh;
    margin: 20px;
    padding: 0 32px 32px;
  }
}

/* ── Itinéraire modal (maps tab, replaces inline dropdown) ─── */

/* Itinerary modal header: handle on top, centered title (no X) */
.v2-profil-legal-section--compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  padding: 10px 12px;
  overflow: hidden;
}
.v2-profil-legal-section--compact .v2-profil-legal-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.v2-profil-legal-section--compact .v2-profil-legal-link:hover { color: rgba(255,255,255,0.7); }
.v2-profil-legal-section--compact .v2-profil-legal-sep {
  color: rgba(255,255,255,0.4);
  margin: 0 6px;
  font-size: 13px;
}
.v2-profil-legal-section--compact .v2-profil-legal-link svg {
  width: 13px; height: 13px;
  color: rgba(255,255,255,0.75);
  flex-shrink: 0;
}

/* ── Articles card + CTA (homepage) ──────────────────────────────────────── */

.v2-article-card {
  text-decoration: none;
  color: inherit;
  min-width: 150px;
}

.v2-article-card .v2-country-card-img {
  border-radius: var(--v2-radius-sm) var(--v2-radius-sm) 0 0;
}

.v2-articles-cta-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 16px 0;
}

.v2-articles-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 24px;
  background: var(--v2-sage);
  color: #fff;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.v2-articles-cta-btn:hover {
  background: var(--v2-sage-light);
}


/* ── Global Counter (homepage) ──────────────────────────────────────── */
.v2-global-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 9px 8px;
  background: #F7F4EF;
  border-radius: 14px;
  margin: 10px 16px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.v2-counter-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 0 6px;
}
.v2-counter-icon {
  flex-shrink: 0;
  stroke: #BD6338;
  color: #BD6338;
  width: 18px;
  height: 18px;
  margin-bottom: 3px;
}
.v2-counter-num {
  font-size: 1.12rem;
  font-weight: 700;
  color: #1A1A1A;
  font-family: 'DM Sans', sans-serif;
  line-height: 1;
}
.v2-counter-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: #4A5A50;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}
.v2-counter-divider {
  width: 1px;
  height: 24px;
  background: rgba(74, 90, 80, 0.15);
  flex-shrink: 0;
}

/* ── Google Maps-style GPS location marker ─────────────────── */
.v2-gps-dot {
  position: relative;
  width: 40px;
  height: 40px;
}
.v2-gps-dot-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(66, 133, 244, 0.15);
  border-radius: 50%;
  animation: v2-gps-pulse 2s ease-out infinite;
}
.v2-gps-dot-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: #4285F4;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
@keyframes v2-gps-pulse {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%,-50%) scale(2.5); opacity: 0; }
}

/* ── Emmène-moi button ──────────────────────────────────────────────── */
.v2-emmene-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #BD6338 0%, #A0522D 100%);
  color: #fff;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 12px rgba(189, 99, 56, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.v2-emmene-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(189, 99, 56, 0.45);
}
.v2-emmene-btn:active {
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   ITINERARY SYSTEM — modal, map controls, profile cards
   ══════════════════════════════════════════════════════════════ */

/* Create itinerary button (map tab, above search bar, right side) */
.v2-create-itin-btn {
  position: absolute;
  bottom: calc(var(--v2-bottomnav-h) + var(--v2-safe-bottom) + 12px + 40px + 15px);
  right: 16px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  min-width: 170px;
  border-radius: 10px;
  background: #5B6A61;
  border: none;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--v2-shadow);
  transition: transform 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.v2-create-itin-btn:active { transform: scale(0.96); opacity: 0.9; }
.v2-create-itin-btn svg { flex-shrink: 0; }

/* Itinéraire premium popup (centered overlay) */
.v2-itin-premium-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.v2-itin-premium-popup-box {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px 28px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: v2-modal-in 0.25s ease-out;
}
.v2-itin-premium-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(26,26,26,0.4);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.v2-itin-premium-popup-close:hover {
  background: rgba(26,26,26,0.08);
  color: rgba(26,26,26,0.7);
}
.v2-itin-premium-popup-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
}
.v2-itin-premium-popup-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-itin-premium-popup-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 10px;
  line-height: 1.4;
}
.v2-itin-premium-popup-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: rgba(26,26,26,0.65);
  line-height: 1.6;
  margin: 0 0 22px;
}
.v2-itin-premium-popup-cta {
  display: block;
  width: 100%;
  padding: 13px;
  background: #4A5A50;
  color: #fff;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background 0.15s;
}
.v2-itin-premium-popup-cta:hover { background: #5D6E60; }
.v2-itin-premium-popup-close-btn {
  background: none;
  border: none;
  color: rgba(26,26,26,0.45);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 8px;
}
.v2-itin-premium-popup-close-btn:hover { color: rgba(26,26,26,0.7); }

/* Save itinerary button wrapper — takes exact position of "Créer un itinéraire" */
.v2-save-itin-wrap {
  position: absolute;
  bottom: calc(var(--v2-bottomnav-h) + var(--v2-safe-bottom) + 12px + 40px + 15px);
  right: 16px;
  z-index: 999;
}
.v2-save-itin-wrap .v2-itin-map-action-btn--save-itin {
  min-width: 168px;
  height: 36px;
}
/* Map action buttons (close button, just above save button) */
.v2-itin-map-actions {
  position: absolute;
  bottom: calc(var(--v2-bottomnav-h) + var(--v2-safe-bottom) + 12px + 40px + 59px);
  right: 16px;
  top: auto;
  z-index: 999;
  display: flex;
  gap: 8px;
}
.v2-itin-map-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  border-radius: 10px;
  min-width: 150px;
  padding: 8px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.72rem, 2.7vw, 0.82rem);
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: var(--v2-shadow);
  transition: transform 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-itin-map-action-btn svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}
.v2-itin-map-action-btn:active { transform: scale(0.95); }
.v2-itin-map-action-btn--close-itin {
  background: #5B6A61;
  color: #fff;
  border: 1px solid #5B6A61;
  border-radius: 10px;
}
.v2-itin-map-action-btn--save-itin {
  background: #C96A3D;
  color: #fff;
  border: 1px solid #C96A3D;
  border-radius: 10px;
}
@media (max-width: 480px) {
  .v2-save-itin-wrap {
    right: 12px;
    bottom: calc(var(--v2-bottomnav-h) + var(--v2-safe-bottom) + 12px + 40px + 15px);
  }
  .v2-itin-map-actions {
    right: 12px;
    bottom: calc(var(--v2-bottomnav-h) + var(--v2-safe-bottom) + 12px + 40px + 59px);
  }
  .v2-save-itin-wrap .v2-itin-map-action-btn--save-itin {
    min-width: 158px;
  }
  .v2-itin-map-action-btn {
    min-width: 145px;
    height: 35px;
    padding: 7px 10px;
    font-size: clamp(0.7rem, 2.6vw, 0.78rem);
  }
}

/* ── Modal ─────────────────────────────────────── */
.v2-itin-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-itin-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.v2-itin-modal-box {
  position: relative;
  z-index: 1;
  background: var(--v2-white);
  border-radius: var(--v2-radius);
  width: 92%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--v2-shadow-lg);
  animation: v2-modal-in 0.2s ease-out;
}
@keyframes v2-modal-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.v2-itin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 0;
}
.v2-itin-modal-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--v2-earth);
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}
.v2-itin-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
}
.v2-itin-modal-body { padding: 16px 20px; }
.v2-itin-modal-footer { padding: 0 20px 20px; }

/* ── Form fields ────────────────────────────── */
.v2-itin-field {
  margin-bottom: 16px;
}
.v2-itin-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--v2-sage);
  margin-bottom: 6px;
  font-family: 'DM Sans', sans-serif;
}
.v2-itin-autocomplete-wrap {
  position: relative;
  overflow: visible;
}
.v2-itin-autocomplete-wrap input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--v2-sand);
  border-radius: var(--v2-radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--v2-earth);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.v2-itin-autocomplete-wrap input:focus {
  border-color: var(--v2-sage);
}
.v2-itin-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--v2-white);
  border: 1px solid var(--v2-sand);
  border-radius: 0 0 var(--v2-radius-sm) var(--v2-radius-sm);
  box-shadow: var(--v2-shadow);
  z-index: 10002;
  max-height: 200px;
  overflow-y: auto;
}
.v2-itin-suggestion {
  padding: 10px 14px;
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--v2-earth);
  cursor: pointer;
  border-bottom: 1px solid var(--v2-border);
}
.v2-itin-suggestion:last-child { border-bottom: none; }
.v2-itin-suggestion:hover { background: var(--v2-cream); }
.v2-itin-field-error {
  display: none;
  color: #e74c3c;
  font-size: 0.78rem;
  font-family: 'DM Sans', sans-serif;
  margin-top: 4px;
  padding: 0 2px;
}

/* Deviation options */
.v2-itin-deviation-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.v2-itin-dev-btn {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--v2-sand);
  background: var(--v2-white);
  color: var(--v2-earth);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.v2-itin-dev-btn--active {
  background: var(--v2-sage);
  color: #fff;
  border-color: var(--v2-sage);
}

/* Calculate button */
.v2-itin-calc-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--v2-radius-sm);
  background: var(--v2-sage);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s;
}
.v2-itin-calc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.v2-itin-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: v2-spin 0.6s linear infinite;
}
@keyframes v2-spin { to { transform: rotate(360deg); } }

/* ── Profile itinerary cards ──────────────── */
.v2-profil-itin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.v2-itin-card {
  background: var(--v2-white);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-sm);
  overflow: hidden;
}
.v2-itin-card-header {
  padding: 12px 14px 8px;
}
.v2-itin-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--v2-earth);
  font-family: 'DM Sans', sans-serif;
}
.v2-itin-card-meta {
  font-size: 0.78rem;
  color: #888;
  margin-top: 2px;
  font-family: 'DM Sans', sans-serif;
}
.v2-itin-card-spots {
  padding: 0 14px;
}
.v2-itin-card-spots .v2-itin-expand-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--v2-sage);
  padding: 6px 0;
}
.v2-itin-spots-list {
  padding: 4px 0 8px;
}
.v2-itin-spot-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
}
.v2-itin-spot-name {
  flex: 1;
  color: var(--v2-earth);
  font-weight: 500;
}
.v2-itin-spot-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.v2-itin-spot-badge--pepite {
  background: #FEF0E8;
  color: #BD6338;
}
.v2-itin-spot-badge--inco {
  background: #EBF0F5;
  color: #3E5C76;
}
.v2-itin-spot-delete {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 4px;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.v2-itin-spot-delete:hover { opacity: 1; }
.v2-itin-spot-empty {
  font-size: 0.8rem;
  color: #999;
  font-style: italic;
  padding: 4px 0;
}

/* Action buttons row */
.v2-itin-card-actions {
  display: flex;
  gap: 8px;
  padding: 8px 14px 12px;
  flex-wrap: wrap;
}
.v2-itin-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--v2-sand);
  background: var(--v2-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--v2-sage);
  cursor: pointer;
  transition: background 0.15s;
}
.v2-itin-action-btn:hover { background: var(--v2-cream); }
.v2-itin-action-btn--danger {
  color: #E53935;
  border-color: rgba(229, 57, 53, 0.2);
}
.v2-itin-action-btn--danger:hover { background: #FFF5F5; }

/* Close button for v2PWAInstallModal (uses .v2-generic-modal-box wrapper) */
.v2-pwa-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(26,26,26,0.4);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
  z-index: 1;
}
.v2-pwa-modal-close:hover {
  background: rgba(26,26,26,0.08);
  color: rgba(26,26,26,0.7);
}
