/**
 * Styles globaux — thème « Earthbound Curator » (stitch/)
 * - Jetons CSS + typo / éléments HTML par défaut (sans classe Tailwind).
 * - Les utilitaires Tailwind dans les templates restent prioritaires (plus forte spécificité).
 */

:root {
  /* Aligné sur stitch / tailwind.config (base.html) */
  --color-background: #faf9f6;
  --color-surface: #faf9f6;
  --color-surface-container: #efeeeb;
  --color-surface-container-high: #e9e8e5;
  --color-surface-container-lowest: #ffffff;
  --color-on-surface: #1a1c1a;
  --color-on-surface-variant: #54433a;
  --color-primary: #6c2f00;
  --color-on-primary: #ffffff;
  --color-primary-container: #8b4513;
  --color-secondary: #795900;
  --color-secondary-container: #fcc340;
  --color-on-secondary-container: #6f5100;
  --color-tertiary: #004c29;
  --color-outline: #877369;
  --color-outline-variant: #dac2b6;
  --color-error: #ba1a1a;
  --font-headline: "Newsreader", ui-serif, Georgia, serif;
  --font-body: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  --font-label: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.55;
  --leading-relaxed: 1.65;
  /* Largeur de lecture optionnelle — utiliser .content-measure sur un parent si besoin (~65ch) */
  --space-content-max: 65ch;
}

/* ----- Base document ----- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--leading-normal);
  color: var(--color-on-surface);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

/* ----- Titres (éléments nus ; les classes Tailwind surchargent) ----- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headline);
  font-weight: 600;
  color: var(--color-on-surface);
  line-height: var(--leading-tight);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75em;
}

h2 {
  font-size: clamp(1.875rem, 3.5vw, 3rem);
  font-weight: 600;
  margin: 0 0 0.65em;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 0.55em;
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  margin: 0 0 0.5em;
}

h5 {
  font-family: var(--font-label);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0 0 0.5em;
}

h6 {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
  margin: 0 0 0.5em;
}

/* ----- Texte courant ----- */
p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

small {
  font-size: 0.875rem;
  color: var(--color-on-surface-variant);
}

strong,
b {
  font-weight: 600;
  color: var(--color-on-surface);
}

em,
i {
  font-style: italic;
}

/* Liens sans classe utilitaire : style éditorial */
a:not([class]) {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:not([class]):hover {
  color: var(--color-secondary);
}

a:not([class]):focus-visible {
  outline: 2px solid var(--color-secondary-container);
  outline-offset: 3px;
}

/* ----- Listes ----- */
ul,
ol {
  margin: 0 0 1em 1.25em;
  padding: 0;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

li {
  margin-bottom: 0.35em;
  line-height: var(--leading-relaxed);
}

li::marker {
  color: var(--color-secondary);
}

/* Fil d’Ariane : le <ol> global a list-style: decimal — sans reset, les numéros se superposent au flex */
.site-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-breadcrumb ol > li {
  margin-bottom: 0;
}

/* ----- Citations & séparateurs ----- */
blockquote {
  margin: 1.5em 0;
  padding: 0.75em 0 0.75em 1.25em;
  border-left: 3px solid color-mix(in srgb, var(--color-outline-variant) 45%, transparent);
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--color-on-surface-variant);
}

hr {
  border: none;
  height: 1px;
  margin: 2.5rem 0;
  background: color-mix(in srgb, var(--color-outline) 18%, transparent);
}

/* ----- Code ----- */
code,
kbd {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  background: color-mix(in srgb, var(--color-outline-variant) 25%, transparent);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}

pre {
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 1rem 1.25rem;
  margin: 0 0 1em;
  overflow-x: auto;
  background: var(--color-surface-container-high);
  border-radius: 0.5rem;
  max-width: 100%;
}

pre code {
  background: none;
  padding: 0;
}

/* ----- Médias & figures ----- */
img,
video {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0 0 1.5em;
}

figcaption {
  margin-top: 0.5em;
  font-size: 0.875rem;
  color: var(--color-on-surface-variant);
  font-family: var(--font-body);
}

/* ----- Tableaux (contenu riche) ----- */
table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25em;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.65em 0.85em;
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--color-outline-variant) 35%, transparent);
}

th {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
  background: color-mix(in srgb, var(--color-surface-container) 85%, var(--color-background));
}

/* ----- Boutons & champs nus (hors composants stylés) ----- */
button:not([class]),
input:not([class]),
textarea:not([class]),
select:not([class]) {
  font-family: inherit;
  font-size: 1rem;
}

button:not([class]) {
  cursor: pointer;
  padding: 0.5em 1em;
  border-radius: 0.5rem;
  border: none;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 500;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

button:not([class]):hover {
  opacity: 0.92;
}

button:not([class]):active {
  transform: scale(0.98);
}

button:not([class]):focus-visible {
  outline: 2px solid var(--color-secondary-container);
  outline-offset: 2px;
}

input:not([class]),
textarea:not([class]),
select:not([class]) {
  border: 1px solid color-mix(in srgb, var(--color-outline-variant) 50%, transparent);
  border-radius: 0.5rem;
  padding: 0.5em 0.75em;
  background: var(--color-surface-container-lowest);
}

input:not([class]):focus-visible,
textarea:not([class]):focus-visible,
select:not([class]):focus-visible {
  outline: 2px solid var(--color-secondary-container);
  outline-offset: 1px;
}

/* Détails / résumé (FAQ native) */
details {
  margin-bottom: 0.75em;
}

summary {
  font-family: var(--font-headline);
  font-weight: 600;
  cursor: pointer;
  color: var(--color-primary);
}

summary:hover {
  color: var(--color-secondary);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

/* Étoiles d’avis — SVG, pas Material Symbols (FILL souvent inactif) */
.hp-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  line-height: 1;
  vertical-align: middle;
}

.hp-star {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  line-height: 0;
}

.hp-stars.text-lg { font-size: 1.35rem; }
.hp-stars.text-base { font-size: 1.15rem; }
.hp-stars.text-sm { font-size: 0.95rem; }

.hp-star svg {
  display: block;
  width: 1em;
  height: 1em;
  max-width: none;
}

.hp-star--half .hp-star__base {
  display: block;
}

.hp-star--half .hp-star__clip {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.tonal-shift-on-scroll {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.asymmetric-image-container {
  border-radius: 1.5rem 0 1.5rem 1.5rem;
}

/* Menu mobile */
#mobile-menu-panel:not(.is-open) {
  pointer-events: none;
}

#mobile-menu-panel.is-open #mobile-menu-backdrop {
  opacity: 1;
}

#mobile-menu-panel.is-open #mobile-menu-drawer {
  transform: translateX(0);
}

#mobile-menu-backdrop {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#mobile-menu-drawer {
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

#mobile-menu-panel.is-open {
  pointer-events: auto;
}

/* FAQ : icône ouverte */
.faq-item--open .faq-chevron {
  transform: rotate(180deg);
}

#site-nav.nav-scrolled {
  background-color: rgba(250, 249, 246, 0.92);
  box-shadow: 0 4px 24px rgba(26, 28, 26, 0.06);
}

/* ----- Texte sur photographies (lisibilité type « magazine ») ----- */

/**
 * Dégradé bas : assombrit surtout le tiers inférieur pour le texte blanc.
 * Ne pas alléger ce calque au survol (seule la photo peut s’animer).
 */
