/* ============================================================
   BASSIN VÉLO — Design System
   La plateforme vélo du Bassin d'Arcachon
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  --ocean:    #0A6E9F;
  --ocean-dk: #074F74;
  --ocean-lt: #1A8BC5;
  --sky:      #5BB8E8;
  --sky-lt:   #A8D8F0;
  --sand:     #E8D5A3;
  --sand-dk:  #D4B96A;
  --sunset:   #F4883A;
  --sunset-dk:#D96E20;
  --pine:     #2D5A27;
  --pine-lt:  #3D7535;
  --foam:     #F7F4EE;
  --foam-dk:  #EDE8DC;
  --night:    #0D1B2A;
  --night-lt: #152637;
  --white:    #FFFFFF;
  --gray-100: #F5F5F4;
  --gray-200: #E7E5E4;
  --gray-400: #A8A29E;
  --gray-600: #78716C;
  --gray-800: #292524;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full: 999px;

  --shadow-sm:  0 1px 3px rgba(10,110,159,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(10,110,159,.12), 0 2px 8px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(10,110,159,.18), 0 4px 12px rgba(0,0,0,.10);
  --shadow-xl:  0 24px 48px rgba(10,110,159,.22), 0 12px 24px rgba(0,0,0,.12);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);

  --nav-height: 64px;
  --bottom-nav: 72px;
  --header-h: 60px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--foam);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: var(--bottom-nav);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* ── Typography ── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.01em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.2;
  font-weight: 500;
}
.title-lg { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.title-md { font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
.title-sm { font-size: .95rem; font-weight: 600; line-height: 1.4; }
.body-lg  { font-size: 1.05rem; font-weight: 400; line-height: 1.65; }
.body-md  { font-size: .95rem; font-weight: 400; line-height: 1.6; }
.body-sm  { font-size: .85rem; font-weight: 400; line-height: 1.55; }
.caption  { font-size: .75rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

/* ── Top Header ── */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(247,244,238,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10,110,159,.08);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
}
.app-header__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ocean);
  letter-spacing: -.02em;
}
.app-header__logo span {
  color: var(--sunset);
}
.app-header__spacer { flex: 1; }
.app-header__btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--ocean);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform .2s var(--ease-bounce), background .2s;
}
.app-header__btn:hover { transform: scale(1.08); background: var(--ocean-dk); }

.page-content {
  padding-top: var(--header-h);
}

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav);
  background: rgba(247,244,238,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(10,110,159,.1);
  display: flex;
  z-index: 100;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  transition: all .2s var(--ease);
  color: var(--gray-400);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
}
.bottom-nav__item.active {
  color: var(--ocean);
}
.bottom-nav__item.active .bottom-nav__icon {
  background: rgba(10,110,159,.1);
  transform: translateY(-2px) scale(1.1);
}
.bottom-nav__icon {
  width: 44px; height: 28px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: all .25s var(--ease-bounce);
}
.bottom-nav__item--cta { color: var(--sunset); }
.bottom-nav__item--cta.active { color: var(--sunset-dk); }
.bottom-nav__item--cta.active .bottom-nav__icon { background: rgba(244,136,58,.12); }

/* ── Hero Section ── */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 32px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    var(--night) 0%,
    var(--ocean) 35%,
    var(--sky) 60%,
    var(--sand) 85%,
    var(--sunset) 100%
  );
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 60%, rgba(91,184,232,.3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(10,110,159,.4) 0%, transparent 50%),
    radial-gradient(ellipse 100% 30% at 50% 90%, rgba(13,27,42,.6) 0%, transparent 60%);
  animation: heroShimmer 8s ease-in-out infinite alternate;
}
@keyframes heroShimmer {
  0%  { opacity: .8; }
  100%{ opacity: 1; transform: scale(1.02); }
}
.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  color: white;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: fadeUp .6s var(--ease) both;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 4.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 14px;
  animation: fadeUp .7s var(--ease) .1s both;
}
.hero__title em {
  font-style: italic;
  color: var(--sand);
}
.hero__sub {
  font-size: 1.05rem;
  font-weight: 400;
  opacity: .85;
  margin-bottom: 32px;
  animation: fadeUp .7s var(--ease) .2s both;
  max-width: 340px;
}
.hero__stats {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  animation: fadeUp .7s var(--ease) .25s both;
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sand);
  line-height: 1;
}
.hero__stat-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .7;
  margin-top: 2px;
}
.hero__cta-group {
  display: flex;
  gap: 12px;
  animation: fadeUp .7s var(--ease) .3s both;
}
.hero__scroll {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: .95rem;
  font-weight: 600;
  transition: all .22s var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--sunset);
  color: white;
  box-shadow: 0 4px 20px rgba(244,136,58,.4);
}
.btn-primary:hover { background: var(--sunset-dk); box-shadow: 0 6px 24px rgba(244,136,58,.5); transform: translateY(-1px); }
.btn-ocean {
  background: var(--ocean);
  color: white;
  box-shadow: 0 4px 20px rgba(10,110,159,.3);
}
.btn-ocean:hover { background: var(--ocean-dk); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.4);
  color: white;
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--ocean);
  color: var(--ocean);
}
.btn-outline:hover { background: var(--ocean); color: white; }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-icon { padding: 12px; border-radius: 50%; }

