/* SailDicted: clean maritime theme. Plain CSS, no build step. */

:root {
  --deep-blue: #0b3d5c;
  --deep-blue-dark: #072b42;
  --turquoise: #1fb5b0;
  --turquoise-light: #bfeeea;
  --sand: #f3e7cf;
  --sand-light: #faf5ea;
  --sand-dark: #d9c59b;
  --ink: #17303f;
  --muted: #4d6676;
  --white: #ffffff;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(7, 43, 66, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  /* Longer German words must wrap instead of breaking the layout */
  overflow-wrap: break-word;
  hyphens: auto;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--deep-blue);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.1rem; margin-bottom: 0.25em; }

p { margin: 0 0 1em; }

a { color: var(--deep-blue); }

:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow { max-width: 720px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 20;
}
.skip-link:focus { left: 0.5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 43, 66, 0.95);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 3.5rem;
}

.brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* Language switch (EN / DE): a small two-part toggle that stays visible on mobile */
.lang-switch {
  display: inline-flex;
  margin-left: auto;
  margin-right: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 2px;
}

.lang-switch button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button:hover { background: rgba(255, 255, 255, 0.15); }

.lang-switch button[aria-pressed="true"] {
  background: var(--turquoise);
  color: var(--deep-blue-dark);
}

.nav-toggle {
  font: inherit;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}

.site-nav {
  display: none;
  flex-basis: 100%;
  padding-bottom: 0.75rem;
}
.site-nav.is-open { display: flex; flex-direction: column; }

.site-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.site-nav a:hover,
.site-nav a[aria-current] { color: var(--turquoise-light); }

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(170deg, var(--turquoise) 0%, #138aa5 45%, var(--deep-blue) 100%);
  padding: 4rem 0 7rem;
}

.hero h1 { color: var(--white); max-width: 20ch; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 1rem;
}

.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 2rem 0 0;
  max-width: 860px;
}

.fact {
  min-width: 0;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.fact dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sand);
}

.fact dd {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.hero-waves {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 70px;
  fill: var(--white);
}

/* Sections */
.section { padding: 4rem 0; }
.section-sand { background: var(--sand-light); }

.lead {
  font-size: 1.25rem;
  color: var(--deep-blue);
}

/* Route */
.route-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.route-head h2 { margin: 0; }

.badge {
  margin: 0;
  background: var(--sand);
  color: var(--deep-blue-dark);
  border: 1px solid var(--sand-dark);
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.note {
  color: var(--muted);
  max-width: 720px;
  margin: 1rem 0 2rem;
}

.route-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.days {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
  border-left: 3px solid var(--turquoise-light);
}

.day {
  position: relative;
  background: var(--white);
  border: 1px solid #e6dcc4;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.day::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 8px);
  top: 1.2rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--turquoise);
  border: 3px solid var(--sand-light);
}

.day p { margin: 0; color: var(--muted); }

.day-body { padding: 0.9rem 1.1rem 0.7rem; }

/* The aspect ratio reserves the space, so nothing jumps when a photo loads */
.day-photo { margin: 0; }
.day-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--turquoise-light);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

.photo-credit {
  padding: 0.2rem 1.1rem 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.day-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.15rem;
}

.day-kind {
  padding: 0 0.6rem;
  border-radius: 999px;
  background: var(--turquoise-light);
  color: var(--deep-blue-dark);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.day-passage .day-kind { background: var(--deep-blue); color: var(--white); }
.day-rest .day-kind,
.day-port .day-kind,
.day-shore .day-kind,
.day-buffer .day-kind { background: var(--sand); }

.leg-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1rem;
  margin: 0.6rem 0 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--sand-light);
  border-radius: 10px;
}
.leg-facts div:first-child { grid-column: 1 / -1; }
.leg-facts dt,
.day-details dt {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f7d84;
}
.leg-facts dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--deep-blue);
}

.day-highlight { margin-bottom: 0.4rem; }

.day-details { margin: 0.25rem 0 0.5rem; }
.day-details dd { margin: 0 0 0.6rem; color: var(--muted); }
.day-details dd:last-child { margin-bottom: 0; }

.day-date {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f7d84;
}

.day:hover,
.day.is-active {
  border-color: var(--turquoise);
  box-shadow: var(--shadow);
}

/* Overview photo above the key facts */
.route-hero { margin: 0 0 1.5rem; }
.route-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--turquoise-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.route-hero .photo-credit { padding: 0.5rem 0 0; font-size: 0.8rem; }

/* Key facts strip above the route card */
.key-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.key-fact {
  min-width: 0;
  background: var(--white);
  border: 1px solid #e6dcc4;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.key-fact dt {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0f7d84;
}

