/* ===========================================================
   VANIGO — design system
   =========================================================== */

:root{
  --green-950:#12301f;
  --green-900:#1e4a2f;
  --green-800:#265a3a;
  --green-700:#2f6d47;
  --terracotta:#9e6139;
  --terracotta-dark:#7c4c2c;
  --gold:#c9932c;
  --teal:#2f6f6a;
  --rust:#b3452c;
  --olive:#5c6b3f;
  --cream:#f7efdc;
  --cream-soft:#fbf7ec;
  --paper:#fffdf8;
  --ink:#22301f;
  --ink-soft:#5a6553;
  --line:#e6dcc4;
  --shadow-sm:0 2px 8px rgba(30,74,47,.08);
  --shadow-md:0 10px 30px rgba(20,45,30,.14);
  --shadow-lg:0 24px 60px rgba(15,35,24,.22);
  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:26px;
  --font-display:"Fraunces", Georgia, serif;
  --font-body:"Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h:76px;
}

[hidden]{display:none !important}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream-soft);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3{font-family:var(--font-display);font-weight:500;line-height:1.08;margin:0}
p{margin:0}
button{font-family:inherit;cursor:pointer}
input,textarea,select{font-family:inherit;font-size:15px}
.ic{flex:none}
svg [stroke]{vector-effect:non-scaling-stroke}
svg use{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#i-pin,#i-fuel,#i-food,#i-tent,#i-moon,#i-flag{fill:none}
.icon-sprite symbol{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 22px;border-radius:999px;border:1px solid transparent;
  font-weight:600;font-size:14.5px;letter-spacing:.01em;
  text-decoration:none;transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space:nowrap;
}
.btn:active{transform:scale(.97)}
.btn-primary{background:var(--green-900);color:var(--cream);box-shadow:var(--shadow-sm)}
.btn-primary:hover{background:var(--green-800);box-shadow:var(--shadow-md)}
.btn-light{background:var(--cream);color:var(--green-900)}
.btn-light:hover{background:#fff}
.btn-ghost{background:transparent;color:inherit;border-color:currentColor}
.btn-ghost.danger{color:#b23b2c;border-color:#e3b6ab}
.btn-ghost.danger:hover{background:#fdf0ee}
.btn-outline{background:transparent;border-color:var(--line);color:var(--green-900)}
.btn-outline:hover{background:var(--cream);border-color:var(--green-700)}
.btn-lg{padding:15px 28px;font-size:15.5px}
.btn-sm{padding:8px 16px;font-size:13px}
.btn-block{width:100%}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- nav ---------- */
/* Same floating dark pill everywhere on the site — homepage, app and utility pages
   (.page-topbar) all share this look, instead of each page inventing its own nav. */
.site-nav{
  position:fixed;top:16px;left:16px;right:16px;z-index:600;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:10px 16px 10px 20px;border-radius:999px;
  background:var(--green-950);color:var(--cream);box-shadow:var(--shadow-lg);
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--cream)}
.brand-mark{width:34px;height:34px;border-radius:50%;box-shadow:var(--shadow-sm)}
.brand-word{font-family:var(--font-display);font-size:20px;font-weight:500;letter-spacing:.01em}
.nav-pill{display:flex;gap:2px;align-items:center}
.nav-pill a{
  padding:10px 16px;border-radius:999px;font-size:14px;font-weight:600;
  text-decoration:none;color:var(--cream-soft);opacity:.85;transition:.2s;
}
.nav-pill a:hover{opacity:1;background:rgba(247,239,220,.12)}
.nav-cta{flex:none}
.nav-burger{display:none;background:none;border:none;color:var(--cream);padding:6px}

/* ---------- hero ---------- */
.hero{
  position:relative;min-height:100svh;display:flex;flex-direction:column;
  color:var(--cream);overflow:hidden;background:var(--green-950);
}
.mtn{transition:none}
.route-line{animation:dash 40s linear infinite}
@keyframes dash{to{stroke-dashoffset:-1000}}

.hero-inner{
  position:relative;z-index:2;flex:1;width:100%;
  display:grid;grid-template-columns:1.15fr .85fr;gap:56px;align-items:center;
  max-width:1360px;margin:0 auto;
  padding:calc(var(--nav-h) + 10px) clamp(20px,6vw,90px) 60px;
}
.hero-content{max-width:640px}
.eyebrow{
  font-weight:700;font-size:13px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold);margin-bottom:16px;
}
.hero h1{
  font-size:clamp(34px,4.6vw,58px);color:var(--cream-soft);
  max-width:14ch;
}
.hero-sub{
  margin-top:22px;font-size:clamp(15px,1.4vw,17px);line-height:1.6;
  max-width:52ch;color:rgba(247,239,220,.9);
}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:34px}
.hero-actions .btn-ghost{border-color:rgba(247,239,220,.55);color:var(--cream)}
.hero-actions .btn-ghost:hover{background:rgba(247,239,220,.12)}

.hero-visual{
  position:relative;border-radius:var(--radius-lg);overflow:hidden;
  min-height:460px;align-self:stretch;box-shadow:var(--shadow-lg);
}
.hero-visual svg{position:absolute;inset:0;width:100%;height:100%;display:block}

.glass{
  background:rgba(18,42,28,.42);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  border:1px solid rgba(247,239,220,.22);
  box-shadow:var(--shadow-lg);
}
.quickstart{
  margin-top:46px;padding:22px 24px;border-radius:var(--radius-lg);
  max-width:720px;
}
.quickstart-label{font-family:var(--font-display);font-size:19px;color:var(--cream-soft);margin-bottom:14px}
.quickstart-form{display:flex;gap:14px;flex-wrap:wrap;align-items:end}
.quickstart-form .field{flex:1 1 150px;min-width:130px}
.quickstart-form button{flex:none;height:46px;padding:0 22px}
.field label{display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:rgba(247,239,220,.7);margin-bottom:6px}
.field input,.field textarea{
  width:100%;background:rgba(255,255,255,.08);border:1px solid rgba(247,239,220,.3);
  color:var(--cream-soft);border-radius:10px;padding:11px 13px;outline:none;transition:.15s;
}
.field input::placeholder{color:rgba(247,239,220,.5)}
.field input:focus,.field textarea:focus{border-color:var(--gold);background:rgba(255,255,255,.14)}
.field input[type=date]{color-scheme:dark}

.scroll-cue{
  position:relative;z-index:2;align-self:center;margin-bottom:22px;
  color:var(--cream);opacity:.75;animation:bob 2.2s ease-in-out infinite;
}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(8px)}}

/* ===========================================================
   APP SHELL (app.php)
   =========================================================== */
.app-body{height:100vh;overflow:hidden;position:relative}
.brand-dark{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--cream);flex:none}
.brand-mark-sm{width:28px;height:28px;border-radius:50%}
.brand-word-sm{font-family:var(--font-display);font-size:18px}
.user-menu-btn{
  display:flex;align-items:center;gap:9px;cursor:pointer;
  padding:6px 12px 6px 6px;border-radius:999px;background:rgba(247,239,220,.1);
  border:none;font:inherit;color:inherit;
}
.user-avatar{
  width:28px;height:28px;border-radius:50%;background:var(--terracotta);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:800;flex:none;
}
.user-avatar-img{object-fit:cover;background:none}
.user-name{font-size:13.5px;font-weight:700}

/* ===========================================================
   PLANNER APP
   =========================================================== */
.planner{position:relative}

/* ---------- floating top identity bar ---------- */
.floating-topbar{
  /* viewport-fit=cover renders edge-to-edge on notched phones — keep this clear of the
     notch/Dynamic Island (and the side notch in landscape) without affecting non-notched
     devices, where env() just resolves to 0. */
  position:fixed;top:calc(16px + env(safe-area-inset-top));
  left:calc(16px + env(safe-area-inset-left));right:calc(16px + env(safe-area-inset-right));z-index:600;
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:8px 12px 8px 18px;border-radius:999px;
  background:var(--green-950);color:var(--cream);box-shadow:var(--shadow-lg);
}
.floating-topbar-actions{display:flex;align-items:center;gap:8px}
.floating-topbar-center{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  display:flex;align-items:center;gap:8px;
}
.floating-topbar .icon-btn{background:rgba(247,239,220,.12);border-color:rgba(247,239,220,.22);color:var(--cream)}
.floating-topbar .icon-btn:hover{background:rgba(247,239,220,.24)}
.trip-switcher-btn{
  display:flex;align-items:center;gap:8px;height:38px;padding:0 16px;border-radius:999px;
  border:1px solid rgba(247,239,220,.22);background:rgba(247,239,220,.12);color:var(--cream);
  font-size:13.5px;font-weight:700;white-space:nowrap;transition:.15s;text-decoration:none;
}
.trip-switcher-btn:hover{background:rgba(247,239,220,.24)}
.trip-switcher-btn.active{background:var(--terracotta);border-color:var(--terracotta)}
.trip-switcher-btn-primary{background:var(--terracotta);border-color:var(--terracotta)}
.trip-switcher-btn-primary:hover{background:var(--terracotta-dark);border-color:var(--terracotta-dark)}

/* "More" menu — on desktop it's transparent (its children just flow inline like any other
   topbar button); on mobile (see breakpoint below) it collapses Explorer + Proposer un spot
   behind a single toggle so the AI generator stays reachable without horizontal scrolling. */
.topbar-more{display:contents}
#btnMoreMenu{display:none}
.topbar-more-menu{display:contents}

/* ---------- floating side panel (tabbed) ---------- */
.planner-sidebar{
  position:fixed;top:calc(84px + env(safe-area-inset-top));left:16px;bottom:16px;width:400px;z-index:550;
  background:var(--paper);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);
  display:flex;flex-direction:column;overflow:hidden;
}

