* {
  box-sizing: border-box;
}
:root {
  --ink: #263930;
  --muted: var(--tone-747b75, #747b75);
  --yellow: #f7cb3a;
  --paper: #fafaf7;
  --line: #e3e6df;
  --surface: #fff;
  --solid: #263930;
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  outline-offset: 5px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button {
  border: 0;
  background: none;
}
header {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: auto;
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
}
.brand {
  text-decoration: none;
  font-family: Manrope, sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.6px;
  display: inline-flex;
  align-items: center;
}
.brand-sun {
  font-size: 39px;
  color: #deaa0b;
  margin-right: 9px;
  font-weight: 400;
}
.brand-dot {
  color: #d3a317;
}
nav {
  display: flex;
  gap: 32px;
  height: 100%;
  align-items: center;
}
nav button {
  height: 100%;
  font-size: 14px;
  font-weight: 600;
  position: relative;
}
nav .nav-active:after {
  content: "";
  position: absolute;
  height: 3px;
  bottom: 0;
  background: var(--yellow);
  left: 0;
  right: 0;
}
nav span {
  margin-left: 12px;
  color: var(--muted);
}
.swiss {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: center;
}
.swiss b {
  background: #e95847;
  color: white;
  border-radius: 3px;
  line-height: 19px;
  width: 19px;
  text-align: center;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 0 40px;
}
.intro {
  padding: 56px 0 37px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9ad28;
}
h1 {
  font-family: Manrope, sans-serif;
  font-size: clamp(36px, 4.3vw, 57px);
  letter-spacing: -2.7px;
  margin: 15px 0 18px;
  line-height: 1.2;
  font-weight: 800;
}
h1 span {
  position: relative;
  white-space: nowrap;
}
h1 svg {
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 12px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 7;
  stroke-linecap: round;
}
p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.intro-note {
  display: flex;
  align-items: center;
  gap: 18px;
  transform: rotate(6deg);
  padding-right: 25px;
}
.intro-note > span {
  font-size: 71px;
  font-weight: 400;
  color: #dcae28;
}
.intro-note p {
  font-size: 14px;
  color: var(--tone-818477, #818477);
  font-style: italic;
}
.search-panel {
  border: 1px solid var(--tone-dde1d7, #dde1d7);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 7px 22px #26393005;
  overflow: hidden;
}
.search-fields {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr auto;
  align-items: center;
  padding: 24px 23px;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  padding-right: 16px;
  border-right: 1px solid var(--line);
  gap: 10px;
  min-width: 0;
}
.search-fields > .field:last-of-type {
  border-right: 0;
}
.field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.25px;
  color: var(--tone-858a80, #858a80);
}
input,
select {
  border: 0;
  background: transparent;
  max-width: 100%;
  font-size: 15px;
  font-weight: 600;
  min-height: 24px;
}
input[type="date"] {
  width: 100%;
}
.primary {
  border-radius: 9px;
  background: var(--yellow);
  font-weight: 700;
  padding: 19px 23px;
  color: #29372a;
  white-space: nowrap;
}
.primary:hover {
  background: #edbe24;
}
.primary span {
  margin-left: 16px;
}
.primary:disabled {
  opacity: 0.65;
  cursor: wait;
}
.search-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid var(--tone-eef0e8, #eef0e8);
  background: var(--tone-f6f7f1, #f6f7f1);
  padding: 16px 24px;
  font-size: 12px;
}
.transport-only {
  color: var(--tone-7c8477, #7c8477);
  display: flex;
  align-items: center;
  gap: 8px;
}
.transport-only > span {
  color: var(--tone-53674a, #53674a);
  font-size: 18px;
}
.sun-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
}
.sun-switch > span:first-child {
  font-size: 22px;
  color: #b18c18;
}
.sun-switch input {
  position: absolute;
  opacity: 0;
  min-height: 0;
}
.switch-track {
  flex-shrink: 0;
  height: 23px;
  width: 41px;
  background: var(--tone-b4bbb0, #b4bbb0);
  border-radius: 30px;
  position: relative;
  margin-left: 6px;
}
.switch-track:after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  left: 3px;
  top: 3px;
  background: var(--surface);
  border-radius: 50%;
  box-shadow: 0 1px 3px #0002;
  transition: 0.2s;
}
.sun-switch input:checked + .switch-track {
  background: var(--yellow);
}
.sun-switch input:checked + .switch-track:after {
  transform: translateX(18px);
}
.sun-switch input:focus-visible + .switch-track {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.results-section {
  padding-top: 46px;
  padding-bottom: 45px;
}
.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.small {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--tone-858b7e, #858b7e);
}
h2 {
  font-family: Manrope, sans-serif;
  font-size: 28px;
  letter-spacing: -1px;
  margin: 10px 0 9px;
}
h2 > span {
  color: #d9a817;
}
.results-heading p {
  font-size: 13px;
}
.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: var(--surface);
  gap: 4px;
}
.view-toggle button {
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--muted);
}
.view-toggle span {
  font-size: 12px;
  margin-left: 5px;
}
.view-toggle .selected {
  background: var(--solid);
  color: white;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 27px 0 25px;
  gap: 15px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filters button {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 15px;
  font-size: 12px;
  white-space: nowrap;
  background: var(--surface);
}
.filters button.active {
  color: white;
  background: var(--solid);
  border-color: var(--ink);
}
.sort-label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.sort-label select {
  font-size: 12px;
  margin-left: 5px;
  font-weight: 500;
}
.status {
  font-size: 13px;
  color: var(--tone-747b75, #747b75);
  margin-bottom: 15px;
}
.status:empty {
  display: none;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px #26393010;
}
.card-open {
  display: block;
  text-align: left;
  width: 100%;
  padding: 0;
}
.card-image {
  height: 206px;
  position: relative;
  background: var(--tone-dce5df, #dce5df);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.weather-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 6px;
  background: var(--tone-fffced, #fffced);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 9px #0001;
}
.weather-badge span {
  color: #a98212;
  margin-right: 5px;
}
.image-tag {
  position: absolute;
  bottom: 13px;
  left: 14px;
  background: var(--tone-fffef4ed, #fffef4ed);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
  letter-spacing: 0.2px;
}
.card-body {
  padding: 20px;
}
.card-region {
  font-size: 10px;
  color: var(--tone-8c9185, #8c9185);
  text-transform: uppercase;
  letter-spacing: 1.3px;
  margin-bottom: 8px;
}
.card h3 {
  font-family: Manrope, sans-serif;
  font-size: 20px;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
}
.card-description {
  font-size: 12px;
  line-height: 1.7;
  min-height: 41px;
  color: var(--tone-82877e, #82877e);
}
.card-metadata {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 17px;
  font-size: 11px;
  color: var(--tone-667261, #667261);
}
.card-metadata span + span {
  border-left: 1px solid var(--line);
  padding-left: 13px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--tone-eceee8, #eceee8);
  margin-top: 16px;
  padding-top: 14px;
  font-size: 11px;
  color: var(--tone-7e8777, #7e8777);
}
.card-bottom strong {
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
}
.card-bottom b {
  font-size: 21px;
  color: var(--tone-697759, #697759);
}
.empty {
  grid-column: 1/-1;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 45px;
  border-radius: 14px;
  text-align: center;
}
.empty h3 {
  margin: 0 0 10px;
}
.empty button {
  margin-top: 18px;
}
.closing-note {
  margin: 40px 0 45px;
  background: var(--tone-f0f3e9, #f0f3e9);
  border: 1px solid var(--tone-e7ebdf, #e7ebdf);
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 23px 29px;
}
.closing-note > span:first-child {
  font-size: 36px;
  color: #b58c11;
}
.closing-note strong {
  font-size: 13px;
  font-weight: 600;
}
.closing-note p {
  font-size: 12px;
  margin-top: 4px;
}
.closing-mark {
  margin-left: auto;
  font-size: 13px;
  font-style: italic;
  color: var(--tone-7e876d, #7e876d);
}
footer {
  border-top: 1px solid var(--line);
  max-width: 1240px;
  margin: auto;
  padding: 26px 40px;
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--tone-919589, #919589);
  font-size: 11px;
}
footer .brand {
  font-size: 19px;
  letter-spacing: -0.8px;
  color: var(--tone-778171, #778171);
}
footer button {
  font-size: 11px;
  margin-left: auto;
}
footer > span:last-child {
  font-size: 9px;
  letter-spacing: 1.3px;
}
dialog {
  border: 0;
  border-radius: 20px;
  padding: 0;
  max-width: 960px;
  width: calc(100% - 40px);
  max-height: 90vh;
  box-shadow: 0 25px 100px #0003;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #172c277d;
  backdrop-filter: blur(5px);
}
.close-dialog {
  position: absolute;
  right: 18px;
  top: 18px;
  background: var(--surface);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  z-index: 2;
  box-shadow: 0 2px 10px #0002;
}
.detail-hero {
  height: 240px;
  position: relative;
}
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-main {
  padding: 30px;
}
.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.detail-title-row h2 {
  font-size: 31px;
  margin-top: 6px;
}
.detail-title-row .weather-badge {
  position: static;
  white-space: nowrap;
}
.detail-description {
  font-size: 14px;
  max-width: 700px;
  margin-bottom: 25px;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 30px;
}
.detail-layout h3 {
  font-family: Manrope, sans-serif;
  font-size: 18px;
  margin: 20px 0 15px;
}
.custom-controls {
  background: var(--tone-f0f2e9, #f0f2e9);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.custom-controls label {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.custom-controls input,
.custom-controls select {
  font-size: 14px;
  width: 100%;
  background: var(--surface);
  padding: 7px;
  border: 1px solid var(--tone-dce1d5, #dce1d5);
  border-radius: 5px;
}
.connection {
  padding: 15px;
  border-radius: 9px;
  border: 1px solid var(--line);
  margin: 10px 0;
  background: var(--surface);
}
.connection.selected-connection {
  border-color: #acbb93;
  background: var(--tone-f5f7ef, #f5f7ef);
}
.connection-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.connection-head input {
  min-height: 0;
  accent-color: var(--tone-496342, #496342);
}
.connection small {
  display: block;
  margin: 7px 0;
  color: var(--muted);
  font-size: 12px;
}
.legs {
  list-style: none;
  padding: 0 0 0 9px;
  margin: 15px 0 0;
  border-left: 2px solid var(--tone-c1ccae, #c1ccae);
}
.legs li {
  font-size: 12px;
  padding: 0 0 13px 7px;
  line-height: 1.65;
}
.legs li:last-child {
  padding-bottom: 0;
}
.legs b {
  font-weight: 600;
}
.legs .line-badge {
  background: var(--tone-e9eee0, #e9eee0);
  border-radius: 3px;
  padding: 2px 5px;
  margin-right: 5px;
  white-space: nowrap;
}
.map-frame {
  width: 100%;
  height: 270px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--tone-e8ece1, #e8ece1);
}
.map-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  font-size: 12px;
}
.text-link {
  color: var(--tone-42643b, #42643b);
  text-underline-offset: 3px;
}
.activity-note {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 17px;
  font-size: 13px;
}
.activity-note p {
  font-size: 13px;
}
.sources-note {
  font-size: 11px;
  margin-top: 25px;
  color: var(--tone-858b7f, #858b7f);
  line-height: 1.7;
}
.error-note {
  color: #815c27;
  font-size: 13px;
  background: var(--tone-fff6dd, #fff6dd);
  padding: 13px;
  border-radius: 7px;
  line-height: 1.6;
}
.trip-plan {
  padding: 14px 0;
  font-size: 13px;
  line-height: 1.8;
}
.trip-plan strong {
  display: block;
}
.detail-tabs {
  display: flex;
  margin-top: 20px;
  gap: 8px;
}
.detail-tabs button {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
}
.detail-tabs button.active {
  background: var(--solid);
  color: white;
}
#info-dialog {
  max-width: 620px;
}
#info-content {
  padding: 40px;
}
#info-content h2 {
  padding-right: 25px;
}
#info-content p,
#info-content li {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}
#info-content ol,
#info-content ul {
  padding-left: 20px;
}
#map-results {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px;
}
#map-results iframe {
  height: 400px;
}
.map-trip-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.map-trip-buttons button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.map-trip-buttons button:hover {
  background: var(--tone-f5edc9, #f5edc9);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1450px) {
  header {
    max-width: 1400px;
  }
  main,
  footer {
    max-width: 1320px;
  }
  .card-image {
    height: 232px;
  }
}
@media (max-width: 1000px) {
  main {
    padding: 0 25px;
  }
  header {
    padding: 0 25px;
  }
  .intro-note {
    display: none;
  }
  .search-fields {
    grid-template-columns: 1fr 1fr;
    gap: 23px;
  }
  .field:nth-child(2) {
    border: 0;
  }
  .search-button {
    width: 100%;
  }
  .filter-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .cards {
    gap: 15px;
  }
  .card-body {
    padding: 16px;
  }
  .card-image {
    height: 180px;
  }
  .card h3 {
    font-size: 18px;
  }
  .card-metadata {
    gap: 7px;
    font-size: 10px;
  }
  .card-metadata span + span {
    padding-left: 7px;
  }
  .swiss {
    display: none;
  }
}
@media (max-width: 700px) {
  header {
    height: 76px;
    padding: 0 20px;
  }
  .brand {
    font-size: 25px;
  }
  .brand-sun {
    font-size: 31px;
  }
  nav {
    gap: 13px;
  }
  nav button {
    font-size: 12px;
  }
  nav span {
    display: none;
  }
  main {
    padding: 0 20px;
  }
  .intro {
    padding: 35px 0 28px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.4px;
  }
  h1 {
    font-size: 38px;
    letter-spacing: -1.8px;
    line-height: 1.25;
  }
  .intro p {
    font-size: 14px;
    max-width: 300px;
  }
  .search-fields {
    padding: 20px 17px;
    gap: 20px 12px;
  }
  .field {
    padding-right: 8px;
  }
  .field-label {
    font-size: 9px;
    letter-spacing: 0.8px;
  }
  input,
  select {
    font-size: 14px;
  }
  .primary {
    padding: 15px 12px;
    font-size: 13px;
  }
  .primary span {
    margin-left: 5px;
  }
  .search-bottom {
    padding: 12px 17px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .transport-only {
    font-size: 10px;
  }
  .sun-switch {
    font-size: 12px;
  }
  .results-section {
    padding-top: 32px;
  }
  h2 {
    font-size: 23px;
    max-width: 260px;
  }
  .results-heading {
    gap: 10px;
  }
  .results-heading p {
    font-size: 12px;
  }
  .view-toggle span {
    display: none;
  }
  .view-toggle button {
    padding: 7px 10px;
  }
  .filters {
    gap: 7px;
  }
  .filters button {
    font-size: 11px;
    padding: 9px 11px;
  }
  .filter-row {
    margin-top: 22px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card-image {
    height: 235px;
  }
  .card-body {
    padding: 20px;
  }
  .card h3 {
    font-size: 22px;
  }
  .card-description {
    font-size: 14px;
    min-height: 0;
  }
  .card-metadata,
  .card-bottom {
    font-size: 12px;
  }
  .card-bottom strong {
    font-size: 13px;
  }
  .closing-note {
    padding: 20px 17px;
    margin: 30px 0;
    gap: 12px;
  }
  .closing-mark {
    display: none;
  }
  .closing-note strong {
    font-size: 12px;
  }
  .closing-note p {
    font-size: 11px;
  }
  footer {
    padding: 25px 20px;
    flex-wrap: wrap;
    gap: 14px;
  }
  footer > span:last-child {
    width: 100%;
  }
  dialog {
    width: calc(100% - 20px);
    max-height: 94vh;
  }
  .detail-main {
    padding: 22px;
  }
  .detail-hero {
    height: 195px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .detail-title-row h2 {
    font-size: 28px;
  }
  .detail-title-row .weather-badge {
    margin: 10px 0;
  }
  .detail-description {
    margin-top: 10px;
  }
  .card-region {
    font-size: 11px;
  }
  .weather-badge {
    font-size: 13px;
  }
  .field-label {
    font-size: 10px;
  }
  .small {
    font-size: 10px;
  }
  #info-content {
    padding: 30px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Full-day planning and the expanded destination collection. */
.catalog-controls {
  display: flex;
  gap: 20px;
  margin: 24px 0 10px;
  align-items: center;
}
.catalog-search {
  display: flex;
  gap: 12px;
  flex: 1;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}
.catalog-search input {
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  min-width: 0;
}
.catalog-controls > label:last-child {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.catalog-controls select {
  font-size: 14px;
}
.filter-row {
  flex-wrap: wrap;
}
.filters button {
  font-size: 13px;
}
.card-description {
  font-size: 14px;
  min-height: 48px;
}
.card-metadata {
  font-size: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.card-bottom {
  gap: 10px;
  align-items: flex-end;
}
.card-bottom strong {
  white-space: nowrap;
  font-size: 13px;
}
.card-region {
  font-size: 12px;
  letter-spacing: 0.7px;
}
.image-tag {
  font-size: 12px;
  max-width: 90%;
}
.weather-badge {
  font-size: 13px;
}
.photo-unavailable:after {
  content: "Photo unavailable · view gallery";
  position: absolute;
  left: 15px;
  top: 45%;
  color: var(--tone-556551, #556551);
  font-size: 14px;
}
.load-more-wrap {
  text-align: center;
  margin: 25px;
}
.outlined {
  padding: 11px 17px;
  border: 1px solid var(--tone-cdd4c7, #cdd4c7);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}
.outlined:hover {
  background: var(--tone-f2f4eb, #f2f4eb);
}
.large-map {
  height: 520px;
  border-radius: 12px;
}
.map-popup-button {
  max-width: 220px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.leaflet-container {
  font-family: "DM Sans", sans-serif;
}
#trip-dialog {
  max-width: 1200px;
  width: calc(100% - 40px);
}
.trip-gallery {
  height: 280px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 5px;
  background: var(--tone-dce3d4, #dce3d4);
}
.trip-gallery button {
  padding: 0;
  overflow: hidden;
}
.trip-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.trip-gallery button:hover img {
  transform: scale(1.035);
}
.detail-main {
  padding: 32px;
}
.detail-title-row h2 {
  max-width: none;
  font-size: 32px;
}
.detail-description {
  max-width: 900px;
  margin-top: 14px;
}
.offer-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--tone-fff5d2, #fff5d2);
  border: 1px solid var(--tone-e7d8a5, #e7d8a5);
  border-radius: 9px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
}
.offer-strip strong {
  font-size: 17px;
}
.offer-strip a {
  margin-left: auto;
  font-weight: 600;
}

@media (min-width: 1000px) {
  body.trip-detail-open .results-browser {
    display: grid;
    grid-template-columns: minmax(330px, 0.72fr) minmax(620px, 1.28fr);
    gap: 24px;
    align-items: start;
  }
  body.trip-detail-open .results-list .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body.trip-detail-open .results-list .card-open {
    display: grid;
    grid-template-columns: minmax(130px, 38%) 1fr;
    height: 100%;
  }
  body.trip-detail-open .results-list .card-image {
    height: auto;
    min-height: 150px;
  }
  body.trip-detail-open .results-list .card-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  body.trip-detail-open .results-list .card-metadata {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  body.trip-detail-open .results-list .card-metadata span + span {
    border-left: 0;
    padding-left: 0;
  }
  .card.selected-card {
    border-color: var(--ink);
    box-shadow: 0 0 0 2px var(--yellow);
  }
  #trip-dialog.split-view {
    position: sticky;
    inset: auto;
    top: 16px;
    width: 100%;
    height: calc(100dvh - 32px);
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 18px 55px #172c2720;
    overflow: hidden;
  }
  #trip-dialog.split-view #trip-content {
    height: 100%;
    overflow-y: auto;
    border-radius: inherit;
  }
  #trip-dialog.split-view .close-dialog {
    position: absolute;
    top: 18px;
    right: 18px;
    margin: 0;
  }
  #trip-dialog.split-view .planner-layout {
    grid-template-columns: 1fr;
  }
  #trip-dialog.split-view .route-aside {
    position: static;
  }
}

@media (max-width: 999px) {
  #trip-dialog[open] {
    position: fixed;
    inset: 50% auto auto 50%;
    width: calc(100% - 40px);
    max-height: 94dvh;
    margin: 0;
    transform: translate(-50%, -50%);
    overflow-y: auto;
  }
}
.planner-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 34px;
  margin-top: 28px;
}
.planner-layout h3 {
  font-size: 19px;
  font-family: Manrope, sans-serif;
  letter-spacing: -0.5px;
  margin: 0 0 17px;
}
.planner-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.planner-heading h3 {
  margin: 0;
}
.preset-tag {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 8px;
  color: var(--tone-6e7b62, #6e7b62);
}
.planner-controls {
  display: flex;
  gap: 13px;
  margin: 16px 0;
}
.planner-controls label {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--tone-6d7765, #6d7765);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.planner-controls input,
.planner-controls select,
.wide-control select,
.add-stop select {
  padding: 10px;
  border: 1px solid var(--tone-dbe0d4, #dbe0d4);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  background: var(--surface);
  min-width: 0;
  width: 100%;
}
.wide-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  margin-top: 18px;
}
.choice-group {
  border: 0;
  padding: 0;
  margin: 20px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.choice-group legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.choice-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--tone-d5ddcc, #d5ddcc);
  border-radius: 8px;
  flex: 1;
  min-width: 170px;
  cursor: pointer;
  background: var(--surface);
}
.choice-group label:has(input:checked) {
  border-color: #b99935;
  background: var(--tone-fff7dc, #fff7dc);
}
.choice-group input {
  min-height: 0;
  accent-color: var(--tone-687f50, #687f50);
}
.choice-group strong {
  font-size: 14px;
  display: block;
}
.choice-group small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  color: var(--tone-7b8571, #7b8571);
}
.option-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 26px;
  font-size: 14px;
}
.option-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}
.option-checks input {
  min-height: 0;
  accent-color: var(--tone-647848, #647848);
}
.timeline-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.timeline-heading button {
  font-size: 13px;
}
.timeline-heading h3 {
  margin: 0;
}
.day-summary {
  display: flex;
  gap: 15px;
  align-items: center;
  background: var(--tone-eaf0e2, #eaf0e2);
  padding: 12px 15px;
  border-radius: 8px;
  margin: 14px 0 24px;
}
.day-summary strong {
  font-size: 17px;
  white-space: nowrap;
}
.day-summary span {
  font-size: 12px;
  color: var(--tone-6b7a5d, #6b7a5d);
}
#plan-summary {
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 47px 28px 1fr;
  gap: 8px;
  position: relative;
  min-height: 90px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  width: 1px;
  background: var(--tone-ced7c5, #ced7c5);
  top: 27px;
  bottom: 0;
  left: 69px;
}
.timeline-item:last-child:before {
  display: none;
}
.timeline-time {
  font-size: 13px;
  font-weight: 700;
  padding-top: 5px;
}
.timeline-dot {
  background: var(--tone-f0f3e9, #f0f3e9);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--tone-d1dcc6, #d1dcc6);
  z-index: 1;
  font-size: 15px;
}
.timeline-content {
  padding: 3px 0 25px 5px;
  min-width: 0;
}
.timeline-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.timeline-label strong {
  font-size: 15px;
  line-height: 1.45;
}
.timeline-label > span {
  font-size: 12px;
  color: var(--tone-7f8a75, #7f8a75);
  white-space: nowrap;
  padding-top: 3px;
}
.timeline-content p {
  font-size: 13px;
  line-height: 1.6;
  margin: 7px 0;
}
.timeline-meta {
  font-size: 12px;
  color: var(--tone-7d8972, #7d8972);
}
.timeline-content details {
  font-size: 12px;
  margin: 9px 0;
  color: var(--tone-60734e, #60734e);
}
.timeline-content summary {
  cursor: pointer;
}
.timeline-content a {
  font-size: 13px;
  text-underline-offset: 3px;
}
.departure-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--tone-7c8872, #7c8872);
  margin-top: 9px;
  flex-wrap: wrap;
}
.departure-choice select {
  font-size: 12px;
  padding: 5px;
  border: 1px solid var(--tone-e1e7d8, #e1e7d8);
  background: var(--surface);
  border-radius: 4px;
  max-width: 100%;
}
.timeline-error .timeline-dot {
  border-color: #db9873;
  background: var(--tone-fff1dc, #fff1dc);
}
.route-aside {
  align-self: start;
  position: sticky;
  top: 20px;
}
.trip-map {
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 10px;
  isolation: isolate;
}
.map-key {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--tone-7c8374, #7c8374);
  margin: 11px 0 25px;
}
.solid-line,
.dashed-line {
  display: inline-block;
  width: 19px;
  border-top: 3px solid #da772e;
}
.dashed-line {
  border-top: 2px dashed #6e8d9a;
  margin-left: 8px;
}
.hike-details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px;
  margin-top: 20px;
}
.hike-details .planner-heading {
  align-items: flex-start;
}
.hike-details h3 {
  font-size: 17px;
}
.difficulty {
  padding: 4px 8px;
  background: var(--tone-eaf0e1, #eaf0e1);
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}
.hike-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 20px 0;
}
.hike-stats strong {
  display: block;
  font-size: 16px;
}
.hike-stats span {
  display: block;
  font-size: 12px;
  color: var(--tone-818a75, #818a75);
  margin-top: 5px;
}
.hike-details > p {
  font-size: 13px;
}
.hike-details svg {
  width: 100%;
  margin-top: 20px;
  overflow: visible;
}
.hike-details svg text {
  font-size: 10px;
  fill: #869078;
  font-family: "DM Sans", sans-serif;
}
.hike-details .profile-hint {
  font-size: 12px;
  min-height: 20px;
}
.hike-details .sources-note {
  font-size: 11px;
  margin-top: 16px;
  line-height: 1.6;
}
.hike-details .map-links {
  font-size: 13px;
  margin-top: 17px;
  flex-wrap: wrap;
}
.provider-note {
  margin-top: 25px;
}
.provider-note h3 {
  font-size: 17px;
}
.provider-note p {
  font-size: 14px;
}
.provider-note > a {
  display: block;
  font-size: 14px;
  margin: 14px 0;
  text-underline-offset: 3px;
}
.control-note {
  font-size: 14px;
  margin: 10px 0 20px;
}
.stop-editors {
  margin: 15px 0;
}
.stop-editor {
  background: var(--tone-f0f3e9, #f0f3e9);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 12px;
}
.stop-title {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.stop-title strong {
  font-size: 14px;
  line-height: 1.5;
}
.stop-title > span {
  white-space: nowrap;
}
.stop-title button {
  border: 1px solid var(--tone-d5ddce, #d5ddce);
  border-radius: 5px;
  margin-left: 4px;
  padding: 3px 6px;
  background: var(--surface);
}
.stop-title button:disabled {
  opacity: 0.3;
  cursor: default;
}
.stop-editor small {
  font-size: 12px;
  line-height: 1.5;
  color: var(--tone-7c876e, #7c876e);
}
.add-stop {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 15px;
}
.add-stop > label {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  display: flex;
  gap: 8px;
  flex-direction: column;
}
.add-stop .primary {
  font-size: 14px;
  padding: 12px 14px;
}
.gpx-upload {
  display: block;
  margin: 17px 0;
  font-size: 13px;
}
.gpx-upload input {
  display: block;
  font-size: 12px;
  width: 100%;
  margin-top: 10px;
}
#photo-dialog {
  max-width: 1000px;
  background: #17281f;
  color: white;
  width: calc(100% - 35px);
}
#photo-content > img {
  width: 100%;
  height: 65vh;
  object-fit: contain;
  background: #15231c;
}
.photo-caption {
  padding: 20px 30px;
}
.photo-caption strong {
  font-size: 16px;
}
.photo-caption p {
  color: var(--tone-b6c1ae, #b6c1ae);
  font-size: 13px;
  margin-top: 8px;
}
#previous-photo,
#next-photo {
  position: absolute;
  top: 43%;
  background: var(--tone-fffef5e8, #fffef5e8);
  color: #263930;
  border-radius: 50%;
  font-size: 29px;
  width: 45px;
  height: 45px;
}
#previous-photo {
  left: 15px;
}
#next-photo {
  right: 15px;
}
@media (max-width: 900px) {
  .planner-layout {
    grid-template-columns: 1fr;
  }
  .route-aside {
    position: static;
    grid-row: 1;
  }
  .trip-map {
    height: 280px;
  }
  .hike-details {
    margin-top: 15px;
  }
  .trip-gallery {
    height: 220px;
  }
  .detail-main {
    padding: 24px;
  }
  .catalog-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .catalog-controls > label:last-child {
    justify-content: space-between;
  }
  .card-metadata span + span {
    border: 0;
    padding: 0;
  }
}
@media (max-width: 600px) {
  #trip-dialog {
    width: calc(100% - 12px);
    max-height: 96vh;
  }
  .trip-gallery {
    height: 190px;
    grid-template-columns: 2fr 1fr;
  }
  .trip-gallery button:nth-child(3) {
    display: none;
  }
  .detail-main {
    padding: 20px 16px;
  }
  .detail-title-row h2 {
    font-size: 26px;
  }
  .detail-title-row {
    gap: 12px;
  }
  .detail-description {
    font-size: 14px;
  }
  .planner-layout {
    gap: 25px;
  }
  .route-aside {
    grid-row: auto;
  }
  .timeline-item {
    grid-template-columns: 41px 24px 1fr;
    gap: 6px;
  }
  .timeline-item:before {
    left: 59px;
  }
  .timeline-dot {
    width: 24px;
    height: 24px;
  }
  .timeline-label {
    flex-direction: column;
    gap: 1px;
  }
  .timeline-label > span:before {
    content: "Until ";
  }
  .timeline-content {
    padding-left: 1px;
  }
  .timeline-time {
    font-size: 12px;
  }
  .timeline-label strong {
    font-size: 14px;
  }
  .day-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .stop-editor {
    padding: 12px;
  }
  .stop-title {
    align-items: flex-start;
  }
  .add-stop {
    align-items: stretch;
    flex-direction: column;
  }
  .offer-strip {
    gap: 8px;
    font-size: 12px;
  }
  .offer-strip a {
    margin: 0;
  }
  .choice-group label {
    min-width: 145px;
  }
  .hike-stats strong {
    font-size: 15px;
  }
  .catalog-search input {
    font-size: 13px;
  }
  .filters button {
    font-size: 12px;
  }
  .card-description {
    font-size: 14px;
  }
  .large-map {
    height: 430px;
  }
  .card-region {
    font-size: 12px;
  }
}

.language-control select {
  border: 1px solid var(--tone-dce0d5, #dce0d5);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 10px;
  font: inherit;
  color: #263930;
  max-width: 115px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html[lang="de-CH"] .timeline-label > span::before {
  content: "Bis ";
}
@media (max-width: 600px) {
  .header {
    gap: 10px;
    flex-wrap: wrap;
  }
  .header nav {
    gap: 10px;
  }
  .language-control select {
    font-size: 12px;
    padding: 7px;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf2eb;
  --muted: #b8c5bc;
  --paper: #15221c;
  --line: #3b5045;
  --surface: #203027;
  --solid: #47604e;
  --tone-818477: #b8c5bc;
  --tone-dde1d7: #3b5045;
  --tone-858a80: #b8c5bc;
  --tone-eef0e8: #3b5045;
  --tone-f6f7f1: #293c32;
  --tone-7c8477: #b8c5bc;
  --tone-53674a: #b8c5bc;
  --tone-b4bbb0: #65796b;
  --tone-858b7e: #b8c5bc;
  --tone-747b75: #b8c5bc;
  --tone-dce5df: #293c32;
  --tone-fffced: #293c32;
  --tone-fffef4ed: #293c32;
  --tone-8c9185: #b8c5bc;
  --tone-82877e: #b8c5bc;
  --tone-667261: #b8c5bc;
  --tone-eceee8: #3b5045;
  --tone-7e8777: #b8c5bc;
  --tone-697759: #b8c5bc;
  --tone-f0f3e9: #293c32;
  --tone-e7ebdf: #3b5045;
  --tone-7e876d: #b8c5bc;
  --tone-919589: #b8c5bc;
  --tone-778171: #b8c5bc;
  --tone-f0f2e9: #293c32;
  --tone-dce1d5: #3b5045;
  --tone-f5f7ef: #293c32;
  --tone-496342: #b8c5bc;
  --tone-c1ccae: #3b5045;
  --tone-e9eee0: #293c32;
  --tone-e8ece1: #293c32;
  --tone-42643b: #b8c5bc;
  --tone-858b7f: #b8c5bc;
  --tone-fff6dd: #293c32;
  --tone-f5edc9: #293c32;
  --tone-556551: #b8c5bc;
  --tone-cdd4c7: #3b5045;
  --tone-f2f4eb: #293c32;
  --tone-dce3d4: #293c32;
  --tone-fff5d2: #293c32;
  --tone-e7d8a5: #3b5045;
  --tone-6e7b62: #b8c5bc;
  --tone-6d7765: #b8c5bc;
  --tone-dbe0d4: #3b5045;
  --tone-d5ddcc: #3b5045;
  --tone-fff7dc: #293c32;
  --tone-687f50: #b8c5bc;
  --tone-7b8571: #b8c5bc;
  --tone-647848: #b8c5bc;
  --tone-eaf0e2: #293c32;
  --tone-6b7a5d: #b8c5bc;
  --tone-ced7c5: #293c32;
  --tone-d1dcc6: #3b5045;
  --tone-7f8a75: #b8c5bc;
  --tone-7d8972: #b8c5bc;
  --tone-60734e: #b8c5bc;
  --tone-7c8872: #b8c5bc;
  --tone-e1e7d8: #3b5045;
  --tone-fff1dc: #293c32;
  --tone-7c8374: #b8c5bc;
  --tone-eaf0e1: #293c32;
  --tone-818a75: #b8c5bc;
  --tone-d5ddce: #3b5045;
  --tone-7c876e: #b8c5bc;
  --tone-b6c1ae: #b8c5bc;
  --tone-fffef5e8: #293c32;
  --tone-dce0d5: #3b5045;
}
.language-control select {
  color: var(--ink);
}
.theme-toggle {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 23px;
  line-height: 1;
}
.theme-toggle[aria-pressed="true"] {
  color: var(--yellow);
  border-color: var(--yellow);
}
:root[data-theme="dark"] .switch-track:after {
  background: #fff;
}
:root[data-theme="dark"] .leaflet-popup-content-wrapper,
:root[data-theme="dark"] .leaflet-popup-tip,
:root[data-theme="dark"] .leaflet-bar a {
  background: var(--surface);
  color: var(--ink);
}
:root[data-theme="dark"] .leaflet-control-attribution {
  background: var(--surface);
  color: var(--muted);
}
:root[data-theme="dark"] .leaflet-control-attribution a {
  color: var(--ink);
}
@media (max-width: 600px) {
  .header {
    height: auto;
    min-height: 76px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .header nav {
    flex-wrap: wrap;
    height: auto;
  }
  .header nav button {
    min-height: 40px;
  }
  .header .theme-toggle {
    font-size: 23px;
  }
}
/* Timetable endpoints remain visible; secondary controls stay inside details. */
.journey-times {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}
.journey-times div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.journey-times strong {
  font-size: 30px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.journey-times small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.journey-times span {
  overflow-wrap: anywhere;
}
.kind-travel .timeline-content {
  border: 1px solid var(--tone-d1dcc6, #d1dcc6);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.kind-travel .timeline-label {
  font-size: 12px;
}
.kind-walk {
  min-height: 52px;
  opacity: 0.8;
}
.kind-walk .timeline-content {
  padding-bottom: 12px;
}
.kind-walk .timeline-content p {
  margin: 3px 0;
  font-size: 12px;
}
.sun-forecast {
  border: 1px solid var(--tone-d1dcc6, #d1dcc6);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  min-width: 0;
}
.sun-forecast p,
.sun-forecast > small {
  font-size: 12px;
  opacity: 0.8;
}
.weather-hours {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding: 14px 0;
  scrollbar-width: thin;
}
.weather-hour {
  flex: 0 0 95px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 9px;
  padding: 12px 5px;
  border-radius: 10px;
  background: var(--tone-f0f3e9, #f0f3e9);
}
.weather-hour > span:not(.weather-icon) {
  font-size: 11px;
  min-height: 28px;
}
.weather-hour small {
  font-size: 10px;
}
.weather-icon {
  font-size: 29px;
}
.weather-hour time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.nearby-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}
@media (max-width: 600px) {
  .kind-travel {
    grid-template-columns: 0 24px minmax(0, 1fr);
    gap: 5px;
  }
  .journey-times strong {
    font-size: 25px;
  }
  .kind-travel .timeline-content {
    padding: 12px;
  }
  .sun-forecast {
    padding: 14px;
  }
}

.timeline-label > span:empty {
  display: none;
}
html[lang] .kind-travel .timeline-label > span::before {
  content: none;
}

.weather-badge {
  max-width: calc(100% - 28px);
  line-height: 1.5;
}

.sun-forecast .planner-heading {
  flex-wrap: wrap;
  gap: 8px;
}

/* A calmer trip overview, with details available on demand. */
.quiet-details,
.plan-settings,
.hourly-details {
  margin: 14px 0;
}
.quiet-details > summary,
.plan-settings > summary,
.hourly-details > summary,
.provider-note > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
}
.quiet-details p {
  font-size: 13px;
  line-height: 1.65;
}
.plan-settings {
  border-bottom: 1px solid var(--border, #deded6);
  padding-bottom: 12px;
  margin-top: 0;
}
.plan-settings[open] > summary {
  margin-bottom: 14px;
}
.indoor-label {
  display: inline-block;
  background: #e8e8f6;
  color: #474768;
  border-radius: 20px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
}
.sun-forecast {
  padding: 20px 24px 10px;
}
.sun-bar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.weather-help {
  position: relative;
  flex-shrink: 0;
}
.weather-help > summary {
  display: grid;
  place-items: center;
  list-style: none;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  opacity: 0.75;
}
.weather-help > summary::-webkit-details-marker {
  display: none;
}
.weather-help > p {
  position: absolute;
  z-index: 5;
  right: 0;
  top: 20px;
  width: min(300px, 65vw);
  padding: 16px;
  border-radius: 12px;
  background: var(--surface, #fff);
  color: var(--text, #263930);
  box-shadow: 0 8px 35px #0003;
  line-height: 1.6;
}
.sun-bar-wrap {
  position: relative;
  margin: 58px 12px 0;
}
.sun-bar {
  display: flex;
  height: 22px;
  border-radius: 8px;
  overflow: hidden;
  background: #b7bbc2;
}
.sun-bar > span {
  display: block;
  height: 100%;
}
.stay-marker {
  position: absolute;
  bottom: -5px;
  height: 34px;
  width: 2px;
  background: #c4443d;
}
.stay-marker > span {
  position: absolute;
  bottom: 40px;
  color: #b33933;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}
.stay-marker.arrival > span {
  right: 5px;
  text-align: right;
}
.stay-marker.departure > span {
  left: 5px;
}
.sun-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 10px;
  opacity: 0.65;
}
.hourly-details {
  margin-bottom: 0;
}
.hourly-details > summary {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.75;
}
.weather-pending {
  font-size: 12px;
}
html[data-theme="dark"] .weather-help > p {
  background: #25352f;
  color: #ecede5;
}
html[data-theme="dark"] .stay-marker > span {
  color: #ff9f98;
}
html[data-theme="dark"] .indoor-label {
  background: #39394f;
  color: #dcdcf5;
}
@media (max-width: 600px) {
  .sun-forecast {
    padding: 16px 12px 8px;
  }
  .sun-bar-heading {
    font-size: 12px;
  }
  .sun-bar-wrap {
    margin-left: 16px;
    margin-right: 16px;
  }
  .detail-main {
    padding-top: 22px;
  }
}

/* Compact browsing and trip details without reducing text or control sizes. */
.intro {
  padding: 30px 0 24px;
}
h1 {
  margin: 10px 0 12px;
}
.results-section {
  padding-top: 26px;
}
.catalog-controls {
  margin-top: 16px;
}
.filter-row {
  margin: 16px 0;
}
.cards {
  gap: 16px;
}
.card-image {
  height: 180px;
}
.card-body {
  padding: 14px 16px;
}
.card-region {
  margin-bottom: 5px;
}
.card h3 {
  margin-bottom: 6px;
}
.card-description {
  min-height: 0;
  line-height: 1.5;
}
.card-metadata {
  margin-top: 10px;
}
.trip-gallery {
  height: 200px;
}
.detail-main {
  padding: 20px 24px;
}
.detail-title-row h2 {
  margin: 5px 0 8px;
}
.quiet-details,
.plan-settings,
.hourly-details {
  margin: 6px 0;
}
.plan-settings {
  padding-bottom: 4px;
  margin-top: 0;
}
.sun-forecast {
  margin: 12px 0;
  padding: 12px 16px 6px;
}
.sun-bar-wrap {
  margin-top: 48px;
}
.sun-axis {
  margin-top: 8px;
}
.planner-layout {
  margin-top: 16px;
  gap: 24px;
}
.planner-layout h3 {
  margin-bottom: 10px;
}
#plan-summary {
  margin: 10px 0;
}
.day-summary {
  padding: 10px 12px;
  margin: 8px 0 12px;
}
.timeline-item {
  min-height: 70px;
}
.kind-walk {
  min-height: 44px;
}
.timeline-content {
  padding-bottom: 16px;
}
.kind-travel .timeline-content {
  padding: 12px;
  margin-bottom: 12px;
}
.journey-times {
  margin: 10px 0;
  gap: 8px;
}
.journey-times div {
  gap: 3px;
}
.offer-strip {
  padding: 10px 14px;
  margin: 12px 0;
}
@media (max-width: 600px) {
  .intro {
    padding: 24px 0 20px;
  }
  .results-section {
    padding-top: 22px;
  }
  .card-image {
    height: 170px;
  }
  .trip-gallery {
    height: 145px;
  }
  .detail-main {
    padding: 14px 16px;
  }
  .sun-forecast {
    padding: 10px 12px 4px;
  }
  .planner-layout {
    gap: 18px;
  }
}

/* One reading axis: time, route line, place, platform. */
.day-step {
  list-style: none;
  --time-width: 46px;
  --rail-width: 16px;
  --rail-gap: 10px;
}
.travel-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.rail-stop {
  display: grid;
  grid-template-columns: var(--time-width) var(--rail-width) minmax(0, 1fr) auto;
  gap: var(--rail-gap);
  align-items: baseline;
}
.rail-stop time,
.activity-time {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rail-stop strong {
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.rail-dot {
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  justify-self: center;
  position: relative;
  top: 1px;
  background: var(--surface);
}
.rail-platform {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.rail-service {
  display: grid;
  grid-template-columns: var(--time-width) var(--rail-width) minmax(0, 1fr);
  gap: var(--rail-gap);
  min-height: 42px;
}
.rail-line {
  grid-column: 2;
  justify-self: center;
  width: 2px;
  background: var(--ink);
  margin: -4px 0;
}
.rail-service > span:last-child {
  padding: 10px 0;
  font-size: 12px;
  color: var(--muted);
}
.rail-service b {
  color: var(--ink);
}
.rail-section + .rail-section {
  margin-top: 14px;
}
.journey-alternatives {
  margin: 10px 0 0
    calc(var(--time-width) + var(--rail-width) + 2 * var(--rail-gap));
  font-size: 12px;
  color: var(--muted);
}
.journey-alternatives summary {
  cursor: pointer;
  padding: 4px 0;
}
.journey-alternatives p {
  margin-top: 8px;
  font-size: 12px;
}
.step-walk,
.section-walk {
  display: grid;
  grid-template-columns: var(--time-width) var(--rail-width) minmax(0, 1fr);
  gap: var(--rail-gap);
  padding: 0 14px;
  min-height: 40px;
  align-items: stretch;
}
.section-walk {
  padding: 0;
}
.walk-line {
  grid-column: 2;
  justify-self: center;
  border-left: 2px dotted var(--muted);
}
.walk-caption {
  padding: 11px 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.activity-card {
  display: grid;
  grid-template-columns: var(--time-width) var(--rail-width) minmax(0, 1fr);
  gap: var(--rail-gap);
  padding: 14px;
  border-radius: 12px;
  background: var(--tone-eaf0e2, #eaf0e2);
  border: 1px solid var(--line);
}
.activity-time {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.activity-time > span {
  font-weight: 400;
  color: var(--muted);
}
.activity-symbol {
  text-align: center;
  font-size: 18px;
}
.activity-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.activity-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.activity-body > strong {
  font-size: 15px;
  line-height: 1.4;
}
.activity-body p,
.activity-body a {
  font-size: 12px;
}
.step-error {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.day-step + .day-step:not(.step-walk):not(.step-walk + .day-step) {
  margin-top: 12px;
}
@media (max-width: 600px) {
  .day-step {
    --time-width: 40px;
    --rail-width: 12px;
    --rail-gap: 7px;
  }
  .travel-card,
  .activity-card {
    padding: 12px 10px;
  }
  .step-walk {
    padding: 0 10px;
  }
  .rail-stop {
    grid-template-columns:
      var(--time-width) var(--rail-width) minmax(0, 1fr)
      auto;
  }
  .rail-platform {
    font-size: 11px;
  }
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  pointer-events: none;
}
.card-badges .weather-badge {
  position: static;
  max-width: none;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 1px 5px #0002;
}
.card-badges .has-sun {
  background: #f9ce46;
  color: #352a08;
}
.card-badges .no-sun {
  background: #d8dde1;
  color: #37414a;
}
.card-badges .indoor-label {
  font-size: 12px;
}

.hike-filters { display: flex; flex-wrap: wrap; gap: 18px; border: 1px solid var(--border, #dce0d5); border-radius: 16px; padding: 16px 20px; margin: 16px 0; }
.hike-filters[hidden] { display: none; }
.hike-filters legend { font-weight: 700; padding: 0 8px; }
.hike-filters label { display: grid; gap: 8px; flex: 1 1 180px; font-size: 14px; }
.hike-filters input, .hike-filters select { width: 100%; padding: 10px; border: 1px solid #dce0d5; border-radius: 8px; background: var(--surface, #fff); color: inherit; }
.hike-location-map { width: 100%; height: 100%; min-height: 180px; z-index: 0; }
.trip-gallery > .hike-location-map { grid-column: 1 / -1; }
.hike-location-map .leaflet-control-attribution { font-size: 9px; }
.hike-card-stats { font-weight: 600; flex-wrap: wrap; }
.hike-location-map { position: relative; background: #fff; overflow: hidden; }
.card-image .hike-location-map img, .trip-gallery .hike-location-map img { width: 100%; height: 100%; object-fit: contain; transform: none; }
.hike-location-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hike-map-credit { position: absolute; bottom: 4px; right: 8px; color: #555; font: 8px sans-serif; }

.search-bottom {
  flex-wrap: wrap;
  gap: 16px 24px;
}
.sun-switch:has(input:disabled) {
  opacity: 0.5;
  cursor: default;
}

/* Search and catalog controls from the page review. */
.language-control { position: relative; }
.language-control::after {
  content: ""; position: absolute; right: 14px; top: 50%;
  width: 6px; height: 6px; border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.language-control select { appearance: none; padding-right: 32px; max-width: none; }
.search-fields { grid-template-columns: 1.15fr 1fr .8fr 1fr; }
.search-button { grid-column: 1 / -1; }
.catalog-controls { flex-wrap: wrap; margin-top: 0; gap: 12px; }
.catalog-search { flex: 1 1 240px; min-width: 0; }
@media (max-width: 900px) {
  .catalog-controls .catalog-search { flex: 0 0 auto; }
}
.catalog-controls > label:nth-child(2) { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.catalog-controls .view-toggle { flex: 0 0 auto; margin-left: auto; }
footer { justify-content: space-between; }
@media (max-width: 1000px) { .search-fields { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .catalog-search { flex-basis: calc(100% - 175px); }
  .catalog-controls > label:nth-child(2) { order: 3; width: 100%; }
  .catalog-controls .view-toggle { margin-left: 0; }
}

/* Place suggestions share the input's width and the page's light palette. */
.search-panel { overflow: visible; }
.search-bottom { border-radius: 0 0 17px 17px; }
.origin-control { position: relative; display: block; width: 100%; }
.origin-control input { width: 100%; box-sizing: border-box; }
.origin-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 30;
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
  color: #263930;
  border: 1px solid #dde1d7;
  border-radius: 8px;
  box-shadow: 0 8px 24px #26393018;
  padding: 4px 0;
}
.origin-suggestions[hidden] { display: none; }
.origin-suggestions [role="option"] {
  display: block;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}
.origin-suggestions [role="option"]:hover,
.origin-suggestions [aria-selected="true"] { background: #f2f4ee; }

.duration-trigger {
  display: block;
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.duration-control select[hidden] { display: none; }

.date-control input[hidden] { display: none; }
.date-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.date-trigger::after { content: ""; width: 16px; height: 16px; flex-shrink: 0; border: 1.5px solid currentColor; border-radius: 3px; background: linear-gradient(currentColor, currentColor) 0 4px / 100% 1.5px no-repeat; opacity: .65; }
.date-calendar { max-height: none; padding: 14px; min-width: 260px; max-width: calc(100vw - 48px); overflow: visible; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.calendar-month { font-size: 15px; font-weight: 700; }
.calendar-header button { width: 30px; height: 30px; border: 0; border-radius: 7px; background: #f2f4ee; font-size: 24px; color: #263930; cursor: pointer; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-weekday { text-align: center; font-size: 11px; font-weight: 600; color: #858a80; padding-bottom: 6px; }
.calendar-day { aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #263930; font: inherit; font-size: 13px; cursor: pointer; }
.calendar-day:hover:not(:disabled) { background: #f2f4ee; }
.calendar-day[aria-current="date"] { box-shadow: inset 0 0 0 1px #d7ddd2; }
.calendar-day[aria-pressed="true"], .calendar-day[aria-pressed="true"]:hover { background: #f8ca36; font-weight: 700; }
.calendar-day:disabled, .calendar-header button:disabled { opacity: .25; cursor: default; }
.calendar-day:focus-visible { outline: 2px solid #263930; outline-offset: 1px; }

.time-control > input[hidden] { display: none; }
.time-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.time-trigger::after { content: ""; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; background: linear-gradient(currentColor, currentColor) 7px 3px / 1.5px 5px no-repeat, linear-gradient(currentColor, currentColor) 7px 7px / 4px 1.5px no-repeat; opacity: .65; }
.time-picker { padding: 16px; max-height: none; min-width: 220px; max-width: calc(100vw - 48px); }
.time-picker-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.time-picker-fields label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; color: #858a80; }
.time-picker-fields input { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #dde1d7; border-radius: 8px; background: #f8f9f5; color: #263930; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.time-picker-apply { width: 100%; padding: 10px 14px; border: 0; border-radius: 8px; background: #f8ca36; color: #263930; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.time-picker-apply:hover { background: #edbe24; }

.search-sun { display: inline-flex; vertical-align: middle; }

/* Optional trip prices in the existing search and trip planner. */
.pricing-controls { display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.travelcard-control { display:flex; align-items:center; gap:7px; font-weight:500; }
.travelcard-select { display:inline-flex; position:relative; }
.travelcard-select::after { content:""; position:absolute; right:12px; top:50%; width:6px; height:6px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:translateY(-70%) rotate(45deg); pointer-events:none; }
.pricing-controls select { appearance:none; border:1px solid var(--border,#d6d0c0); border-radius:8px; padding:6px 32px 6px 10px; background:transparent; color:inherit; font:inherit; }
.search-bottom:has(.pricing-controls) { flex-wrap:wrap; gap:14px; }
.pricing-notice { font-size:13px; line-height:1.5; opacity:.8; margin:0 0 18px; }
.trip-card-prices { display:grid; gap:7px; border-top:1px solid var(--border,#e3dece); margin-top:15px; padding-top:12px; }
.trip-card-prices > span { display:flex; justify-content:space-between; align-items:baseline; gap:10px; font-size:12px; }
.trip-card-prices strong { text-align:right; font-weight:700; }
.trip-prices { background:var(--surface,#fff); border:1px solid var(--border,#ddd7c5); border-radius:14px; margin:18px 0; padding:18px; }
.trip-price-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.trip-price-item { display:grid; gap:8px; align-content:start; }
.trip-price-item > span { font-size:12px; opacity:.75; }
.trip-price-item > strong { font-size:19px; }
.trip-price-item small { line-height:1.6; opacity:.8; }
.trip-price-item a { font-size:12px; color:inherit; }
.trip-price-item button { justify-self:start; }
.trip-fare-legs { list-style:none; margin:6px 0; padding:0; display:grid; gap:10px; }
.trip-fare-legs li { display:grid; grid-template-columns:1fr auto; gap:3px 10px; border-top:1px solid var(--border,#ddd7c5); padding-top:9px; font-size:12px; }
.trip-fare-legs small { grid-column:1/-1; }
@media(max-width:650px) { .pricing-controls { width:100%; } }

/* Give trip browsing more room while keeping the search comfortably sized. */
@media (min-width: 1200px) {
  main {
    max-width: 1800px;
  }
  .intro,
  .search-panel {
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
  }
  .results-list .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1700px) {
  .results-list .cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 1320px) {
  body.trip-detail-open .results-browser {
    grid-template-columns: minmax(0, 1fr) minmax(560px, 1fr);
  }
  body.trip-detail-open .results-list .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  body.trip-detail-open .results-list .card-open {
    display: block;
  }
  body.trip-detail-open .results-list .card-image {
    height: 180px;
    min-height: 0;
  }
}

.indoor-offer { padding: 18px; margin: 12px 0; border-radius: 16px; background: #e8e8f6; color: #474768; }
.indoor-offer p { margin: 0 0 12px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 20px; margin: 12px 0; font-size: 13px; }
.map-legend[hidden], .indoor-offer[hidden] { display: none; }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #263930; background: #f7cb3a; }
.map-legend .indoor-dot { background: #e8e8f6; border-color: #474768; }
html[data-theme="dark"] .indoor-offer { background: #39394f; color: #dcdcf5; }

/* Keep the surrounding countries quiet; railways stay above the Swiss base tiles. */
.map-muted-base { filter: grayscale(1) opacity(.55); }
.map-railways { filter: grayscale(1) brightness(.5) sepia(.3) hue-rotate(130deg); }

.map-swiss-base { filter: saturate(.65) brightness(1.04); }

.map-legend .railway-line { width: 22px; height: 0; border: 0; border-top: 3px solid #8e9b9c; border-radius: 0; background: none; }

.leaflet-container.swiss-overview-map { background: #f5f4ef; }
.map-city-label { font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 600; color: #748075; text-align: center; white-space: nowrap; text-shadow: 0 1px 3px #f5f4ef, 0 -1px 3px #f5f4ef; }

#destinations-map {
  height: auto;
  aspect-ratio: 1.65;
  min-height: 360px;
  max-height: 680px;
}

.sort-controls { display: flex; align-items: center; gap: 8px; }
/* The arrow rotates independently of the centered update indicator. */
.refresh-ranking {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.refresh-ranking:hover { color: var(--ink); }
.refresh-ranking:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.refresh-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.refresh-ranking::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d99a18;
  opacity: 0;
}
.refresh-ranking.ranking-pending::after,
.refresh-ranking.ranking-refresh-dot::after { opacity: 1; }
.ranking-refreshing .refresh-arrow { animation: ranking-refresh-turn 550ms cubic-bezier(.4, 0, .2, 1); }
@keyframes ranking-refresh-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ranking-refreshing .refresh-arrow { animation-duration: 1ms; }
}

.collection-tabs { justify-content: flex-start; width: fit-content; margin-bottom: 20px; }
.favorites-note { color: var(--muted); margin: 0 0 24px; font-size: .9rem; }
.card { position: relative; }
.favorite-button {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #263930;
  cursor: pointer;
}
.favorite-button svg {
  width: 19px;
  height: 19px;
  fill: rgb(255 255 255 / 45%);
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px #0002);
}
.card > .favorite-button { position: absolute; top: 7px; right: 7px; z-index: 2; }
.card > .favorite-button[aria-pressed="false"] { opacity: 0; pointer-events: none; }
.card:hover > .favorite-button,
.card:focus-within > .favorite-button { opacity: 1; pointer-events: auto; }
.favorite-button[aria-pressed="true"] svg { fill: var(--yellow); }
.favorite-button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 1px; border-radius: 8px; }
.detail-title-row .favorite-button { margin-top: 10px; }
.collection-tabs button { display: inline-flex; align-items: center; gap: 7px; }
.collection-tabs svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.favorite-button { position: relative; }
.favorite-button svg { transform-origin: center; }
.favorite-splash { position: absolute; top: 50%; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--yellow); pointer-events: none; opacity: 0; }

/* A quiet first visit; the first search opens the browsing layout. */
body.search-landing main {
  min-height: calc(100svh - 188px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 32px;
  padding-bottom: 32px;
}
body:not(.search-landing) .intro,
.results-section[hidden] {
  display: none;
}
.search-landing .search-panel {
  width: 100%;
  margin: 0 auto;
}
.search-landing footer {
  visibility: hidden;
}

.search-landing .intro {
  padding: 0 0 32px;
  text-align: center;
}
body:not(.search-landing) main {
  padding-top: 30px;
}

/* A single sun sets completely before moving to the next mountain. */
.trip-loading {
  margin: 12px auto 24px;
  text-align: center;
}
.trip-loading-landscape {
  display: block;
  width: min(260px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}
.trip-loading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.trip-loading-sun {
  transform: translate(70px, 145px);
  animation: trip-sunrise 9s ease-in-out infinite;
}
@keyframes trip-sunrise {
  0%, 30% { transform: translate(70px, 145px); }
  14%, 18% { transform: translate(70px, 43px); }
  33%, 63% { transform: translate(230px, 145px); }
  47%, 51% { transform: translate(230px, 35px); }
  66%, 96% { transform: translate(156px, 145px); }
  80%, 84% { transform: translate(156px, 50px); }
  100% { transform: translate(70px, 145px); }
}
@media (prefers-reduced-motion: reduce) {
  .trip-loading-sun {
    animation: none;
    transform: translate(230px, 35px);
  }
}

/* Keep secondary choices quiet until they are needed. */
.search-options { border-top: 1px solid var(--line); }
.search-options > summary { cursor: pointer; list-style: none; position: relative; padding: 18px 48px 18px 24px; font-size: 14px; font-weight: 600; }
.search-options > summary::-webkit-details-marker { display: none; }
.search-options > summary::after { content: ''; position: absolute; right: 26px; top: 22px; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.search-options[open] > summary::after { transform: rotate(225deg); top: 26px; }
.filter-summary { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.search-options .search-bottom { justify-content: flex-start; border-radius: 0; gap: 24px; }
.search-options .pricing-controls { width: 100%; }
.activity-choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.activity-choice legend { margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.activity-segments { display: flex; position: relative; isolation: isolate; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.activity-segments::before { content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 7px; background: var(--ink); transform: translateX(0); transition: transform 260ms cubic-bezier(.22, 1, .36, 1); }
.activity-segments:has(input[value="outdoor"]:checked)::before { transform: translateX(100%); }
.activity-segments:has(input[value="indoor"]:checked)::before { transform: translateX(200%); }
@media (prefers-reduced-motion: reduce) { .activity-segments::before { transition: none; } }
.activity-segments label { flex: 1; min-width: 0; position: relative; cursor: pointer; }
.activity-segments input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.activity-segments span { display: block; text-align: center; padding: 10px 18px; border-radius: 7px; font-size: 13px; }
.activity-segments input:checked + span { color: var(--paper); }
.activity-segments input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.sunshine-setting p { font-size: 12px; margin-top: 8px; }
.search-action { padding: 0 24px 24px; }
.search-action .search-button { width: 100%; font-size: 15px; }
.sun-switch input:focus-visible + .switch-track { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 700px) {
  body.search-landing main { justify-content: flex-start; padding-top: 28px; min-height: calc(100svh - 76px); }
  .search-landing .intro { padding-bottom: 24px; }
  .intro h1 { font-size: clamp(28px, 7.7vw, 36px); letter-spacing: -1.3px; line-height: 1.2; margin: 8px 0 12px; }
  .search-panel .search-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 22px 20px 10px; gap: 20px 16px; }
  .search-fields .field { border: 0; padding: 0 0 14px; border-bottom: 1px solid var(--line); gap: 9px; }
  .search-fields .field:first-child, .search-fields .field:nth-child(4) { grid-column: 1 / -1; }
  .search-fields .field-label { font-size: 10px; }
  .search-fields input, .search-fields select { font-size: 16px; }
  .search-options { border-top: 0; }
  .search-options > summary { padding: 12px 44px 18px 20px; }
  .search-options > summary::after { top: 16px; right: 23px; }
  .search-options[open] > summary::after { top: 20px; }
  .search-options .search-bottom { padding: 20px; display: grid; gap: 22px; }
  .search-options .pricing-controls { display: grid; gap: 16px; }
  .search-options .sun-switch, .travelcard-control { font-size: 14px; justify-content: space-between; min-height: 32px; }
  .sunshine-setting .sun-switch > span:first-child { display: none; }
  .search-action { padding: 0 20px 20px; }
  .search-action .search-button { min-height: 52px; }
}

.duration-slider { display: flex; flex-direction: column; gap: 4px; }
.duration-slider output { font-size: 15px; font-weight: 600; }
.duration-slider input[type="range"] { width: 100%; margin: 0; accent-color: var(--ink); cursor: pointer; }
.duration-slider input[type="range"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* Compact search panel, with comfortable input and touch target sizes. */
.search-panel {
  max-width: 900px;
  margin-inline: auto;
}
.search-fields {
  padding: 18px;
  gap: 14px;
}
.search-fields .field {
  gap: 7px;
  padding-right: 12px;
}
.search-button {
  padding: 14px 18px;
  min-height: 44px;
}
.search-bottom {
  padding: 12px 18px;
}
@media (max-width: 600px) {
  .search-fields {
    padding: 15px 14px;
    gap: 15px 10px;
  }
  .search-fields .field {
    padding-right: 8px;
  }
  .search-bottom {
    padding: 10px 14px;
  }
}

.search-options > summary { padding: 12px 40px 12px 18px; }
.search-options > summary::after { right: 20px; top: 16px; }
.search-options[open] > summary::after { top: 20px; }
.search-action { padding: 0 18px 18px; }
@media (max-width: 700px) {
  .search-panel .search-fields { padding: 16px 14px 8px; gap: 15px 12px; }
  .search-fields .field { padding-bottom: 10px; }
  .search-options > summary { padding: 10px 40px 14px 14px; }
  .search-action { padding: 0 14px 14px; }
  .search-action .search-button { min-height: 44px; }
}

/* Give activities and prices a shared, aligned layout. */
.search-options .search-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 20px 28px;
  padding: 8px 18px 22px;
  background: transparent;
  border-top: 0;
}
.search-options .travelcard-control { flex-direction: column; align-items: stretch; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 400; }
.search-options .travelcard-select { display: flex; }
.search-options .travelcard-select select { width: 100%; appearance: none; border: 1px solid var(--line); border-radius: 10px; padding: 13px 32px 13px 14px; background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; }
.search-options .pricing-controls { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.search-options .sun-switch { justify-content: flex-start; gap: 12px; font-size: 12px; }
.search-options .sun-switch .switch-track { margin-left: 0; }
.search-options .sun-switch > span:first-child:not(.switch-track) { display: none; }
.search-options > summary { display: flex; align-items: center; gap: 12px; }
.search-options > summary::after { position: static; flex-shrink: 0; margin: -4px 0 0; transition: transform 260ms ease; }
.search-options[open] > summary::after { margin-top: 4px; }
@media (max-width: 700px) {
  .search-options .search-bottom { grid-template-columns: minmax(0, 1fr); padding: 4px 14px 20px; gap: 18px; }
  .search-options .pricing-controls { grid-template-columns: max-content 41px; justify-content: start; gap: 16px 12px; }
  .search-options .sun-switch { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; font-size: 14px; }
  .search-options .sun-switch .switch-track { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .search-options > summary::after { transition: none; }
}

.search-options .exclude-hikes-note { grid-column: 1 / -1; margin: -8px 0 0; color: var(--muted); font-size: 12px; }


/* Newly revealed trips rise into place without moving the existing cards. */
.card-entering {
  animation: trip-card-enter 480ms cubic-bezier(.16, 1, .3, 1) var(--entrance-delay, 0ms) both;
}
@keyframes trip-card-enter {
  from { opacity: 0; transform: translateY(56px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .card-entering { animation: none; }
}
