/* Travel map: one pin per place, Leaflet map, place card beside (desktop) or over (phone) the map. */
.atlas-page { --sea-water: #102040; --pin-review: #2a5fae; --pin-stay: #3b6f8f; --pin-drive: #0f1d3a; }
.atlas-page .atlas-main { background: var(--paper); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.atlas-intro { max-width: 1392px; margin: 0 auto; padding: 108px clamp(16px, 4vw, 52px) 18px; }
.atlas-intro .crumbs, .atlas-intro .crumbs a { color: var(--muted); }
.atlas-intro h1 { margin: 14px 0 0; color: var(--deep); font: 400 clamp(2.4rem, 5vw, 4.4rem)/1.04 var(--display); letter-spacing: -.02em; }
.atlas-intro h1 em { color: var(--clay); }
.atlas-dek { max-width: 40rem; margin: 12px 0 0; color: #3b4559; font: 400 clamp(1rem, 1.5vw, 1.15rem)/1.55 var(--label); }
.atlas-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font: 400 .9rem/1.4 var(--label); }
.atlas-stats b { color: var(--sea); font-weight: 600; }

.atlas-shell { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 52px) 72px; }
.atlas-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 14px 0; }
.atlas-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.atlas-filters button { min-height: 40px; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; font: 500 .88rem/1 var(--label); }
.atlas-filters button[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: var(--paper); }
.atlas-search { position: relative; flex: 0 1 340px; min-width: 220px; }
.atlas-search input { width: 100%; min-height: 44px; padding: 10px 16px; border: 1px solid rgba(21, 31, 51,.22); border-radius: 999px; background: #ffffff; color: var(--ink); font: 400 16px/1.3 var(--label); outline: 0; }
.atlas-search input:focus { border-color: var(--sea); box-shadow: 0 0 0 3px rgba(59, 111, 143,.14); }
.atlas-suggest { position: absolute; z-index: 1200; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: #ffffff; border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 14px 40px rgba(15, 29, 58,.16); }
.atlas-suggest li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font: 400 .95rem/1.3 var(--label); }
.atlas-suggest li span { color: var(--muted); font-size: .82rem; text-align: right; }
.atlas-suggest li[aria-selected="true"], .atlas-suggest li:hover { background: #f1efe8; }
.atlas-suggest li.none { color: var(--muted); cursor: default; }

.atlas-stage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; isolation: isolate; }
.atlas-map-wrap { min-width: 0; }
.atlas-map { position: relative; height: min(68vh, 680px); min-height: 440px; border-radius: 18px; overflow: hidden; background: var(--sea-water); border: 1px solid rgba(21, 31, 51,.12); box-shadow: inset 0 0 120px rgba(9, 16, 33,.55); }
.atlas-map.leaflet-container { background: var(--sea-water); font-family: var(--label); }
.atlas-map-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font: 400 .95rem/1.4 var(--label); text-align: center; padding: 20px; }
.atlas-hint { margin: 8px 2px 0; color: var(--muted); font: 400 .82rem/1.4 var(--label); }

.leaflet-control-zoom.leaflet-bar { border: 0; box-shadow: 0 4px 16px rgba(15, 29, 58,.16); border-radius: 12px; overflow: hidden; }
.leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 40px !important; font: 400 20px/40px var(--label) !important; color: var(--deep) !important; background: #ffffff !important; }