.key-fact dd {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deep-blue);
}

/* Placeholders are dashed and tagged so nobody mistakes them for real data */
.key-fact.is-placeholder {
  background: transparent;
  border-style: dashed;
  border-color: var(--sand-dark);
}
.key-fact.is-placeholder dd { color: var(--muted); font-weight: 400; }

.tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0 0.5rem;
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--deep-blue-dark);
  vertical-align: middle;
}

/* Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--deep-blue);
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-primary { background: var(--deep-blue); color: var(--white); }
.btn-primary:hover { background: var(--deep-blue-dark); }
.btn-secondary { background: var(--turquoise); border-color: var(--turquoise); color: var(--deep-blue-dark); }
.btn-secondary:hover { background: var(--turquoise-light); border-color: var(--turquoise-light); }
.btn-ghost { background: transparent; color: var(--deep-blue); }
.btn-ghost:hover { background: var(--sand); }

/* Route card and sailing character */
.route-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.route-card,
.character-card {
  min-width: 0;
  background: var(--white);
  border: 1px solid #e6dcc4;
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}

.route-card h4,
.character-card h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f7d84;
  margin: 1.25rem 0 0.5rem;
}
.character-card h4 { margin-top: 0; }

.card-label {
  display: inline-block;
  margin: 0 0 0.6rem;
  background: var(--turquoise-light);
  color: var(--deep-blue-dark);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.route-card h3 { font-size: 1.4rem; }
.teaser { color: var(--muted); margin-bottom: 0; }

.highlight-list,
.character-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.highlight-list li,
.character-list li {
  padding: 0.5rem 0;
  border-top: 1px solid #efe6d2;
}
.highlight-list li:first-child,
.character-list li:first-child { border-top: 0; }

/* "Place – why it matters" */
.hl-link { font-weight: 700; text-underline-offset: 3px; }
.hl-link::after { content: " –"; font-weight: 400; }
.character-list strong { color: var(--deep-blue); }
.character-list strong::after { content: " –"; font-weight: 400; }

/* Season, typical day and flexibility */
.planning {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.planning .route-card h3 { margin-bottom: 0.4rem; }
.planning .teaser { margin-bottom: 0.75rem; }

/* These entries are full sentences, so the label sits on its own line */
.planning .character-list strong { display: block; }
.planning .character-list strong::after { content: none; }

.season-trip {
  margin: 0;
  padding: 0.6rem 0.8rem;
  background: var(--sand-light);
  border-radius: 10px;
  color: var(--deep-blue);
  font-weight: 600;
}

.typical-day { list-style: none; margin: 0; padding: 0; }
.typical-day li { padding: 0.4rem 0; border-top: 1px solid #efe6d2; }
.typical-day li:first-child { border-top: 0; }
.typical-time { display: block; font-weight: 700; color: var(--deep-blue); }

.flex-note {
  margin-bottom: 3rem;
  padding: 1rem 1.4rem;
  background: var(--white);
  border: 1px solid #e6dcc4;
  border-left: 5px solid var(--turquoise);
  border-radius: var(--radius);
}
.flex-note p { margin: 0; color: var(--muted); }

.credit-list { margin: 0.5rem 0; padding-left: 1.1rem; font-size: 0.85rem; color: var(--muted); }
.credit-list li { margin-bottom: 0.3rem; overflow-wrap: anywhere; }

/* Expandable sections: native <details>, so they work with keyboard and screen readers */
.expander summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--deep-blue);
  padding: 0.35rem 0;
}
.expander summary::-webkit-details-marker { display: none; }

.expander summary::before {
  content: "+";
  order: 2;
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  line-height: 1.25rem;
  text-align: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  margin-left: auto;
}
.expander[open] summary::before { content: "−"; }

.expander .when-closed,
.expander .when-open { font-size: 0.9rem; color: #0f7d84; }
.expander:not([open]) .when-open,
.expander[open] .when-closed { display: none; }

.expander p { margin: 0.5rem 0 0.25rem; color: var(--muted); }

.more-info { margin-top: 3rem; max-width: 720px; }

.expander-block {
  background: var(--white);
  border: 1px solid #e6dcc4;
  border-radius: var(--radius);
  padding: 0.5rem 1.1rem;
  margin-bottom: 0.6rem;
}
.expander-title { margin-right: auto; }
.expander-block summary { gap: 0.75rem; }

.course-title { margin-top: 0; font-size: 1.4rem; }
.course-note { margin-top: 0; }

/* Map */
.map { margin: 0; }

/* On narrow screens the map comes first and stays in view while the days scroll past it */
@media (max-width: 959px) {
  .map {
    order: -1;
    position: sticky;
    top: 4.25rem;
    z-index: 5;
    margin: 0 -1.25rem;
    padding: 0.5rem 1.25rem 0.25rem;
    background: var(--sand-light);
  }
  .map figcaption { margin-top: 0.4rem; font-size: 0.8rem; }
}

.map-canvas {
  height: clamp(200px, 36vh, 340px);
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #d9f3f1;
  overflow: hidden;
  /* Keeps the Leaflet panes (z-index up to 1000) below the sticky header */
  z-index: 0;
  font-family: var(--font);
}

.map-notice {
  position: absolute;
  top: 0.75rem;
  left: 3.75rem;
  right: 3.75rem;
  z-index: 500;
  margin: 0;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep-blue-dark);
  font-size: 0.85rem;
  box-shadow: var(--shadow);
}
.map-notice[hidden] { display: none; }
/* Before Leaflet starts, the note is the only thing in the box */
.map-canvas > .map-notice:only-child { position: static; margin: 1rem; }

.map-route {
  stroke: var(--deep-blue);
  stroke-width: 3px;
  stroke-dasharray: 7 6;
  stroke-linejoin: round;
  opacity: 0.6;
}

.stop { cursor: pointer; }
.stop-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--deep-blue);
  border: 2.5px solid var(--white);
  box-shadow: 0 2px 6px rgba(7, 43, 66, 0.35);
  color: var(--white);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.stop:hover .stop-pin,