.hp-photo-scrim {
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(12, 10, 8, 0.94) 0%,
    rgba(12, 10, 8, 0.75) 28%,
    rgba(12, 10, 8, 0.35) 52%,
    rgba(12, 10, 8, 0) 100%
  );
}

/**
 * Voile léger sur toute l’image : se retire au survol pour laisser respirer la photo,
 * le scrim bas garde le contraste sous le texte.
 */
.hp-photo-veil {
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.22);
  transition: background-color 0.65s ease;
}

.group:hover .hp-photo-veil {
  background-color: rgba(0, 0, 0, 0.06);
}

/**
 * Ombre portée typographique (héritée par le texte du bloc).
 */
.hp-text-on-photo {
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 2px 14px rgba(0, 0, 0, 0.55);
}

/* Les titres globaux h3 / paragraphes ont une couleur « on-surface » qui casse l’héritage de text-white */
.hp-text-on-photo h3,
.hp-text-on-photo p {
  color: #ffffff;
}

/* Filtres type de voyage (page circuits) */
.trip-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trip-filter.justify-center {
  justify-content: center;
}

.trip-filter__btn {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--color-outline-variant) 70%, transparent);
  background: var(--color-surface-container-lowest);
  color: var(--color-on-surface-variant);
  font-family: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.trip-filter__btn:hover {
  border-color: var(--color-secondary);
  color: var(--color-on-surface);
}

.trip-filter__btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

.trip-filter-item[hidden] {
  display: none !important;
}

.section-heading,
.travel-formats__heading {
  text-align: center;
  margin: 0 auto 1.5rem;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  max-width: none;
}

.section-heading:not(:has(.section-heading__kicker)):not(:has(.travel-formats__kicker))::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin: 0 auto 0.7rem;
  background: var(--color-secondary);
  opacity: 0.7;
}

.section-heading__kicker,
.travel-formats__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.5rem;
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.section-heading__kicker::before,
.section-heading__kicker::after,
.travel-formats__kicker::before,
.travel-formats__kicker::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--color-secondary);
  opacity: 0.7;
}

.section-heading__title,
.travel-formats__title {
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: var(--color-on-surface);
}

.section-heading__intro {
  margin: 0.75rem auto 0;
  max-width: 40rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-on-surface-variant);
  text-align: center;
}

.section-heading + .section-heading__intro {
  margin-top: -0.55rem;
  margin-bottom: 1.5rem;
}

.section-heading--tight {
  margin-bottom: 1rem;
}

.section-heading--on-dark .section-heading__title {
  color: #ffffff;
}

.section-heading--on-dark .section-heading__kicker {
  color: var(--color-secondary-container);
}

.section-heading--on-dark .section-heading__kicker::before,
.section-heading--on-dark .section-heading__kicker::after,
.section-heading--on-dark::before {
  background: var(--color-secondary-container);
}

.section-heading--on-dark + .section-heading__intro {
  color: rgba(255, 255, 255, 0.78);
}

.prose .section-heading,
.prose .section-heading__title {
  margin-top: 0;
  color: var(--color-on-surface);
}

.prose .section-heading__title {
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
}

.travel-formats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.home-experiences-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .home-experiences-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.home-experiences-grid .custom-wizard__route-overlay {
  opacity: 0.5;
  z-index: 2;
}

.home-experiences-grid a {
  isolation: isolate;
}

.home-experiences-grid .hp-photo-scrim,
.home-experiences-grid .hp-photo-veil {
  z-index: 3;
}

.home-experiences-grid .hp-text-on-photo {
  z-index: 5;
  color: #fff;
}

.home-experiences-grid .hp-text-on-photo h3,
.home-experiences-grid .hp-text-on-photo p,
.home-experiences-grid .hp-text-on-photo span {
  color: #fff !important;
  opacity: 1;
}

@media (min-width: 640px) {
  .travel-formats__grid {
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .travel-formats__grid {
    gap: 1.5rem;
  }
}

.travel-format {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--color-surface-container-lowest);
  border: 1px solid color-mix(in srgb, var(--color-outline-variant) 40%, transparent);
  box-shadow: 0 4px 18px rgba(26, 28, 26, 0.05);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.travel-format:hover {
  border-color: color-mix(in srgb, var(--color-secondary) 45%, transparent);
  box-shadow: 0 10px 28px rgba(26, 28, 26, 0.1);
}

.travel-format:focus-visible {
  outline: 2px solid var(--color-secondary-container);
  outline-offset: 3px;
}

.travel-format__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.travel-format__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.travel-format:hover .travel-format__media img {
  transform: scale(1.05);
}

.travel-format__name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  padding: 0.65rem 0.85rem;
  color: #ffffff;
  font-family: var(--font-headline);
  font-size: clamp(0.9rem, 1.4vw, 1.45rem);
  line-height: 1.2;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 2px 14px rgba(0, 0, 0, 0.55);
}

.travel-format__text {
  flex: 1;
  margin: 0;
  padding: 0.85rem 0.9rem 1rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--color-on-surface-variant);
}

@media (min-width: 640px) {
  .travel-format__name {
    padding: 1rem 1.15rem;
  }

  .travel-format__text {
    padding: 1rem 1.1rem 1.15rem;
    font-size: 0.875rem;
  }
}

.trip-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .trip-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1.75rem;
  }
}

/* Cartes circuit (listing) */
.trip-card:focus-visible {
  outline: 2px solid var(--color-secondary-container);
  outline-offset: 3px;
}

