/* A light editorial photo and an interactive, illustrative travel network. */
.destination-hero {
  --destination-surface: #fbfdfd;
  --destination-ink: #07366a;
  --destination-muted: #385369;
  --destination-accent: var(--medtravel-action);
  --destination-chip: #fff;
  --destination-line: #cfdee3;
  --destination-beam: #08aeb7;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(ellipse at 6% 70%, rgb(225 246 246 / .78), transparent 48%),
    radial-gradient(ellipse at 71% 0%, rgb(232 245 249 / .72), transparent 58%),
    var(--destination-surface);
  border-bottom: 1px solid var(--destination-line);
}
:root[data-theme="dark"] .destination-hero {
  --destination-surface: #0d202c;
  --destination-ink: #eff7fb;
  --destination-muted: #c0d6df;
  --destination-accent: #7ce0de;
  --destination-chip: #122c38;
  --destination-line: #36535f;
  --destination-beam: #64e1da;
  background: radial-gradient(ellipse at 4% 70%, #12333f, transparent 62%), var(--destination-surface);
}
:root[data-theme="comfort"] .destination-hero {
  --destination-surface: #fbf4e6;
  --destination-ink: #254a45;
  --destination-muted: #405752;
  --destination-accent: #356f67;
  --destination-chip: #fffdf7;
  --destination-line: #d8d1b7;
  background: radial-gradient(ellipse at 4% 70%, #eef0e1, transparent 62%), var(--destination-surface);
}
.destination-hero-layout {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, .93fr);
  width: min(1280px, calc(100% - 64px));
  min-height: 450px;
}
.destination-hero-copy {
  padding-block: clamp(22px, 2.1vw, 32px) clamp(20px, 1.75vw, 28px);
  padding-inline-start: clamp(0px, 2vw, 27px);
  padding-inline-end: clamp(8px, 1.6vw, 22px);
  min-width: 0;
}
.destination-hero-visual {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 37%;
  background: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 1%, rgb(0 0 0 / .07) 18%, rgb(0 0 0 / .55) 36%, #000 61%);
  mask-image: linear-gradient(90deg, transparent 1%, rgb(0 0 0 / .07) 18%, rgb(0 0 0 / .55) 36%, #000 61%);
}
.destination-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% 24%;
}
.destination-hero-visual .destination-hero-alternate {
  position: absolute;
  inset: 0;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .destination-hero-visual .destination-hero-alternate { animation: destination-hero-switch 20s steps(1, end) infinite; }
}
/* Each photo remains fully visible for 10 seconds; the images never overlap. */
@keyframes destination-hero-switch {
  0%, 49.999% { opacity: 0; }
  50%, 100% { opacity: 1; }
}
.destination-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(255 255 255 / .08), transparent 22%, transparent 80%, rgb(232 246 246 / .15));
  pointer-events: none;
}
.destination-hero-kicker {
  margin: 0 0 8px;
  color: var(--destination-accent);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.4;
}
.destination-hero h1 {
  max-width: 100%;
  margin: 0;
  color: var(--destination-ink);
  font-size: clamp(2.05rem, 3.42vw, 3.32rem);
  font-weight: 820;
  line-height: 1.05;
  letter-spacing: -.048em;
  text-wrap: balance;
}
.destination-hero h1 span {
  display: block;
}
.destination-hero h1 span + span {
  color: var(--destination-accent);
}
.destination-hero-lead {
  max-width: 58ch;
  margin: 10px 0 0;
  color: var(--destination-muted);
  font-size: clamp(.9375rem, 1.18vw, 1.0625rem);
  line-height: 1.5;
}