/* ── Section Layout ── */
.section {
  padding: 48px 20px;
}
.section--tight { padding: 32px 20px; }
.section--flush { padding: 0 20px; }
.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.section__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--night);
  line-height: 1.2;
}
.section__link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ocean);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section__subtitle {
  font-size: .95rem;
  color: var(--gray-600);
  margin-top: 6px;
  font-weight: 400;
}

/* ── Route Cards ── */
.route-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}
.route-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.route-card:active { transform: scale(.99); }
.route-card__hero {
  height: 190px;
  position: relative;
  overflow: hidden;
}
.route-card__hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.route-card:hover .route-card__hero img { transform: scale(1.04); }
.route-card__difficulty {
  position: absolute;
  top: 12px; right: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.diff-easy   { background: rgba(45,90,39,.85); color: white; }
.diff-medium { background: rgba(244,136,58,.85); color: white; }
.diff-hard   { background: rgba(220,53,69,.85); color: white; }
.route-card__save {
  position: absolute;
  top: 12px; left: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all .2s var(--ease-bounce);
}
.route-card__save:hover { transform: scale(1.15); }
.route-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.route-card__city {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.route-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--night);
  line-height: 1.25;
  margin-bottom: 8px;
}
.route-card__desc {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.route-card__stats {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
}
.route-card__stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--gray-600);
}
.route-card__stat-icon {
  font-size: .9rem;
}
.route-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tag {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 600;
  background: var(--foam-dk);
  color: var(--gray-600);
}
.tag--ocean { background: rgba(10,110,159,.1); color: var(--ocean); }
.tag--sunset { background: rgba(244,136,58,.1); color: var(--sunset-dk); }
.tag--pine { background: rgba(45,90,39,.1); color: var(--pine); }

/* ── Horizontal Scroll Container ── */
.scroll-x {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 20px 16px;
  margin: 0 -20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { flex-shrink: 0; }

/* ── City Cards ── */
.city-card {
  width: 200px;
  height: 130px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .25s var(--ease-bounce);
}
.city-card:hover { transform: translateY(-3px) scale(1.02); }
.city-card__bg {
  position: absolute;
  inset: 0;
}
.city-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13,27,42,.7) 0%, transparent 60%);
}
.city-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px;
  z-index: 2;
  color: white;
}
.city-card__emoji { font-size: 1.4rem; margin-bottom: 4px; display: block; }
.city-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.city-card__tag {
  font-size: .72rem;
  opacity: .75;
  font-weight: 400;
}

/* ── Mood Pills ── */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  padding: 4px 0;
}
.mood-pill {
  padding: 14px 10px;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
  text-align: center;
  cursor: pointer;
  transition: all .2s var(--ease-bounce);
  border: 2px solid transparent;
}
.mood-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mood-pill.selected {
  border-color: var(--ocean);
  background: rgba(10,110,159,.06);
}
.mood-pill__emoji { font-size: 1.5rem; margin-bottom: 6px; display: block; }
.mood-pill__label { font-size: .78rem; font-weight: 600; color: var(--gray-800); }