button.trip-card {
  appearance: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.trip-card--custom .custom-wizard__route-overlay {
  opacity: 0.92;
  z-index: 3;
}

.trip-card--custom .custom-wizard__route-line {
  opacity: 0.7;
}

.trip-card--custom .custom-wizard__route-label {
  font-size: 10px;
}

/* Accordéon programme (page circuit) */
.itinerary-item--open .itinerary-chevron {
  transform: rotate(180deg);
}

.itinerary-panel[hidden] {
  display: none;
}

/* Galerie horizontale par jour (programme) */
.itinerary-day-gallery-wrap .day-gallery-track {
  scrollbar-width: thin;
  scrollbar-color: var(--color-outline-variant) transparent;
}

.itinerary-day-gallery-wrap .day-gallery-track::-webkit-scrollbar {
  height: 6px;
}

.itinerary-day-gallery-wrap .day-gallery-track::-webkit-scrollbar-thumb {
  background: var(--color-outline-variant);
  border-radius: 3px;
}

.itinerary-day-gallery-wrap .day-gallery-img {
  width: min(18rem, 78vw);
  height: 12rem;
  max-height: min(12rem, 40vh);
}

/* Mini-carte itinéraire dans le header circuit */
.header-mini-map__card {
  width: 280px;
  height: 200px;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  background: var(--color-surface-container-low, #f4f3f1);
}

.header-mini-map__canvas {
  width: 100%;
  height: 100%;
}

.header-mini-map__canvas .leaflet-control-zoom,
.header-mini-map__canvas .leaflet-control-attribution {
  display: none !important;
}

/* -- Programme + carte : layout flex -- */
.pgm-layout {
  display: block;
}

@media (min-width: 1024px) {
  .pgm-layout--map {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
  }

  .pgm-layout__steps {
    flex: 1 1 0%;
    min-width: 0;
    order: 1;
  }

  .pgm-layout__sidebar {
    flex: 0 0 25%;
    max-width: 25%;
    order: 2;
    align-self: stretch;
    position: relative;
    min-height: 0;
  }

  .pgm-layout__map-card {
    position: sticky;
    top: 7.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-outline-variant, #dac2b6);
    overflow: hidden;
    background: var(--color-surface-container-low, #f4f3f1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  .pgm-layout__map-canvas {
    height: min(520px, calc(100vh - 9rem));
    min-height: 280px;
  }
}

@media (max-width: 1023px) {
  .pgm-layout__sidebar {
    margin-top: 2rem;
  }

  .pgm-layout__map-card {
    border-radius: 1rem;
    border: 1px solid var(--color-outline-variant, #dac2b6);
    overflow: hidden;
    background: var(--color-surface-container-low, #f4f3f1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  .pgm-layout__map-canvas {
    height: min(260px, 42vh);
    min-height: 220px;
  }
}

.pgm-layout__map-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-outline-variant, #dac2b6);
  background: rgba(239, 238, 235, 0.45);
}

.pgm-layout__map-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.trip-map-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  border: 1px solid var(--color-outline-variant, #dac2b6);
  background: #fff;
  color: var(--color-on-surface, #1c1b1b);
  border-radius: 999px;
  padding: 0.28rem 0.7rem 0.28rem 0.35rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.trip-map-fullscreen-btn .material-symbols-outlined {
  font-size: 1.15rem;
}

.trip-map-fullscreen-btn:hover {
  background: var(--color-surface-container, #efeeeb);
}

.pgm-layout__map-card:fullscreen,
.pgm-layout__map-card.is-map-expanded {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  background: var(--color-surface, #faf9f7);
}

.pgm-layout__map-card:fullscreen .pgm-layout__map-canvas,
.pgm-layout__map-card.is-map-expanded .pgm-layout__map-canvas {
  flex: 1 1 auto;
  height: auto !important;
  min-height: 0;
}

.pgm-layout__map-card.is-map-expanded {
  position: fixed;
  inset: 0;
  z-index: 80;
}

body.trip-map-expanded {
  overflow: hidden;
}

.itinerary-item {
  scroll-margin-top: 10rem;
}

/* Carte itinéraire (Leaflet) — fiche voyage */
.trip-map.leaflet-container {
  font-family: var(--font-body);
  z-index: 0;
}

.trip-map-marker-wrap {
  background: transparent !important;
  border: none !important;
}

/* Marqueurs « lieu » (pilule : numéro + libellé) — carte programme */
.trip-map .trip-map-marker-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 3px 10px 3px 4px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.25;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  border: 2px solid #fff;
  max-width: 168px;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.trip-map .trip-map-marker-card__num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  font-weight: 700;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
}

.trip-map .trip-map-marker-card__name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-map .trip-map-marker-card--past {
  opacity: 0.58;
  transform: scale(0.94);
}

.trip-map .trip-map-marker-card--active {
  opacity: 1;
  transform: scale(1.06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.38);
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 1px;
}

.trip-map .trip-map-marker-card--future {
  opacity: 0.42;
  transform: scale(0.92);
  filter: saturate(0.85);
}

/* Pastilles numérotées seules (mini-carte en-tête ; rétrocompat) */
.trip-map .trip-map-marker,
.header-mini-map__canvas .trip-map-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 28px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  border: 2px solid #fff;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.trip-map .trip-map-marker--past,
.header-mini-map__canvas .trip-map-marker--past {
  opacity: 0.58;
  transform: scale(0.94);
}

.trip-map .trip-map-marker--active,
.header-mini-map__canvas .trip-map-marker--active {
  opacity: 1;
  transform: scale(1.06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.38);
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 1px;
}

.trip-map .trip-map-marker--future,
.header-mini-map__canvas .trip-map-marker--future {
  opacity: 0.42;
  transform: scale(0.92);
  filter: saturate(0.85);
}

.trip-map .leaflet-popup-content-wrapper {
  border-radius: 0.75rem;
}

/* Lightbox galerie (page circuit) */
.trip-lightbox-item:focus-visible {
  outline: 2px solid var(--color-secondary-container);
  outline-offset: 3px;
}

.trip-lightbox:not(.hidden) {
  pointer-events: auto;
}

/* Conteneur attaché à document.body (JS) : au-dessus de la nav (z-50) et du menu mobile (z-60) */
.trip-lightbox.trip-lightbox--root {
  z-index: 9999;
  isolation: isolate;
}

/* Boutons fixed : au-dessus du backdrop et du stage */
.trip-lightbox__fixed-ui {
  z-index: 10050;
}

/* Flèches : centrage vertical sur la fenêtre (fixed + top 50 % + translate, en CSS pur — évite conflits Tailwind) */
.trip-lightbox__arrow.trip-lightbox__fixed-ui {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  right: auto;
}

.trip-lightbox__arrow--next.trip-lightbox__fixed-ui {
  left: auto;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
}

/* Fond grisé semi-transparent ; image bornée au viewport (mobile inclus) */
.trip-lightbox__backdrop {
  background: rgb(28 25 23 / 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.trip-lightbox__stage {
  max-height: 100%;
}

/* Flèches / fermeture : fixed + z-index élevé (voir template) — ne pas recouvrir par le stage */
.trip-lightbox__chrome-btn {
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.4);
}

.trip-lightbox__image {
  height: auto;
  width: auto;
  max-width: min(1200px, calc(100vw - 5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-height: min(68dvh, calc(100dvh - 17rem), calc(100svh - 17rem));
}

@media (min-width: 640px) {
  .trip-lightbox__image {
    max-width: min(1200px, calc(100vw - 10rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
    max-height: min(72dvh, calc(100dvh - 15rem));
  }
}

/* Contenus longs (guides, à propos) — rythme mobile */
.prose-guide h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose-guide ul {
  margin-left: 1.25rem;
}

.prose-guide .guide-body-figure {
  margin: 2rem auto;
  max-width: 80rem;
}

.prose-guide .guide-body-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
  box-shadow:
    0 10px 25px -8px rgba(0, 0, 0, 0.18),
    0 0 0 1px color-mix(in srgb, var(--color-outline-variant) 40%, transparent);
}

.prose-guide .guide-body-caption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-on-surface-variant);
  font-family: var(--font-body);
}

/* Opt-in : limite ~65ch pour un bloc de texte long (sans affecter tout le site) */
.content-measure p,
.content-measure ul,
.content-measure ol,
.content-measure blockquote,
.content-measure figcaption {
  max-width: var(--space-content-max);
}

/* Focus & transitions cohérents (150–300 ms) */
a.bg-primary,
button[type="submit"],
.trip-card {
  transition-property: opacity, transform, box-shadow, border-color, color, background-color;
  transition-duration: 200ms;
  transition-timing-function: ease;
}

:focus-visible {
  scroll-margin-top: 6rem;
}

/* Menu collé en haut — top recalculé par site.js si besoin */
#site-nav.site-nav-docked {
  top: 0;
}

/* Réserve l’espace sous la nav fixed (JS remplace par la hauteur mesurée + marge) */
#main-content {
  padding-top: 6.5rem;
  display: flow-root;
}

/* Accueil : pas de bande blanche au-dessus de la vidéo — le décalage est sur .hp-home-hero (site.js) */
#main-content.hp-main-home,
#main-content.hp-main-hero,
#main-content.hp-main-votre-aventure {
  padding-top: 0;
}

.hp-va-section-spaced {
  margin-top: 1.5rem;
}

/* Grille contenu (~3/4) + sidebar conversion (~1/4) — CSS natif (ne dépend pas d’un rebuild Tailwind pour lg:grid-cols-12) */
.hp-layout-sidebar {
  display: block;
}

@media (min-width: 1024px) {
  .hp-layout-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 9fr) minmax(0, 3fr);
    gap: 2.5rem;
    align-items: start;
  }
}

.hp-layout-sidebar__main {
  min-width: 0;
}

.hp-layout-sidebar__aside {
  min-width: 0;
}

@media (max-width: 1023px) {
  .hp-layout-sidebar__aside {
    margin-top: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .conversion-sidebar {
    position: sticky;
    top: 7rem;
    align-self: start;
  }

  /* Page contact : sidebar un peu plus large pour photo + chiffres + avis */
  .hp-layout-sidebar--contact {
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
    gap: 2rem;
  }
}

/* Colonne réassurance /contact */
.hp-contact-aside {
  overflow: hidden;
  padding: 0;
}

.hp-contact-hero {
  display: block;
  width: 100%;
  margin: 0;
  position: relative;
  height: 350px;
  overflow: hidden;
  background: var(--color-surface-container);
}

.hp-contact-hero img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 50% 21%;
}

.hp-contact-hero figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 1.15rem 0.8rem;
  background: linear-gradient(to top, rgba(26, 28, 26, 0.82) 0%, rgba(26, 28, 26, 0.28) 55%, transparent 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hp-contact-hero figcaption strong {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.hp-contact-hero figcaption span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}

.hp-contact-aside__body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.15rem 1.25rem 1.35rem;
}

@media (min-width: 640px) {
  .hp-contact-aside__body {
    padding: 1.25rem 1.4rem 1.5rem;
  }
}

.hp-contact-kicker {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0 0 0.3rem;
}

.hp-contact-aside__body h2 {
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.25;
}

.hp-contact-lead {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-on-surface-variant);
}

.hp-contact-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.hp-contact-stat {
  text-align: center;
  padding: 0.65rem 0.3rem 0.7rem;
  border-radius: 0.65rem;
  background: var(--color-surface-container);
  border: 1px solid color-mix(in srgb, var(--color-outline-variant) 32%, transparent);
}

.hp-contact-stat__value {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  color: var(--color-primary);
  line-height: 1.1;
  margin: 0 0 0.2rem;
}

.hp-contact-stat__label {
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
  margin: 0;
  line-height: 1.25;
}

.hp-contact-note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-on-surface-variant);
}

.hp-contact-ta {
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--color-outline-variant) 30%, transparent);
}