.destination-map {
  position: relative;
  isolation: isolate;
  width: min(100%, 550px);
  aspect-ratio: 600 / 230;
  margin-block: 9px 2px;
}
.destination-map :is(.destination-map-land, .destination-map-atlas) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.destination-map-land {
  opacity: .68;
}
:root[data-theme="dark"] .destination-map-land { opacity: .78; }
.destination-map-atlas { overflow: visible; }
.destination-route-base,
.destination-route-glow,
.destination-route-beam,
.destination-route-leader {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.destination-route-base { stroke: var(--destination-accent); stroke-width: 1.45; opacity: .4; }
.destination-route-leader { stroke: var(--destination-accent); stroke-width: 1; opacity: .35; }
.destination-route-glow, .destination-route-beam, .destination-route-plane, .destination-route-ring { display: none; }
.destination-route-node {
  fill: var(--destination-beam);
  stroke: var(--destination-chip);
  stroke-width: 1.3;
}
.destination-map-hub-halo { fill: var(--destination-beam); opacity: .21; }
.destination-map-hub { fill: var(--destination-accent); stroke: var(--destination-chip); stroke-width: 1.5; }
.destination-map-pin,
.destination-map-origin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  transform: translate(-50%, -50%);
  color: var(--destination-ink);
  font-size: clamp(.7rem, .92vw, .8125rem);
  font-weight: 740;
  line-height: 1;
  white-space: nowrap;
}
.destination-map-pin {
  display: grid;
  place-items: center;
  min-block-size: 26px;
  padding-inline: 8px;
  border: 1px solid var(--destination-line);
  border-radius: 5px;
  background: var(--destination-chip);
  box-shadow: 0 2px 6px rgb(4 45 80 / .075);
}
.destination-map-pin:is(:hover, :focus-visible) {
  z-index: 2;
  border-color: var(--destination-accent);
  color: var(--destination-accent);
}
.destination-map-origin {
  color: var(--destination-accent);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .065em;
  text-transform: uppercase;
}
@media (prefers-reduced-motion: no-preference) {
  .destination-route-glow,
  .destination-route-beam {
    display: initial;
    stroke: var(--destination-beam);
    stroke-dasharray: 15 100;
    stroke-dashoffset: 15;
    animation: destination-travel var(--route-pace) linear var(--route-delay) infinite;
  }
  .destination-route-glow { stroke-width: 6.5; filter: blur(2px); opacity: .55; }
  .destination-route-beam { stroke-width: 2.6; }
  .destination-route-ring {
    display: initial;
    fill: none;
    stroke: var(--destination-beam);
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
    animation: destination-arrival var(--route-pace) ease-out var(--route-delay) infinite;
  }
  .destination-route-plane {
    display: initial;
    fill: var(--destination-accent);
    stroke: var(--destination-chip);
    stroke-width: .85;
    stroke-linejoin: round;
    opacity: 0;
    animation: destination-flight var(--route-pace) linear var(--route-delay) infinite;
  }
}
@keyframes destination-travel {
  0% { stroke-dashoffset: 15; }
  78%, 100% { stroke-dashoffset: -100; }
}
@keyframes destination-flight {
  0%, 68%, 100% { opacity: 0; }
  9%, 61% { opacity: 1; }
}
@keyframes destination-arrival {
  0%, 67% { transform: scale(.65); opacity: 0; }
  71% { opacity: .85; }
  92%, 100% { transform: scale(2.8); opacity: 0; }
}

.destination-hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.destination-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 47px;
  max-width: 100%;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.28;
  text-align: center;
}
.destination-hero-actions svg { flex: none; inline-size: 19px; block-size: 19px; }
.destination-hero-actions .destination-hero-primary { color: #fff; background: var(--medtravel-action); }
.destination-hero-actions .destination-hero-primary:hover { background: var(--medtravel-action-hover); }
.destination-hero-actions .destination-hero-secondary {
  border-color: var(--destination-line);
  background: var(--destination-chip);
  color: var(--destination-ink);
}
.destination-hero-actions .destination-hero-secondary:hover { border-color: var(--destination-accent); color: var(--destination-accent); }
.destination-hero-secondary svg { color: var(--destination-accent); }
.destination-hero-trust {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  color: var(--destination-muted);
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.35;
}
.destination-hero-trust svg { flex: none; inline-size: 17px; block-size: 17px; color: var(--destination-accent); }
.destination-hero :is(a, label):focus-visible { outline-color: var(--destination-accent); }
.destination-hero ~ #treatment-search { padding-block-start: 30px; }

@media (max-width: 900px) {
  .destination-hero-layout { grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); width: calc(100% - 42px); }
  .destination-hero-visual { inset-inline-start: 43%; }
  .destination-hero-copy { padding-inline-start: 0; }
  .destination-hero-actions { gap: 7px; }
  .destination-hero-actions a { gap: 7px; padding-inline: 11px; font-size: .8125rem; }
}
@media (max-width: 700px) {
  .destination-hero { display: grid; }
  .destination-hero-layout { grid-row: 1; grid-template-columns: 1fr; width: min(100% - 32px, 530px); min-height: 0; }
  .destination-hero-copy { padding: 23px 0 17px; }
  .destination-hero-visual { grid-row: 2; position: relative; z-index: auto; inset: auto; height: clamp(135px, 37vw, 240px); -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / .35), #000 42%); mask-image: linear-gradient(180deg, rgb(0 0 0 / .35), #000 42%); }
  .destination-hero-visual img { object-position: 63% 26%; }
  .destination-hero-visual::after { background: linear-gradient(180deg, var(--destination-surface), transparent 27%); }
  .destination-map { margin-block: 13px 6px; }
  .destination-map-pin { min-block-size: 28px; padding-inline: 6px; }
  .destination-map-origin { top: calc(var(--pin-y) + 2px); font-size: .625rem; }
  .destination-hero-actions { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: stretch; max-width: 393px; }
  .destination-hero-actions a { min-height: 44px; }
  .destination-hero-primary { white-space: nowrap; }
}
@media (max-width: 390px) {
  .destination-hero-actions a { padding-inline: 8px; }
  .destination-hero-actions svg { inline-size: 16px; block-size: 16px; }
}