.stop.is-active .stop-pin { background: var(--turquoise); }
.stop.is-active .stop-pin { border-color: var(--deep-blue); transform: scale(1.2); }
.stop:focus-visible { outline: none; }
.stop:focus-visible .stop-pin { outline: 3px solid var(--turquoise); outline-offset: 2px; }

.map-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-blue);
}

.map-popup { display: grid; gap: 0.15rem; min-width: 10rem; font-size: 0.85rem; line-height: 1.4; }
.map-popup strong { color: var(--deep-blue); font-size: 0.95rem; }
.map-popup-days,
.map-popup-coords { color: var(--muted); }
.map-canvas .leaflet-popup-content { margin: 0.75rem 1rem; }
.map-canvas .leaflet-popup-content p { margin: 0; }
.map-canvas a { color: var(--deep-blue); }
.map-canvas .leaflet-control-attribution { font-size: 0.7rem; }

/* Per stop: name, coordinates and the two map links, plain URLs without an API key */
.stop-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0.5rem 0 0;
  border-top: 1px dashed #e6dcc4;
  display: grid;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.stop-list li { display: flex; flex-wrap: wrap; gap: 0 0.6rem; align-items: baseline; }
.stop-name { font-weight: 600; color: var(--deep-blue); }
.stop-links { display: inline-flex; flex-wrap: wrap; gap: 0 0.75rem; }

.map figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.map-hint { display: block; margin-top: 0.25rem; font-weight: 600; color: var(--deep-blue); }

/* Pages other than the Seychelles route */
.hero-home { padding-top: 5rem; padding-bottom: 8rem; }
.hero-home h1 { max-width: 16ch; }
.hero-text { max-width: 34rem; font-size: 1.2rem; margin: 1rem 0 1.75rem; }
.hero .cta-row { margin-bottom: 0; }

.btn-on-dark { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.15); }

.section-page { min-height: 60vh; }
.section-contact { background: var(--deep-blue); color: var(--white); text-align: center; }
.section-contact h2 { color: var(--white); }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card-grid .route-card h3 { font-size: 1.15rem; }

.part-card {
  display: block;
  min-width: 0;
  background: var(--white);
  border: 1px solid #e6dcc4;
  border-top: 5px solid var(--turquoise);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s;
}
.part-card:hover { transform: translateY(-3px); }
.part-card h3 { font-size: 1.2rem; }
.part-more { font-weight: 600; color: #0f7d84; }
.part-more::after { content: " →"; }

.placeholder-box {
  padding: 1rem 1.25rem;
  border: 1px dashed var(--sand-dark);
  border-radius: var(--radius);
  color: var(--muted);
}

/* Trip cards, drawn by js/trips.js */
.trip-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.trip-list-single { margin-top: 1.5rem; }
.detail-grid .trip-list-single { margin-top: 0; }

.trip-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid #e6dcc4;
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}
.trip-card .btn { margin-top: auto; }
.trip-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.trip-part {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f7d84;
}
.trip-card h3 { font-size: 1.3rem; margin: 0.5rem 0 0.2rem; }
.trip-card h3 a { text-decoration: none; }
.trip-card h3 a:hover { text-decoration: underline; }
.trip-date { margin: 0 0 0.75rem; font-weight: 600; color: var(--deep-blue); }