/* pins */
.pin-hit { display: grid !important; place-items: center; background: none; border: 0; }
.pin { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #e6e4da; border: 2px solid var(--sea); box-shadow: 0 0 0 4px rgba(230, 228, 218,.12); transition: transform .2s ease; }
.pin.is-review { background: var(--clay); border-color: #ffffff; }
.pin.is-drive { background: #9fc6f0; }
.pin b { display: none; }
.pin-photo, .cluster-photo { --s: 40px; position: relative; display: block; width: var(--s); height: var(--s); border-radius: 50%; background: #325e79 center/cover no-repeat; border: 2px solid #ffffff; box-shadow: 0 6px 18px rgba(7, 7, 7,.45); transition: transform .2s ease, box-shadow .2s ease; }
.pin-photo b, .cluster-photo b { position: absolute; right: -6px; top: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--clay); color: #fff; border: 2px solid #ffffff; font: 600 11px/18px var(--label); text-align: center; }
.pin-hit:hover .pin, .pin-hit:hover .pin-photo, .pin-hit:hover .cluster-photo { transform: scale(1.12); }
.pin-hit.is-selected .pin-photo, .pin-hit.is-selected .pin { transform: scale(1.2); box-shadow: 0 0 0 4px var(--clay), 0 8px 22px rgba(7, 7, 7,.5); }
.pin-hit.is-selected .pin-photo::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(42, 95, 174,.7); animation: pin-ping 1.6s ease-out infinite; }
@keyframes pin-ping { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.cluster { --s: 34px; display: grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; background: var(--sea); border: 2px solid #e6e4da; color: #fff; font: 600 13px/1 var(--label); }
.pin-label { display: none; padding: 3px 9px; border: 0; border-radius: 999px; background: rgba(16, 32, 64,.88); box-shadow: none; color: #f6f5f0; font: 500 12px/1.3 var(--label); letter-spacing: .02em; }
.pin-label::before { display: none; }
.show-labels .pin-label { display: block; }
.leaflet-control-zoom a { background: rgba(16, 32, 64,.9) !important; color: #f6f5f0 !important; border-color: rgba(230, 228, 218,.2) !important; }

/* place card */
.atlas-card { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow: auto; padding: 22px 22px 20px; border-radius: 18px; background: #ffffff; border: 1px solid var(--rule); box-shadow: 0 12px 36px rgba(15, 29, 58,.08); outline: 0; }
.atlas-card h2 { margin: 2px 0 4px; color: var(--deep); font: 400 2.1rem/1.08 var(--display); }
.atlas-kicker { margin: 0; color: var(--sea); font: 500 .9rem/1.4 var(--label); }
.atlas-card-empty p:not(.atlas-kicker) { color: var(--muted); font: 400 .98rem/1.55 var(--label); }
.card-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1efe8; color: var(--deep); font: 400 24px/1 var(--label); cursor: pointer; display: none; }
.card-counts { margin: 0 0 6px; color: var(--muted); font: 400 .9rem/1.45 var(--label); }
.card-sec { margin-top: 16px; }
.card-sec h3 { margin: 0 0 8px; color: var(--ink); font: 600 .92rem/1.4 var(--label); }
.card-hotel { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 6px; margin: 0 -6px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.card-hotel:hover, .card-hotel.is-focus { background: #f3f2ed; }
.card-hotel img, .card-hotel-ph { width: 76px; height: 58px; border-radius: 8px; object-fit: cover; background: linear-gradient(135deg, #ebeae6, #f1efe8); }
.card-hotel-text { display: grid; gap: 2px; }
.card-hotel-text strong { font: 500 1.02rem/1.25 var(--label); }
.card-hotel.no-photo { grid-template-columns: 1fr; }
.card-hotel-text em { color: var(--muted); font: italic 400 .82rem/1.3 var(--label); }
.card-archive small { color: var(--muted); font-size: .8rem; }
.card-hotel-text span { color: var(--clay); font: 500 .82rem/1.3 var(--label); }
.card-archive { margin: 0; padding: 0; list-style: none; color: #3b4559; font: 400 .92rem/1.5 var(--label); columns: 1; }
.card-archive li { padding: 3px 0; border-bottom: 1px dashed rgba(21, 31, 51,.1); }
.card-archive li.is-focus { color: var(--clay); font-weight: 600; }
.card-link { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); color: var(--sea); text-decoration: none; font: 500 .95rem/1.35 var(--label); }
.card-link:hover { color: var(--clay); }
.card-ctas { display: grid; gap: 10px; margin-top: 20px; }
.card-cta { display: flex; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 999px; background: var(--clay); color: #fff; text-decoration: none; font: 500 .95rem/1 var(--label); }
.card-cta-alt { display: flex; justify-content: center; gap: 6px; padding: 12px 16px; border: 1px solid var(--deep); border-radius: 999px; color: var(--deep); text-decoration: none; font: 500 .88rem/1.2 var(--label); text-align: center; }
.card-cta:hover { background: #245093; }
.card-cta-alt:hover { background: var(--deep); color: var(--paper); }

/* browse lists */
.atlas-browse, .atlas-guides { margin-top: 48px; }
.atlas-browse h2, .atlas-guides h2 { margin: 0 0 14px; color: var(--deep); font: 400 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--display); }
.atlas-regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 28px; }
.atlas-region h3 { margin: 0 0 6px; color: var(--ink); font: 400 1.5rem/1.25 var(--display); }
.atlas-region ul { margin: 0; padding: 0; list-style: none; }
.atlas-region button { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--ink); cursor: pointer; text-align: left; font: 400 .98rem/1.3 var(--label); }
.atlas-region button small { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.atlas-region button.is-review small { color: var(--clay); }
.atlas-region button:hover span { color: var(--sea); }
.atlas-guide-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 28px; }
.atlas-guide-list a { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font: 400 1rem/1.3 var(--label); }
.atlas-guide-list a:hover { color: var(--sea); }
.atlas-note { margin: 36px 0 0; color: var(--muted); font: 400 .8rem/1.5 var(--label); }
.atlas-note a { color: inherit; }

/* phone: big map, card slides up over the bottom of the map */
@media (max-width: 860px) {
  .atlas-intro { padding-top: 92px; padding-bottom: 6px; }
  .atlas-intro h1 { font-size: 2.3rem; margin-top: 8px; }
  .atlas-dek { font-size: .98rem; }
  .atlas-stats { gap: 4px 14px; font-size: .84rem; margin-top: 10px; }
  .atlas-stats li:nth-child(n+4) { display: none; }
  .atlas-toolbar { padding: 10px 0; }
  .atlas-search { flex: 1 1 100%; order: -1; }
  .atlas-filters button { min-height: 38px; padding: 7px 14px; font-size: .84rem; }
  .atlas-stage { display: block; position: relative; }
  .atlas-map { height: 64svh; min-height: 400px; border-radius: 14px; }
  .atlas-card { position: absolute; z-index: 1100; left: 8px; right: 8px; bottom: 8px; top: auto; max-height: 58%; padding: 18px 16px 16px; border-radius: 16px; box-shadow: 0 -6px 30px rgba(15, 29, 58,.22); transform: translateY(calc(100% + 20px)); opacity: 0; pointer-events: none; transition: transform .28s ease, opacity .2s ease; }
  .atlas-card.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .atlas-card .card-close { display: block; }
  .atlas-card h2 { font-size: 1.8rem; padding-right: 44px; }
  .atlas-card-empty { display: none; }
  .atlas-hint { font-size: .8rem; }
  .atlas-stage .atlas-map-wrap { position: relative; }
  .atlas-card { bottom: calc(8px + 1.6rem); }
}
@media (prefers-reduced-motion: reduce) { .atlas-card, .pin, .pin-photo { transition: none; } .pin-hit.is-selected .pin-photo::after { animation: none; } }
