.origin-profile-choice { margin-top: 6px; padding: 19px; border: 1px solid #dbe6df; border-radius: 16px; background: #f8fbf8; }
.origin-profile-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 13px; margin-bottom: 13px; color: #173e39; }
.origin-profile-heading strong { font-size: 18px; line-height: 1.3; }
.origin-profile-heading span { color: #526a63; font-size: 13px; }
.origin-profile-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.origin-profile-options button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; min-height: 94px; min-width: 0; padding: 12px 14px; border: 1.5px solid #d3dfd7; border-radius: 13px; background: #fff; color: #183d37; font-size: 15px; font-weight: 780; line-height: 1.25; text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.origin-profile-options button:hover { border-color: #829f90; transform: translateY(-2px); }
.origin-profile-options button[aria-pressed=true] { border-color: #1b6658; background: #e9f4eb; box-shadow: inset 0 0 0 1px #1b6658; }
.origin-profile-options svg { width: 31px; height: 31px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.origin-profile-options button:nth-child(2) svg { color: #6262a0; }
.origin-profile-options button:nth-child(3) svg { color: #167e95; }
.origin-profile-options button:nth-child(4) svg { color: #467a54; }
.origin-profile-options button:nth-child(5) svg { color: #be6c48; }
.origin-profile-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 11px 14px; margin: 0 0 16px; border: 1px solid #dce5dd; border-radius: 11px; background: #f7faf7; color: #23473d; font-size: 14px; font-weight: 730; }
.origin-profile-summary button { border: 0; background: none; padding: 5px; color: #145e52; text-decoration: underline; font-size: 13px; font-weight: 750; }
.destination-index { margin: 0 0 18px; padding: 20px; border: 1px solid #ceddd6; border-radius: 17px; background: #f8fbf9; box-shadow: 0 5px 22px #1c473d0c; }
.destination-index-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.destination-index-eyebrow { display: block; margin-bottom: 5px; color: #16685b; font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.destination-index h3 { margin: 0; color: #183c36; font-size: clamp(20px, 2.6vw, 25px); line-height: 1.2; letter-spacing: -.35px; }
.destination-index-head p { margin: 5px 0 0; color: #536b63; font-size: 13px; font-weight: 600; }
.destination-index-search { display: grid; gap: 5px; min-width: min(265px, 100%); color: #344e45; font-size: 12px; font-weight: 750; }
.destination-index-search input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #bfcfc6; border-radius: 10px; background: #fff; color: #183c36; font: inherit; font-size: 14px; }
.destination-index-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.destination-index-item { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 47px; padding: 9px 11px; border: 1px solid #d2dfd8; border-radius: 10px; background: #fff; color: #203f37; text-align: left; font: inherit; cursor: pointer; transition: border-color .16s, background .16s, transform .16s; }
.destination-index-item:hover { border-color: #367b69; background: #edf8f1; transform: translateY(-1px); }
.destination-index-item strong { overflow: hidden; min-width: 0; font-size: 14px; font-weight: 780; white-space: nowrap; text-overflow: ellipsis; }
.destination-index-code { flex: none; margin-left: auto; padding: 3px 5px; border-radius: 5px; background: #e7f0ec; color: #205e50; font-size: 11px; font-weight: 850; letter-spacing: .02em; }
.destination-index-arrow { color: #28816b; font-size: 16px; font-weight: 850; }
.destination-index-empty { grid-column: 1 / -1; margin: 0; padding: 12px; color: #5a6d65; font-size: 14px; }
.destination-index-search input:focus-visible, .destination-index-item:focus-visible, .back-to-top:focus-visible { outline: 3px solid #ff714b; outline-offset: 2px; }
.results.origin-results .route-card { scroll-margin-top: 20px; }
.destination-index[data-side=departure] ~ .results-grid .route-card { scroll-margin-top: 20px; }
.destination-index[data-side=departure] ~ .results-grid .city-photo { height: clamp(170px, 20vw, 225px); }
.back-to-top { position: fixed; z-index: 300; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 84px; min-height: 46px; padding: 9px 14px; border: 1px solid #174a3d; border-radius: 999px; background: #164f42; color: #fff; box-shadow: 0 8px 25px #09251e45; font: 850 13px/1 Inter, Arial, sans-serif; letter-spacing: .06em; cursor: pointer; }
.back-to-top:hover { background: #0d3d32; transform: translateY(-2px); }
.back-to-top span { font-size: 19px; line-height: 1; }
.back-to-top[hidden] { display: none; }
.results.origin-results .results-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.results.origin-results .route-card { padding: 23px; }
.results.origin-results .route-cities { font-size: clamp(21px, 2.5vw, 27px); }
.city-photo { position: relative; margin: 17px 0 13px; height: clamp(190px, 29vw, 270px); overflow: hidden; border-radius: 13px; background: #fff; }
.city-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.city-photo figcaption { position: absolute; bottom: 8px; right: 8px; max-width: min(80%, 420px); overflow: hidden; border-radius: 6px; padding: 4px 7px; background: #10233fcc; color: #fff; font-size: 10px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
.city-photo figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.origin-profile-options button:focus-visible, .origin-profile-summary button:focus-visible, .city-photo a:focus-visible { outline: 3px solid #ff714b; outline-offset: 3px; }
@media(max-width:720px) {
  .origin-profile-choice { padding: 14px; }
  .origin-profile-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .origin-profile-options button { min-height: 70px; flex-direction: row; align-items: center; padding: 11px; gap: 8px; font-size: 14px; }
  .origin-profile-options svg { width: 26px; height: 26px; }
  .origin-profile-options button:first-child { grid-column: 1 / -1; }
  .results.origin-results .route-card { padding: 16px; }
  .destination-index[data-side=departure] ~ .results-grid .city-photo { height: 190px; }
  .destination-index { padding: 15px; }
  .destination-index-head { align-items: stretch; flex-direction: column; }
  .destination-index-search { min-width: 0; }
  .destination-index-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .destination-index-item { min-height: 44px; padding: 8px; }
  .destination-index-item strong { font-size: 13px; }
  .destination-index-code { font-size: 10px; }
  .back-to-top { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .city-photo { height: 200px; }
}
@media(max-width:390px) { .destination-index-list { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion:reduce) { .origin-profile-options button, .destination-index-item { transition: none; } }