.hp-contact-ta__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0.25rem 0 0.35rem;
}

.hp-contact-ta__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hp-contact-ta__brand img {
  display: block;
  height: 1.35rem;
  width: auto;
  max-width: 9.5rem;
}

.hp-contact-ta__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
}

.hp-contact-ta__count {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  color: var(--color-on-surface-variant);
}

.hp-contact-reviews {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hp-contact-review {
  padding: 0.7rem 0;
  border-top: 1px solid color-mix(in srgb, var(--color-outline-variant) 22%, transparent);
}

.hp-contact-review:last-of-type {
  padding-bottom: 0.15rem;
}

.hp-contact-review p {
  margin: 0;
}

.hp-contact-review__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-on-surface);
}

.hp-contact-review__meta {
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  color: var(--color-on-surface-variant);
}

.hp-contact-links {
  margin: 0;
  padding-top: 0.15rem;
  font-size: 0.75rem;
}

.hp-contact-links .hp-sep {
  margin: 0 0.4rem;
  color: var(--color-outline);
}

/* Page Qui sommes-nous : marges natives des <figure> désactivées — l’espacement vient du flex gap / grid gap */
.hp-about-stack figure {
  margin: 0;
}

/*
 * Qui sommes-nous : rythme vertical unique (site.css uniquement pour intro + pile principale).
 * Évite le double espacement Tailwind gap-y-* + row-gap quand tw.css est à jour sur la prod.
 */
.hp-about-intro-band {
  display: flex;
  flex-direction: column;
  /* Stats → bandeau Chobe : même ordre de grandeur que le row-gap de la pile */
  gap: clamp(1rem, 2vw, 1.375rem);
}

@media (min-width: 640px) {
  .hp-about-intro-band {
    gap: clamp(1.125rem, 2.2vw, 1.5rem);
  }
}

@media (min-width: 1024px) {
  .hp-about-intro-band {
    gap: clamp(1.25rem, 2.4vw, 1.625rem);
  }
}

.hp-about-stack.hp-about-stack--rhythm.flex.flex-col {
  row-gap: clamp(1.75rem, 3.5vw, 2.25rem);
}

@media (min-width: 640px) {
  .hp-about-stack.hp-about-stack--rhythm.flex.flex-col {
    row-gap: clamp(2rem, 3.8vw, 2.5rem);
  }
}

@media (min-width: 1024px) {
  .hp-about-stack.hp-about-stack--rhythm.flex.flex-col {
    row-gap: clamp(2.25rem, 4vw, 2.75rem);
  }
}

/* Évite un «double vide » avec le row-gap du parent */
.hp-about-stack__ribbon {
  padding-block: 0;
}

/* Grilles internes (gaps non toujours présents dans tw.css si build non regénéré) */
.hp-about-jonathan-grid {
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .hp-about-jonathan-grid {
    gap: 2rem;
  }
}

@media (min-width: 768px) {
  .hp-about-jonathan-grid {
    column-gap: 3.5rem;
    row-gap: 2rem;
  }
}

.hp-about-responsable-grid {
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .hp-about-responsable-grid {
    column-gap: 4rem;
    row-gap: 2.5rem;
  }
}

.hp-about-section-split {
  padding-top: 1rem;
  padding-bottom: 1.75rem;
}

@media (min-width: 640px) {
  .hp-about-section-split {
    padding-top: 1.125rem;
    padding-bottom: 2rem;
  }
}

@media (min-width: 768px) {
  .hp-about-section-split {
    padding-top: 1.25rem;
  }
}

.hp-about-section-continuer {
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .hp-about-section-continuer {
    padding-top: 1.125rem;
  }
}

@media (min-width: 768px) {
  .hp-about-section-continuer {
    padding-top: 1.25rem;
  }
}

/* Footer : liens en liste sans puces (surcharge du style global ul / li) */
footer#contact ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

footer#contact ul > li {
  margin-bottom: 0;
}