.panel-tabs{display:flex;gap:2px;padding:10px 10px 0;flex:none}
.panel-tab{
  flex:1;display:flex;align-items:center;justify-content:center;gap:6px;
  padding:10px 6px;border:none;background:transparent;border-radius:12px 12px 0 0;
  color:var(--ink-soft);font-size:12.5px;font-weight:700;cursor:pointer;transition:.15s;
  border-bottom:2px solid transparent;
}
.panel-tab svg{width:14px;height:14px;flex:none}
.panel-tab:hover{color:var(--green-900)}
.panel-tab.active{color:var(--green-900);background:var(--cream-soft);border-bottom-color:var(--terracotta)}

/* ==========================================================================
   Animate UI icons — github.com/imskyleen/animate-ui, "default" variant of
   each icon's Motion keyframes, hand-translated to CSS (Motion/React itself
   isn't available on this plain PHP/JS site). Every animation is one-shot and
   plays when JS toggles the shared .au-play class on the icon — see
   playIconAnimation()/playIconsIn() in app.js — which happens on mouseover of
   the icon's button/link/label, and once when the page loads or a column
   opens. Icons whose Motion spec only moves *part* of the shape (checkmark,
   arrow, needle…) are inlined full SVGs instead of <use> sprite refs, with
   the animated sub-part carrying its own .au-* class, since a <use> reference
   can't be styled piece by piece from outside. */

.au-icon{transform-box:fill-box}

/* clipboard-check: just the checkmark redraws (pathLength 0→1) with a small pop */
.au-check{stroke-dasharray:9;transform-box:fill-box;transform-origin:center}
.au-clipboard-check.au-play .au-check{animation:au-check-draw .6s ease-in-out}
@keyframes au-check-draw{
  0%{stroke-dashoffset:9;opacity:0;transform:scale(1)}
  50%{transform:scale(1.1)}
  100%{stroke-dashoffset:0;opacity:1;transform:scale(1)}
}

/* search: whole icon wiggles, pivoting from the handle (bottom-right) */
.au-search{transform-origin:bottom right}
.au-search.au-play{animation:au-search-wiggle .8s ease-in-out}
@keyframes au-search-wiggle{
  0%{transform:rotate(0deg)}
  20%{transform:rotate(17deg)}
  40%{transform:rotate(-10deg)}
  60%{transform:rotate(5deg)}
  80%{transform:rotate(-1deg)}
  100%{transform:rotate(0deg)}
}

/* map-pin: bounce + tilt, pivoting from the tip (bottom center) */
.au-map-pin{transform-origin:bottom center}
.au-map-pin.au-play{animation:au-map-pin-bounce 1s ease-in-out}
@keyframes au-map-pin-bounce{
  0%{transform:scale(1) rotate(0deg) translateY(0)}
  33%{transform:scale(.75) rotate(30deg) translateY(-6px)}
  66%{transform:scale(1) rotate(-15deg) translateY(0)}
  100%{transform:scale(1) rotate(0deg) translateY(0)}
}

/* message-square-share / message-circle-plus: whole icon wiggles from the bottom-left */
.au-message-share,.au-message-circle-plus{transform-origin:bottom left}
.au-message-share.au-play,.au-message-circle-plus.au-play{animation:au-message-wiggle .8s ease-in-out}
@keyframes au-message-wiggle{
  0%{transform:rotate(0deg)}
  40%{transform:rotate(8deg)}
  60%{transform:rotate(-8deg)}
  80%{transform:rotate(2deg)}
  100%{transform:rotate(0deg)}
}

/* download: the arrow (stem + chevron) dips toward the tray, which stays put */
.au-download-arrow{transform-box:fill-box}
.au-download.au-play .au-download-arrow{animation:au-download-dip .5s ease-in-out}
@keyframes au-download-dip{
  0%{transform:translateY(0)}
  50%{transform:translateY(2px)}
  100%{transform:translateY(0)}
}

/* plus / circle-plus: the cross rotates a quarter-turn (a circle is symmetric,
   so animating the whole icon looks identical to animating just the cross) */
.au-plus.au-play,.au-circle-plus.au-play{animation:au-plus-turn .5s ease-in-out}
@keyframes au-plus-turn{
  0%{transform:rotate(0deg)}
  100%{transform:rotate(90deg)}
}

/* trash-2: a little shake, as if giving the bin a shake before it opens */
.au-trash.au-play{animation:au-trash-shake .4s ease-in-out}
@keyframes au-trash-shake{
  0%{transform:rotate(0deg)}
  30%{transform:rotate(-8deg)}
  60%{transform:rotate(8deg)}
  85%{transform:rotate(-4deg)}
  100%{transform:rotate(0deg)}
}

/* route (rail "Itinéraire" + stats badge "Kilométrage"): the connecting road
   draws itself in (pathLength 0.05→1); the two circles stay put */
.au-route-path{stroke-dasharray:40;transform-box:fill-box}
.au-route.au-play .au-route-path{animation:au-route-draw .8s ease-in-out}
@keyframes au-route-draw{
  0%{stroke-dashoffset:38;opacity:0}
  8%{opacity:1}
  100%{stroke-dashoffset:0;opacity:1}
}

/* compass: the needle spins to point a new way (circle is symmetric, so the
   whole icon can rotate together without looking any different) */
.au-compass{transform-origin:center}
.au-compass.au-play{animation:au-compass-spin .7s ease-in-out}
@keyframes au-compass-spin{
  0%{transform:rotate(0deg)}
  70%{transform:rotate(95deg)}
  100%{transform:rotate(75deg)}
}

/* cherry: the pair wobbles on the stem (pivot: top center) */
.au-cherry{transform-origin:top center}
.au-cherry.au-play{animation:au-cherry-wobble .8s ease-in-out}
@keyframes au-cherry-wobble{
  0%{transform:rotate(0deg)}
  30%{transform:rotate(-12deg)}
  55%{transform:rotate(7deg)}
  80%{transform:rotate(-4deg)}
  100%{transform:rotate(0deg)}
}

/* sun-moon (category "Nuit / Camping" + spots-nearby toggle): a little wobble,
   as if flipping between day and night */
.au-sun-moon.au-play{animation:au-sun-moon-wobble .6s ease-in-out}
@keyframes au-sun-moon-wobble{
  0%{transform:rotate(0deg)}
  35%{transform:rotate(-10deg)}
  70%{transform:rotate(10deg)}
  100%{transform:rotate(0deg)}
}

/* party-popper (category "Activité"): a little celebratory shake, pivoting
   from the handle (bottom-left) */
.au-party-popper{transform-origin:bottom left}
.au-party-popper.au-play{animation:au-party-shake .6s ease-in-out}
@keyframes au-party-shake{
  0%{transform:scale(1) rotate(0deg)}
  35%{transform:scale(.8) rotate(-10deg)}
  65%{transform:scale(1.12) rotate(8deg)}
  100%{transform:scale(1) rotate(0deg)}
}

/* sparkles (category "Point de vue"): a pulse, like a little twinkle */
.au-sparkles.au-play{animation:au-sparkles-pulse .6s ease-in-out}
@keyframes au-sparkles-pulse{
  0%{transform:scale(1)}
  35%{transform:scale(.9)}
  70%{transform:scale(1.12)}
  100%{transform:scale(1)}
}

/* ev-charger (category "Ravitaillement"): the whole icon pulses, echoing the
   bolt flashing while charging */
.au-ev-charger.au-play{animation:au-ev-pulse 1s ease-in-out}
@keyframes au-ev-pulse{
  0%,100%{opacity:1;transform:scale(1)}
  25%,75%{opacity:.55;transform:scale(.92)}
  50%{opacity:1;transform:scale(1)}
}

/* lightbulb (Recherche → suggestions toggle): wobbles as if it just switched on */
.au-lightbulb{transform-origin:bottom center}
.au-lightbulb.au-play{animation:au-lightbulb-wobble .8s ease-in-out}
@keyframes au-lightbulb-wobble{
  0%{transform:rotate(0deg)}
  40%{transform:rotate(-20deg)}
  60%{transform:rotate(15deg)}
  80%{transform:rotate(-7deg)}
  100%{transform:rotate(0deg)}
}

/* cctv (Voyage → péages toggle): the camera pans, like it's looking around */
.au-cctv{transform-origin:center}
.au-cctv.au-play{animation:au-cctv-pan 1s ease-in-out}
@keyframes au-cctv-pan{
  0%{transform:rotate(0deg)}
  30%{transform:rotate(-16deg)}
  65%{transform:rotate(12deg)}
  100%{transform:rotate(0deg)}
}

/* list (navbar "Mes voyages"): the rows fade + settle in */
.au-list.au-play{animation:au-list-in .4s ease-in-out}
@keyframes au-list-in{
  0%{opacity:.3;transform:scale(1.15)}
  100%{opacity:1;transform:scale(1)}
}

/* copy (Partager → copier le lien): the two sheets separate then settle back */
.au-copy-rect,.au-copy-path{transform-box:fill-box}
.au-copy.au-play .au-copy-rect{animation:au-copy-rect-move .6s ease-in-out}
.au-copy.au-play .au-copy-path{animation:au-copy-path-move .6s ease-in-out}
@keyframes au-copy-rect-move{
  0%{transform:translate(0,0)}
  50%{transform:translate(-3px,-3px)}
  100%{transform:translate(0,0)}
}
@keyframes au-copy-path-move{
  0%{transform:translate(0,0)}
  50%{transform:translate(3px,3px)}
  100%{transform:translate(0,0)}
}

/* gallery-horizontal (Voyage → autoroute toggle): the two side frames slide
   in from outside with a little spring overshoot */
.au-gallery-side{transform-box:fill-box}
.au-gallery-left{transform-origin:right center}
.au-gallery-right{transform-origin:left center}
.au-gallery-horizontal.au-play .au-gallery-left{animation:au-gallery-in-left .45s cubic-bezier(.34,1.56,.64,1)}
.au-gallery-horizontal.au-play .au-gallery-right{animation:au-gallery-in-right .45s cubic-bezier(.34,1.56,.64,1)}
@keyframes au-gallery-in-left{
  0%{opacity:0;transform:translateX(4px) scale(.8)}
  100%{opacity:1;transform:translateX(0) scale(1)}
}
@keyframes au-gallery-in-right{
  0%{opacity:0;transform:translateX(-4px) scale(.8)}
  100%{opacity:1;transform:translateX(0) scale(1)}
}

