/* The destination control keeps its existing compact height when closed. */
.destination-picker-anchor {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 62%;
}
.destination-picker-anchor > .toolbar-destination {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
  min-height: 25px;
  height: 25px;
  padding: 0 3px 0 0;
  color: #172b4d;
}
.destination-picker-anchor > .toolbar-destination > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.destination-picker-anchor > .toolbar-destination > svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #526176;
  transition: transform .15s ease;
}
.destination-picker-anchor > .toolbar-destination[aria-expanded="true"] > svg { transform: rotate(180deg); }
.destination-picker-anchor > .toolbar-destination[aria-expanded="true"] { color: #2156b8; }

button.destination-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 64;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: default;
}
.destination-picker {
  position: fixed;
  z-index: 65;
  left: var(--destination-left, 20px);
  top: var(--destination-top, 110px);
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 40px));
  max-height: min(620px, var(--destination-max-height, calc(100dvh - 150px)));
  overflow: hidden;
  padding: 0;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  background: #fff;
  color: #172b4d;
  box-shadow: 0 12px 36px #172b4d26;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: normal;
  line-height: 1.4;
}
.destination-picker[hidden], button.destination-picker-backdrop[hidden] { display: none; }
.destination-picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 12px 14px 8px;
}
.destination-picker-heading > h2 {
  margin: 0;
  color: #172b4d;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -.3px;
}
.destination-picker-heading > button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 5px;
  border: 0;
  border-radius: 50%;
  background: #f0f5ff;
  color: #526176;
  font-size: 22px;
  line-height: 1;
}
.destination-picker-heading > button > svg { width: 18px; height: 18px; }
.destination-picker-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #bdcce2 transparent;
  padding: 0 8px 8px;
}
.destination-picker-list > .destination-group { padding: 3px 0; margin: 0; }
.destination-picker-list > .destination-group + .destination-group { border-top: 1px solid #eef1f6; padding-top: 6px; margin-top: 3px; }
.destination-picker .destination-country,
.destination-picker .destination-city {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  border: 0;
  text-align: left;
  background: transparent;
  color: #172b4d;
  font-family: inherit;
  white-space: normal;
  box-shadow: none;
}
.destination-picker .destination-country {
  gap: 9px;
  min-height: 42px;
  padding: 8px 9px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
}
.destination-picker .destination-flag { display: inline-flex; justify-content: center; align-items: center; width: 26px; flex: 0 0 26px; font-size: 23px; line-height: 1; }
.destination-picker .destination-country-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.destination-picker .destination-country > svg { width: 18px; height: 18px; flex-shrink: 0; color: #2156b8; }
.destination-picker .destination-country:hover { background: #f4f7fc; }
.destination-picker .destination-country:is([aria-selected="true"], [aria-current="true"], [aria-current="page"], [aria-pressed="true"], .is-selected) { background: #e9f0ff; color: #2156b8; }
.destination-picker .destination-cities { margin: 1px 6px 3px 21px; padding-left: 15px; border-left: 1px solid #e7edf7; }
.destination-picker .destination-city { gap: 8px; min-height: 36px; padding: 7px 10px; border-radius: 9px; font-size: 13px; line-height: 19px; font-weight: 400; color: #526176; }
.destination-picker .destination-city > svg { width: 15px; height: 15px; flex-shrink: 0; color: #7d90ad; }
.destination-picker .destination-city > span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.destination-picker .destination-city > svg:last-child:not(:first-child) { color: #2156b8; }
.destination-picker .destination-city:hover { background: #f4f7fc; color: #172b4d; }
.destination-picker .destination-city:is([aria-selected="true"], [aria-current="true"], [aria-current="page"], [aria-pressed="true"], .is-selected) { background: #eef4ff; color: #2156b8; font-weight: 600; }
.destination-picker .destination-city:is([aria-selected="true"], [aria-current="true"], [aria-current="page"], [aria-pressed="true"], .is-selected) > svg { color: #2156b8; }
.destination-picker-footer { padding: 9px 12px 12px; border-top: 1px solid #eef1f6; background: #fff; flex-shrink: 0; }
.destination-picker-footer > button { width: 100%; min-height: 38px; padding: 8px 14px; border-radius: 10px; background: #2156b8; color: #fff; font-size: 13px; line-height: 20px; font-weight: 650; }
.destination-picker-footer > button:hover { background: #17458f; }
.destination-picker button:focus-visible,
.destination-picker-anchor > .toolbar-destination:focus-visible { outline: 3px solid #86a7df; outline-offset: 2px; }
.destination-picker button:disabled { opacity: .5; cursor: default; }

@media (max-width: 360px) {
  .destination-picker-heading { padding: 10px 12px 7px; }
  .destination-picker-heading > h2 { font-size: 16px; }
  .destination-picker .destination-country { font-size: 13px; }
  .destination-picker .destination-city { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .destination-picker-anchor > .toolbar-destination > svg { transition: none; }
}

.destination-empty{margin:4px 10px 8px;font-size:12px;line-height:18px;color:#526176}

/* Home reuses the country-and-city picker without enlarging its route cell. */
.home-hero .compact-route button.home-destination-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #172b4d;
  box-shadow: none;
  font-family: inherit;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.home-hero .home-destination-toggle > .home-route-icon { grid-column: 1; min-width: 0; margin: 0; }
.home-hero .home-destination-copy { grid-column: 2; display: block; min-width: 0; max-width: 100%; margin: 0; text-align: left; }
.home-hero .home-destination-copy > small { display: block; margin: 0 0 2px; color: #526176; font-size: 11px; font-weight: 400; line-height: 14px; }
.home-hero .home-destination-copy > strong { display: block; min-width: 0; max-width: 100%; overflow: hidden; color: #172b4d; font-size: 15px; font-weight: 650; line-height: 22px; text-overflow: ellipsis; white-space: nowrap; }
.home-hero .home-destination-flag { grid-column: 3; display: inline-flex; align-items: center; justify-content: center; width: 22px; min-width: 22px; height: 22px; margin: 0; font-size: 20px; font-weight: 400; line-height: 1; }
.home-hero .home-destination-toggle > svg:last-child { grid-column: 4; width: 14px; height: 14px; margin: 0; color: #7d90ac; transition: transform .15s ease; }
.home-hero .home-destination-toggle[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); color: #2156b8; }
.home-hero .home-destination-toggle[aria-expanded="true"] .home-destination-copy > strong { color: #2156b8; }
.home-hero .home-destination-toggle:focus-visible { outline: 3px solid #86a7df; outline-offset: 3px; }
.home-hero .home-destination-toggle:disabled { opacity: .5; cursor: default; }
@media (max-width: 360px) {
  .home-hero .compact-route button.home-destination-toggle { gap: 4px; }
  .home-hero .home-destination-copy > strong { font-size: 13px; }
  .home-hero .home-destination-flag { width: 19px; min-width: 19px; height: 20px; font-size: 18px; }
  .home-hero .home-destination-toggle > svg:last-child { width: 12px; height: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero .home-destination-toggle > svg:last-child { transition: none; }
}

/* Multiple cities stay in one country; each toggle keeps a stable checkbox at its row end. */
.destination-picker .destination-city > .destination-city-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 1.5px solid #bdcce0;
  border-radius: 5px;
  background: #fff;
  color: #fff;
  line-height: 1;
}
.destination-picker .destination-city > .destination-city-check > svg { display: block; width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; }
.destination-picker .destination-city[aria-pressed="true"] > .destination-city-check { border-color: #2156b8; background: #2156b8; color: #fff; }
.destination-picker .destination-country[aria-pressed="true"] > svg:last-child { width: 18px; height: 18px; color: #2156b8; }
.destination-picker .destination-picker-selection { display: block; min-width: 0; margin: 0 1px 6px; overflow: hidden; color: #64758b; font-size: 11px; font-weight: 400; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.destination-picker .destination-picker-selection:empty { display: none; margin: 0; }
.destination-picker .destination-picker-selection strong { color: #425672; font-weight: 650; }
