/* « Mon voyage » (/voyages/mon-voyage and /en/travel/my-trip, 27 Oct. 2026 — docs/design/mon-voyage-2026-10-27.md).
   Expedia Trips-inspired two-column layout: trip sections on the left (~55%), sticky map on the right (~45%);
   on mobile: header, compact map (~200px, expandable), then sections. */

.travel-trip-empty h1 {
  margin-bottom: 1rem;
}

.travel-trip-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.travel-trip-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.travel-trip-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
}

.travel-trip-header__copy h1 {
  margin: 0 0 0.35rem;
}

.travel-trip-header__summary {
  margin: 0;
  color: var(--text-muted, #475569);
  font-size: 1rem;
}

.travel-trip-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.travel-trip-header__actions .inline-form {
  display: inline-block;
  margin: 0;
}

/* Stop sharing and remove the trip are secondary: text links, so « Partager » stays the one button of the row. */
.travel-trip-header__link {
  padding: 0.25rem 0.35rem;
  border: 0;
  background: none;
  color: var(--link, #1d4ed8);
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.travel-trip-edit {
  margin-bottom: 1rem;
}

.travel-trip-edit > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
}

.travel-trip-edit > summary::-webkit-details-marker {
  display: none;
}

.travel-trip-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.travel-trip-anchors a {
  text-decoration: none;
}

.travel-trip-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.95fr);
  gap: 1.5rem;
  align-items: start;
}

.travel-trip-layout__main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.travel-trip-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.travel-trip-section h2 {
  margin: 0;
}

.travel-trip-section__route {
  margin: 0;
}

.travel-trip-balances-line {
  margin: 0;
}

.travel-trip-chosen-place,
.travel-trip-activities-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface-subtle, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 0.5rem;
}

.travel-trip-chosen-place p {
  margin: 0;
}

.travel-trip-activities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.travel-partner-links--section .travel-partner-links__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.travel-trip-layout__map {
  position: sticky;
  top: 5.5rem;
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 0.75rem;
  overflow: hidden;
}

.travel-trip-map__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  background: var(--surface-subtle, #f8fafc);
}

.travel-trip-map__chips[hidden] {
  display: none;
}

.travel-trip-map__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.travel-trip-map__chips button {
  cursor: pointer;
  border: 1px solid transparent;
}

.travel-trip-map__chips button[aria-pressed="false"] {
  opacity: 0.55;
}

.travel-trip-map__status {
  margin: 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  background: var(--surface-subtle, #f8fafc);
}

.travel-trip-map__status[hidden] {
  display: none;
}

.travel-trip-map__expand {
  display: none;
}

.travel-trip-map__canvas {
  width: 100%;
  height: 28rem;
  min-height: 18rem;
}

.trip-map-marker {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #0b1730;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(11, 23, 48, 0.25);
  white-space: nowrap;
}

.trip-map-marker--destination {
  background: #185fc4;
}

.trip-map-marker--chosen {
  background: #0f766e;
}

.trip-map-popup {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  min-width: 11rem;
}

.trip-map-popup__title {
  font-weight: 700;
  margin: 0;
}

.trip-map-popup__kind {
  margin: 0;
  color: #475569;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .travel-trip-layout {
    grid-template-columns: 1fr;
  }

  .travel-trip-layout__map {
    position: static;
    order: -1;
  }

  .travel-trip-map__expand {
    display: inline-flex;
  }

  .travel-trip-map__canvas {
    height: 12.5rem;
    min-height: 12.5rem;
  }

  .travel-trip-layout__map.is-expanded .travel-trip-map__canvas {
    height: 24rem;
  }
}

/* « Mes simulations de voyage » (28 Oct. 2026): Expedia-style trip cards, the destination photo behind a dark veil.
   A city without a registered free photo gets the site's brand gradient (no image is ever made up). The whole card is
   one stretched link; delete and the photo credit sit above it. */
.travel-trip-simulation-note {
  max-width: 46rem;
  margin: 0.4rem 0 0;
  color: var(--color-muted, #5b6f84);
  font-size: 0.95rem;
}

.travel-trip-all-simulations {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.travel-simulations__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.travel-simulations__header h1 {
  max-width: none;
  margin: 0;
}

.simulation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.simulation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 14rem;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--gradient-brand, linear-gradient(135deg, #125fc2 0%, #6846d6 100%));
  color: #fff;
  isolation: isolate;
  box-shadow: 0 1px 3px rgb(16 36 60 / 18%);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.simulation-card:hover,
.simulation-card:focus-within {
  box-shadow: 0 8px 22px rgb(16 36 60 / 28%);
  transform: translateY(-2px);
}

.simulation-card__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.simulation-card__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(8 20 38 / 15%) 0%, rgb(8 20 38 / 45%) 45%, rgb(8 20 38 / 82%) 100%);
}

.simulation-card--no-photo .simulation-card__veil {
  background: linear-gradient(180deg, rgb(8 20 38 / 0%) 30%, rgb(8 20 38 / 40%) 100%);
}

.simulation-card__body {
  padding: 1rem 1rem 0.5rem;
}

.simulation-card__badge {
  display: inline-block;
  margin: 0 0 0.4rem;
  padding: 0.1rem 0.55rem;
  border-radius: var(--radius-pill, 999px);
  background: rgb(255 255 255 / 22%);
  font-size: 0.78rem;
  font-weight: 600;
}

.simulation-card__city {
  margin: 0;
  max-width: none;
  font-size: 1.6rem;
  line-height: 1.12;
  text-shadow: 0 1px 6px rgb(0 0 0 / 45%);
}

.simulation-card__link,
.simulation-card__link:visited {
  color: #fff;
  text-decoration: none;
}

.simulation-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.simulation-card__link:focus-visible {
  outline: none;
}

.simulation-card:focus-within {
  outline: 3px solid var(--color-cyan, #22c7df);
  outline-offset: 2px;
}

.simulation-card__route,
.simulation-card__meta {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  text-shadow: 0 1px 4px rgb(0 0 0 / 45%);
}

.simulation-card__open {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.simulation-card__tools {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 1rem 0.65rem;
  font-size: 0.74rem;
}

.simulation-card__delete-form {
  margin: 0;
}

.simulation-card__delete,
.simulation-card__credit,
.simulation-card__credit:visited {
  padding: 0;
  border: 0;
  background: none;
  color: rgb(255 255 255 / 78%);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.simulation-card__delete:hover,
.simulation-card__credit:hover {
  color: #fff;
}

.simulation-card__credit {
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

@media (max-width: 40rem) {
  .simulation-grid {
    grid-template-columns: 1fr;
  }

  .simulation-card {
    min-height: 12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .simulation-card {
    transition: none;
  }

  .simulation-card:hover,
  .simulation-card:focus-within {
    transform: none;
  }
}