/* moon-star (stats badge "Nuit"): the crescent spins once, the little star stays put */
.au-moon-crescent{transform-box:fill-box;transform-origin:center}
.au-moon-star.au-play .au-moon-crescent{animation:au-moon-spin 1.2s ease-in-out}
@keyframes au-moon-spin{
  0%{transform:rotate(0deg)}
  100%{transform:rotate(360deg)}
}

/* clock-5 (stats badge "Durée"): the hands tick — the short one wiggles from
   the center, the long one sweeps a full turn */
.au-clock-hand1,.au-clock-hand2{transform-box:fill-box}
.au-clock-hand1{transform-origin:top left}
.au-clock-hand2{transform-origin:bottom left}
.au-clock-5.au-play .au-clock-hand1{animation:au-clock-hand1-swing .6s ease-in-out}
.au-clock-5.au-play .au-clock-hand2{animation:au-clock-hand2-spin .6s ease-in-out}
@keyframes au-clock-hand1-swing{
  0%{transform:rotate(0deg)}
  50%{transform:rotate(20deg)}
  100%{transform:rotate(0deg)}
}
@keyframes au-clock-hand2-spin{
  0%{transform:rotate(0deg)}
  100%{transform:rotate(360deg)}
}

.planner-content{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.planner-content-head{display:none}
.panel-tab-panel{flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto}

.tab-field{padding:14px 18px 0}
.tab-field label{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--ink-soft);margin-bottom:6px}
.tab-field textarea{
  width:100%;border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;outline:none;
  background:var(--paper);color:var(--ink);font-family:inherit;font-size:13.5px;resize:vertical;
}
.tab-field textarea:focus{border-color:var(--green-700)}
.trip-name-input{
  width:100%;border:1.5px solid var(--line);background:var(--cream-soft);font-family:var(--font-display);font-size:19px;
  color:var(--green-900);font-weight:500;outline:none;border-radius:10px;padding:8px 12px;
}
.trip-name-input:hover,.trip-name-input:focus{border-color:var(--green-700);background:var(--paper)}
.trip-dates{display:flex;align-items:center;gap:6px;color:var(--ink-soft);font-size:13px}
.trip-dates input{
  flex:1;min-width:0;border:1.5px solid var(--line);border-radius:10px;padding:8px 10px;
  background:var(--cream-soft);color:var(--ink);
}

.trip-stats{
  position:fixed;top:calc(130px + env(safe-area-inset-top));right:16px;z-index:540;
  display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:calc(100vw - 32px);
}
.stat{
  display:flex;align-items:center;gap:7px;padding:8px 13px;border-radius:999px;
  background:var(--cream);color:var(--green-900);font-size:13px;font-weight:700;box-shadow:var(--shadow-md);
}
.stat svg{color:var(--terracotta)}