/* Footer : hiérarchie, cibles tactiles lisibles et listes scrollables uniquement au large */
.site-footer-heading {
  border-left: 3px solid color-mix(in srgb, var(--color-tertiary, #97622a) 45%, transparent);
  padding-left: 0.75rem;
}

.site-footer-link {
  display: block;
  padding: 0.35rem 0;
  border-radius: 0.25rem;
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--color-stone-600, #57534e) 35%, transparent);
  text-underline-offset: 0.2em;
  transition:
    color 0.15s ease,
    text-decoration-color 0.15s ease,
    background-color 0.15s ease;
}

.site-footer-link:hover {
  color: var(--color-stone-900, #1c1917);
  text-decoration-color: color-mix(in srgb, var(--color-tertiary, #97622a) 55%, transparent);
}

.site-footer-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-secondary, #7a5c3f) 55%, transparent);
  outline-offset: 2px;
}

.site-footer-link-inline {
  display: inline;
  padding: 0.125rem 0;
}

.site-footer-tripadvisor:active {
  transform: scale(0.99);
}

@media (min-width: 1024px) {
  .site-footer-scroll {
    max-height: min(17rem, 45vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.375rem;
    scrollbar-gutter: stable;
  }

  .site-footer-scroll.site-footer-months {
    align-content: start;
  }

  .site-footer-scroll::-webkit-scrollbar {
    width: 6px;
  }

  .site-footer-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(168, 162, 158, 0.55);
    border-radius: 999px;
  }

  .site-footer-scroll::-webkit-scrollbar-track {
    background: rgba(231, 229, 228, 0.5);
    border-radius: 999px;
  }
}

/* Circuit personnalisable — wizard /circuits */
.custom-wizard-modal label > input[type="checkbox"],
.custom-wizard-modal label > input[type="radio"] {
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.custom-wizard__option-card:focus-within {
  outline: 2px solid var(--color-secondary, #8b6914);
  outline-offset: 2px;
}

.custom-wizard__option-card--multi {
  cursor: pointer;
}

.custom-wizard__option-card--multi:focus-within {
  outline: 2px solid var(--color-secondary, #8b6914);
  outline-offset: 2px;
}

[data-stay-style-cards] {
  /* Évite que le trait gauche des cartes soit rogné par overflow du panneau. */
  padding: 2px;
}

.custom-wizard__stay-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  border: 2px solid rgba(120, 100, 70, 0.22);
  background: var(--color-surface-container-lowest, #fffbf5);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  box-shadow: none;
  outline: none;
}

.custom-wizard__stay-card:hover {
  border-color: rgba(139, 105, 20, 0.45);
}

.custom-wizard__stay-card__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.custom-wizard__stay-card__check {
  position: relative;
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  border: 2px solid rgba(120, 100, 70, 0.4);
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.custom-wizard__stay-card__check::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  margin: -0.275rem 0 0 -0.275rem;
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.15s ease;
}

.custom-wizard__stay-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.custom-wizard__stay-card__title {
  font-family: var(--font-headline, inherit);
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--color-on-surface, #1c1b16);
}

.custom-wizard__stay-card__text {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-on-surface-variant, #5c574c);
}

.custom-wizard__stay-card.is-selected,
.custom-wizard__stay-card:has(.custom-wizard__stay-card__input:checked) {
  border-color: #8b6914;
  background: rgba(139, 105, 20, 0.14);
  box-shadow: none;
  outline: none;
}

.custom-wizard__stay-card.is-selected .custom-wizard__stay-card__check,
.custom-wizard__stay-card:has(.custom-wizard__stay-card__input:checked) .custom-wizard__stay-card__check {
  border-color: #8b6914;
  background: #fff;
}

.custom-wizard__stay-card.is-selected .custom-wizard__stay-card__check::after,
.custom-wizard__stay-card:has(.custom-wizard__stay-card__input:checked) .custom-wizard__stay-card__check::after {
  background: #8b6914;
}

.custom-wizard__stay-card:focus-within {
  outline: none;
}

.custom-wizard__pre-checkbox-wrap {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem 0.35rem 0.35rem;
  border-radius: 0.375rem;
  background: rgba(255, 251, 245, 0.95);
  border: 1px solid color-mix(in srgb, var(--color-outline-variant, #cac4d0) 60%, transparent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-on-surface, #1c1917);
  cursor: pointer;
}

.custom-wizard__lodge-fieldset {
  min-inline-size: 0;
}

.custom-wizard__lodge-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-wizard__lodge-card:focus-within {
  outline: 2px solid var(--color-secondary, #8b6914);
  outline-offset: 2px;
}

.custom-wizard__lodge-card__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-surface-container-high, #ece6e0) 55%, transparent);
}

.custom-wizard__lodge-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.custom-wizard__lodge-card:hover .custom-wizard__lodge-card__photo img,
.custom-wizard__lodge-card:focus-within .custom-wizard__lodge-card__photo img {
  transform: scale(1.03);
}

.custom-wizard__pre-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  flex-shrink: 0;
  pointer-events: auto;
  cursor: pointer;
  accent-color: var(--color-secondary, #8b6914);
}

.custom-wizard__pill {
  border-color: color-mix(in srgb, var(--color-outline-variant, #cac4d0) 55%, transparent);
  cursor: pointer;
}

.custom-wizard__pill:disabled {
  cursor: default;
  opacity: 0.55;
}

.custom-wizard__pill--pending {
  background-color: var(--color-surface-container, #f3ede6);
  color: var(--color-on-surface-variant, #52443a);
}

.custom-wizard__pill--done {
  background-color: color-mix(in srgb, var(--color-secondary-container, #e8d5a3) 55%, transparent);
  border-color: color-mix(in srgb, var(--color-secondary, #8b6914) 35%, transparent);
  color: var(--color-on-surface, #1c1917);
}

.custom-wizard__pill--active {
  background-color: var(--color-primary, #6c2f00);
  border-color: var(--color-primary, #6c2f00);
  color: var(--color-on-primary, #fff8f0);
}

/* Extensions facultatives (delta, Nxai, Hwange) */
.custom-wizard__pill--optional.custom-wizard__pill--pending,
.custom-wizard__pill--optional.custom-wizard__pill--done {
  background-color: var(--color-surface-container-lowest, #fffaf5);
  background-image: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, var(--color-secondary-container, #e8d5a3) 22%, transparent),
    color-mix(in srgb, var(--color-secondary-container, #e8d5a3) 22%, transparent) 7px,
    color-mix(in srgb, var(--color-surface-container, #f3ede6) 90%, white) 7px,
    color-mix(in srgb, var(--color-surface-container, #f3ede6) 90%, white) 14px
  );
  border-style: dashed;
}

.custom-wizard__pill--optional.custom-wizard__pill--done {
  border-color: color-mix(in srgb, var(--color-secondary, #8b6914) 45%, transparent);
}

.custom-wizard__pill--optional.custom-wizard__pill--active {
  background-color: var(--color-primary, #6c2f00);
  background-image: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, var(--color-primary, #6c2f00) 88%, black),
    color-mix(in srgb, var(--color-primary, #6c2f00) 88%, black) 7px,
    color-mix(in srgb, var(--color-primary, #6c2f00) 72%, white) 7px,
    color-mix(in srgb, var(--color-primary, #6c2f00) 72%, white) 14px
  );
  border-style: solid;
  color: var(--color-on-primary, #fff8f0);
}

.custom-wizard__pill:focus-visible {
  outline: 2px solid var(--color-secondary-container, #e8d5a3);
  outline-offset: 2px;
}

/* Marqueurs carte wizard : libellé à droite du numéro */
.custom-wizard__map .trip-map-marker-card {
  max-width: 220px;
  font-size: 12px;
}

.custom-wizard__map .trip-map-marker-card__name {
  font-size: 12px;
}

.custom-wizard__map .leaflet-container {
  font-family: inherit;
}

.custom-wizard__hero-visual {
  isolation: isolate;
}

/* Modal wizard — quasi plein écran */
.custom-wizard-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.custom-wizard-modal[hidden] {
  display: none !important;
}

.custom-wizard-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(26, 28, 26, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.custom-wizard-modal__shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(96rem, 98vw);
  max-width: 98vw;
  height: min(94vh, 100%);
  max-height: 94vh;
  background: var(--color-surface-container-lowest, #fffbff);
  border-radius: 1rem;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(108, 47, 0, 0.12);
  overflow: hidden;
}

@media (min-width: 640px) {
  .custom-wizard-modal {
    padding: 1rem;
  }

  .custom-wizard-modal__shell {
    border-radius: 1.25rem;
    width: min(96rem, 96vw);
    height: 94vh;
  }
}

.custom-wizard-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(121, 116, 126, 0.2);
  background: var(--color-surface-container-low, #f7f2ea);
}

.custom-wizard-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(121, 116, 126, 0.25);
  background: var(--color-surface-container-lowest, #fffbff);
  color: var(--color-on-surface, #1a1c1a);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.custom-wizard-modal__close:hover {
  background: var(--color-surface-container, #f0ebe3);
  border-color: rgba(108, 47, 0, 0.35);
}

.custom-wizard-modal__close:focus-visible {
  outline: 2px solid #6c2f00;
  outline-offset: 2px;
}

.custom-wizard-modal__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .custom-wizard-modal__body {
    padding: 1.25rem 1.5rem 1.75rem;
  }
}

.custom-wizard-modal__layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.custom-wizard-modal__panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* overflow-y:auto force overflow-x:auto → sans padding, le bord gauche des cartes sélectionnées est rogné. */
  padding-left: 3px;
  padding-right: 0.25rem;
}

@media (min-width: 1024px) {
  .custom-wizard-modal__layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 1.5rem 2rem;
    align-items: stretch;
  }

  .custom-wizard-modal__map-aside {
    min-height: 0;
    overflow: hidden;
  }

  .custom-wizard__map-sticky {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: calc(94vh - 5.5rem);
    max-height: calc(94vh - 5.5rem);
  }
}

/* Bloc d’accroche étape : image illustration · texte */
/* Journées extension : cartes en colonnes, jamais une bannière pleine largeur */
.custom-wizard__extension-days {
  display: grid;
  gap: 0.75rem;
  align-items: stretch;
}

.custom-wizard__extension-days--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.custom-wizard__extension-days--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-wizard__extension-days--cols-1 {
  grid-template-columns: 1fr;
}

.custom-wizard__extension-day {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--color-outline-variant, #cac4d0) 25%, transparent);
  background: color-mix(in srgb, var(--color-surface-container-lowest, #fff) 60%, transparent);
  overflow: hidden;
}

.custom-wizard__extension-days--cols-1 .custom-wizard__extension-day {
  display: grid;
  grid-template-columns: minmax(7.5rem, 13.75rem) minmax(0, 1fr);
  max-width: 40rem;
}

.custom-wizard__extension-day__media {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: var(--color-surface-container-low, #f5f0eb);
}

.custom-wizard__extension-days--cols-1 .custom-wizard__extension-day__media {
  aspect-ratio: 4 / 3;
  min-height: 100%;
  max-height: 11rem;
}

.custom-wizard__extension-day__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.custom-wizard__extension-day__body {
  flex: 1;
  padding: 0.75rem 0.875rem 1rem;
}

.custom-wizard__extension-day__label {
  margin: 0;
}

.custom-wizard__presentation {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--on-surface-variant);
  margin: 0 0 1rem;
}

.custom-wizard__presentation p {
  margin: 0 0 0.75rem;
}

.custom-wizard__presentation img,
.custom-wizard-modal__panel .custom-wizard__step > img,
.custom-wizard-modal__panel .custom-wizard__step p img,
.custom-wizard-modal__panel .custom-wizard__step figure {
  float: left;
  width: min(13.75rem, 42%);
  max-width: 13.75rem;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.5rem;
  margin: 0.15rem 1rem 0.75rem 0;
}

@media (max-width: 767px) {
  .custom-wizard__extension-days--cols-3,
  .custom-wizard__extension-days--cols-2 {
    grid-template-columns: 1fr;
  }

  .custom-wizard__extension-days--cols-3 .custom-wizard__extension-day,
  .custom-wizard__extension-days--cols-2 .custom-wizard__extension-day,
  .custom-wizard__extension-days--cols-1 .custom-wizard__extension-day {
    display: grid;
    grid-template-columns: minmax(6.5rem, 34%) 1fr;
    gap: 0;
    max-width: none;
  }

  .custom-wizard__extension-days--cols-3 .custom-wizard__extension-day__media,
  .custom-wizard__extension-days--cols-2 .custom-wizard__extension-day__media,
  .custom-wizard__extension-days--cols-1 .custom-wizard__extension-day__media {
    aspect-ratio: 4 / 3;
    min-height: 100%;
    max-height: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .custom-wizard__extension-days--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.custom-wizard__step-lead {
  display: grid;
  grid-template-columns: minmax(7.5rem, 13.75rem) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--outline-variant) 22%, transparent);
  background: var(--surface-container-lowest);
}

.custom-wizard__step-lead--text-only {
  grid-template-columns: 1fr;
}

/* Image + texte en haut, lodges en pleine largeur en dessous (Maun, Chobe, Hwange…) */
.custom-wizard__step-lead--lodges-below {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.custom-wizard__step-lead--lodges-below .custom-wizard__step-lead__intro {
  display: grid;
  grid-template-columns: minmax(7.5rem, 13.75rem) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
}

.custom-wizard__step-lead--lodges-below--no-media .custom-wizard__step-lead__intro {
  grid-template-columns: 1fr;
}

.custom-wizard__step-lead--lodges-below .custom-wizard__step-lead__lodges-band {
  width: 100%;
  min-width: 0;
}

.custom-wizard__step-lead--lodges-below .custom-wizard__step-lead__lodges-band:empty {
  display: none;
}

.custom-wizard__step-lead--lodges-below .custom-wizard__step-lead__lodges-band .custom-wizard__lodge-fieldset {
  margin-bottom: 0;
}

.custom-wizard__step-lead--lodges-below .custom-wizard__step-lead__lodges-band .custom-wizard__lodge-grid,
.custom-wizard__zone-columns--1 .custom-wizard__lodge-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.custom-wizard__step-lead--lodges-below .custom-wizard__step-lead__lodges-band .custom-wizard__lodge-grid[data-lodge-count="1"] {
  grid-template-columns: minmax(0, 16rem);
}

@media (max-width: 900px) {
  .custom-wizard__step-lead--lodges-below .custom-wizard__step-lead__lodges-band .custom-wizard__lodge-grid,
  .custom-wizard__zone-columns--1 .custom-wizard__lodge-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .custom-wizard__step-lead--lodges-below .custom-wizard__step-lead__lodges-band .custom-wizard__lodge-grid,
  .custom-wizard__zone-columns--1 .custom-wizard__lodge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .custom-wizard__step-lead--lodges-below .custom-wizard__step-lead__lodges-band .custom-wizard__lodge-grid,
  .custom-wizard__step-lead--lodges-below .custom-wizard__step-lead__lodges-band .custom-wizard__lodge-grid[data-lodge-count="3"],
  .custom-wizard__step-lead--lodges-below .custom-wizard__step-lead__lodges-band .custom-wizard__lodge-grid[data-lodge-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.custom-wizard__step-lead__media {
  border-radius: 0.625rem;
  overflow: hidden;
  line-height: 0;
}

.custom-wizard__step-lead__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.custom-wizard__step-lead__img--chobe-boat {
  object-position: center 58%;
  transform: scale(1.08);
  transform-origin: center 60%;
}

.custom-wizard__step-lead__body {
  min-width: 0;
}

.custom-wizard__step-lead__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--on-surface);
  font-family: var(--font-body, inherit);
}

.custom-wizard__step-lead__note {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--on-surface-variant);
  font-family: var(--font-body, inherit);
}

.custom-wizard__step-lead__options {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.custom-wizard__step-lead__options .custom-wizard__option-card {
  max-width: 100%;
}

.custom-wizard__intro-extensions {
  align-items: stretch;
}

.custom-wizard__intro-extensions .custom-wizard__option-card {
  height: 100%;
}

.custom-wizard__hwange-lodges .custom-wizard__lodge-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1024px) {
  .custom-wizard__hwange-lodges .custom-wizard__lodge-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .custom-wizard__step-lead:not(.custom-wizard__step-lead--text-only),
  .custom-wizard__step-lead--lodges-below .custom-wizard__step-lead__intro {
    grid-template-columns: minmax(6.25rem, 9.5rem) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .custom-wizard__step-lead--lodges-below .custom-wizard__step-lead__intro {
    padding: 0;
  }
}

.custom-wizard__map--modal {
  flex: 1 1 auto;
  width: 100%;
  height: min(42vh, 420px);
  min-height: 220px;
}

@media (min-width: 1024px) {
  .custom-wizard__map--modal {
    height: auto;
    min-height: 0;
  }
}

body.custom-wizard-modal-open {
  overflow: hidden;
}

.custom-wizard__route-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}

@media (min-width: 1024px) {
  .custom-wizard__route-overlay {
    opacity: 0.58;
  }
}

.custom-wizard__route-line {
  stroke: #6c2f00;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 10 8;
  opacity: 0.5;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

.custom-wizard__route-stop circle {
  fill: rgba(255, 255, 255, 0.9);
  stroke: #6c2f00;
  stroke-width: 2;
}

.custom-wizard__route-label {
  fill: #4a2200;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  paint-order: stroke fill;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 4px;
  stroke-linejoin: round;
}

@media (min-width: 640px) {
  .custom-wizard__route-label {
    font-size: 12px;
  }
}

/* ----- Back-office admin ----- */
#main-content.admin-main {
  padding-top: 0 !important;
}

.admin-body {
  background: #f4f3f1;
}

.admin-body.admin-sidebar-open {
  overflow: hidden;
}

.admin-app {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: stretch;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: min(18rem, 88vw);
  display: flex;
  flex-direction: column;
  background: #1c1917;
  color: #e7e5e4;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
}

.admin-sidebar.is-open {
  transform: translateX(0);
}

.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.45);
}

.admin-sidebar-backdrop[hidden] {
  display: none !important;
}

.admin-sidebar-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.25rem 1.15rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.admin-sidebar-kicker {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a8a29e;
}

.admin-sidebar-title {
  margin: 0.2rem 0 0;
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0;
  padding: 0;
}

.admin-nav-scroll {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1rem;
  min-height: 0;
  overflow-y: auto;
  padding: 0.85rem 0.75rem 0.5rem;
}

.admin-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.admin-nav-label {
  margin: 0 0 0.3rem;
  padding: 0 0.7rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8a29e;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.4rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #d6d3d1;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-nav-link.is-active {
  background: rgba(252, 195, 64, 0.16);
  color: #fcc340;
}

.admin-nav-icon {
  font-size: 1.2rem;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.admin-nav-footer {
  flex-shrink: 0;
  margin-top: 0;
  padding: 0.65rem 0.75rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.admin-nav-logout {
  color: #d6d3d1;
}

.admin-nav-logout:hover {
  background: rgba(186, 26, 26, 0.18);
  color: #fca5a5;
}

.admin-main-col {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 3.25rem;
  padding: 0.5rem 1rem;
  background: #faf9f6;
  border-bottom: 1px solid rgba(218, 194, 182, 0.4);
}

.admin-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #1a1c1a;
  cursor: pointer;
}

.admin-menu-toggle:hover {
  background: #efeeeb;
}

.admin-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: -0.2rem -0.25rem 0 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #e7e5e4;
  cursor: pointer;
  flex-shrink: 0;
}

.admin-menu-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-topbar-label {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1c1a;
}

.admin-content {
  padding: 1.25rem 1rem 3rem;
  max-width: 80rem;
  width: 100%;
}

.admin-flashes {
  margin-bottom: 1.25rem;
}

.admin-flash {
  margin: 0 0 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
}

.admin-flash--success {
  background: rgba(154, 246, 184, 0.35);
  color: #004c29;
  border: 1px solid rgba(0, 76, 41, 0.2);
}

.admin-flash--error {
  background: #ffdad6;
  color: #93000a;
}

.admin-flash--info {
  background: #efeeeb;
  color: #54433a;
}

.zone-drag-handle {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem 0.35rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #54433a;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.zone-drag-handle:hover,
.zone-drag-handle:focus-visible {
  background: rgba(84, 67, 58, 0.08);
  outline: none;
}

.zone-drag-handle .material-symbols-outlined {
  font-size: 1.25rem;
}

.zone-order-num {
  min-width: 1rem;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.zone-sort-row.is-dragging {
  opacity: 0.45;
  background: rgba(84, 67, 58, 0.06);
}

.zones-order-status {
  margin-top: 0.75rem;
  min-height: 1.25rem;
  font-size: 0.75rem;
  color: #54433a;
}

.zones-order-status.is-ok {
  color: #004c29;
}

.zones-order-status.is-error {
  color: #93000a;
}

@media (min-width: 1024px) {
  .admin-sidebar {
    transform: none;
  }

  .admin-sidebar-backdrop,
  .admin-topbar,
  .admin-menu-close {
    display: none;
  }

  .admin-main-col {
    margin-left: 18rem;
  }

  .admin-content {
    padding: 2.25rem 2rem 4rem;
  }
}

.circuit-section-nav {
  position: sticky;
  top: 3.25rem;
  z-index: 28;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  margin: 0 0 1.75rem;
  padding: 0.55rem 0 0.65rem;
  background: #f4f3f1;
  border-bottom: 1px solid rgba(218, 194, 182, 0.7);
  box-shadow: 0 10px 16px rgba(244, 243, 241, 0.92);
  scrollbar-width: thin;
}

.circuit-section-nav a {
  flex: 0 0 auto;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #54433a;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.circuit-section-nav a:hover {
  background: #efeeeb;
  color: #1a1c1a;
}

.circuit-section-nav a.is-active {
  background: #6c2f00;
  color: #fff;
}

.circuit-section-nav a.is-active:hover {
  background: #6c2f00;
  color: #fff;
}

.circuit-form-section {
  scroll-margin-top: 8rem;
}

@media (min-width: 1024px) {
  .circuit-section-nav {
    top: 0;
  }

  .circuit-form-section {
    scroll-margin-top: 4.5rem;
  }
}

.itinerary-lodge-search {
  position: relative;
}

.itinerary-lodge-suggest {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--color-outline-variant);
  border-radius: 0.5rem;
  box-shadow: 0 10px 28px rgba(26, 28, 26, 0.14);
  max-height: 16rem;
  overflow: auto;
}

.itinerary-lodge-suggest[hidden] {
  display: none;
}

.itinerary-lodge-suggest button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0.375rem;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font: inherit;
  color: var(--color-on-surface);
}

.itinerary-lodge-suggest button:hover,
.itinerary-lodge-suggest button.is-active {
  background: var(--color-surface-container);
}

.itinerary-lodge-suggest__name {
  font-weight: 600;
}

.itinerary-lodge-suggest__meta,
.itinerary-lodge-suggest__empty {
  font-size: 0.75rem;
  color: var(--color-on-surface-variant);
}

.itinerary-lodge-suggest__empty {
  padding: 0.45rem 0.6rem;
}

.lodge-modal-open {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-tertiary);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.lodge-modal-open .material-symbols-outlined {
  font-size: 1.1rem;
}

.lodge-modal-open:hover {
  color: var(--color-primary);
}

.lodge-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lodge-modal[hidden] {
  display: none;
}

.lodge-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 28, 26, 0.55);
}

.lodge-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  background: var(--color-surface-container-lowest);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(26, 28, 26, 0.28);
}

.lodge-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--color-on-surface);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 28, 26, 0.16);
}

.lodge-modal__hero {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  display: block;
}

.lodge-modal__hero[hidden] {
  display: none;
}

.lodge-modal__header {
  padding: 1rem 3rem 0.35rem 1.25rem;
}

.lodge-modal__meta {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.lodge-modal__title {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--color-on-surface);
}

.lodge-modal__tagline {
  margin: 0.45rem 0 0;
  color: var(--color-on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.5;
}

.lodge-modal__tagline[hidden] {
  display: none;
}

.lodge-modal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0.65rem 0 0;
}

.lodge-modal__links a {
  color: var(--color-tertiary);
  font-size: 0.875rem;
  font-weight: 600;
}

.lodge-modal__tabs {
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  padding: 0.35rem 0.75rem 0;
  border-bottom: 1px solid var(--color-outline-variant);
}

.lodge-modal__tab {
  flex: 0 0 auto;
  max-width: 16rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-on-surface-variant);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.65rem 0.7rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lodge-modal__tab.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

.lodge-modal__body {
  overflow: auto;
  padding: 1rem 1.25rem 1.35rem;
}

.lodge-modal__panel[hidden] {
  display: none;
}

.lodge-modal__panel {
  color: var(--color-on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.6;
}

.lodge-modal__panel h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-headline);
  font-size: 1.2rem;
  color: var(--color-on-surface);
}

.lodge-modal__panel a {
  color: var(--color-tertiary);
}

.lodge-modal__panel ul {
  margin: 0;
  padding-left: 1.15rem;
}

.lodge-modal__panel li + li {
  margin-top: 0.35rem;
}

.lodge-modal__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.lodge-modal__figure {
  margin: 0;
}

.lodge-modal__gallery img {
  width: 100%;
  height: 9rem;
  object-fit: cover;
  border-radius: 0.6rem;
  display: block;
}

body.is-lodge-modal-open {
  overflow: hidden;
}

.itinerary-photo-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1.5px dashed rgba(109, 47, 0, 0.35);
  border-radius: 0.75rem;
  background: #fff;
  color: #3f3a36;
  cursor: pointer;
  text-align: center;
}

.itinerary-photo-drop strong {
  font-size: 0.875rem;
}

.itinerary-photo-drop span {
  font-size: 0.75rem;
  color: #6b6560;
}

.itinerary-photo-drop.is-dragover,
.itinerary-photo-card.is-dragover {
  border-color: #6c2f00;
  background: #f4f3f1;
}

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

.itinerary-photos-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.5rem;
}

.itinerary-photos-preview:empty {
  display: none;
}

.itinerary-photo-card {
  position: relative;
  margin: 0;
  border-radius: 0.6rem;
  overflow: hidden;
  cursor: grab;
}

.itinerary-photo-card img {
  display: block;
  width: 100%;
  height: 5.5rem;
  object-fit: cover;
}

.itinerary-photo-card.is-dragging {
  opacity: 0.45;
}

.itinerary-photo-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.4rem;
  height: 1.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #9b1c1c;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.itinerary-photo-status {
  min-height: 1rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #6b6560;
}

.itinerary-photo-status.is-ok {
  color: #1d6b3a;
}

.itinerary-photo-status.is-error {
  color: #9b1c1c;
}

.itinerary-auto-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.5rem;
}

.itinerary-auto-gallery img {
  width: 100%;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 0.6rem;
  display: block;
}

.custom-wizard__intro-extensions--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.custom-wizard__option-card--compact {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.custom-wizard__option-card__media {
  display: block;
  min-height: 100%;
  background: var(--color-surface-container-low, #f5f0eb);
}

.custom-wizard__option-card__media img,
.custom-wizard__intro-extensions--3 .custom-wizard__option-card--compact img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
}

.custom-wizard__option-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.7rem 0.65rem;
  min-width: 0;
}

.custom-wizard__option-card__title {
  font-family: var(--font-headline, inherit);
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--color-on-surface, #1c1b1f);
}

.custom-wizard__option-card__meta,
.custom-wizard__option-card__text {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--color-on-surface-variant, #49454f);
}

.custom-wizard__option-card__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.custom-wizard__zone-column .custom-wizard__extension-day__body {
  padding-top: 0.4rem;
}

@media (max-width: 767px) {
  .custom-wizard__intro-extensions--3 {
    grid-template-columns: 1fr;
  }
}

.custom-wizard__zone-columns {
  display: grid;
  gap: 0.75rem;
  align-items: start;
}

.custom-wizard__zone-columns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.custom-wizard__zone-columns--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.custom-wizard__zone-columns--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.custom-wizard__zone-columns--1 { grid-template-columns: 1fr; }

.custom-wizard__zone-column {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.custom-wizard__zone-columns .custom-wizard__extension-day__media {
  max-height: 7.5rem;
}

.custom-wizard__zone-lodge-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.custom-wizard__zone-lodge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem;
  border-radius: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--color-outline-variant, #cac4d0) 45%, transparent);
  background: var(--color-surface-container-lowest, #fff);
  cursor: pointer;
}

.custom-wizard__zone-lodge input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-wizard__zone-lodge img {
  width: 3.25rem;
  height: 2.45rem;
  object-fit: cover;
  border-radius: 0.4rem;
  flex-shrink: 0;
}

.custom-wizard__zone-lodge .font-headline {
  font-size: 0.78rem;
  line-height: 1.25;
}

.custom-wizard__zone-lodge__kind {
  display: block;
  font-size: 0.68rem;
  color: var(--color-on-surface-variant, #52443a);
}

.custom-wizard__zone-lodge.is-selected {
  border-color: var(--color-secondary, #8b6914);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-secondary, #8b6914) 35%, transparent);
  background: color-mix(in srgb, var(--color-secondary-container, #e8d5a3) 28%, white);
}

.custom-wizard__summary-total {
  margin: 0 0 0.75rem;
}

@media (max-width: 900px) {
  .custom-wizard__zone-columns--3,
  .custom-wizard__zone-columns--4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .custom-wizard__zone-columns--2 {
    grid-template-columns: 1fr;
  }
}

.trip-gallery-carousel {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.trip-gallery-carousel__track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  flex: 1;
  min-width: 0;
  padding-bottom: 0.25rem;
}

.trip-gallery-carousel__slide {
  flex: 0 0 min(18rem, 72vw);
  scroll-snap-align: start;
  margin: 0;
}

.trip-gallery-carousel__slide figcaption {
  display: none;
}

.presentation-photo-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.6rem;
}

.presentation-photo-picker label {
  position: relative;
  display: block;
  cursor: pointer;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 2px solid transparent;
}

.presentation-photo-picker img {
  width: 100%;
  height: 5.5rem;
  object-fit: cover;
  display: block;
}

.presentation-photo-picker input {
  position: absolute;
  opacity: 0;
}

.presentation-photo-picker label:has(input:checked) {
  border-color: #6c2f00;
  box-shadow: 0 0 0 2px rgba(108, 47, 0, 0.25);
}