.location-heading { max-width: 62rem; margin-block: .75rem 1.1rem; }
.location-heading h1 { font-size: clamp(2.35rem, 5vw, 4.9rem); line-height: .96; overflow-wrap: anywhere; }
.location-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(18.5rem, 3fr); gap: .85rem; align-items: start; }
.location-map {
  isolation: isolate; overflow: hidden; position: relative; min-height: clamp(24rem, 50vw, 33rem);
  border: 1px solid #9476a0; border-top: 2px solid var(--place-color);
  border-radius: 1rem 1rem .5rem 1rem; background: #101528; box-shadow: 0 15px 40px #100a21b3;
}
.location-preview, .location-canvas { position: absolute; inset: 0; }
.location-preview { z-index: 1; background: #101528; }
.location-preview-tiles { position: absolute; inset: 0; pointer-events: none; filter: url(#atlas-vice-grade); }
.location-preview-tiles img { display: block; position: absolute; max-width: none; width: 256px; height: 256px; }
.location-preview-pin {
  --pin-color: var(--place-color); position: absolute; top: 50%; left: 50%;
  margin: 0; width: 36px; height: 36px; transform: translate(-50%, -90%);
  color: #28182e; background: var(--place-color); border-color: #fff3f6; box-shadow: 0 0 0 4px #ffb9cf43, 0 4px 24px #ff94bd88;
}
.location-preview-pin::after { border-color: #fff3f6; }
.location-preview-pin svg { width: 22px; height: 22px; }
.location-canvas { visibility: hidden; }
.location-map.is-interactive .location-canvas { visibility: visible; }
.location-map [hidden] { display: none; }
.location-map-link {
  position: absolute; z-index: 2; left: .72rem; bottom: .72rem; max-width: calc(100% - 1.44rem);
  background: #211832f4; border-color: #a48bb1; box-shadow: 0 5px 15px #101225bb;
}
.location-facts, .location-panel {
  min-width: 0; border: 1px solid #745881; border-radius: .9rem .9rem .45rem .9rem;
  background: linear-gradient(153deg, #332646, #20172d 83%); padding: clamp(.9rem, 2.4vw, 1.25rem);
}
.location-facts h2, .location-panel h2, .location-nearby h2 { font-size: clamp(1.7rem, 2.7vw, 2.45rem); }
.location-identity { display: flex; align-items: flex-start; gap: .5rem; margin-block: .53rem .65rem; overflow-wrap: anywhere; }
.location-identity > span { display: inline-flex; color: var(--place-color); }
.location-identity svg { width: 1.32rem; height: 1.32rem; flex-shrink: 0; }
.location-facts .atlas-review-badge:is([data-review="community"], [data-review="unrated"]) { color: #ead9f2; border-color: #806493; background: #382746; }
.location-answer { margin-block: .9rem; color: #efe0f1; overflow-wrap: anywhere; }
.location-combination {
  margin-top: .82rem; padding: .56rem .73rem;
  border: 1px solid #8a617d; border-radius: .62rem; background: #22162e;
}
.location-combination > span { color: #f0c7d8; }
.location-combination .atlas-code { margin-top: .16rem; }
.location-combination [hidden] { display: none; }
.location-facts dl { margin: .64rem 0 0; }
.location-facts dl > div { padding: .55rem 0; border-bottom: 1px solid #705781; }
.location-facts dl > div:last-child { border-bottom: 0; }
.location-facts :is(dt, dd) { overflow-wrap: anywhere; }
.location-facts dt { color: #e0c8e7; }
.location-facts dd { margin: .16rem 0 0; color: #fff6f9; font-weight: 650; }
.location-facts code { color: var(--rose); font-size: 1.2rem; letter-spacing: .06em; }
.location-facts .text-link { display: inline-block; margin-top: .52rem; }
.location-support { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: .85rem; margin-top: .85rem; }
.location-panel p, .location-panel details { margin-top: .54rem; overflow-wrap: anywhere; }
.location-panel summary { color: var(--mint); cursor: pointer; }
.location-sources { display: flex; gap: .4rem; flex-wrap: wrap; list-style: none; padding: 0; margin: .65rem 0 0; }
.location-sources a { display: inline-flex; align-items: center; min-height: 44px; padding: .22rem .58rem; border: 1px solid #705781; border-radius: .48rem; }
.location-sources a:hover { color: var(--mint); border-color: var(--mint); }
.location-nearby { margin-block: 1.7rem .45rem; }
.location-nearby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .65rem; margin-top: .58rem; }
.location-nearby-grid > a {
  display: flex; align-items: flex-start; gap: .63rem; padding: .76rem; border: 1px solid #745881; border-radius: .68rem;
  background: #291d3a; text-decoration: none; overflow-wrap: anywhere; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.location-nearby-grid > a:hover { transform: translateY(-2px); border-color: var(--mint); box-shadow: 0 7px 19px #060410a8; }
.location-nearby-grid > a > span { color: var(--nearby-color); display: inline-flex; }
.location-nearby-grid small { display: block; color: #e0c8e7; font-size: 1rem; margin-top: .22rem; }
@media (max-width: 800px) {
  .location-layout { grid-template-columns: minmax(0, 1fr); }
  .location-map { min-height: clamp(20rem, 78vw, 27rem); }
  .location-layout:has(.location-answer, .location-combination) .location-facts { grid-row: 1; }
  .location-facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem .7rem; }
  .location-facts dl > div:last-child { border-bottom: 1px solid #705781; }
}
@media (prefers-reduced-motion: reduce) { .location-nearby-grid > a { transition: none; } }