.icon-btn{
  width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:var(--paper);
  color:var(--green-900);display:flex;align-items:center;justify-content:center;transition:.15s;flex:none;
}
.icon-btn:hover{background:var(--cream);border-color:var(--green-700)}
.icon-btn.danger{color:#b23b2c}
.icon-btn.danger:hover{background:#fdf0ee;border-color:#e3b6ab}
.icon-btn.ghost{border:none;background:none;width:30px;height:30px}

/* ---------- export tab: full labeled buttons, stacked ---------- */
.export-actions{display:flex;flex-direction:column;gap:9px;padding:16px 18px}
.export-btn{
  display:flex;align-items:center;gap:12px;width:100%;padding:13px 16px;border-radius:14px;
  border:1.5px solid var(--line);background:var(--paper);color:var(--green-900);
  font-size:14px;font-weight:700;text-align:left;transition:.15s;
}
.export-btn svg{flex:none;color:var(--terracotta)}
.export-btn:hover{background:var(--cream-soft);border-color:var(--green-700)}
.export-btn.danger{color:#b23b2c;border-color:#e9c9c0}
.export-btn.danger svg{color:#b23b2c}
.export-btn.danger:hover{background:#fdf0ee;border-color:#e3b6ab}

.route-prefs{display:flex;flex-direction:column;gap:1px;padding:14px 18px 16px}

.search-block{padding:18px 18px 14px;position:relative}
.search-box{
  display:flex;align-items:center;gap:9px;background:var(--cream-soft);
  border:1.5px solid var(--line);border-radius:12px;padding:10px 12px;color:var(--ink-soft);
}
.search-box input{flex:1;border:none;background:none;outline:none;color:var(--ink);font-size:14.5px}
.search-box:focus-within{border-color:var(--green-700)}
.search-results{
  position:absolute;left:18px;right:18px;top:68px;z-index:40;
  background:var(--paper);border:1px solid var(--line);border-radius:14px;
  box-shadow:var(--shadow-md);max-height:280px;overflow:auto;
}
.search-result{
  display:flex;flex-direction:column;gap:2px;padding:11px 14px;border-bottom:1px solid var(--line);
  cursor:pointer;
}
.search-result:last-child{border-bottom:none}
.search-result:hover{background:var(--cream-soft)}
.search-result .r-title{display:flex;align-items:center;gap:7px;font-weight:700;font-size:13.5px;color:var(--green-900)}
.search-result .r-sub{font-size:12px;color:var(--ink-soft)}
.r-kind{
  font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;
  color:var(--terracotta-dark);background:var(--cream);border-radius:999px;padding:2px 8px;
}
.search-empty{padding:14px;font-size:13px;color:var(--ink-soft);line-height:1.5}
.field-autocomplete{position:relative}
.field-autocomplete-results{left:0;right:0;top:calc(100% + 6px);max-height:240px}
.search-approx-note{
  padding:9px 14px;font-size:11.5px;color:var(--terracotta-dark);background:var(--cream);
  border-bottom:1px solid var(--line);
}

.category-picker{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}
.cat-chip{
  display:flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;
  border:1.5px solid var(--line);background:var(--paper);font-size:12.5px;font-weight:700;color:var(--ink-soft);
  transition:.15s;
}
.cat-chip svg{color:var(--c,var(--green-900))}
.cat-chip:hover{border-color:var(--c,var(--green-700))}
.cat-chip.active{background:var(--c,var(--green-900));border-color:var(--c,var(--green-900));color:#fff}
.cat-chip.active svg{color:#fff}

#btnAddOnMap{margin-top:13px;font-size:13px;padding:10px 16px}

.pref-toggle{display:flex;align-items:center;gap:10px;padding:8px 4px;cursor:pointer;user-select:none}
.pref-toggle input{position:absolute;opacity:0;width:0;height:0}
.pref-toggle-track{
  flex:none;width:34px;height:20px;border-radius:999px;background:var(--line);
  position:relative;transition:background .15s;
}
.pref-toggle-thumb{
  position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;
  background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.28);transition:transform .15s;
}
.pref-toggle input:checked + .pref-toggle-track{background:var(--green-700)}
.pref-toggle input:checked + .pref-toggle-track .pref-toggle-thumb{transform:translateX(14px)}
.pref-toggle-label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--ink)}
.pref-toggle-label svg{color:var(--terracotta)}

.spot-filters{margin:2px 0 4px 42px;padding-bottom:6px}
.spot-filters-label{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--ink-soft);margin:8px 0 5px}
.spot-filter-group{display:flex;flex-wrap:wrap;gap:6px}
.spot-filter-chip{
  padding:5px 11px;border-radius:999px;border:1.5px solid var(--line);background:var(--paper);
  font-size:11.5px;font-weight:700;color:var(--ink-soft);cursor:pointer;transition:.15s;
}
.spot-filter-chip:hover{border-color:var(--olive)}
.spot-filter-chip.active{background:var(--olive);border-color:var(--olive);color:#fff}

.itinerary{flex:1;overflow-y:auto;padding:8px 14px 90px}
.empty-hint{padding:26px 24px;color:var(--ink-soft);font-size:13.5px;line-height:1.6;text-align:center}

.day-group{margin:18px 0}
.day-head{
  display:flex;align-items:baseline;gap:9px;padding:0 6px 10px;
  position:sticky;top:0;background:var(--paper);z-index:5;
}
.day-head .day-title{font-family:var(--font-display);font-size:16.5px;color:var(--green-900)}
.day-head .day-date{font-size:12px;color:var(--ink-soft);font-weight:600}
.day-head .day-line{flex:1;height:1px;background:var(--line)}
.day-head .day-weather{
  display:flex;align-items:center;gap:5px;flex-shrink:0;
  font-size:12px;font-weight:600;color:var(--ink-soft);
}
.day-head .day-weather:empty{display:none}
.day-head .day-weather svg{width:16px;height:16px;stroke:var(--olive)}
.day-head .day-weather-temp{white-space:nowrap}
.day-head .day-weather-rain{color:#3b6fa8}

.wp-card{
  display:flex;gap:10px;align-items:flex-start;background:var(--paper);
  border:1px solid var(--line);border-radius:14px;padding:11px 12px;margin-bottom:9px;
  transition:box-shadow .15s, border-color .15s, transform .15s;
}
.wp-card:hover{box-shadow:var(--shadow-sm);border-color:#d8ccaa}
.wp-grip{color:#c9bd9a;cursor:grab;padding-top:5px;touch-action:none}
.wp-grip:active{cursor:grabbing}

.wp-card-ghost{
  position:fixed;z-index:2000;pointer-events:none;margin:0;
  box-shadow:0 14px 30px rgba(0,0,0,.3);transform:scale(1.02) rotate(-1deg);opacity:.97;
}
.wp-card-placeholder{
  border:2px dashed var(--olive);border-radius:14px;margin-bottom:9px;
  background:rgba(92,107,63,.08);
}
.wp-icon{
  width:32px;height:32px;border-radius:9px;flex:none;display:flex;align-items:center;justify-content:center;
  background:var(--c,var(--green-900));color:#fff;margin-top:2px;
}
.wp-icon svg{width:16px;height:16px}
.wp-thumb{width:40px;height:40px;border-radius:9px;flex:none;overflow:hidden;margin-top:2px;background:var(--cream-soft)}
.wp-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.wp-main{flex:1;min-width:0;cursor:pointer}
.wp-name{font-weight:700;font-size:14px;color:var(--green-900);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wp-sub{font-size:12px;color:var(--ink-soft);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wp-leg{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--terracotta-dark);margin-top:5px;font-weight:700}
.wp-actions{display:flex;flex-direction:column;gap:4px}
.wp-actions button{width:26px;height:26px;border:none;background:none;color:var(--ink-soft);border-radius:6px;display:flex;align-items:center;justify-content:center}
.wp-actions button:hover{background:var(--cream-soft);color:var(--green-900)}
.wp-actions button[data-act="day-break"].active{background:var(--olive);color:#fff}
.wp-actions button[data-act="day-break"].active:hover{background:var(--olive);opacity:.85}

.leg-connector{
  display:flex;align-items:center;gap:8px;padding:2px 0 2px 40px;
  font-size:11.5px;color:var(--ink-soft);
}
.leg-connector .dots{flex:1;height:0;border-top:2px dotted var(--line)}

/* ---------- map (fullscreen, everything else floats on top) ---------- */
.planner-map-wrap{position:fixed;inset:0;z-index:0}
#map{position:absolute;inset:0;background:#e7e1cc}
.leaflet-container{font-family:var(--font-body)}
.map-badge{
  position:absolute;top:calc(84px + env(safe-area-inset-top));left:112px;z-index:560;
  background:var(--green-900);color:var(--cream);padding:10px 16px;border-radius:999px;
  font-size:13px;font-weight:600;box-shadow:var(--shadow-md);display:flex;gap:10px;align-items:center;
}
.map-badge button{background:rgba(247,239,220,.18);border:none;color:var(--cream);border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700}

.wp-pin{
  position:relative;width:28px;height:28px;border-radius:50%;
  background:var(--c,var(--green-900));border:2.5px solid var(--paper);
  display:flex;align-items:center;justify-content:center;box-shadow:0 3px 8px rgba(0,0,0,.32);
}
.wp-pin::after{
  content:"";position:absolute;bottom:-7px;left:50%;transform:translateX(-50%);
  border-left:5px solid transparent;border-right:5px solid transparent;border-top:7px solid var(--c,var(--green-900));
  filter:drop-shadow(0 2px 1px rgba(0,0,0,.15));
}
.wp-pin span{color:#fff;font-weight:800;font-size:12px;line-height:1}

.playback-vehicle-icon{background:none;border:none}
.playback-vehicle{
  width:36px;height:66px;display:block;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.45));transition:transform .15s linear;
}

.spot-pin{
  width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:rgba(92,107,63,.9);border:2px solid var(--cream-soft);box-shadow:0 2px 6px rgba(0,0,0,.3);color:#fff;
}
.spot-pin--caravan_site{background:rgba(158,97,57,.9)}
.spot-pin--parking_caravans{background:rgba(107,117,98,.9)}
.spot-pin--rest_area{background:rgba(201,147,44,.9)}
.spot-pin--dump_station{background:rgba(47,111,106,.9)}
.spot-pin--suggestion{background:rgba(47,111,106,.9)}
.spot-pin--activity{background:rgba(201,147,44,.9)}
.spot-pin--community{box-shadow:0 0 0 2px var(--gold),0 2px 6px rgba(0,0,0,.3)}
.community-badge{
  display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;vertical-align:middle;
  background:var(--gold);color:#fff;font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;
}
.popup-desc{font-size:12px;color:var(--ink-soft);margin-bottom:8px}
.popup-amenities{font-size:11.5px;font-weight:600;color:var(--green-900);margin-bottom:4px}
.popup-hours{font-size:11.5px;color:var(--ink-soft);margin-bottom:8px}
.popup-actions button.liked{background:var(--terracotta);color:#fff}
.popup-img-wrap{position:relative;margin:-12px -14px 8px;border-radius:14px 14px 0 0;overflow:hidden}
.popup-img-wrap .popup-img{margin:0;width:100%;height:110px;display:block;border-radius:0}
.popup-photo-count{
  position:absolute;bottom:6px;right:6px;padding:2px 7px;border-radius:999px;
  background:rgba(0,0,0,.6);color:#fff;font-size:10.5px;font-weight:700;
}

.leaflet-popup-content-wrapper{border-radius:14px;font-family:var(--font-body);overflow:hidden}
.leaflet-popup-content{margin:12px 14px;font-size:13px}
.popup-img{
  display:block;width:calc(100% + 28px);height:110px;object-fit:cover;
  margin:-12px -14px 8px;border-radius:14px 14px 0 0;background:var(--cream-soft);
}
.popup-img-pending{
  width:calc(100% + 28px);height:90px;margin:-12px -14px 8px;border-radius:14px 14px 0 0;
  background:linear-gradient(90deg,#e8e2d0,#f2eee0,#e8e2d0);background-size:200% 100%;
  animation:popup-img-shimmer 1.4s ease-in-out infinite;
}
@keyframes popup-img-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.popup-title{font-weight:700;color:var(--green-900);margin-bottom:3px;font-size:14px}
.popup-cat{font-size:11.5px;color:var(--ink-soft);margin-bottom:8px}
.popup-link{display:inline-block;font-size:11.5px;font-weight:700;color:var(--terracotta-dark);text-decoration:underline;margin-bottom:8px}
.popup-actions{display:flex;gap:8px}
.popup-actions button{
  border:none;background:var(--cream-soft);color:var(--green-900);border-radius:8px;padding:6px 10px;font-size:12px;font-weight:700;
}
.popup-actions button.danger{color:#b23b2c;background:#fdf0ee}

.fab{
  display:none;position:absolute;bottom:calc(22px + env(safe-area-inset-bottom));right:calc(18px + env(safe-area-inset-right));z-index:500;
  width:54px;height:54px;border-radius:50%;background:var(--green-900);color:var(--cream);
  border:none;box-shadow:var(--shadow-lg);align-items:center;justify-content:center;
}

/* ---------- itinerary playback ---------- */
.playback-bar{
  position:absolute;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translateX(-50%);
  z-index:580;width:min(480px, calc(100vw - 32px));
  background:var(--paper);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);
  padding:14px 16px;display:flex;flex-direction:column;gap:10px;
}
.playback-close{position:absolute;top:8px;right:8px}
.playback-progress{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;color:var(--ink-soft);padding-right:46px}
.playback-day{color:var(--terracotta)}
.playback-progress-bar{width:100%;height:4px;border-radius:999px;background:var(--line);overflow:hidden}
.playback-progress-fill{width:0;height:100%;background:var(--terracotta);border-radius:999px}
.playback-photo{width:100%;height:120px;object-fit:cover;border-radius:12px;display:block;background:var(--cream-soft)}
.playback-details{display:flex;gap:12px;align-items:flex-start}
.playback-icon{
  width:36px;height:36px;border-radius:10px;background:var(--c);color:#fff;flex:none;
  display:flex;align-items:center;justify-content:center;
}
.playback-text{min-width:0}
.playback-name{font-weight:700;color:var(--green-900);font-size:15px;line-height:1.3}
.playback-note{font-size:12.5px;color:var(--ink-soft);margin-top:3px;line-height:1.5}
.playback-controls{display:flex;justify-content:center;align-items:center;gap:10px}
.playback-controls .icon-btn{width:36px;height:36px}
.playback-play{background:var(--green-900);color:var(--cream);border-color:var(--green-900)}
.playback-play:hover{background:var(--green-800)}
#btnStartPlayback{margin:14px 14px 0;width:calc(100% - 28px)}

.layer-switch{
  position:absolute;top:calc(84px + env(safe-area-inset-top));right:16px;z-index:500;display:flex;background:var(--paper);
  border-radius:999px;padding:3px;box-shadow:var(--shadow-md);gap:2px;
}
.layer-switch-btn{
  display:flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;border:none;
  background:transparent;color:var(--ink-soft);font-size:12px;font-weight:700;cursor:pointer;transition:.15s;
}
.layer-switch-btn:hover{color:var(--green-900)}
.layer-switch-btn.active{background:var(--green-900);color:var(--cream)}

.search-area-btn{
  position:absolute;top:calc(84px + env(safe-area-inset-top));right:210px;z-index:560;
  display:flex;align-items:center;gap:8px;padding:10px 18px;border-radius:999px;border:none;
  background:var(--paper);color:var(--green-900);font-size:13px;font-weight:700;
  box-shadow:var(--shadow-md);cursor:pointer;
}
.search-area-btn:hover{background:var(--cream)}
.spots-loading{
  position:absolute;top:calc(84px + env(safe-area-inset-top));right:210px;z-index:560;
  display:flex;align-items:center;gap:9px;padding:10px 16px;border-radius:999px;
  background:var(--green-900);color:var(--cream);font-size:13px;font-weight:600;box-shadow:var(--shadow-md);
}
.spinner{
  width:13px;height:13px;border-radius:50%;border:2px solid rgba(247,239,220,.35);
  border-top-color:var(--cream);animation:spin .7s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- guided tour (step-by-step onboarding) ---------- */
.tour-overlay{position:fixed;inset:0;z-index:2000}
.tour-highlight{
  position:fixed;z-index:2000;border-radius:14px;pointer-events:none;
  box-shadow:0 0 0 9999px rgba(15,30,20,.65);
  transition:top .35s ease,left .35s ease,width .35s ease,height .35s ease,opacity .2s ease;
  opacity:0;
}
.tour-highlight.visible{opacity:1}
.tour-card{
  position:fixed;top:calc(90px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);
  z-index:2001;width:min(420px, calc(100vw - 32px));
  background:var(--paper);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);
  padding:22px 24px;
}
.tour-step-count{font-weight:700;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--terracotta);margin-bottom:8px}
.tour-card h3{font-family:var(--font-display);font-size:19px;color:var(--green-900);margin-bottom:8px}
.tour-card p:not(.tour-step-count){font-size:14px;line-height:1.6;color:var(--ink-soft)}
.tour-actions{display:flex;justify-content:space-between;align-items:center;margin-top:20px;gap:10px}
.tour-nav{display:flex;gap:8px}

@media (max-width: 480px){
  .tour-card{padding:18px}
  .tour-actions{flex-direction:column-reverse;align-items:stretch}
  .tour-nav{justify-content:stretch}
  .tour-nav .btn{flex:1}
}

/* ---------- drawer ---------- */
.drawer-overlay{position:fixed;inset:0;background:rgba(15,30,20,.45);z-index:700;backdrop-filter:blur(2px)}
.trip-drawer{
  position:fixed;top:0;left:0;bottom:0;width:340px;max-width:88vw;background:var(--paper);z-index:701;
  box-shadow:var(--shadow-lg);display:flex;flex-direction:column;padding:20px;
  animation:slideIn .22s ease;
}
@keyframes slideIn{from{transform:translateX(-100%)}to{transform:translateX(0)}}
.drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.drawer-head h3{font-size:19px;color:var(--green-900)}

.profile-drawer-body{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:14px;margin-bottom:14px}
.profile-drawer-body .profile-avatar{margin-top:0}
.profile-drawer-body .tab-field,.profile-drawer-body .field{padding:0}
.profile-drawer-body .tab-field label,.profile-drawer-body .field label{color:var(--ink-soft)}
.profile-drawer-body input:not([type=checkbox]),.profile-drawer-body select{
  width:100%;border:1.5px solid var(--line);border-radius:11px;padding:11px 13px;
  outline:none;background:var(--paper);color:var(--ink);font-size:14px;font-family:inherit;
}
.profile-drawer-body input:disabled{background:var(--cream-soft);color:var(--ink-soft)}
.profile-drawer-body input:focus,.profile-drawer-body select:focus{border-color:var(--green-700)}
.profile-drawer-google{padding-top:4px}
.btn-google[aria-disabled="true"]{cursor:default;pointer-events:none}
.btn-google[aria-disabled="true"]:hover{background:transparent;border-color:var(--line)}
.drawer-foot{display:flex;flex-direction:column;gap:8px;padding-top:14px;border-top:1px solid var(--line)}

.profile-drawer{left:auto;right:0;animation:slideInRight .22s ease}
@keyframes slideInRight{from{transform:translateX(100%)}to{transform:translateX(0)}}

/* ---------- modal ---------- */
.modal-overlay{position:fixed;inset:0;background:rgba(15,30,20,.5);z-index:800;display:flex;align-items:center;justify-content:center;padding:18px}
.modal{
  width:440px;max-width:100%;max-height:86vh;overflow:auto;background:var(--paper);border-radius:var(--radius-md);
  box-shadow:var(--shadow-lg);animation:pop .18s ease;
}
@keyframes pop{from{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}
.modal-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line)}
.modal-head h3{font-size:18px;color:var(--green-900)}
.modal-body{padding:18px 20px;display:flex;flex-direction:column;gap:16px}
.modal-body .field label{color:var(--ink-soft)}
.modal-body input,.modal-body textarea,.modal-body select{
  width:100%;border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;outline:none;background:var(--cream-soft);color:var(--ink);
  font-family:inherit;font-size:14px;
}
.modal-body input:focus,.modal-body textarea:focus,.modal-body select:focus{border-color:var(--green-700)}
.modal-note{font-size:12px;color:var(--ink-soft);margin:0}
.spot-image-previews{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.spot-image-preview{position:relative;width:64px;height:64px;border-radius:8px;overflow:hidden;background:var(--cream-soft);flex:none}
.spot-image-preview img{width:100%;height:100%;object-fit:cover}
.spot-image-preview button{
  position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:50%;border:none;
  background:rgba(0,0,0,.6);color:#fff;font-size:13px;line-height:1;cursor:pointer;padding:0;
}
.checkbox-row{display:flex;align-items:center;gap:9px;font-size:13.5px;font-weight:600;color:var(--ink)}

.wp-image-preview{
  position:relative;width:100%;height:140px;border-radius:12px;overflow:hidden;
  background:var(--cream-soft);display:flex;align-items:center;justify-content:center;margin-bottom:10px;
}
.wp-image-preview img{width:100%;height:100%;object-fit:cover;display:block}
.wp-image-empty{color:var(--ink-soft);font-size:12.5px}
.wp-image-loading{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255,253,248,.7);
}
.wp-image-loading .spinner{border-color:rgba(30,74,47,.2);border-top-color:var(--green-900)}
.wp-image-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.wp-image-actions label.btn{cursor:pointer}
.wp-image-source{margin-top:6px;font-size:11.5px;color:var(--ink-soft)}
.modal-foot{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-top:1px solid var(--line)}

/* ---------- community sharing (planner sidebar) ---------- */
.share-section{padding:16px 18px 20px;border-top:1px solid var(--line);margin-top:6px}
.share-section-first{border-top:none;margin-top:0}
.share-section-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--ink-soft);margin:0 0 8px}
.share-section-hint{font-size:12.5px;color:var(--ink-soft);line-height:1.5;margin:0 0 12px}
.share-section-hint a{color:var(--green-800);font-weight:700;text-decoration:underline}
.link-btn{background:none;border:none;padding:0;margin:0;font:inherit;color:var(--green-800);font-weight:700;text-decoration:underline}
.share-section .tab-field{padding:0 0 12px}
.share-section textarea{
  width:100%;border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;outline:none;
  background:var(--paper);color:var(--ink);font-family:inherit;font-size:13.5px;resize:vertical;
}
.share-section textarea:focus{border-color:var(--green-700)}
.share-link-row{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:12.5px}
.share-link-row a{font-weight:700;color:var(--green-800);text-decoration:underline}

.tab-subheading{
  margin:8px 0 4px;font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.04em;color:var(--ink-soft);
}
.export-hint{padding:4px 18px 16px;font-size:12px;color:var(--ink-soft);line-height:1.5}

/* ---------- AI itinerary generator form (planner sidebar, full-width column) ---------- */
.ai-form{max-width:640px;margin:0 auto;width:100%}
.ai-form-intro{padding:14px 18px 0;font-size:12.5px;color:var(--ink-soft);line-height:1.5}
.ai-form .field-row{padding:14px 18px 0}
.ai-form .field label{color:var(--ink-soft)}
.ai-form input,.ai-form select,.ai-form textarea{
  width:100%;border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;outline:none;
  background:var(--cream-soft);color:var(--ink);font-family:inherit;font-size:14px;
}
.ai-form input:focus,.ai-form select:focus,.ai-form textarea:focus{border-color:var(--green-700)}
.ai-form textarea{resize:vertical}
.ai-form .pref-toggle{padding:14px 18px 0}
.ai-step2-actions{display:flex;gap:10px}
.ai-step2-actions #aiSubmitBtn{flex:1}
.ai-step-loading:not([hidden]){
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;
  padding:56px 24px;text-align:center;
}
.ai-loading-icon{color:var(--green-700);animation:ai-loading-pulse 1.1s ease-in-out infinite}
@keyframes ai-loading-pulse{0%,100%{transform:scale(1);opacity:.7}50%{transform:scale(1.18);opacity:1}}
.ai-progress-label{font-size:13px;font-weight:600;color:var(--ink-soft)}
.ai-progress-bar{
  width:100%;max-width:280px;height:6px;border-radius:999px;background:var(--line);overflow:hidden;
}
.ai-progress-fill{height:100%;width:0%;border-radius:999px;background:var(--green-700);transition:width .35s ease}
.ai-form-error{
  margin:14px 18px 0;padding:10px 12px;border-radius:9px;background:#fdf0ee;color:#a33a29;
  font-size:12.5px;font-weight:600;
}
.ai-form > .export-hint{padding:8px 18px 16px}

#tabPanelExplore{padding:20px 24px 24px}
#tabPanelExplore .explore-search{margin-bottom:12px}
#tabPanelExplore .explore-sort{margin-bottom:18px}
#tabPanelExplore .trip-gallery{margin-top:0}
#tabPanelExplore .pagination{margin-top:28px}

#tabPanelTrips{padding:20px 24px 24px}
#tabPanelTrips .trip-gallery{margin-top:20px}
.personal-trip-card{position:relative;cursor:pointer;border:2px solid transparent}
.personal-trip-card.active{border-color:var(--green-900)}
.trip-card-delete{
  position:absolute;top:8px;right:8px;width:30px;height:30px;border-radius:50%;
  border:none;background:rgba(20,35,25,.65);color:#fff;display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:.15s;
}
.trip-card-delete:hover{background:#b23b2c}

/* ---------- how it works ---------- */
.how,.features{padding:100px clamp(20px,6vw,90px);text-align:center}
.section-eyebrow{font-weight:700;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--terracotta)}
.how h2,.features h2{margin-top:10px;font-size:clamp(28px,3.6vw,42px);color:var(--green-900);max-width:16ch;margin-left:auto;margin-right:auto}
.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-top:56px;text-align:left}
.how-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-md);padding:30px 26px}
.how-num{font-family:var(--font-display);font-size:34px;color:var(--terracotta);opacity:.5}
.how-card h3{margin-top:14px;font-size:19px;color:var(--green-900)}
.how-card p{margin-top:10px;font-size:14.5px;line-height:1.65;color:var(--ink-soft)}

.features{background:var(--cream)}
.features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:56px;text-align:left}
.feature-card{background:var(--paper);border-radius:var(--radius-md);padding:24px;box-shadow:var(--shadow-sm)}
.feature-ic{
  width:42px;height:42px;border-radius:12px;background:var(--c);color:#fff;
  display:flex;align-items:center;justify-content:center;margin-bottom:14px;
}
.feature-card h3{font-size:16px;color:var(--green-900)}
.feature-card p{margin-top:6px;font-size:13.5px;color:var(--ink-soft);line-height:1.55}

/* ---------- trust bar ---------- */
.trust-bar{
  display:flex;flex-wrap:wrap;justify-content:center;gap:12px;
  padding:26px clamp(20px,6vw,90px);background:var(--cream-soft);border-bottom:1px solid var(--line);
}
.trust-pill{
  display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--green-800);
  background:var(--paper);border:1px solid var(--line);border-radius:999px;padding:8px 16px;
}
.trust-pill svg{color:var(--terracotta);flex:none}

/* ---------- why vanigo (compare) ---------- */
.compare{padding:100px clamp(20px,6vw,90px);background:var(--cream)}
.compare-head{max-width:640px;margin:0 auto 48px;text-align:center}
.compare-head h2{margin-top:10px;font-size:clamp(28px,3.6vw,40px);color:var(--green-900)}
.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;max-width:980px;margin:0 auto}
.compare-col{border-radius:var(--radius-md);padding:32px 30px}
.compare-col h3{font-family:var(--font-display);font-size:20px;margin-bottom:18px}
.compare-col ul{display:flex;flex-direction:column;gap:14px;list-style:none;padding:0;margin:0}
.compare-col li{font-size:14.5px;line-height:1.6;padding-left:26px;position:relative}
.compare-before{border:1px dashed var(--line)}
.compare-before h3{color:var(--ink-soft)}
.compare-before li{color:var(--ink-soft)}
.compare-before li::before{content:"×";position:absolute;left:0;top:-2px;color:#b23b2c;font-weight:800;font-size:17px}
.compare-after{background:var(--paper);box-shadow:var(--shadow-md);border:1px solid var(--green-700)}
.compare-after h3{color:var(--green-900)}
.compare-after li{color:var(--ink)}
.compare-after li::before{content:"✓";position:absolute;left:0;top:-1px;color:var(--green-700);font-weight:800}

/* ---------- AI spotlight ---------- */
.ai-spotlight{
  display:grid;grid-template-columns:1.1fr 1fr;gap:60px;align-items:center;
  max-width:1180px;margin:0 auto;padding:100px clamp(20px,6vw,90px);
}
.ai-spotlight-copy h2{margin-top:10px;font-size:clamp(28px,3.6vw,40px);color:var(--green-900);max-width:16ch}
.ai-spotlight-copy p{margin-top:16px;font-size:15.5px;line-height:1.7;color:var(--ink-soft);max-width:46ch}
.ai-spotlight-copy .btn{margin-top:26px}
.ai-mock{background:var(--green-950);color:var(--cream);border-radius:var(--radius-lg);padding:28px;box-shadow:var(--shadow-lg)}
.ai-mock-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid rgba(247,239,220,.14);font-size:13.5px}
.ai-mock-row span{color:rgba(247,239,220,.6)}
.ai-mock-row strong{color:var(--cream)}
.ai-mock-chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.ai-mock-chip{background:rgba(247,239,220,.12);border:1px solid rgba(247,239,220,.22);border-radius:999px;padding:6px 12px;font-size:12px}
.ai-mock-cta{display:flex;align-items:center;gap:8px;justify-content:center;background:var(--terracotta);border-radius:999px;padding:12px 18px;font-size:13.5px;font-weight:700}
.ai-mock-cta svg{animation:spin 2.4s linear infinite}

