.atlas-banner {
  display: grid;
  align-content: end;
  min-height: clamp(240px, 34vw, 390px);
  padding: clamp(16px, 3.4vw, 42px);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  margin-block: 22px;
  border: 1px solid #674c76;
  border-radius: 21px;
  background: #171020;
  color: #fff;
}
.atlas-banner::before {
  position: absolute;
  content: "";
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #100a19 2%, #160d22b5 48%, #17102022 100%),
    url('/assets/img/miami-nocturno.webp') 50% 52% / cover;
}
.atlas-banner h2 { margin: 0 0 6px; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.03; }
.atlas-banner p { margin: 0 0 14px; color: #f1def3; }
.atlas-banner .btn-primario { justify-self: start; }
.atlas-credit { font-size: .76rem; justify-self: start; margin-top: 10px; color: #ffe8f3; }
.atlas-toolbar { display: flex; gap: 8px; justify-content: end; margin-top: 20px; scroll-margin-top: 90px; }
.atlas-toolbar:empty { margin-top: 0; }
.atlas-toolbar > button { min-width: 60px; }
.atlas-btn {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #80698c;
  border-radius: 9px;
  padding: 6px 12px;
  background: #20152a;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  transition: background .2s, color .2s;
}
.atlas-btn:hover { background: #472450; }
.atlas-btn[aria-pressed="true"] { color: #261321; background: #ff9fbd; border-color: #ff9fbd; }
.atlas-btn:disabled { opacity: .55; cursor: default; }
.atlas-btn:focus-visible, .atlas-stage:focus-visible, .atlas-link:focus-visible {
  outline: 2px solid #83f0ff;
  outline-offset: 3px;
}
.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  gap: 14px;
  margin-top: 12px;
}
.atlas-layout[hidden], .mapa-layout[hidden] { display: none; }
.atlas-stage {
  container-type: inline-size;
  position: relative;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #734e81;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 62%, #323363, #161329 60%, #0c0a15 88%);
  perspective: 880px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.atlas-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .35;
  pointer-events: none;
  background-image: linear-gradient(#c09afa29 1px, transparent 1px), linear-gradient(90deg, #c09afa29 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse, transparent, #000);
}
.atlas-dragging { cursor: grabbing; }
.atlas-plane {
  width: min(57cqw, 340px);
  aspect-ratio: 750 / 938;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(var(--atlas-pitch, 42deg))
    rotateZ(var(--atlas-yaw, -17deg)) scale(var(--atlas-zoom, 1));
  transition: transform .48s cubic-bezier(.22,.74,.2,1);
}
.atlas-dragging .atlas-plane { transition: none; }
.atlas-plane::before, .atlas-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #151a33;
  border: 1px solid #725a9b;
  transform: translateZ(-6px);
}
.atlas-plane::before { transform: translateZ(-12px); box-shadow: 0 0 24px #db7ffca3; }
.atlas-texture {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  border: 2px solid #cfa0fa;
  filter: saturate(1.22) contrast(1.08);
}
.atlas-camera {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.atlas-hint {
  position: absolute;
  right: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: #150f247f;
  color: #f4e4ff;
  font-size: .77rem;
  pointer-events: none;
}
.atlas-stop {
  position: absolute;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}
.atlas-stop::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ff91bb;
  border-radius: 50%;
  box-shadow: 0 0 16px 3px #fa66b0;
  transform: translate3d(-50%, -50%, 2px);
  pointer-events: none;
}
.atlas-stop:has(.atlas-btn[aria-pressed="true"])::before { animation: atlas-signal 1.8s ease-out infinite; }
@keyframes atlas-signal {
  0%, 100% { opacity: .9; transform: translate3d(-50%, -50%, 2px) scale(1); }
  65% { opacity: .35; transform: translate3d(-50%, -50%, 2px) scale(2.6); }
}
.atlas-stop.is-rumour::before { background: #ffd281; box-shadow: 0 0 13px #ffd281; }
.atlas-stop .atlas-btn {
  min-width: 44px;
  position: absolute;
  left: -22px;
  top: -22px;
  border-radius: 50%;
  padding: 0;
  transform: translateZ(30px) rotateZ(calc(-1 * var(--atlas-yaw))) rotateX(calc(-1 * var(--atlas-pitch)));
}
.atlas-stop.has-skyline .atlas-btn { transform: translateZ(72px) rotateZ(calc(-1 * var(--atlas-yaw))) rotateX(calc(-1 * var(--atlas-pitch))); }
.atlas-skyline, .atlas-tower { position: absolute; transform-style: preserve-3d; pointer-events: none; }
.atlas-tower { transform: translate3d(var(--x), var(--y), 0); }
.atlas-tower i {
  position: absolute;
  top: calc(var(--h) / -2);
  left: calc(var(--w) / -2);
  width: var(--w);
  height: var(--h);
  border: 1px solid #b4bafe;
  background: repeating-linear-gradient(0deg, #17204a 0 3px, #f68ab6 3px 4px, #5167b8 4px 6px);
}
.atlas-tower .atlas-north { transform: translate3d(0, calc(var(--w) / -2), calc(var(--h) / 2)) rotateX(90deg); }
.atlas-tower .atlas-south { transform: translate3d(0, calc(var(--w) / 2), calc(var(--h) / 2)) rotateX(90deg); }
.atlas-tower .atlas-east { transform: translate3d(calc(var(--w) / 2), 0, calc(var(--h) / 2)) rotateZ(90deg) rotateX(90deg); }
.atlas-tower .atlas-west { transform: translate3d(calc(var(--w) / -2), 0, calc(var(--h) / 2)) rotateZ(90deg) rotateX(90deg); }
.atlas-tower .atlas-roof {
  height: var(--w);
  top: calc(var(--w) / -2);
  background: #a9edff;
  transform: translateZ(var(--h));
}
.atlas-detail {
  align-self: start;
  overflow: hidden;
  border: 1px solid #62456e;
  border-radius: 18px;
  background: linear-gradient(155deg, #231734, #14101e);
  color: #fff;
}
.atlas-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.atlas-copy { padding: 16px; }
.atlas-copy h2 { margin: 6px 0; }
.atlas-copy p { color: #e2cee8; margin: 0 0 14px; }
.atlas-status { font-size: .82rem; font-weight: 750; color: #88f5ea; }
.atlas-status.is-rumour { color: #ffd281; }
.atlas-link { color: #ffc1de; display: inline-block; padding-block: 8px; }
.atlas-tour { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.atlas-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 850px) {
  .atlas-layout { grid-template-columns: 1fr; }
  .atlas-stage { min-height: clamp(360px, 80vw, 500px); }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-plane, .atlas-btn { transition: none; }
  .atlas-stop:has(.atlas-btn[aria-pressed="true"])::before { animation: none; }
}

.atlas-picker-label { display: block; margin-bottom: 5px; font-size: .83rem; font-weight: 700; }
.atlas-picker {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-bottom: 14px;
  padding-inline: 9px;
  border: 1px solid #80698c;
  border-radius: 8px;
  background: #20152a;
  color: #fff;
  font: inherit;
}
.atlas-copy .atlas-link { display: block; }
.atlas-picker:focus-visible { outline: 2px solid #83f0ff; outline-offset: 3px; }

.map-directory-heading { margin: 0; font-size: 1.19rem; }
.map-directory-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.map-directory-tabs[hidden] { display: none; }
.map-directory-tabs .atlas-btn { padding-inline: 8px; font-size: .8rem; }
.map-directory-count { margin: 0; color: var(--text-muted); font-size: .84rem; }
.mapa-layout .mapa-panel {
  max-height: none;
  overflow: visible;
  background: linear-gradient(158deg, #222138, var(--bg-alt) 72%);
}
.mapa-panel .panel-lista { max-height: 445px; overflow-y: auto; }
.mapa-panel .panel-lista:empty { display: none; }
.mapa-panel .panel-seccion { max-height: 400px; overflow-y: auto; }
.mapa-panel .panel-seccion[hidden] { display: none; }
.mapa-layout .punto-fila, .atlas-catalogue .punto-fila { grid-template-columns: 52px minmax(0, 1fr) auto; }
.map-directory-photo { display: block; width: 52px; height: 42px; object-fit: cover; border: 1px solid var(--border); border-radius: 7px; }
.punto-fila .punto-fila-texto strong { white-space: normal; overflow: visible; }
.atlas-catalogue {
  grid-column: 1 / -1;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.atlas-catalogue summary { cursor: pointer; font-weight: 750; }
.atlas-catalogue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px; margin-top: 12px; }

.atlas-stop .atlas-marker {
  background: transparent;
  border: 0;
  isolation: isolate;
  --marker-tone: #9bf4ff;
  color: #f6fdff;
  font-size: .76rem;
}
.atlas-stop.is-rumour .atlas-marker { --marker-tone: #ffd281; }
.atlas-stop .atlas-marker::before {
  position: absolute;
  inset: 9px;
  z-index: -1;
  content: "";
  background: #151225;
  border: 1px solid var(--marker-tone);
  box-shadow: 0 3px 13px #0b0c16aa;
  border-radius: 50%;
}
.atlas-stop .atlas-marker[aria-pressed="true"] { color: #271020; --marker-tone: #ffb3d3; }
.atlas-stop .atlas-marker[aria-pressed="true"]::before { background: var(--marker-tone); }
.atlas-marker-name {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% - 7px);
  transform: translateX(-50%);
  padding: 3px 7px;
  max-width: 135px;
  width: max-content;
  color: #fff;
  text-align: center;
  border: 1px solid var(--marker-tone);
  border-radius: 6px;
  background: #151225;
  pointer-events: none;
  line-height: 1.25;
}
.atlas-marker:is(:hover, :focus-visible, [aria-pressed="true"]) .atlas-marker-name { display: block; }
.mapa-panel .panel-lista:not(:has(.punto-fila:not([hidden]))) { display: none; }
@media (max-width: 500px) {
  .atlas-marker-name { max-width: 105px; font-size: .68rem; }
  .atlas-stop .atlas-marker::before { inset: 11px; }
}

.atlas-model-coast { --model-wall: #3e7b87; --model-window: #ffcc9c; --model-roof: #ffe1ad; }
.atlas-model-suburb { --model-wall: #58658a; --model-window: #f1c7da; --model-roof: #ebb4c9; }
.atlas-model-rural { --model-wall: #716347; --model-window: #e7bf77; --model-roof: #e39c73; }
.atlas-model-industrial { --model-wall: #4a6077; --model-window: #9ee6f2; --model-roof: #aec0d7; }
.atlas-model-north { --model-wall: #315f68; --model-window: #b9efa7; --model-roof: #a5dfba; }
.atlas-skyline:not(.atlas-model-city) .atlas-tower i {
  border-color: var(--model-roof);
  background: repeating-linear-gradient(0deg, var(--model-wall) 0 3px, var(--model-window) 3px 4px, var(--model-wall) 4px 6px);
}
.atlas-skyline:not(.atlas-model-city) .atlas-tower .atlas-roof { background: var(--model-roof); }
.atlas-hide-models .atlas-skyline { display: none; }
.atlas-hide-models .atlas-stop.has-skyline .atlas-btn { transform: translateZ(30px) rotateZ(calc(-1 * var(--atlas-yaw))) rotateX(calc(-1 * var(--atlas-pitch))); }

.atlas-scenery, .atlas-feature, .atlas-mountain {
  position: absolute;
  transform-style: preserve-3d;
  pointer-events: none;
}
.atlas-scenery { inset: 0; }
.atlas-feature { transform: translate3d(var(--feature-x), var(--feature-y), 1px); }
.atlas-hide-models .atlas-scenery { display: none; }
.atlas-slope {
  position: absolute;
  width: var(--peak-size);
  height: var(--peak-size);
  left: calc(var(--peak-size) / -2);
  top: calc(-1 * var(--peak-size));
  background: linear-gradient(#e0f7e5 0 13%, #8ecbbc 14%, #315357);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform-origin: 50% 100%;
  transform: rotateZ(var(--slope-angle)) translateY(calc(var(--peak-size) / 2)) rotateX(-60deg);
}
.atlas-slope:nth-child(even) { background: linear-gradient(#c5e8d4 0 13%, #588c85 14%, #263e48); }
.atlas-airport { transform: translate3d(var(--feature-x), var(--feature-y), 2px) rotateZ(-23deg); }
.atlas-runway {
  position: absolute;
  width: 53px;
  height: 10px;
  left: -26px;
  top: -5px;
  border: 1px solid #92d2e1;
  border-inline: 3px double #fff;
  background: #252839;
}
.atlas-runway::after { content: ""; position: absolute; inset: 4px 3px auto; border-top: 1px dashed #fff; }
.atlas-taxiway { position: absolute; width: 23px; height: 11px; left: -10px; top: 4px; border: 2px solid #9db1bd; }
.atlas-apron { position: absolute; width: 16px; height: 6px; left: -6px; top: 14px; background: #99d7e5; box-shadow: 0 0 4px #8ce7f8; }
.atlas-marina { transform: translate3d(var(--feature-x), var(--feature-y), 2px) rotateZ(24deg); }
.atlas-pier { position: absolute; width: 22px; height: 4px; left: -11px; background: #ffe1ad; }
.atlas-boat {
  position: absolute;
  width: 5px;
  height: 11px;
  left: -7px;
  top: 5px;
  background: #fff3de;
  clip-path: polygon(50% 0, 100% 34%, 85% 100%, 15% 100%, 0 34%);
  transform: translateZ(2px) rotateZ(14deg);
}
.atlas-boat-second { left: 4px; top: -11px; background: #aaf6ff; }
.atlas-bridge { transform: translate3d(var(--feature-x), var(--feature-y), 1px) rotateZ(-33deg); }
.atlas-bridge-road { position: absolute; width: 26px; height: 5px; left: -13px; background: #b5d2db; border-inline: 2px solid #f0edf0; transform: translateZ(5px); }
.atlas-bridge-pier { position: absolute; width: 3px; height: 5px; left: -7px; background: #728592; transform-origin: 50% 0; transform: rotateX(90deg); }
.atlas-bridge-pier-second { left: 6px; }