/* ── Search / Filter Bar ── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(10,110,159,.12);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .95rem;
  color: var(--gray-800);
  background: transparent;
}
.search-bar input::placeholder { color: var(--gray-400); }
.search-bar__icon { color: var(--gray-400); font-size: 1.1rem; }

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: white;
  border: 1.5px solid var(--gray-200);
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all .18s var(--ease);
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--ocean); color: var(--ocean); }
.filter-chip.active {
  background: var(--ocean);
  border-color: var(--ocean);
  color: white;
}

/* ── Route Grid ── */
.routes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .routes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .routes-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Map Container ── */
.map-container {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-container--full {
  height: calc(100svh - var(--header-h));
  border-radius: 0;
  min-height: auto;
}
#map { width: 100%; height: 100%; }

/* Map controls */
.map-ctrl {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-ctrl--tr { top: 12px; right: 12px; }
.map-ctrl--bl { bottom: 20px; left: 12px; }
.map-ctrl--br { bottom: 20px; right: 12px; }
.map-btn {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all .2s var(--ease-bounce);
  color: var(--night);
}
.map-btn:hover { transform: scale(1.08); }
.map-btn.active { background: var(--ocean); color: white; }

/* ── Route Detail ── */
.route-hero {
  height: 55vw;
  min-height: 240px;
  max-height: 380px;
  position: relative;
  overflow: hidden;
}
.route-hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.route-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13,27,42,.85) 0%, rgba(13,27,42,.2) 50%, transparent 100%);
}
.route-hero__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  color: white;
}
.route-hero__back {
  position: absolute;
  top: 16px; left: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: white;
  transition: all .2s var(--ease-bounce);
}
.route-hero__back:hover { transform: scale(1.1); background: rgba(255,255,255,.3); }

/* Stats pills */
.stats-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: white;
  border-bottom: 1px solid var(--gray-200);
}
.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--foam);
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-800);
}
.stat-pill__icon { font-size: .95rem; }
.stat-pill--accent { background: rgba(10,110,159,.1); color: var(--ocean); }

/* Tabs */
.tabs {
  display: flex;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: var(--header-h);
  z-index: 50;
}
.tab {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-400);
  border-bottom: 2.5px solid transparent;
  transition: all .2s var(--ease);
  cursor: pointer;
}
.tab.active {
  color: var(--ocean);
  border-bottom-color: var(--ocean);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Spot List Items */
.spot-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}
.spot-item:last-child { border-bottom: none; }
.spot-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.spot-item__content { flex: 1; }
.spot-item__title { font-size: .95rem; font-weight: 600; color: var(--night); margin-bottom: 3px; }
.spot-item__desc { font-size: .82rem; color: var(--gray-600); line-height: 1.5; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--night);
  cursor: pointer;
}
.faq-icon {
  font-size: 1.1rem;
  transition: transform .25s var(--ease);
  color: var(--ocean);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding-bottom: 18px;
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.65;
}
.faq-item.open .faq-answer { display: block; }

/* ── CTA Cards ── */
.cta-card {
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.cta-card--ocean {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-lt) 100%);
  color: white;
}
.cta-card--sunset {
  background: linear-gradient(135deg, var(--sunset-dk) 0%, var(--sunset) 100%);
  color: white;
}
.cta-card--night {
  background: linear-gradient(135deg, var(--night) 0%, var(--night-lt) 100%);
  color: white;
}
.cta-card__emoji {
  font-size: 2.5rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
}
.cta-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}
.cta-card__desc {
  font-size: .88rem;
  opacity: .85;
  line-height: 1.55;
}
.cta-card__deco {
  position: absolute;
  top: -20px; right: -20px;
  font-size: 8rem;
  opacity: .08;
  pointer-events: none;
}