/* ---------- community teaser ---------- */
.community-teaser{padding:100px clamp(20px,6vw,90px);text-align:center}
.community-teaser h2{margin-top:10px;font-size:clamp(28px,3.6vw,40px);color:var(--green-900);max-width:20ch;margin-left:auto;margin-right:auto}
.teaser-gallery{max-width:1000px;grid-template-columns:repeat(3,1fr);margin:48px auto 40px}
.community-teaser-empty{background:var(--cream)}
.community-teaser-sub{max-width:52ch;margin:16px auto 30px;color:var(--ink-soft);font-size:15px;line-height:1.65}

/* ---------- FAQ ---------- */
.faq{padding:100px clamp(20px,6vw,90px);background:var(--cream)}
.faq-head,.faq{text-align:center}
.faq h2{margin-top:10px;font-size:clamp(28px,3.6vw,40px);color:var(--green-900);max-width:20ch;margin-left:auto;margin-right:auto}
.faq-list{max-width:760px;margin:48px auto 0;display:flex;flex-direction:column;gap:12px;text-align:left}
.faq-item{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-md);padding:6px 22px}
.faq-item summary{
  cursor:pointer;list-style:none;padding:18px 0;font-weight:700;color:var(--green-900);font-size:15.5px;
  display:flex;justify-content:space-between;align-items:center;gap:16px;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";font-size:22px;color:var(--terracotta);transition:transform .2s;flex:none;line-height:1}
.faq-item[open] summary::after{transform:rotate(45deg)}
.faq-item p{padding:0 0 20px;margin:0;color:var(--ink-soft);font-size:14.5px;line-height:1.65}

/* ---------- final CTA band ---------- */
.cta-band{background:var(--green-950);color:var(--cream);text-align:center;padding:90px clamp(20px,6vw,90px)}
.cta-band h2{font-family:var(--font-display);font-size:clamp(28px,4vw,42px);color:var(--cream-soft);font-weight:500}
.cta-band p{margin-top:12px;font-size:15.5px;color:rgba(247,239,220,.75)}
.cta-band .btn{margin-top:30px}

/* ---------- footer ---------- */
.site-footer{background:var(--green-950);color:rgba(247,239,220,.85);padding:56px clamp(20px,6vw,90px) 28px}
.footer-grid{display:flex;flex-wrap:wrap;justify-content:space-between;gap:48px}
.footer-top{max-width:420px}
.footer-logo{height:34px;width:auto;margin-bottom:14px}
.footer-top p{font-size:14px;line-height:1.6;color:rgba(247,239,220,.65)}
.footer-links{display:flex;flex-direction:column;gap:10px;font-size:13.5px}
.footer-links a{color:rgba(247,239,220,.75);text-decoration:none}
.footer-links a:hover{color:var(--cream)}
.footer-bottom{margin-top:40px;padding-top:20px;border-top:1px solid rgba(247,239,220,.14);font-size:12px;color:rgba(247,239,220,.55)}
.footer-bottom a{color:rgba(247,239,220,.8);text-decoration:underline}

/* ---------- toast ---------- */
.toast{
  position:fixed;bottom:26px;left:50%;transform:translateX(-50%) translateY(20px);z-index:900;
  display:flex;align-items:center;gap:16px;max-width:calc(100vw - 32px);
  background:var(--green-950);color:var(--cream);padding:12px 20px;border-radius:999px;font-size:13.5px;font-weight:600;
  box-shadow:var(--shadow-lg);opacity:0;pointer-events:none;transition:.25s;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);pointer-events:auto}
