@font-face {
  font-family: Fredoka;
  src: url('./vendor/fredoka.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --deep: #063e40;
  --teal: #006666;
  --sea: #1c8983;
  --coral: #de493d;
  --gold: #ffce59;
  --cream: #fff6e0;
  --paper: #fffcf1;
  --line: #cfdbc9;
  --field-muted: #5c716b;
  --field-size: .875rem;
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--deep);
  background: #d9eee7;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; }
main { width: 100%; max-width: 80rem; margin-inline: auto; flex: 1; background: var(--cream); }
.shell { width: min(53rem, calc(100% - 2rem)); margin-inline: auto; }
.hero { background: #00868a; text-align: center; overflow: clip; }
.hero-art { display: block; width: 100%; height: clamp(7.4rem, 27vw, 16.75rem); object-fit: cover; object-position: center 27%; background: #e55348; }
.hero-title { position: relative; display: grid; justify-items: center; margin-top: -.3rem; padding-bottom: 1.45rem; }
.hero-title p { z-index: 1; margin-top: -.34rem; color: var(--deep); font: 630 clamp(.95rem, 3.35vw, 1.25rem)/1.2 Fredoka, system-ui, sans-serif; border-radius: .7rem .58rem .68rem .65rem; background: var(--gold); padding: .18em .8em .25em; }
h1, h2, p { margin: 0; }
h1 { font: 660 clamp(2.65rem, 7vw, 4.5rem)/1 Fredoka, system-ui, sans-serif; letter-spacing: -.035em; border-radius: .24em .2em .26em .17em; background: var(--cream); padding: .08em .3em .13em; }
h2 { font: 620 clamp(1.55rem, 3vw, 2.2rem)/1.06 Fredoka, system-ui, sans-serif; letter-spacing: -.02em; }
.picker-card { position: relative; z-index: 2; margin-top: -1.15rem; padding: .85rem; border: 2px solid var(--deep); border-radius: 1.05rem; background: var(--cream); box-shadow: 0 4px 0 #c4d8c7; }
.picker { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .5rem; }
.stop-card { min-width: 0; display: grid; gap: .45rem; padding: .65rem; border: 1px solid var(--line); border-radius: .72rem; background: var(--paper); }
.stop-heading { display: flex; align-items: center; gap: .5rem; font: 620 1.18rem/1.15 Fredoka, system-ui, sans-serif; letter-spacing: 0; }
.location-field { position: relative; min-width: 0; }
.location-field:has(.location-trigger[aria-expanded="true"]),
:is(.picker-card, .timetable-header):has(.location-trigger[aria-expanded="true"]) { z-index: 4; }
button { font: inherit; color: inherit; cursor: pointer; }
.location-trigger { display: grid; width: 100%; min-height: 3.55rem; gap: .1rem; text-align: left; background: var(--paper); border: 1px solid var(--deep); border-radius: .55rem; padding: .36rem 1.95rem .36rem .68rem; }
.location-trigger::after { content: ""; position: absolute; top: 1.51rem; right: .85rem; width: .4rem; height: .4rem; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }
.location-trigger[aria-expanded="true"] { background: #e8f5ed; }
.location-trigger[aria-expanded="true"]::after { transform: translateY(.2rem) rotate(225deg); }
.location-trigger:disabled { border-color: var(--line); }
.location-trigger:disabled, .swap:disabled { color: #52635c; cursor: default; opacity: 1; }
.field-value { min-width: 0; overflow-wrap: anywhere; color: var(--deep); font-size: var(--field-size); font-weight: 750; line-height: 1.28; }
.location-trigger[data-placeholder] .field-value, .trip-date-field button[data-placeholder], .field-placeholder {
  color: var(--field-muted);
  font-weight: 600;
}
.field-label, small { display: block; color: #445c59; font-size: .78rem; font-weight: 650; }
.field-label { color: var(--field-muted); }
.location-panel {
  position: absolute;
  top: calc(100% + .28rem);
  inset-inline: 0 auto;
  inline-size: max(100%, min(19rem, calc(100vw - 3.9rem)));
  background: var(--paper);
  border: 1px solid var(--deep);
  border-radius: .7rem;
  box-shadow: 0 .45rem 1.05rem #063e4030;
}
.location-field:last-child .location-panel { inset-inline: auto 0; }
.location-panel:has(.location-filter-section:not([hidden])) {
  inline-size: max(100%, min(20.5rem, calc(100vw - 2rem)));
}
.location-panel ul { list-style: none; margin: 0; max-height: 15.5rem; max-height: min(15.5rem, 40dvh); overflow: auto; padding: .25rem; }
.location-option { position: relative; display: grid; align-items: center; gap: .45rem; min-height: 2.75rem; border-radius: .4rem; padding: .25rem .42rem; font-weight: 700; line-height: 1.2; cursor: pointer; transition: padding-inline-start 180ms ease-out; }
.location-option:has(.option-map) { grid-template-columns: minmax(0, 1fr) clamp(5.5rem, 28vw, 7rem); min-height: 4.6rem; }
.location-option:is(:hover, :focus-visible, [aria-selected="true"]) { background: #dcefe5; }
.location-option > span { overflow-wrap: anywhere; }
.location-option .option-map { width: 100%; height: auto; }
.location-option:focus-visible { outline-offset: -2px; }
.location-option[aria-disabled="true"] { color: #536660; cursor: default; }
.location-option::before, .location-option::after {
  position: absolute;
  top: 50%;
  inset-inline-start: .45rem;
  opacity: 0;
  transform: translate(-.45rem, -50%);
  transition: opacity 140ms ease-out, transform 180ms ease-out;
  pointer-events: none;
}
.location-option::before {
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--teal);
  border-radius: .2rem;
  background: var(--paper);
}
[aria-multiselectable="true"] .location-option { padding-inline-start: 1.9rem; }
[aria-multiselectable="true"] .location-option::before {
  content: "";
  opacity: 1;
  transform: translate(0, -50%);
  @starting-style { opacity: 0; transform: translate(-.45rem, -50%); }
}
[aria-multiselectable="true"] .location-option[aria-selected="true"]::before { background: var(--teal); }
[aria-multiselectable="true"] .location-option[aria-selected="true"]::after {
  content: "";
  inset-inline-start: .8rem;
  width: .32rem;
  height: .58rem;
  border: solid var(--paper);
  border-width: 0 2px 2px 0;
  opacity: 1;
  transform: translateY(-62%) rotate(45deg);
}
@media (prefers-reduced-motion: reduce) {
  .location-option, .location-option::before, .location-option::after { transition: none; }
}
.option-map { display: block; width: 112px; height: 68px; border-radius: .4rem; background: var(--sea); }
.location-area-action { display: block; width: 100%; border: 0; border-radius: inherit; padding: .75rem; text-align: left; color: var(--teal); background: transparent; font-weight: 650; text-decoration: underline; }
.location-area-action:hover { background: #dcefe5; }
.location-footer { border-top: 1px solid var(--line); }
.location-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-inline: .65rem;
}
.location-filter-section { padding: .56rem .65rem .12rem; }
.location-footer-actions:not([hidden]) + .location-filter-section { border-top: 1px solid var(--line); }
.location-filter-reason { color: var(--deep); font-size: .78rem; font-weight: 650; line-height: 1.35; }
.location-filter-reset { margin-top: .08rem; color: var(--field-muted); font-size: .72rem; line-height: 1.3; }
.clear-location, .clear-other-locations, .select-multiple-piers { min-height: 2.75rem; border: 0; padding: .2rem 0; color: var(--teal); background: transparent; font-size: .72rem; text-decoration: underline; }
.select-multiple-piers { margin-inline-start: auto; }
.stop { width: 1.6rem; height: 1.6rem; display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-weight: 850; font-size: .85rem; }
.stop-from { background: var(--coral); color: #091211; }
.stop-to { background: var(--gold); color: var(--deep); }
.swap, .outline { background: var(--paper); border: 1px solid var(--teal); border-radius: .48rem; font-weight: 750; }
.swap { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: .05rem .35rem; }
.swap-icon { display: block; width: 1.35rem; height: 1.35rem; }
.picker-actions { display: grid; gap: .3rem; margin-top: .7rem; }
.find-boat { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 2.85rem; border: 0; border-radius: 99rem; background: var(--teal); color: white; text-decoration: none; font: 620 1.24rem/1.2 Fredoka, system-ui, sans-serif; }
.find-boat:hover { background: var(--deep); }
.action-arrow { display: inline-block; position: relative; width: .9rem; height: 2px; background: currentColor; }
.action-arrow::after { content: ""; position: absolute; top: 50%; right: 0; width: .4rem; height: .4rem; border-top: 2px solid; border-right: 2px solid; transform: translateY(-50%) rotate(45deg); }
.map-toggle { min-height: 2.5rem; align-self: center; justify-self: center; border: 0; padding: .25rem .65rem; background: transparent; color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.map-toggle:hover { color: var(--deep); }
.timetable-load-error { padding-block: 1rem; }
.timetable-load-error button { margin-top: .5rem; }
.search-status { padding: .25rem .45rem; color: #8c3226; font-weight: 650; }
.boat-result { padding-block: .25rem; }
.boat-route {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-block: .58rem;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  font-size: clamp(1.26rem, 4vw, 2rem);
  line-height: 1.12;
  text-wrap: balance;
}
.timetable-note { margin-top: .45rem; color: #445c59; font-size: .85rem; }
.outline { padding: .38rem .65rem; white-space: nowrap; }
.outline:hover, .swap:not(:disabled):hover { background: #e0f3ea; }
.map-section {
  width: min(56rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: .85rem 1rem;
  border: 2px solid var(--deep);
  border-radius: 1rem;
  background: var(--cream);
  color: var(--deep);
}
.map-section[open] { display: flex; flex-direction: column; gap: .5rem; }
.map-section::backdrop { background: #063e4088; }
body:has(.map-section[open]) { overflow: hidden; }
.map-heading, .map-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem; }
.map-heading h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
.map-heading button, .map-controls button { min-height: 2.75rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: .3rem; }
#map-status { color: #445c59; font-size: .86rem; }
#map { flex: none; height: clamp(17rem, 45dvh, 29rem); border: 2px solid var(--deep); border-radius: .75rem; background: #aad8e0; }
.map-selected-piers { display: flex; flex-wrap: wrap; gap: .2rem .75rem; list-style: none; margin: 0; padding: 0; max-height: 3.8rem; overflow: auto; }
.map-selected-piers a { color: var(--teal); font-size: .84rem; font-weight: 700; text-underline-offset: .16em; }
@media (max-width: 43rem) {
  .map-section {
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: max(.65rem, env(safe-area-inset-top)) .65rem max(.65rem, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }
  #map { flex: 1 0 14rem; height: auto; min-height: 14rem; }
}
.pier-pin { background: transparent; border: 0; }
.pier-pin .pier-dot {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 2px solid white;
  border-radius: 50% 50% 50% 18%;
  background: var(--deep);
  color: white;
  box-shadow: 0 2px 6px #315a6470;
  font: 850 .76rem/1 system-ui, sans-serif;
}
.pier-pin[data-stop="A"] .pier-dot { background: var(--coral); color: #091211; }
.pier-pin[data-stop="B"] .pier-dot { background: var(--gold); color: var(--deep); }
.pier-map-name {
  position: absolute;
  z-index: 1;
  width: max-content;
  max-width: 6.8rem;
  padding: .12rem .3rem;
  border: 1px solid #40726a;
  border-radius: .3rem;
  background: var(--paper);
  color: var(--deep);
  font: 750 .71rem/1.14 system-ui, sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
}
.pier-pin[data-label-side="above"] .pier-map-name { bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); }
.pier-pin[data-label-side="below"] .pier-map-name { top: calc(100% + 2px); left: 50%; transform: translateX(-50%); }
.pier-pin[data-label-side="left"] .pier-map-name { right: calc(100% + 2px); top: 50%; transform: translateY(-50%); }
.pier-pin[data-label-side="right"] .pier-map-name { left: calc(100% + 2px); top: 50%; transform: translateY(-50%); }

.leaflet-container .pier-pin[aria-disabled="true"] { cursor: default; }
.pier-pin[aria-pressed="true"] .pier-map-name { background: #fff1b9; border-color: #936829; }
.pier-pin:focus-visible .pier-map-name { outline: 2px solid #a23122; outline-offset: 2px; }
.boat-marker { display: grid; place-items: center; border: 2px solid #fff9e9; border-radius: 50%; background: var(--teal); box-shadow: 0 2px 7px #063e4070; }
.boat-icon { position: relative; width: 22px; height: 15px; }
.boat-icon::before { content: ""; position: absolute; left: 5px; bottom: 6px; width: 10px; height: 7px; border: 2px solid #fff9e9; border-radius: 2px 6px 0 0; }
.boat-icon::after { content: ""; position: absolute; inset: auto 0 1px; height: 7px; background: #fff9e9; clip-path: polygon(0 0, 100% 0, 79% 100%, 20% 100%); }
.map-route-note { padding: 0; color: #445c59; font-size: .84rem; }
:focus-visible { outline: 3px solid #a23122; outline-offset: 3px; }
@media (max-width: 48rem) {
  .picker { grid-template-columns: minmax(0, 1fr); }
  .picker > .stop-card:last-child, .picker > .swap { grid-area: 2 / 1; }
  .picker > .stop-card:last-child .stop-heading { min-height: 2.3rem; padding-right: 3.4rem; }
  .swap { z-index: 1; align-self: start; justify-self: end; margin: .38rem .65rem 0 0; }
  .swap-icon { width: 1.1rem; height: 1.1rem; transform: rotate(90deg); }
}

.picker-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: .55rem; }
.map-toggle { display: inline-flex; align-items: center; justify-content: center; }
.whatsapp-float { position: fixed; z-index: 3; right: max(.85rem, calc(env(safe-area-inset-right) + .55rem)); bottom: max(.85rem, calc(env(safe-area-inset-bottom) + .55rem)); width: 3.4rem; height: 3.4rem; display: grid; place-items: center; border: 2px solid #fffdf1; border-radius: 50%; background: #127750; box-shadow: 0 .22rem .75rem #063e4050; }
.whatsapp-float:hover { background: #0c6140; }
.routes-header { background: var(--teal); color: white; padding-block: 1.5rem 2rem; }
.routes-header h1 { background: none; padding: .18rem 0 0; }
.routes-back { color: #fff6e0; font-weight: 650; text-underline-offset: .2em; }
.routes-body { padding-block: 1rem 5rem; }
.route-filters { max-width: 34rem; }
.route-filters .stop-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.route-filters .stop-heading { grid-column: 1 / -1; min-height: auto; padding-right: 0; }
.route-count { margin: .85rem 0 .5rem; color: #445c59; font-weight: 650; }
.route-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; gap: .75rem; }
.route-groups-filtered { grid-template-columns: minmax(0, 1fr); }
.route-group { padding: .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: .7rem; }
.route-group h2 { font-size: 1.35rem; }
.route-area { color: #445c59; font-size: .85rem; }
.route-destination-area {
  margin: .75rem 0 .3rem;
  padding-top: .55rem;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  line-height: 1.25;
}
.route-group ul { list-style: none; margin: 0; padding: 0; }
.route-group li + li { margin-top: .28rem; }
.route-group a { display: block; position: relative; padding: .4rem 1.8rem .4rem .5rem; color: var(--teal); border-radius: .35rem; background: #eaf4ea; font-weight: 750; text-underline-offset: .17em; }
.route-group a::after { content: ""; position: absolute; right: .76rem; top: 50%; width: .45rem; height: .45rem; border-top: 2px solid; border-right: 2px solid; transform: translateY(-50%) rotate(45deg); }
.route-group a:hover { background: #d2ede2; }
.route-groups-filtered .route-group { border-color: var(--teal); }

.timetable-header { position: relative; z-index: 3; background: var(--teal); padding-block: .9rem 1rem; }
.timetable-heading { color: white; margin-bottom: .65rem; }
.timetable-heading h1 { background: none; padding: .16rem 0 0; font-size: clamp(1.95rem, 4vw, 2.85rem); }
.timetable-picker { padding: .55rem; background: var(--cream); border-radius: .75rem; }
.timetable-picker .stop-card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; padding: .38rem; }
.timetable-picker .stop-heading { grid-column: 1 / -1; }
.timetable-picker .location-trigger { min-height: 2.9rem; padding: .23rem 1.25rem .25rem .42rem; }
.timetable-picker .location-trigger::after { top: 1.18rem; right: .5rem; width: .35rem; height: .35rem; }
.timetable-picker .find-boat { width: 100%; min-height: 2.5rem; margin-top: .46rem; font-size: 1.07rem; }
.timetable-content { padding-block: 1rem 5rem; }

@media (max-width: 48rem) {
  .timetable-picker .stop-card:last-child .stop-heading { min-height: 1.6rem; }
  .timetable-picker .swap { min-width: 2.15rem; min-height: 2rem; margin: .22rem .4rem 0 0; }
}


.trip-parameters, .sailing-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .7rem;
}
.trip-parameters > *, .sailing-filters > div { display: grid; gap: .15rem; min-width: 0; }
.trip-parameters :is(input, select), .sailing-filters select {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: .28rem .55rem;
  border: 1px solid var(--teal);
  border-radius: .45rem;
  background: var(--paper);
  color: var(--deep);
  font: 680 1rem/1.2 system-ui, sans-serif;
}
.sailing-filters { max-width: 32rem; margin-top: .9rem; }
.sailing-filter-status { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem .7rem; min-height: 2.75rem; color: #445c59; font-size: .88rem; font-weight: 650; }
.clear-filters { min-height: 2.75rem; padding: .15rem .2rem; border: 0; background: transparent; color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }

.sailings { display: grid; gap: .65rem; list-style: none; padding: 0; margin: 0; }
.sailing { padding: .68rem .72rem .6rem; border: 1px solid var(--line); border-radius: .78rem; background: var(--paper); }
.sailing-journey { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr) minmax(0, 1fr); gap: .4rem; }
.sailing-endpoint { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; align-content: start; gap: .15rem; min-width: 0; color: inherit; text-decoration: none; }
.sailing-endpoint:last-child { justify-items: end; text-align: right; }
.sailing-endpoint-label { color: #445c59; font-size: .76rem; font-weight: 700; }
.sailing-time { font: 640 clamp(1.38rem, 5.6vw, 1.85rem)/1.06 Fredoka, system-ui, sans-serif; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sailing-time-unknown { align-self: center; font-size: clamp(.8rem, 3.4vw, 1.13rem); line-height: 1.65; white-space: normal; }
.sailing-pier-name { color: var(--teal); font-size: .8rem; font-weight: 750; line-height: 1.23; overflow-wrap: anywhere; }
a.sailing-endpoint .sailing-pier-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
a.sailing-endpoint:hover .sailing-pier-name { color: var(--deep); }
.sailing-endpoint .option-map { width: min(100%, 5.5rem); height: auto; aspect-ratio: 112 / 68; margin-block: .15rem; }
.sailing-vessel { display: grid; align-content: center; justify-items: center; min-width: 0; text-align: center; }
.vessel-artwork { display: flex; justify-content: center; align-items: center; width: 100%; }
.vessel-sprite { display: block; flex: 0 1 5.8rem; width: 100%; min-width: 0; aspect-ratio: 1.36; background: url('./boat-types.webp') no-repeat 0 12% / 200% auto; }
.vessel-sprite[data-boat="catamaran"] { background-position: 100% 12%; }
.vessel-sprite[data-boat="ferry"] { background-position: 0 89%; }
.vessel-sprite[data-boat="unknown"] { background-position: 100% 89%; }
.vessel-artwork:has(:nth-child(2)) .vessel-sprite { flex-basis: min(50%, 4.4rem); }
.vessel-label { max-width: 12ch; font-size: .77rem; font-weight: 780; line-height: 1.18; }
.sailing-duration { margin-top: .16rem; }
.sailing-footer { display: flex; justify-content: space-between; align-items: center; gap: .55rem; margin-top: .6rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.sailing-summary { min-width: 0; }
.sailing-operator { color: #375b57; font-size: .86rem; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; }
.sailing-clock { display: flex; align-items: center; }
.sailing-endpoint:last-child .sailing-clock { flex-direction: row-reverse; }
.sailing-action { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; max-width: 100%; }
.sailing-price { display: grid; gap: .12rem; }
.sailing-fare-unit { font-size: .7rem; line-height: 1.1; white-space: nowrap; }
.sailing-fare { font: 650 1.18rem/1 Fredoka, system-ui, sans-serif; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sailing-book { display: inline-grid; place-items: center; min-width: 4.15rem; min-height: 2.75rem; padding: .25rem .65rem; border: 0; border-radius: 4rem; background: var(--teal); color: white; text-decoration: none; font-weight: 750; }
.sailing-book:is(:hover, :focus-visible) { background: var(--deep); }
.sailing-book[aria-pressed="true"] { display: inline-flex; align-items: center; gap: .38rem; background: var(--deep); color: var(--cream); }
.sailing-book[aria-pressed="true"]::before { content: ""; width: .33rem; height: .62rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(42deg); }
.sailing-selected { border-color: var(--teal); background: #e5f5e8; box-shadow: inset 0 0 0 1px var(--teal); }
@media (max-width: 37.99rem) {
  .sailing-footer { flex-direction: column; align-items: flex-start; gap: .45rem; }
  .sailing-action { flex-direction: row-reverse; justify-content: flex-end; gap: .48rem; }
}
@media (min-width: 38rem) {
  .sailing { padding: .7rem 1rem; }
  .sailing-journey { grid-template-columns: 1fr minmax(0, 10rem) 1fr; align-items: center; }
  .sailing-endpoint { grid-template-columns: auto minmax(0, 1fr); gap: .12rem .68rem; align-items: start; }
  .sailing-endpoint:last-child { grid-template-columns: minmax(0, 1fr) auto; }
  .sailing-endpoint > :is(.sailing-endpoint-label, .sailing-clock, .sailing-pier-name) { grid-column: 2; }
  .sailing-endpoint .option-map { grid-area: 1 / 1 / span 3 / 2; align-self: center; width: 5.5rem; margin: 0; }
  .sailing-endpoint:last-child > :is(.sailing-endpoint-label, .sailing-clock, .sailing-pier-name) { grid-column: 1; }
  .sailing-endpoint:last-child .option-map { grid-column: 2; }
}

.trip-legs button {
  display: inline-grid;
  place-items: center;
  min-height: 2.75rem;
  padding: .26rem .75rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--paper);
  color: var(--deep);
  font-weight: 750;
  font-size: .86rem;
}
.trip-legs button[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--gold);
}
.return-planner { display: flex; flex-wrap: wrap; align-items: center; gap: .42rem .75rem; margin-block: .65rem; scroll-margin-top: 5.5rem; }
.trip-legs { display: flex; gap: .32rem; }
.trip-legs button:disabled { color: #52635c; cursor: default; }
.leg-summary { flex: 1 1 14rem; color: #445c59; font-size: .85rem; font-weight: 650; }
.return-book { flex: none; }


.traveler-footer { width: 100%; max-width: 80rem; margin-inline: auto; padding-block: 1rem 1.1rem; background: var(--teal); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--cream); font-weight: 750; text-underline-offset: .18em; }
.info-content { display: grid; gap: 1.4rem; padding-block: 1.3rem 2.5rem; }
.info-content p { margin-top: .35rem; }

.hero-title h1 { font-size: clamp(2.12rem, 5.05vw, 3.32rem); }
.picker-card { width: min(46rem, calc(100% - 1.25rem)); padding: .6rem; margin-top: -.9rem; }
.picker-card .stop-card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .34rem; padding: .4rem; }
.picker-card .stop-heading { grid-column: 1 / -1; font-size: 1.08rem; }
.picker-card .location-trigger { min-height: 2.8rem; padding: .23rem 1.26rem .25rem .43rem; }
.picker-card .location-trigger::after { top: 1.14rem; right: .5rem; width: .35rem; height: .35rem; }
.picker-card .picker-actions { margin-top: .46rem; gap: .05rem; }
.picker-card .find-boat { font-size: 1.1rem; }
.picker-card .picker-links { column-gap: .45rem; }
.picker-card .map-toggle { font-size: .875rem; min-height: 2.75rem; padding-inline: .25rem; }
@media (max-width: 48rem) {
  .picker-card .stop-card:last-child .stop-heading { min-height: 1.6rem; }
  .picker-card .swap { min-width: 2.26rem; min-height: 2rem; margin: .21rem .4rem 0 0; }
}

@media (min-width: 48rem) {
  .hero-art { height: min(27.5vw, 20rem); object-position: center top; }
}

.trip-parameters { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); align-items: end; }
.trip-parameters .location-trigger { position: relative; display: flex; align-items: center; min-height: 2.75rem; padding: .28rem 1.5rem .28rem .55rem; border-color: var(--teal); border-radius: .45rem; }
.trip-parameters .location-trigger::after { top: calc(50% - .3rem); right: .55rem; width: .35rem; height: .35rem; }
.trip-type .location-panel { inline-size: max(100%, 7.5rem); }
.passenger-field .location-trigger { justify-content: center; padding-inline: 1.25rem; }
.passenger-field .location-panel { inline-size: 100%; }
.passenger-field .location-option { justify-content: center; }
.trip-dates { position: relative; display: grid; grid-column: 1 / -1; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: .45rem; }
.trip-date-field { min-width: 0; }
.trip-date-field > button { width: 100%; min-height: 2.75rem; padding: .32rem .55rem; font-size: var(--field-size); text-align: left; white-space: normal; }
.trip-date-field > button[aria-expanded="true"] { background: #e8f5ed; }
@media (min-width: 42rem) {
  .trip-parameters { grid-template-columns: minmax(6rem, 1fr) repeat(2, minmax(4.3rem, .7fr)) minmax(12rem, 2.5fr); }
  .trip-dates { grid-column: auto; }
}

.timetable-heading { position: relative; padding-inline-end: 3.85rem; }
.timetable-brand { display: inline-flex; align-items: center; }
.timetable-brand-mark {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(3rem, 9vw, 3.65rem);
  height: clamp(3rem, 9vw, 3.65rem);
  border: 1px solid #fff6e0;
  border-radius: 50%;
  background: #00868a url('./joyze-islands.webp') center 18% / 350% auto no-repeat;
}
.timetable-brief { display: none; }
@media (max-width: 43rem) {
  .timetable-brief {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .48rem;
    padding: .52rem .6rem;
    border-radius: .65rem;
    background: var(--cream);
  }
  .timetable-brief button { min-height: 2.75rem; font-size: .85rem; }
  .trip-summary-route { font-size: .9rem; font-weight: 800; line-height: 1.23; }
  .trip-summary-details { margin-top: .13rem; color: #445c59; font-size: .76rem; }
  .timetable-header.has-trip-summary:not(.trip-editor-open) .timetable-picker { display: none; }
  .trip-editor-open .timetable-picker { margin-top: .5rem; }
}

@media (max-width: 47.99rem) {
  .hero-art { height: clamp(10.5rem, 45vw, 15.5rem); object-position: center top; }
  .hero-title { margin-top: clamp(-4.3rem, -10.6vw, -3.1rem); }
}

.recent-list { display: grid; gap: .55rem; list-style: none; padding: 0; margin: .85rem 0; }
.recent-list a { display: grid; gap: .2rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--paper); color: var(--teal); text-underline-offset: .18em; }
.recent-list a:hover { background: #e8f5ed; }

.time-filters { max-width: 32rem; margin-top: .5rem; }
.time-filters summary { min-height: 2.75rem; padding: .58rem .65rem; cursor: pointer; border: 1px solid var(--teal); border-radius: .46rem; background: var(--paper); color: var(--deep); font-weight: 730; }
.time-filter-count { display: inline-grid; place-items: center; min-width: 1.25rem; min-height: 1.25rem; border-radius: 2rem; background: var(--gold); color: var(--deep); font-size: .75rem; }
.time-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .55rem; padding-top: .45rem; }
.time-fields label { display: grid; gap: .15rem; min-width: 0; }
.time-fields input { min-width: 0; min-height: 2.75rem; padding: .28rem .45rem; border: 1px solid var(--teal); border-radius: .45rem; background: var(--paper); color: var(--deep); font: 680 1rem/1.2 system-ui, sans-serif; }
@media (min-width: 36rem) { .time-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.route-map-action { margin-top: .35rem; }
.sailing-fare-unlisted { font-size: .82rem; font-weight: 700; color: #445c59; }

.date-dialog { width: min(27rem, calc(100% - 1rem)); max-height: calc(100dvh - 1rem); padding: 1rem; border: 1px solid var(--teal); border-radius: .9rem; background: var(--cream); color: var(--deep); }
.date-dialog:modal { overflow-y: auto; }
.date-dialog::backdrop { background: #063e4088; }
body:has(.date-dialog:modal) { overflow: hidden; }
:is(.picker-card, .timetable-header):has(#date-picker[open]:not(:modal)) { z-index: 4; }
#date-picker[open]:not(:modal) {
  position: absolute;
  inset: var(--calendar-offset, calc(100% + .28rem)) 0 auto auto;
  z-index: 5;
  width: 27rem;
  max-height: none;
  overflow: visible;
  margin: 0;
  box-shadow: 0 .45rem 1.05rem #063e4030;
}
.date-dialog h2 { font-size: clamp(1.28rem, 4.5vw, 1.7rem); }
.dialog-heading, .dialog-actions, .calendar-nav { display: flex; align-items: center; justify-content: space-between; gap: .45rem; }
.dialog-heading button, .calendar-nav button { min-height: 2.75rem; }
.calendar-close, .calendar-close:hover {
  position: relative;
  align-self: flex-start;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.calendar-close-icon {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  display: grid;
  place-items: center;
  width: 60%;
  height: 60%;
  border: 1px solid var(--teal);
  border-radius: 50%;
  background: var(--paper);
}
.calendar-close:hover .calendar-close-icon { background: #e0f3ea; }
.date-dialog .dialog-actions { flex-wrap: wrap; }
.calendar-tools { display: flex; gap: .12rem; }
.calendar-tools button { padding-inline: .25rem; font-size: .875rem; }
.calendar-confirm { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; margin-inline-start: auto; }
.calendar-confirm > .outline { min-height: 2.75rem; }
#date-progress { margin-block: .45rem .65rem; font-size: .86rem; }
.calendar-nav button { min-width: 2.75rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .16rem; margin-block: .4rem .85rem; }
.calendar-weekday { text-align: center; font-size: .7rem; font-weight: 700; }
.calendar-day { min-height: 2.45rem; border: 1px solid transparent; border-radius: .3rem; padding: 0; background: var(--paper); font-weight: 650; }
.calendar-day:hover:not(:disabled, [aria-pressed="true"]), .calendar-day[data-range] { background: #d4ede0; }
.calendar-day[aria-current="date"] { text-decoration: underline; text-underline-offset: .18em; }
.calendar-day[aria-pressed="true"] { background: var(--gold); border-color: var(--deep); }
.calendar-day:disabled, .date-dialog button:disabled { opacity: .52; cursor: default; }
.booking-review { display: grid; gap: .42rem; flex: 1 0 100%; }
.booking-leg { border: 1px solid var(--line); border-radius: .65rem; background: var(--paper); padding: .5rem .65rem; }
.booking-leg h3 { margin: 0; color: #375b57; font-size: .84rem; }
.booking-route { font-weight: 780; overflow-wrap: anywhere; }
.booking-leg-details, .booking-party, .booking-note { color: #375b57; font-size: .85rem; }
.booking-note { flex: 1 1 14rem; }
#booking-review .booking-review { margin-block: .7rem; }
#booking-review .booking-note { margin-bottom: .55rem; }

.date-phases { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: .4rem; margin-top: .55rem; }
.date-phases button {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: .12rem;
  min-height: 2.75rem;
  padding: .48rem .35rem;
  line-height: 1.25;
  white-space: normal;
}
.date-phases time { font-size: .875rem; font-weight: 650; }
.date-phases button[aria-pressed="true"] { background: var(--gold); border-color: var(--deep); }

@media (max-height: 40rem) {
  .date-dialog { padding: .7rem; }
  .date-dialog .calendar-day { min-height: 2rem; }
  .date-dialog .calendar-grid { margin-bottom: .55rem; }
}