/* ── GPS Navigation ── */
.nav-screen {
  position: fixed;
  inset: 0;
  background: var(--night);
  z-index: 200;
  display: none;
  flex-direction: column;
}
.nav-screen.active { display: flex; }
.nav-map {
  flex: 1;
  position: relative;
}
.nav-panel {
  background: var(--night-lt);
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  color: white;
}
.nav-info {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.nav-metric__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sky);
}
.nav-metric__unit {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav-controls {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.nav-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s var(--ease);
}
.nav-btn--stop {
  background: rgba(220,53,69,.2);
  color: #FF6B7A;
  border: 1px solid rgba(220,53,69,.3);
}
.nav-btn--recenter {
  background: rgba(91,184,232,.15);
  color: var(--sky);
  border: 1px solid rgba(91,184,232,.25);
}
.gps-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--sky);
  border: 3px solid white;
  box-shadow: 0 0 0 8px rgba(91,184,232,.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(91,184,232,.3); }
  50% { box-shadow: 0 0 0 12px rgba(91,184,232,.1); }
}
.offroute-alert {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(220,53,69,.9);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  z-index: 20;
  display: none;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  animation: shake .4s var(--ease);
}
.offroute-alert.visible { display: flex; }
@keyframes shake {
  0%, 100% { transform: translateX(-50%); }
  25% { transform: translateX(calc(-50% - 5px)); }
  75% { transform: translateX(calc(-50% + 5px)); }
}

/* ── PWA Install Banner ── */
.pwa-banner {
  position: fixed;
  bottom: calc(var(--bottom-nav) + 16px);
  left: 16px; right: 16px;
  background: var(--night);
  color: white;
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-xl);
  z-index: 90;
  animation: slideUp .4s var(--ease-bounce);
  display: none;
}
.pwa-banner.visible { display: flex; }
@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.pwa-banner__icon { font-size: 2.2rem; flex-shrink: 0; }
.pwa-banner__text { flex: 1; }
.pwa-banner__title { font-size: .95rem; font-weight: 700; margin-bottom: 2px; }
.pwa-banner__sub { font-size: .78rem; opacity: .65; }
.pwa-banner__close {
  padding: 4px;
  color: rgba(255,255,255,.5);
  font-size: 1.2rem;
  transition: color .2s;
}
.pwa-banner__close:hover { color: white; }

/* ── Testimonials ── */
.testimonial {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.testimonial__stars { color: var(--sunset); font-size: 1rem; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial__text {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 14px;
}
.testimonial__author { font-size: .82rem; font-weight: 700; color: var(--night); }
.testimonial__origin { font-size: .75rem; color: var(--gray-400); margin-top: 1px; }

/* ── Feature Icons ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .2s var(--ease-bounce), box-shadow .2s;
}
.feature-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-item__icon { font-size: 2rem; margin-bottom: 10px; }
.feature-item__title { font-size: .9rem; font-weight: 700; color: var(--night); margin-bottom: 5px; }
.feature-item__desc { font-size: .78rem; color: var(--gray-600); line-height: 1.5; }

/* ── Footer ── */
.footer {
  background: var(--night);
  color: rgba(255,255,255,.7);
  padding: 40px 20px 20px;
  margin-bottom: 0;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.footer__logo span { color: var(--sunset); }
.footer__tagline { font-size: .85rem; opacity: .6; margin-bottom: 28px; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 24px;
}
.footer__link {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer__link:hover { color: white; }
.footer__copy {
  font-size: .75rem;
  opacity: .4;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ── Loading Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, #e8e6e3 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--night);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s var(--ease-bounce);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
@keyframes toastIn {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ── Utilities ── */
.text-ocean  { color: var(--ocean); }
.text-sunset { color: var(--sunset); }
.text-pine   { color: var(--pine); }
.text-night  { color: var(--night); }
.text-muted  { color: var(--gray-600); }
.bg-foam     { background: var(--foam); }
.bg-white    { background: white; }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.px-20 { padding-left: 20px; padding-right: 20px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fadeUp { animation: fadeUp .5s var(--ease) both; }
.animate-fadeIn { animation: fadeIn .4s var(--ease) both; }
[data-delay="1"] { animation-delay: .1s; }
[data-delay="2"] { animation-delay: .2s; }
[data-delay="3"] { animation-delay: .3s; }
[data-delay="4"] { animation-delay: .4s; }

/* ── Media Queries ── */
@media (min-width: 768px) {
  .hero__title { font-size: 3.5rem; }
  .hero__cta-group { flex-direction: row; }
  .section { padding: 64px 40px; }
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .app-header { padding: 0 40px; }
}
@media (prefers-color-scheme: dark) {
  /* Navigation screen always dark — handled inline */
}

/* ── MapLibre overrides ── */
.maplibregl-ctrl-logo { display: none !important; }
.maplibregl-ctrl-attrib { font-size: 10px !important; opacity: .6; }