.toast-action{
  background:none;border:none;padding:0;flex-shrink:0;cursor:pointer;
  color:var(--cream);text-decoration:underline;font-weight:800;font-size:13.5px;font-family:inherit;
}

/* ===========================================================
   AUTH PAGES (connexion / inscription)
   =========================================================== */
.auth-body{background:var(--cream-soft);min-height:100vh}
.auth-wrap{display:flex;min-height:100vh}
.auth-side{
  flex:1 1 42%;position:relative;overflow:hidden;color:var(--cream);
  display:flex;flex-direction:column;justify-content:space-between;padding:36px;min-width:0;
}
.auth-side-svg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.auth-side-brand{position:relative;z-index:1;display:inline-flex}
.auth-side-brand img{height:30px;width:auto}
.auth-side-quote{
  position:relative;z-index:1;font-family:var(--font-display);font-size:22px;line-height:1.5;
  max-width:38ch;color:var(--cream-soft);
}
.auth-main{flex:1 1 58%;display:flex;align-items:center;justify-content:center;padding:32px}
.auth-mobile-brand{display:none;margin-bottom:22px}
.auth-mobile-brand img{height:28px}
.auth-card{width:100%;max-width:420px}
.auth-eyebrow{font-weight:700;font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--terracotta)}
.auth-card h1{font-size:32px;color:var(--green-900);margin-top:8px}
.auth-sub{margin-top:10px;color:var(--ink-soft);font-size:14.5px;line-height:1.55}
.auth-form{margin-top:26px;display:flex;flex-direction:column;gap:16px}
.auth-form .field label{color:var(--ink-soft)}
.auth-form input{
  width:100%;border:1.5px solid var(--line);border-radius:11px;padding:12px 14px;
  outline:none;background:var(--paper);color:var(--ink);font-size:15px;
}
.auth-form select{
  width:100%;border:1.5px solid var(--line);border-radius:11px;padding:12px 14px;
  outline:none;background:var(--paper);color:var(--ink);font-size:15px;
}
.auth-form input:focus,.auth-form select:focus{border-color:var(--green-700)}
.field-row{display:flex;gap:14px}
.field-row .field{flex:1;min-width:0}
.auth-alert{
  margin-top:18px;padding:12px 14px;border-radius:10px;background:#fdf0ee;color:#a33a29;
  font-size:13.5px;font-weight:600;
}
.auth-note{
  margin:-4px 0 2px;padding:10px 12px;border-radius:9px;background:var(--cream);
  color:var(--green-900);font-size:13px;font-weight:600;
}
.btn-google{display:inline-flex;align-items:center;justify-content:center;gap:10px}
.btn-google .google-icon{width:18px;height:18px;flex:none}
.auth-divider{display:flex;align-items:center;gap:12px;margin:22px 0;color:var(--ink-soft);font-size:12.5px;text-transform:uppercase;letter-spacing:.08em}
.auth-divider::before,.auth-divider::after{content:"";flex:1;height:1px;background:var(--line)}
.auth-switch{margin-top:22px;font-size:13.5px;color:var(--ink-soft);text-align:center}
.auth-switch a{color:var(--green-800);font-weight:700;text-decoration:underline}
.quickstart-hint{margin-top:10px;font-size:12px;color:rgba(247,239,220,.65)}

