.atlas {
  position: relative;
  isolation: isolate;
  height: calc(100dvh - 120px);
  border-radius: var(--rounded-box);
  min-height: 640px;
  overflow: hidden;
  background: var(--color-base-100);
  color: var(--color-base-content);
  font-family: var(--font-sans);
}
.atlas [hidden] { display: none !important; }
.atlas button, .atlas a, .atlas input { -webkit-tap-highlight-color: transparent; }
.atlas :is(.atlas-city-tile, .atlas-destination, .atlas-sheet-handle):focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.atlas h1, .atlas h2, .atlas h3 { font-family: var(--font-heading); }
.atlas-icon { width: 21px; height: 21px; flex: none; }
.atlas-map { position: absolute; inset: 0; overflow: hidden; }
.atlas-basemap { position: absolute; inset: 0; overflow: hidden; }
.atlas-basemap canvas { position: absolute; top: 0; left: 0; touch-action: none; cursor: grab; }
.atlas-basemap canvas:active { cursor: grabbing; }
.atlas-hover-region { display: none; }
.atlas-map-credit { position: absolute; z-index: 2; bottom: 4px; left: 6px; padding: 0 4px; border-radius: 3px; background: var(--color-highlight); color: var(--color-base-content); font-size: var(--text-legend); }
.atlas-toolbar { pointer-events: none; position: absolute; z-index: 3; top: 28px; left: 16px; right: 0; display: flex; align-items: center; gap: 14px; }
.atlas-toolbar > * { pointer-events: auto; }
.atlas-round { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; }
.atlas-round, .atlas-zoom { background: var(--color-highlight); color: var(--color-primary); box-shadow: var(--shadow-sm); }
.atlas-breadcrumb { position: absolute; top: 92px; left: 16px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: color-mix(in oklab, var(--color-base-content) 70%, transparent); line-height: 1.4; z-index: 2; }
.atlas-breadcrumb button { display: flex; gap: 9px; align-items: center; }
.atlas-breadcrumb .atlas-icon { width: 17px; height: 17px; }
.atlas-controls { position: absolute; z-index: 2; left: 32px; bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.atlas-zoom { border-radius: var(--rounded-btn); overflow: hidden; width: 50px; }
.atlas-zoom button { display: grid; place-items: center; width: 50px; height: 48px; }
.atlas-zoom button + button { border-top: 1px solid var(--color-base-300); }
.atlas-status { position: absolute; z-index: 5; left: 50%; bottom: 30px; transform: translateX(-50%); max-width: 80%; background: var(--color-highlight); color: var(--color-base-content); font-size: 14px; padding: 12px 22px; border-radius: 24px; box-shadow: 0 8px 30px color-mix(in oklab, var(--color-neutral) 18%, transparent); }
.atlas-status:empty { display: none; }
.atlas-panel { display: flex; flex-direction: column; overflow: hidden; background: var(--color-highlight); scrollbar-width: thin; scrollbar-color: var(--color-primary-soft) var(--color-primary); }
.atlas-cover { height: 205px; position: relative; overflow: hidden; }
.atlas-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, color-mix(in oklab, var(--color-neutral) 75%, transparent)); pointer-events: none; }
.atlas-cover img { width: 100%; height: 100%; object-fit: cover; }
.atlas-cover-caption { color: var(--color-primary-content); position: absolute; bottom: 16px; left: 17px; right: 45px; font-size: 13px; font-weight: 600; z-index: 1; }
.atlas-flag { position: absolute; z-index: 1; right: 14px; top: 14px; display: grid; place-items: center; width: 42px; height: 42px; background: var(--color-highlight); border-radius: 50%; font-size: 26px; color: var(--color-primary); }
.atlas-panel-body { background: var(--color-highlight); }
.atlas-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.atlas-heading-place { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; align-self: center; }
.atlas-panel h2 { font-size: var(--text-display-md); font-weight: 600; letter-spacing: normal; color: var(--color-base-content); line-height: 1.17; }
.atlas-panel-back { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 1px solid var(--color-base-300); border-radius: 50%; color: var(--color-primary); }
.atlas-description { color: color-mix(in oklab, var(--color-base-content) 75%, transparent); font-size: var(--text-body-sm); line-height: 1.65; margin-top: 13px; }
.atlas-destinations { margin-top: 22px; }
.atlas-destinations h3 { font-size: var(--text-body-sm); font-weight: 700; color: color-mix(in oklab, var(--color-base-content) 75%, transparent); margin-bottom: 8px; }
.atlas-destination { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--color-base-300); text-align: left; font-size: 14px; }
.atlas-destination:last-child { border-bottom: 0; }
.atlas-destination-mark { flex: none; height: 34px; width: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--color-base-200); font-size: 22px; }
.atlas-destination-label { flex: 1; min-width: 0; }
.atlas-destination-label strong { font-weight: 600; display: block; }
.atlas-destination-label small { display: block; color: color-mix(in oklab, var(--color-base-content) 65%, transparent); margin-top: 3px; font-size: 11px; }
.atlas-destination-arrow { color: var(--color-primary); font-size: 23px; }
.atlas-search-status { color: var(--color-base-content); font-size: 13px; margin-top: 14px; min-height: 1lh; }
@media (max-width: 1000px) {
  .atlas-toolbar { gap: 10px; }
  .atlas-cover { height: 170px; }
}
@media (max-width: 700px) {
  .atlas-toolbar { top: 16px; gap: 8px; }
  .atlas-panel-body { padding-bottom: 22px; }
  .atlas-panel h2 { font-size: 26px; }
  .atlas-controls { left: auto; right: 16px; gap: 8px; }
  .atlas-round, .atlas-zoom, .atlas-zoom button { width: 44px; }
  .atlas-round, .atlas-zoom button { height: 44px; }
  .atlas-status { position: fixed; bottom: 20px; width: max-content; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas *, .atlas *::before, .atlas *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 1100px) {
  .atlas-destinations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .atlas-destinations h3 { grid-column: 1 / -1; }
  .atlas[data-level="world"] .atlas-destinations { grid-template-columns: 1fr; }
  .atlas-cover { height: 220px; }
}


.atlas-breadcrumb button { min-height: 24px; white-space: nowrap; }
.atlas-breadcrumb button:hover { color: var(--color-base-content); }
@media (max-width: 700px) {
  .atlas-breadcrumb { left: 16px; top: 76px; max-width: calc(100% - 82px); gap: 8px; font-size: var(--text-note); }
}

.atlas-sheet-handle { display: none; }
.atlas-sheet-results-label { display: none; }
@media (max-width: 700px) {
  .atlas:not(.atlas--embedded) { isolation: auto; overflow: visible; }
  .atlas-map { position: relative; }
  .atlas-sheet-handle { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 44px; flex: none; touch-action: none; cursor: ns-resize; border-radius: 16px; }
  .atlas-sheet-handle span { width: 40px; height: 5px; border-radius: 999px; background: var(--color-primary-soft); opacity: .65; }
}

.atlas.atlas--embedded { height: 320px; min-height: 0; isolation: isolate; }
.atlas--embedded .atlas-map { inset: 0; height: 100%; min-height: 0; }
.atlas--embedded .atlas-controls { top: auto; bottom: 12px; right: 12px; left: auto; gap: 8px; }
.atlas--embedded .btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border-radius: var(--rounded-btn); }
.atlas--embedded .atlas-zoom, .atlas--embedded .atlas-zoom button { width: 44px; }
.atlas--embedded .atlas-zoom button { height: 44px; }
.atlas--embedded .atlas-status { position: absolute; bottom: 12px; font-size: 13px; padding: 8px 12px; }
.atlas-mini-toolbar { position: absolute; inset: 12px 64px auto 12px; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.atlas-mini-toolbar > button { pointer-events: auto; flex: none; }


.atlas-country-control { max-width: 100%; cursor: pointer; }
.atlas--embedded .atlas-country-control { width: auto; padding-inline: 8px; }
.atlas-breadcrumb .atlas-country-control { min-width: 0; min-height: 40px; padding-inline: 8px; color: var(--color-base-content); }

.atlas-collapse { margin-left: auto; flex: none; width: 44px; height: 44px; background-color: var(--color-highlight); color: var(--color-primary); border-color: var(--color-base-300); }
.atlas .atlas-city-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.atlas-city-tiles > h3 { grid-column: 1 / -1; margin: 0; }
.atlas-city-tiles > .atlas-list-heading { padding-top: 16px; border-top: 1px solid var(--color-base-300); }
.atlas-city-tile { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 0; border-radius: var(--rounded-box); background: var(--color-base-200); color: var(--color-base-content); text-align: left; }
.atlas-city-tile[aria-pressed=true] { background: color-mix(in oklab, var(--color-primary) 12%, var(--color-base-100)); }
@media (hover: hover) and (pointer: fine) {
  .atlas-city-tile:hover { background: color-mix(in oklab, var(--color-primary) 12%, var(--color-base-100)); }
}
.atlas-city-tile > img { width: 56px; height: 56px; flex: none; border-radius: var(--rounded-btn); object-fit: cover; }
.atlas-city-tile .atlas-destination-label strong { font-size: var(--text-body-sm); line-height: 1.3; overflow-wrap: anywhere; }
.atlas-city-tile .atlas-destination-arrow { display: none; }

.atlas-inline-search { position: relative; flex: 1; min-width: 0; }
.atlas-inline-search input { padding-right: 32px; }
.atlas-clear-search { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.atlas-inline-results { padding: 20px; }
.atlas-inline-results > h2 { font-size: var(--text-display-sm); margin-bottom: 16px; }
.atlas-inline-results .atlas-city-tiles { margin-top: 16px; }
@media (max-width: 700px) {
  .atlas-inline-search .search-field { min-height: 40px; padding: 0 6px 0 12px; gap: 8px; }
  .atlas-inline-search .search-field-icon { width: 16px; height: 16px; }
  .atlas-inline-search input { font-size: 16px; line-height: 1.25; padding-block: 0; }
  .atlas-inline-results { padding: 4px 16px 8px; }
  .atlas-inline-results > h2 { margin-bottom: 0; font-size: var(--text-body-lg); }
  .atlas-inline-results .atlas-search-status { min-height: 0; margin-top: 0; }
  .atlas-inline-results .atlas-search-status:not(:empty) { margin-top: 4px; }
  .atlas-inline-results .atlas-city-tiles { margin-top: 4px; }
}


@media (min-width: 701px) {
  .atlas { --atlas-credit-height: 1.5rem; }
  .atlas-basemap { bottom: var(--atlas-credit-height); }
  .atlas-map-credit { bottom: 0; display: flex; align-items: center; height: var(--atlas-credit-height); background: transparent; }
  .atlas--embedded .atlas-controls { bottom: calc(var(--atlas-credit-height) + 12px); }
  body:has(> main > .atlas:not(.atlas--embedded)) .navbar [data-region-picker-trigger] { display: none; }
  body:has(> main > .atlas:not(.atlas--embedded)) .navbar .atlas-navbar-region { display: inline-flex; }
  .atlas-inline-search .search-field { min-height: 48px; }
  body:has(> main > .atlas:not(.atlas--embedded)) { height: 100dvh; display: flex; flex-direction: column; }
  body:has(> main > .atlas:not(.atlas--embedded)) > * { flex-shrink: 0; }
  body > main:has(> .atlas:not(.atlas--embedded)) { flex: 1; min-height: 0; width: 100%; margin-top: 0; padding-top: 16px; padding-bottom: 16px; }
  body:has(> main > .atlas:not(.atlas--embedded)) > footer { margin-top: 0; }
  .atlas:not(.atlas--embedded) { --atlas-panel-width: clamp(320px, 44%, 560px); display: grid; grid-template-columns: minmax(0, 1fr) var(--atlas-panel-width); grid-template-rows: minmax(0, 1fr); gap: 0; height: 100%; min-height: 0; }
  .atlas:not(.atlas--embedded) .atlas-map { position: relative; inset: auto; grid-column: 1; grid-row: 1; min-width: 0; height: 100%; overflow: hidden; }
  .atlas:not(.atlas--embedded) .atlas-panel { position: relative; grid-column: 2; grid-row: 1; border-left: 1px solid var(--color-base-300); border-radius: 0 var(--rounded-box) var(--rounded-box) 0; }
  .atlas:not(.atlas--embedded) .atlas-panel-body { padding-block: 16px; }
  .atlas-panel-body :is(.atlas-panel-heading, .atlas-description, .atlas-destinations > h3, .atlas-city-tile) { padding-inline-start: 12px; }
  .atlas:not(.atlas--embedded) .atlas-panel-footer { padding: 12px 9px 16px; border-top: 1px solid var(--color-base-300); background: var(--color-highlight); }
  .atlas .atlas-city-tiles { gap: 8px; }
  .atlas-city-tile { padding-block: 8px; }
  .atlas-city-tile > img { width: 48px; height: 48px; }
  .atlas:not(.atlas--embedded) .atlas-toolbar { right: calc(var(--atlas-panel-width) + 32px); }
  .atlas:not(.atlas--embedded) .atlas-controls { left: auto; right: calc(var(--atlas-panel-width) + 32px); bottom: calc(var(--atlas-credit-height) + 16px); }
  .atlas:not(.atlas--embedded) .atlas-breadcrumb { right: calc(var(--atlas-panel-width) + 32px); max-width: none; }
}

@media (min-width: 701px) and (hover: hover) and (pointer: fine) {
  .atlas-hover-region { display: block; position: absolute; z-index: 2; left: 10px; bottom: calc(var(--atlas-credit-height) + 8px); max-width: calc(100% - 90px); padding: 4px 10px; border-radius: var(--rounded-btn); background: var(--color-highlight); box-shadow: var(--shadow-sm); font-size: var(--text-body-sm); font-weight: 600; pointer-events: none; }
}

@media (min-width: 1024px) {
  body:has(> main > .atlas:not(.atlas--embedded)) { height: calc(100dvh - 1rem); }
}

.atlas-panel-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
.atlas-edge-bird { display: none; }
.atlas-list-content > .place-location-error:not([hidden]) ~ * { display: none; }
.atlas-panel-footer { flex: none; padding: 16px 0 0; background: var(--color-base-200); }
.atlas-panel-footer .atlas-selection { display: flex; flex-direction: column-reverse; }
.atlas-panel-scroll:has(.atlas-inline-results:not([hidden])) + .atlas-panel-footer[data-mode="view"] { display: none; }

@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .atlas-list-content { transform: translateY(calc(-1px * var(--atlas-edge-stretch))); }
  .atlas-edge-bird {
    position: relative;
    display: grid;
    justify-items: center;
    height: 0;
    pointer-events: none;
    opacity: clamp(0, calc((var(--atlas-edge-stretch, 0) - 20) / 10), 1);
  }
  .atlas-edge-bird svg {
    position: absolute;
    bottom: 0;
    transform: translateY(min(0px, calc(62.5% - 0.625px * var(--atlas-edge-stretch, 0))));
  }
}

@media (max-width: 700px) {
  .atlas-panel-footer[data-mode="view"] { display: none; }
  .atlas-panel-scroll { touch-action: pan-x pinch-zoom; }
  .atlas-panel:not(.is-at-maximum) > .atlas-panel-scroll { scrollbar-width: none; }
  .atlas-panel:not(.is-at-maximum) > .atlas-panel-scroll::-webkit-scrollbar { display: none; }
  .atlas-sheet-handle, .atlas-panel-scroll { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  body:has(> main > .atlas:not(.atlas--embedded)) { height: 100dvh; display: flex; flex-direction: column; padding-bottom: 0; overflow: hidden; }
  body > main:has(> .atlas:not(.atlas--embedded)) { flex: 1; min-height: 0; width: 100%; max-width: none; margin: 0; padding: 0; }
  body:has(> main > .atlas:not(.atlas--embedded)) > :is(footer, nav[data-controller~="tabbar-keyboard"]) { display: none; }
  .atlas:not(.atlas--embedded) { height: 100%; min-height: 0; }
  .atlas:not(.atlas--embedded) .atlas-map { --atlas-map-underlap: 24px; height: max(160px, calc(100% - var(--atlas-sheet-overlap, 0px) + var(--atlas-map-underlap))); }
  .atlas:not(.atlas--embedded) .atlas-basemap { top: 50%; bottom: auto; height: max(160px, calc(var(--atlas-map-buffer-height, 100%) + var(--atlas-map-underlap))); transform: translateY(-50%); }
  .atlas:not(.atlas--embedded) .atlas-map-credit { bottom: 28px; }
  .atlas:not(.atlas--embedded) .atlas-controls { bottom: calc(var(--atlas-sheet-overlap, 0px) + 16px); pointer-events: none; }
  .atlas:not(.atlas--embedded) .atlas-controls > * { flex: none; pointer-events: auto; }
  .atlas:not(.atlas--embedded) .atlas-toolbar { right: 16px; }
  .atlas:not(.atlas--embedded) .atlas-collapse { width: 40px; height: 40px; min-width: 40px; min-height: 40px; border-radius: var(--rounded-btn); background: var(--color-highlight); }
  .atlas:not(.atlas--embedded) .atlas-panel { position: fixed; z-index: 40; left: 0; right: 0; top: auto; bottom: var(--atlas-bottom, 4px); height: var(--atlas-normal-height, 52dvh); max-height: var(--atlas-maximum-height, 90dvh); border: 7px solid var(--color-highlight); border-radius: 24px 24px var(--rounded-box) var(--rounded-box); }
  .atlas:not(.atlas--embedded) .atlas-panel.is-expanded { height: var(--atlas-maximum-height, 90dvh); }
  .atlas:not(.atlas--embedded, .is-searching-places) .atlas-panel:is(.is-expanded, .is-dragging) { z-index: 60; }
  .atlas.is-searching-places .atlas-panel.is-expanded { border-radius: 0; }
  .atlas:not(.atlas--embedded) .atlas-panel.is-minimized { height: var(--atlas-minimum-height, 128px); }
  .atlas-panel-scroll:has(.atlas-inline-results:not([hidden])) + .atlas-panel-footer { display: none; }
  .atlas:not(.atlas--embedded) .atlas-panel.is-minimized:not(.is-dragging) .atlas-panel-scroll { flex: 0; height: 0; min-height: 0; visibility: hidden; }
  .atlas:not(.atlas--embedded) .atlas-cover { display: none; }
  .atlas:not(.atlas--embedded) .atlas-panel-footer { padding-top: 8px; padding-bottom: max(0px, var(--atlas-safe-bottom, 0px)); background: var(--color-highlight); }
}

.atlas:not(.atlas--embedded) .atlas-panel-body { padding-inline: 9px; }
.atlas:not(.atlas--embedded) .atlas-inline-results { padding-inline: 9px; }

@media (max-width: 700px) {
  .atlas-sheet-handle { align-items: flex-start; padding-top: 2px; }
  .atlas-panel:not(.is-minimized) .atlas-sheet-handle { align-self: center; width: 88px; margin-bottom: -16px; position: relative; z-index: 1; }
  .atlas-heading-place:has(> img:not([hidden])) h2 :is(a, button)::after { content: ""; position: absolute; inset: 0; cursor: pointer; }
  .atlas[data-level="country"] .atlas-panel-heading h2 { font-size: var(--text-display-sm); }
  .atlas[data-level="country"] .atlas-destinations { margin-top: 8px; }
  .atlas[data-level="country"] .atlas-description { display: none; }
  .atlas.is-searching-places .atlas-map { visibility: hidden; }
  .atlas.is-searching-places :is(.atlas-breadcrumb, .atlas-controls, .atlas-status, .atlas-collapse, .atlas-panel-footer, .atlas-panel-heading, .atlas-description) { display: none; }
  .atlas.is-searching-places .atlas-destinations { margin-top: 0; }
  .atlas[data-level="country"] .atlas-destinations > h3 { display: none; }
  .atlas-panel.is-minimized .atlas-sheet-handle { padding-top: 16px; }
  .atlas-panel.is-minimized:has(.atlas-inline-results:not([hidden])) .atlas-sheet-handle { flex-direction: column; align-items: center; gap: 8px; padding: 2px 9px 8px; }
  .atlas-panel.is-minimized:has(.atlas-inline-results:not([hidden])) .atlas-sheet-results-label { display: block; align-self: flex-start; font: 600 var(--text-body-lg) / 1.25 var(--font-heading); }
  .atlas .atlas-city-tiles { gap: 0; margin-inline: -9px; }
  .atlas-city-tiles > h3 { padding: 8px 12px; background: var(--color-base-100); }
  .atlas-city-tiles > .atlas-list-heading { padding-top: 8px; border: 0; font-family: var(--font-sans); }
  .atlas-city-tile { min-height: 64px; gap: 8px; padding: 6px 12px; border-radius: 0; border-bottom: 1px solid var(--color-base-300); background: var(--color-highlight); }
  .atlas-city-tile .atlas-destination-label small { margin-top: 2px; font-size: var(--text-note); line-height: 1.375; color: color-mix(in oklab, var(--color-base-content) 80%, transparent); }
  .atlas .atlas-city-tile:focus-visible { outline-offset: -2px; }
}

@media (max-width: 700px) and (max-height: 650px) {
  .atlas:not(.atlas--embedded, .is-searching-places) .atlas-controls { display: grid; grid-template-columns: repeat(2, 44px); }
  .atlas:not(.atlas--embedded) .atlas-zoom { grid-column: span 2; display: flex; width: auto; }
  .atlas:not(.atlas--embedded) .atlas-zoom button { flex: 1; }
  .atlas:not(.atlas--embedded) .atlas-zoom button + button { border-top: 0; border-left: 1px solid var(--color-base-300); }
}

@media (hover: hover) and (pointer: fine) {
  .atlas :is(.atlas-controls button, .atlas-country-control):enabled:hover {
    background-color: color-mix(in oklab, var(--color-primary) 16%, var(--color-highlight));
    color: var(--color-primary);
  }
}