.trip-facts { margin: 0 0 1rem; font-size: 0.95rem; }
.trip-facts div { display: flex; gap: 0.75rem; padding: 0.25rem 0; border-top: 1px solid #efe6d2; }
.trip-facts dt { flex: 0 0 3.5rem; color: var(--muted); }
.trip-facts dd { margin: 0; }

.seats { margin-bottom: 1.1rem; }
.seat-dots { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 0.35rem; }
.seat {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--turquoise-light);
  border: 2px solid var(--turquoise);
}
.seat.is-taken { background: var(--deep-blue); border-color: var(--deep-blue); }
.seat-text { margin: 0; color: var(--deep-blue); }
.seat-text strong { font-size: 1.2rem; }
.seat-of { color: var(--muted); }
.seats.is-few .seat-text strong { color: #a8540b; }
.seats.is-full .seat-text strong { color: var(--muted); font-size: 1rem; }

.detail-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
.check-list { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--muted); }
.check-list li { padding: 0.15rem 0; }
.list-head { margin: 0.75rem 0 0.25rem; color: var(--deep-blue); font-size: 0.95rem; }
.text-link { font-weight: 600; }
.flex-note-spaced { margin: 1.25rem 0 0; }

.sub-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem; font-weight: 600; }

/* Login and crew lists */
.login-card {
  max-width: 26rem;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}
.login-card h1 { font-size: 1.8rem; }

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  margin-bottom: 0.6rem;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #d3dde3;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.login-button:hover:enabled { background: var(--sand-light); }
.login-button svg { width: 20px; height: 20px; flex: none; }
.login-apple { background: #000; border-color: #000; color: var(--white); }
.login-apple:hover:enabled { background: #2a2a2a; }
.login-button:disabled { opacity: 0.5; cursor: not-allowed; }

.login-or { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; color: var(--muted); font-size: 0.9rem; }
.login-or::before,
.login-or::after { content: ""; flex: 1; border-top: 1px solid #e3e8ec; }

#login-email label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
#login-email input {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  border: 1.5px solid #d3dde3;
  border-radius: 10px;
}
#login-email .btn { width: 100%; font: inherit; font-weight: 600; cursor: pointer; }
#login-email :disabled { opacity: 0.5; cursor: not-allowed; }

.status-note {
  margin: 1rem 0;
  padding: 0.7rem 1rem;
  background: var(--white);
  border-left: 5px solid var(--turquoise);
  border-radius: 10px;
  color: var(--deep-blue);
}
.status-note[hidden] { display: none; }

.crew-head { justify-content: space-between; }
.crew-head h1 { margin: 0; }
.crew-head .btn { font: inherit; font-weight: 600; cursor: pointer; }
.crew-trip { margin-top: 2rem; }
.crew-trip h2 { font-size: 1.3rem; margin-bottom: 0.1rem; }
.crew-scroll { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.crew-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.crew-table th,
.crew-table td { padding: 0.55rem 0.9rem; text-align: left; border-top: 1px solid #efe6d2; }
.crew-table th {
  border-top: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f7d84;
}
.crew-table .is-open td { color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--deep-blue-dark);
  color: var(--sand);
  padding: 2rem 0;
  text-align: center;
}
.site-footer p { margin: 0 0 0.25rem; }
.site-footer .small { font-size: 0.85rem; opacity: 0.8; }
.site-footer a { color: inherit; }

/* Larger screens */
@media (min-width: 640px) {
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .key-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); }
  .hero { padding: 6rem 0 8rem; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .lang-switch { order: 3; margin-left: 1.75rem; margin-right: 0; }

  .site-nav,
  .site-nav.is-open {
    display: flex;
    flex-direction: row;
    flex-basis: auto;
    gap: 1.75rem;
    padding: 0;
    order: 2;
    margin-left: auto;
  }
  .site-nav a { border-top: 0; padding: 0.25rem 0; }
}

@media (min-width: 960px) {
  .card-grid,
  .trip-list:not(.trip-list-single),
  .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .route-overview { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
  .planning { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .route-hero img { aspect-ratio: 21 / 9; }
  .key-facts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .route-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  /* Keep the map in view while scrolling the day list */
  .map { position: sticky; top: 5rem; order: 0; margin: 0; padding: 0; background: none; }
  .map-canvas { height: clamp(380px, 62vh, 480px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