.profile-avatar{margin-top:26px;display:flex;align-items:center;gap:16px}
.profile-avatar-img{width:72px;height:72px;border-radius:50%;object-fit:cover;border:1px solid var(--line)}
.profile-avatar-fallback{
  width:72px;height:72px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:var(--green-900);color:var(--cream);font-family:var(--font-display);font-size:28px;flex:none;
}
.profile-avatar-actions{display:flex;flex-wrap:wrap;gap:10px}
.profile-avatar-actions label.btn{cursor:pointer}
.profile-info{margin-top:26px;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.profile-row{display:flex;justify-content:space-between;padding:14px 16px;background:var(--cream-soft)}
.profile-row + .profile-row{border-top:1px solid var(--line)}
.profile-label{font-size:13px;color:var(--ink-soft);font-weight:600}
.profile-value{font-size:13px;color:var(--green-900);font-weight:700}
.profile-linked{color:var(--green-700)}
.profile-link-btn{font-size:13px;font-weight:700;color:var(--green-800);text-decoration:underline}
.profile-info + .auth-form{margin-top:24px}

@media (max-width: 860px){
  .auth-side{display:none}
  .auth-mobile-brand{display:inline-flex}
  .auth-main{padding:26px 20px}
}

@media (max-width: 420px){
  .field-row{flex-direction:column;gap:16px}
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px){
  .nav-pill,.nav-cta{display:none}
  .nav-burger{display:block}
  .how-grid,.features-grid{grid-template-columns:1fr 1fr}
  .teaser-gallery{grid-template-columns:1fr 1fr}
  .ai-spotlight{grid-template-columns:1fr;gap:40px}
  .ai-spotlight-copy p{max-width:none}
  .hero-inner{grid-template-columns:1fr}
  .hero-visual{display:none}
  .hero-content{max-width:none}
  .planner-sidebar{width:340px}

  .site-nav.nav-open .nav-pill{
    display:flex;flex-direction:column;align-items:stretch;gap:2px;
    position:absolute;top:calc(var(--nav-h) - 10px);left:16px;right:16px;
    background:rgba(18,48,31,.92);backdrop-filter:blur(14px);border-radius:18px;padding:10px;
  }
  .site-nav.nav-open .nav-pill a{padding:12px 14px;text-align:left}
  .site-nav.nav-open .nav-cta{
    display:flex;position:absolute;top:calc(var(--nav-h) + 150px);left:16px;right:16px;justify-content:center;
  }
}

@media (max-width: 760px){
  :root{--nav-h:64px}
  .brand-word{font-size:19px}
  .hero-inner{padding-top:calc(var(--nav-h) + 14px)}
  .quickstart-form{flex-direction:column;align-items:stretch}
  .quickstart-form button{width:100%}
  .compare-grid{grid-template-columns:1fr}
  .teaser-gallery{grid-template-columns:1fr}
  .footer-grid{flex-direction:column;gap:28px}
  .playback-bar{bottom:calc(84px + env(safe-area-inset-bottom))}

  /* ---- smaller "app chrome" all round on small screens ---- */
  .floating-topbar{
    gap:6px;padding:6px 8px 6px 10px;top:calc(10px + env(safe-area-inset-top));
    left:calc(8px + env(safe-area-inset-left));right:calc(8px + env(safe-area-inset-right));
  }
  .brand-mark-sm{width:24px;height:24px}
  .brand-word-sm{font-size:16px}
  .user-avatar{width:24px;height:24px;font-size:11px}
  .user-name{display:none}
  .icon-btn{width:32px;height:32px}
  /* On desktop this row is absolutely centered in the pill, which only works because there's
     always room either side. On mobile the icon-only buttons can now outgrow that room (4 of
     them as of the AI generator), so it flows in the flex row instead — flexbox reserves space
     for the brand/profile first and only gives this the leftover, with a horizontal-scroll
     fallback so it degrades gracefully instead of overlapping anything. */
  .floating-topbar-center{
    position:static;left:auto;top:auto;transform:none;
    flex:1;justify-content:center;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:none;
  }
  .floating-topbar-center::-webkit-scrollbar{display:none}
  .trip-switcher-btn{height:32px;padding:0 9px;font-size:0;gap:0;flex:none}
  .trip-switcher-btn svg{width:16px;height:16px}

  /* "Plus" collapses Explorer + Proposer un spot behind a single toggle, so the two most
     useful actions (Générer un itinéraire, Mes voyages) stay directly reachable instead of
     being buried in the horizontal-scroll strip. */
  .topbar-more{position:relative;display:block}
  #btnMoreMenu{display:flex}
  .topbar-more-menu{
    display:none;position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);
    flex-direction:column;gap:6px;background:var(--paper);border-radius:16px;padding:8px;
    box-shadow:var(--shadow-lg);min-width:230px;z-index:700;
  }
  .topbar-more-menu.open{display:flex}
  .topbar-more-menu .trip-switcher-btn{
    background:var(--cream-soft);color:var(--ink);border-color:var(--line);
    font-size:13px;height:auto;padding:10px 12px;justify-content:flex-start;gap:8px;
  }
  .topbar-more-menu .trip-switcher-btn svg{width:16px;height:16px}
  .topbar-more-menu .trip-switcher-btn:hover{background:var(--line)}
  .layer-switch{top:calc(62px + env(safe-area-inset-top))}
  .map-badge,.search-area-btn,.spots-loading{top:calc(62px + env(safe-area-inset-top));left:50%;right:auto;transform:translateX(-50%)}
  .layer-switch{right:calc(10px + env(safe-area-inset-right))}
  .layer-switch-btn{padding:6px 9px;font-size:11px}
  .layer-switch-btn svg{width:12px;height:12px}
  .map-badge{font-size:12px;padding:8px 12px}
  .search-area-btn{font-size:12px;padding:8px 14px}

  .planner-sidebar{
    position:fixed;inset:0;top:auto;width:auto;z-index:20;
    left:calc(10px + env(safe-area-inset-left));right:calc(10px + env(safe-area-inset-right));
    bottom:calc(10px + env(safe-area-inset-bottom));height:66%;
    border-radius:20px 20px 20px 20px;box-shadow:0 -10px 30px rgba(0,0,0,.15);
    transform:translateY(calc(100% - 60px));transition:transform .28s ease;
  }
  .planner-sidebar::before{
    content:"";position:absolute;top:9px;left:50%;transform:translateX(-50%);
    width:40px;height:4px;border-radius:99px;background:var(--line);
  }
  .planner-sidebar.open{transform:translateY(0)}
  .panel-tabs{padding:16px 8px 0}
  .panel-tab{padding:8px 4px;font-size:11.5px}
  .fab{
    display:flex;width:48px;height:48px;
    bottom:calc(16px + env(safe-area-inset-bottom));right:calc(14px + env(safe-area-inset-right));
  }

  /* ---- smaller cards, chips, text throughout ---- */
  .tab-field{padding:11px 14px 0}
  .trip-name-input{font-size:16px;padding:7px 10px}
  .trip-stats{top:calc(64px + env(safe-area-inset-top));gap:5px}
  .stat{padding:6px 10px;font-size:11.5px;gap:5px}
  .stat svg{width:13px;height:13px}
  .export-actions{padding:12px 14px}
  .export-btn{padding:11px 14px;font-size:13px}
  .search-block{padding:14px 14px 10px}
  .search-box{padding:8px 10px}
  .cat-chip{padding:6px 10px;font-size:11.5px}
  .spot-filter-chip{padding:4px 9px;font-size:10.5px}
  .pref-toggle-label{font-size:12px}
  .itinerary{padding:6px 10px 70px}
  .day-head .day-title{font-size:15px}
  .wp-card{padding:9px 10px;border-radius:12px}
  .wp-icon{width:28px;height:28px;border-radius:8px}
  .wp-icon svg{width:14px;height:14px}
  .wp-name{font-size:13px}
  .wp-sub{font-size:11px}
  .leg-connector{font-size:10.5px;padding-left:36px}
  .btn-lg{padding:12px 22px;font-size:14px}
  .modal-body,.modal-head,.modal-foot{padding-left:16px;padding-right:16px}
  .drawer-head h3{font-size:17px}

  .how-grid,.features-grid{grid-template-columns:1fr}
}

/* On desktop, the tabs become a slim vertical rail; the content card only appears once a
   tab is picked (see #plannerSidebar.panel-open in app.js) instead of always being visible. */
@media (min-width: 761px){
  .planner-sidebar{
    flex-direction:row;align-items:stretch;background:transparent;box-shadow:none;
    border-radius:0;overflow:visible;width:auto;
  }
  .panel-tabs{
    flex-direction:column;gap:8px;padding:10px 6px;flex:none;width:80px;
    background:var(--paper);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);
    height:100%;
  }
  .panel-tab{
    flex:none;flex-direction:column;gap:4px;padding:12px 4px;border-radius:12px;
    font-size:10px;border-bottom:none;white-space:nowrap;
  }
  .panel-tab svg{width:18px;height:18px}
  .panel-tab.active{color:var(--cream);background:var(--green-900)}
  .panel-tab[data-tab="feedback"]{margin-top:auto}
  .planner-content{
    display:none;position:relative;width:400px;margin-left:12px;padding-top:52px;
    background:var(--paper);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);
    transition:width .2s ease;
  }
  .planner-content.wide{width:calc(100vw - 124px)}
  .planner-sidebar.panel-open .planner-content{display:flex}
  .planner-content-head{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    position:absolute;top:0;left:0;right:0;height:52px;padding:0 10px 0 20px;z-index:10;
  }
  .planner-content-title{font-size:16px;color:var(--green-900);font-family:var(--font-display);margin:0}
}

@media (max-width: 480px){
  .hero h1{max-width:100%}
  .quickstart{padding:18px}
  .panel-tab{font-size:0;gap:0;padding:9px 2px}
  .panel-tab svg{width:18px;height:18px}
}

/* ---------- community pages (decouvrir / trip_public / admin_spots) ---------- */
.page-body{min-height:100vh;display:flex;flex-direction:column}
/* Same floating dark pill as the homepage nav (.site-nav) and the app's .floating-topbar,
   so every page in the site shares one nav component instead of three different looks. */
.page-topbar{
  position:fixed;top:16px;left:16px;right:16px;z-index:600;
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding:10px 14px 10px 20px;border-radius:999px;
  background:var(--green-950);color:var(--cream);box-shadow:var(--shadow-lg);
}
.page-topbar .brand{color:var(--cream)}
.page-topbar-nav{display:flex;align-items:center;gap:2px;flex-wrap:wrap;font-size:13.5px;font-weight:700}
.page-topbar-nav a:not(.btn){
  color:rgba(247,239,220,.85);text-decoration:none;padding:9px 14px;border-radius:999px;transition:.2s;
}
.page-topbar-nav a:not(.btn):hover{background:rgba(247,239,220,.12);color:var(--cream)}
.page-main{flex:1;padding:110px clamp(20px,5vw,60px) 80px}
.page-wrap{max-width:920px;margin:0 auto}
/* Full-bleed dark band echoing the homepage's dark hero/CTA sections — bleeds out of
   .page-main's own padding via negative margins, then re-applies it on top so content
   underneath still clears the fixed .page-topbar. */
.page-header-band{
  background:var(--green-950);color:var(--cream);
  margin:-110px calc(-1 * clamp(20px, 5vw, 60px)) 40px;
  padding:calc(110px + 28px) clamp(20px, 5vw, 60px) 40px;
}
.page-header-band .auth-eyebrow{color:var(--gold)}
.page-header-band .page-title{color:var(--cream-soft)}
.page-header-band .auth-sub{color:rgba(247,239,220,.82)}
.page-title{font-size:clamp(26px,3.4vw,38px);color:var(--green-900);margin-top:6px;font-family:var(--font-display)}
.section-title{font-size:19px;color:var(--green-900);margin:36px 0 14px;font-family:var(--font-display)}
.stars{color:var(--gold);letter-spacing:1px}

/* discover toolbar (search + sort) */
.discover-toolbar{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:22px}
.discover-search{flex:1;min-width:220px}
.discover-sort{display:flex;flex-wrap:wrap;gap:6px}

/* gallery grid */
.trip-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:22px;margin-top:28px}
.trip-card{
  display:flex;flex-direction:column;background:var(--paper);border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);overflow:hidden;text-decoration:none;color:inherit;transition:box-shadow .15s ease,transform .15s ease;
}
.trip-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.trip-card-thumb{width:100%;height:150px;object-fit:cover;background:var(--cream)}
.teaser-map.leaflet-container{font:inherit}
.trip-card-thumb.leaflet-container{cursor:pointer}
.trip-card-body{padding:16px 18px}
.trip-card-body h3{font-size:16.5px;color:var(--green-900);margin:0 0 6px}
.trip-card-desc{font-size:13px;color:var(--ink-soft);margin:0 0 10px;line-height:1.5}
.trip-card-meta{font-size:12px;color:var(--ink-soft);margin:0}
.like-badge{white-space:nowrap}
.pagination{display:flex;justify-content:center;gap:12px;margin-top:36px}

/* trip public page */
.trip-public-hero{width:100%;height:420px;object-fit:cover;border-radius:var(--radius-md);overflow:hidden;background:var(--cream);margin-bottom:18px}
.trip-public-desc{font-size:15px;line-height:1.6;color:var(--ink);margin:14px 0}
.trip-public-meta{font-size:13px;color:var(--ink-soft)}
.trip-public-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}

.waypoint-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.waypoint-list li{
  padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--paper);
  font-size:13.5px;display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;
}
.waypoint-cat{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--terracotta-dark)}
.waypoint-address{font-size:12.5px;color:var(--ink-soft)}

.review-form,.comment-form{
  display:flex;flex-direction:column;gap:12px;margin:16px 0;padding:16px;
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-md);
}
.review-form textarea,.comment-form textarea{
  width:100%;border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;outline:none;
  background:var(--cream-soft);color:var(--ink);font-family:inherit;font-size:13.5px;resize:vertical;
}
.review-form textarea:focus,.comment-form textarea:focus{border-color:var(--green-700)}
.review-form select{
  border:1.5px solid var(--line);border-radius:10px;padding:9px 12px;outline:none;background:var(--cream-soft);
  color:var(--ink);font-family:inherit;font-size:13.5px;
}
.review-list,.comment-list{display:flex;flex-direction:column;gap:12px;margin-top:14px}
.review-item,.comment-item{padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.review-item-head,.comment-item-head{display:flex;align-items:center;gap:10px;margin-bottom:6px;font-size:13px}
.review-date{font-size:11.5px;color:var(--ink-soft);margin-left:auto}
.review-item p,.comment-item p{margin:0;font-size:13.5px;line-height:1.5;color:var(--ink)}

/* admin moderation */
.mod-list{display:flex;flex-direction:column;gap:16px;margin-top:24px}
.mod-card{
  display:flex;justify-content:space-between;gap:18px;padding:18px 20px;
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);
}
.mod-card-main h3{font-size:16px;color:var(--green-900);margin:6px 0}
.mod-card-desc{font-size:13px;color:var(--ink-soft);margin:0 0 8px;max-width:52ch}
.mod-card-photos{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.mod-card-photos img{width:72px;height:72px;object-fit:cover;border-radius:8px;background:var(--cream)}
.mod-card-meta{font-size:12px;color:var(--ink-soft);margin:0}
.mod-card-meta a{color:var(--green-800);font-weight:700}
.mod-card-actions{display:flex;flex-direction:column;gap:8px;flex:none}
.spot-type-badge{
  display:inline-block;padding:3px 10px;border-radius:999px;background:var(--cream);color:var(--green-800);
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;
}

@media (max-width: 600px){
  .mod-card{flex-direction:column}
  .mod-card-actions{flex-direction:row}
}

/* admin dashboard */
.page-wrap-wide{max-width:1080px}
.admin-tabs{display:flex;gap:6px;margin-top:24px;border-bottom:1px solid var(--line)}
.admin-tab{
  padding:10px 16px;font-size:13.5px;font-weight:700;color:var(--ink-soft);text-decoration:none;
  border-bottom:2px solid transparent;margin-bottom:-1px;
}
.admin-tab:hover{color:var(--green-900)}
.admin-tab.active{color:var(--green-900);border-bottom-color:var(--terracotta)}

.admin-group-title{font-size:15px;color:var(--green-900);font-family:var(--font-display);margin:28px 0 12px}
.admin-stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}
.admin-stat{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-md);
  padding:16px 18px;display:flex;flex-direction:column;gap:4px;
}
.admin-stat-value{font-family:var(--font-display);font-size:28px;color:var(--green-900)}
.admin-stat-label{font-size:12px;color:var(--ink-soft)}

.admin-search{display:flex;gap:10px;align-items:center;margin:22px 0}
.admin-search .search-box{flex:1;max-width:420px}

.admin-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--paper)}
.admin-table{width:100%;border-collapse:collapse;font-size:13.5px}
.admin-table th{
  text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--ink-soft);
  padding:12px 16px;border-bottom:1px solid var(--line);white-space:nowrap;
}
.admin-table td{padding:12px 16px;border-bottom:1px solid var(--line);vertical-align:top}
.admin-table tr:last-child td{border-bottom:none}
.admin-table-sub{font-size:11.5px;color:var(--ink-soft);margin-top:2px}
.admin-table-actions{display:flex;gap:8px;flex-wrap:wrap}
.admin-table-empty{text-align:center;color:var(--ink-soft);padding:28px 16px}
.admin-role-badge{
  display:inline-block;padding:3px 10px;border-radius:999px;background:var(--cream);color:var(--ink-soft);
  font-size:11px;font-weight:700;
}
.admin-role-badge.is-admin{background:var(--olive);color:#fff}

.admin-filter-note{font-size:13px;color:var(--ink-soft);margin-top:20px}
.admin-back-link{display:inline-block;margin-top:20px;font-size:13px;font-weight:700;color:var(--green-800)}
.admin-trip-detail{
  margin-top:14px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-md);
  padding:22px 24px;
}
.admin-trip-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.admin-trip-detail-head h2{font-size:19px;color:var(--green-900);font-family:var(--font-display)}

@media (max-width: 700px){
  .admin-search{flex-direction:column;align-items:stretch}
  .admin-search .search-box{max-width:none}
}

/* ---------- print ---------- */
@media print{
  .site-nav,.floating-topbar,.trip-stats,.hero,.how,.features,.site-footer,.export-actions,
  .panel-tabs,.planner-sidebar .search-block,.planner-map-wrap,.fab,.toast,.drawer-overlay,.trip-drawer,.modal-overlay{display:none !important}
  .app-body{height:auto;overflow:visible}
  .planner-sidebar{
    position:static;inset:auto;width:100%;max-height:none;height:auto;overflow:visible;
    box-shadow:none;border-radius:0;flex-direction:column;
  }
  .planner-content{display:block !important;width:auto;margin-left:0;background:none;box-shadow:none}
  .panel-tab-panel{display:block !important;overflow:visible;height:auto}
  .itinerary{overflow:visible;padding:0}
  body{background:#fff}
}
