.atlas-tour-panel { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 24px;align-items:center;padding:18px 20px;background:#263b30;color:#f4f1eb;margin:0 0 14px;flex-shrink:0; }
.atlas-tour-panel[hidden] { display:none; }
.atlas-tour-copy { font-size:15px;line-height:1.6; }
.atlas-tour-actions { display:flex;gap:10px; }
.atlas-tour-actions button { border:1px solid #f4f1eb70;color:inherit;background:transparent;padding:10px 14px;min-height:44px;font:inherit;font-size:14px;cursor:pointer; }
.atlas-tour-actions button:hover { background:#ffffff18; }
.atlas-tour-track { grid-column:1/-1;height:2px;background:#ffffff35;overflow:hidden; }
.atlas-tour-track span { display:block;height:100%;background:#e6bb97;transform-origin:left;transform:scaleX(0); }
@media(max-width:760px) {
 .atlas-tour-panel { grid-template-columns:1fr;gap:10px;padding:12px;margin-bottom:8px; }
 .atlas-tour-copy { font-size:13px;line-height:1.45; }
 .atlas-tour-actions { display:grid;grid-template-columns:1fr 1fr; }
 .atlas-tour-actions button { padding:8px;font-size:13px; }
}
.atlas {
  background: #e7e7dc;
}
.atlas-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 40px;
}
.atlas-heading h2 {
  font-size: clamp(40px, 5vw, 76px);
  margin-top: 23px;
}
.atlas-heading > p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 320px;
}
.atlas-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: 20px 0;
  border-top: 1px solid #b9bcae;
}
.atlas-toolbar label {
  font-size: 14px;
  letter-spacing: 0.6px;
}
.atlas-toolbar select {
  display: block;
  font: inherit;
  font-size: 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #a9ad9f;
  border-radius: 0;
  padding: 12px 25px 10px 0;
  color: var(--ink);
  width: 100%;
  max-width: 260px;
}
.atlas-toolbar > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.atlas-toolbar button,
.atlas-slideshow {
  font-size: 14px;
  padding: 13px 17px;
  border: 1px solid #a9ad9f;
  min-height: 44px;
}
.atlas-toolbar [data-map-tour] {
  background: var(--dark);
  color: var(--paper);
  border-color: var(--dark);
}
.atlas button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 570px;
  background: var(--paper);
}
.atlas-map-wrap {
  position: relative;
  min-height: 570px;
  background: #d9dfd3;
}
.atlas-map,
.atlas-map.maplibregl-map {
  /* Keep the lazy-loaded vendor stylesheet from collapsing the map to 0px. */
  position: absolute;
  inset: 0;
}
.atlas-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
  max-width: 290px;
  pointer-events: none;
  background: #f4f1ebed;
  padding: 15px 20px;
}
.atlas-loading[hidden] {
  display: none;
}
.atlas-retry {
  position: absolute;
  left: 25px;
  bottom: 45px;
  background: var(--paper);
  padding: 13px;
  font-size: 14px;
  border: 1px solid var(--line);
}
.atlas-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.atlas-picture {
  height: 235px;
  position: relative;
  overflow: hidden;
  background: #cdd2c5;
}
.atlas-picture > img {
  height: 100%;
  object-fit: cover;
  animation: atlas-fade 0.7s ease;
}
.atlas-placeholder {
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: repeating-linear-gradient(
    155deg,
    transparent,
    transparent 24px,
    #aab29f44 25px,
    #aab29f44 26px
  );
}
.atlas-placeholder > span {
  font-size: 50px;
  font-weight: 650;
  letter-spacing: -4px;
}
.atlas-placeholder > p {
  font-size: 14px;
  letter-spacing: 1px;
  margin-top: 10px;
}
.atlas-badge {
  position: absolute;
  bottom: 15px;
  left: 18px;
  background: var(--paper);
  padding: 8px 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.atlas-card-copy {
  padding: 25px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.atlas-location {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 13px;
}
.atlas-card h3 {
  font-size: 30px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.atlas-description {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 16px;
}
.atlas-link {
  font-size: 14px;
  margin-top: 15px;
  align-self: start;
}
.atlas-paging {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
  padding-top: 20px;
}
.atlas-paging > button {
  font-size: 23px;
  width: 44px;
  height: 44px;
}
.atlas-counter {
  font-size: 14px;
}
.atlas-slideshow {
  margin-top: 10px;
  width: 100%;
}
.atlas-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.atlas-bottom i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
}
.atlas-bottom .archive-dot {
  background: #6e7969;
  margin-left: 15px;
}
.atlas-fullscreen,
.atlas:fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper);
  overflow: auto;
  padding: 24px !important;
}
.atlas-fullscreen .atlas-heading,
.atlas:fullscreen .atlas-heading {
  display: none;
}
.atlas-fullscreen .atlas-layout,
.atlas:fullscreen .atlas-layout {
  min-height: calc(100svh - 130px);
}
.atlas-fullscreen .atlas-map-wrap,
.atlas:fullscreen .atlas-map-wrap {
  min-height: calc(100svh - 130px);
}
.atlas .maplibregl-ctrl-attrib {
  font-size: 14px;
  max-width: 100%;
}
.atlas .maplibregl-ctrl-attrib a {
  text-decoration: underline;
}
.atlas .maplibregl-canvas:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
.atlas .maplibregl-ctrl-group button {
  min-height: 34px;
}
@keyframes atlas-fade {
  from {
    opacity: 0.4;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 1000px) {
  .atlas-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .atlas-toolbar {
    flex-wrap: wrap;
  }
  .atlas-toolbar label {
    flex: 1;
    min-width: 170px;
  }
  .atlas-toolbar > div {
    width: 100%;
  }
}
@media (max-width: 760px) {
  .atlas-heading {
    display: block;
    margin-bottom: 25px;
  }
  .atlas-heading h2 {
    font-size: 42px;
  }
  .atlas-heading > p {
    margin-top: 22px;
    font-size: 14px;
  }
  .atlas-toolbar {
    gap: 15px;
    padding-top: 15px;
  }
  .atlas-toolbar label {
    min-width: 120px;
  }
  .atlas-toolbar select {
    font-size: 14px;
    max-width: 100%;
  }
  .atlas-toolbar button {
    font-size: 14px;
    padding: 12px;
  }
  .atlas-toolbar > div {
    gap: 8px;
  }
  .atlas-layout {
    grid-template-columns: 1fr;
  }
  .atlas-map-wrap {
    min-height: 390px;
  }
  .atlas-card {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
  }
  .atlas-picture {
    height: 100%;
    min-height: 300px;
  }
  .atlas-card-copy {
    padding: 22px 18px;
  }
  .atlas-card h3 {
    font-size: 24px;
  }
  .atlas-description {
    font-size: 14px;
    line-height: 1.7;
  }
  .atlas-link {
    font-size: 14px;
    gap: 15px;
  }
  .atlas-slideshow {
    font-size: 14px;
    padding: 10px;
  }
  .atlas-placeholder {
    padding: 15px;
  }
  .atlas-placeholder > span {
    font-size: 29px;
    letter-spacing: -2px;
  }
  .atlas-placeholder > p {
    font-size: 14px;
  }
  .atlas-badge {
    left: 10px;
    bottom: 10px;
    font-size: 14px;
  }
  .atlas-bottom {
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
  }
  .atlas-fullscreen .atlas-map-wrap,
  .atlas:fullscreen .atlas-map-wrap {
    min-height: 48svh;
  }
  .atlas-fullscreen .atlas-layout,
  .atlas:fullscreen .atlas-layout {
    min-height: 0;
  }
  .atlas-fullscreen,
  .atlas:fullscreen {
    padding: 15px !important;
  }
}
@media (max-width: 760px) {
  .atlas-card {
    grid-template-columns: 1fr;
  }
  .atlas-picture {
    height: 220px;
    min-height: 0;
  }
  .atlas-card-copy {
    padding: 23px;
  }
  .atlas-picture > img {
    object-position: center;
  }
}
.atlas-gesture-help {
  position: absolute;
  left: 12px;
  top: 12px;
  right: 55px;
  max-width: 350px;
  padding: 8px 11px;
  background: #f4f1ebee;
  font-size: 14px;
  line-height: 1.6;
  pointer-events: none;
  border: 1px solid #c7ccbe;
  box-shadow: 0 2px 10px #0001;
}
.atlas-tooltip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background: var(--dark);
  color: var(--paper);
  font-size: 14px;
  padding: 10px 13px;
  line-height: 1.5;
  max-width: 220px;
  box-shadow: 0 5px 15px #0002;
}
.atlas-overlap-list {
  padding: 8px;
  max-height: 260px;
  overflow: auto;
  font-family: Inter, Arial, sans-serif;
}
.atlas-overlap-list p {
  font-size: 14px;
  color: var(--muted);
  padding: 5px 0 12px;
}
.atlas-overlap-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 5px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
}
.atlas-overlap-list button:hover,
.atlas-overlap-list button:focus-visible {
  color: var(--accent);
  background: #ebe7dd;
}
.atlas .maplibregl-ctrl-scale {
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  background: #f4f1ebd9;
}
.atlas-map:focus-within {
  outline: 2px solid #c44b2c66;
  outline-offset: -2px;
}
@media (max-width: 380px) {
  .atlas-toolbar button {
    padding: 10px;
    font-size: 14px;
  }
}

/* Enhanced phone controls; original desktop markup and layout are retained. */
.atlas-mobile-primary[hidden], .atlas-mobile-status { display: none; }
body.atlas-modal-open { position: fixed; top: var(--atlas-scroll-top); left: 0; right: 0; overflow: hidden; }
.atlas.atlas-mobile .atlas-heading { margin-bottom: 20px; }
.atlas.atlas-mobile .atlas-heading h2 { font-size: 34px; margin-top: 16px; }
.atlas.atlas-mobile .atlas-heading > p { display: none; }
.atlas.atlas-mobile .atlas-toolbar { position: relative; z-index: 5; display: block; padding: 8px 0; }
.atlas.atlas-mobile .atlas-mobile-primary {
  display: grid; grid-template-columns: minmax(0,1fr) 64px 44px;
  align-items: center; gap: 6px; width: 100%;
}
.atlas.atlas-mobile .atlas-mobile-primary > label { min-width: 0; font-size: 0; letter-spacing: 0; }
.atlas.atlas-mobile .atlas-mobile-primary > label select {
  width: 100%; max-width: none; height: 44px; padding: 8px 22px 8px 8px;
  font-size: 16px; line-height: 1.2; border: 1px solid var(--line);
  background: var(--paper); text-overflow: ellipsis;
}
.atlas.atlas-mobile .atlas-mobile-primary > button {
  display: grid; place-items: center; padding: 0; width: 44px; height: 44px;
}
.atlas.atlas-mobile .atlas-mobile-tools > summary {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 44px; padding: 6px; border: 1px solid #a9ad9f;
  font-size: 13px; cursor: pointer; list-style: none;
}
.atlas.atlas-mobile .atlas-mobile-tools > summary::-webkit-details-marker { display: none; }
.atlas.atlas-mobile .atlas-mobile-tools > summary::after { content: '+'; font-size: 16px; }
.atlas.atlas-mobile .atlas-mobile-tools[open] > summary { background: var(--dark); color: var(--paper); }
.atlas.atlas-mobile .atlas-mobile-tools.has-filter:not([open]) > summary { border-color: var(--accent); color: var(--accent); }
.atlas.atlas-mobile .atlas-mobile-tools[open] > summary::after { content: '\2212'; }
.atlas.atlas-mobile .atlas-tools-panel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 6;
  max-height: min(420px,65dvh); overflow-y: auto; overscroll-behavior: contain;
  padding: 16px; border: 1px solid var(--line); background: var(--paper);
  box-shadow: 0 12px 25px #172b2233;
}
.atlas.atlas-mobile .atlas-tools-panel > label { display: block; font-size: 13px; }
.atlas.atlas-mobile .atlas-tools-panel select { min-height: 44px; font-size: 16px; margin: 4px 0 12px; padding: 8px; }
.atlas.atlas-mobile .atlas-tools-panel > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.atlas.atlas-mobile .atlas-tools-panel button { min-height: 44px; padding: 8px; font-size: 13px; line-height: 1.4; }
.atlas.atlas-mobile .atlas-tools-panel .atlas-slideshow { margin: 0; }
.atlas.atlas-mobile .atlas-tools-done { width: 100%; margin-top: 12px; background: var(--dark); color: var(--paper); }
.atlas.atlas-mobile :is(button,summary,select,a):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.atlas.atlas-mobile .atlas-layout { grid-template-columns: minmax(0,1fr); min-height: 0; }
.atlas.atlas-mobile .atlas-map-wrap { min-height: 0; height: clamp(300px,52svh,480px); }
.atlas.atlas-mobile .atlas-map { min-height: 0; }
.atlas.atlas-mobile .atlas-gesture-help {
  top: auto; bottom: 56px; left: 8px; right: auto; max-width: calc(100% - 72px);
  font-size: 11px; line-height: 1.35; padding: 5px 7px; box-shadow: none;
}
.atlas.atlas-mobile .atlas-tooltip { display: none; }
.atlas.atlas-mobile .maplibregl-ctrl-group button { width: 44px; height: 44px; }
.atlas.atlas-mobile .maplibregl-ctrl-compass { display: none; }
.atlas.atlas-mobile .maplibregl-ctrl-attrib, .atlas.atlas-mobile .maplibregl-ctrl-scale { font-size: 11px; }
.atlas.atlas-mobile .maplibregl-ctrl-attrib.maplibregl-compact { min-width: 44px; min-height: 44px; padding: 0; }
.atlas.atlas-mobile .maplibregl-ctrl-attrib.maplibregl-compact-show { padding: 8px 48px 8px 8px; }
.atlas.atlas-mobile .maplibregl-ctrl-attrib-button { width: 44px; height: 44px; background-size: 24px; background-repeat: no-repeat; background-position: center; }
.atlas.atlas-mobile .atlas-card { display: block; position: relative; border-top: 1px solid var(--line); }
.atlas.atlas-mobile .atlas-picture { position: absolute; top: 14px; left: 12px; width: 76px; height: 90px; min-height: 0; }
.atlas.atlas-mobile .atlas-badge { display: none; }
.atlas.atlas-mobile .atlas-placeholder { padding: 8px; }
.atlas.atlas-mobile .atlas-placeholder > span { font-size: 18px; letter-spacing: -1px; }
.atlas.atlas-mobile .atlas-placeholder > p { display: none; }
.atlas.atlas-mobile .atlas-card-copy { display: block; padding: 12px 12px 4px 100px; }
.atlas.atlas-mobile .atlas-location { font-size: 11px; margin: 0 0 4px; line-height: 1.3; }
.atlas.atlas-mobile .atlas-card h3 { font-size: 18px; line-height: 1.2; overflow-wrap: break-word; }
.atlas.atlas-mobile .atlas-mobile-status { display: block; font-size: 11px; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.atlas.atlas-mobile .atlas-description { display: none; }
.atlas.atlas-mobile .atlas-link { display: inline-flex; align-items: center; margin: 0; min-height: 44px; font-size: 14px; gap: 12px; }
.atlas.atlas-mobile .atlas-paging { margin: 4px 0 0 -88px; padding: 0; border-top: 1px solid var(--line); }
.atlas.atlas-mobile .atlas-counter { font-size: 12px; }
.atlas.atlas-mobile .atlas-bottom { font-size: 11px; margin-top: 10px; gap: 2px; }
.atlas.atlas-mobile.atlas-fullscreen, .atlas.atlas-mobile:fullscreen {
  display: flex; flex-direction: column; width: 100%; height: 100dvh;
  min-height: 0; overflow: hidden;
  padding: env(safe-area-inset-top) max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left)) !important;
}
.atlas.atlas-mobile.atlas-fullscreen .atlas-toolbar, .atlas.atlas-mobile:fullscreen .atlas-toolbar { flex: 0 0 auto; border-top: 0; }
.atlas.atlas-mobile.atlas-fullscreen .atlas-layout, .atlas.atlas-mobile:fullscreen .atlas-layout {
  flex: 1; min-height: 0; grid-template-rows: minmax(0,1fr) auto;
}
.atlas.atlas-mobile.atlas-fullscreen .atlas-map-wrap, .atlas.atlas-mobile:fullscreen .atlas-map-wrap { min-height: 0; height: auto; }
.atlas.atlas-mobile.atlas-fullscreen .atlas-bottom, .atlas.atlas-mobile:fullscreen .atlas-bottom,
.atlas.atlas-mobile.atlas-fullscreen [data-map-interaction], .atlas.atlas-mobile:fullscreen [data-map-interaction] { display: none; }
@media (orientation:landscape) and (max-height:500px) {
  .atlas.atlas-mobile.atlas-fullscreen .atlas-layout { grid-template-columns: minmax(0,1fr) 225px; grid-template-rows: minmax(0,1fr); }
  .atlas.atlas-mobile.atlas-fullscreen .atlas-card { overflow-y: auto; }
  .atlas.atlas-mobile.atlas-fullscreen .atlas-picture { width: 52px; height: 64px; }
  .atlas.atlas-mobile.atlas-fullscreen .atlas-card-copy { padding-left: 76px; }
  .atlas.atlas-mobile.atlas-fullscreen .atlas-paging { margin-left: -64px; }
}

.atlas-construction-legend { position:absolute; z-index:2; bottom:34px; left:12px; right:12px; width:fit-content; max-width:calc(100% - 24px); display:flex; align-items:center; gap:10px; margin:0; padding:8px 12px; background:var(--paper); color:var(--ink); font-size:12px; line-height:1.5; pointer-events:none; }
.atlas-construction-legend[hidden] { display:none; }
.atlas.atlas-mobile .atlas-construction-legend { bottom:100px; left:8px; right:8px; max-width:calc(100% - 16px); }
.atlas-construction-legend > span { flex:0 0 12px; width:12px; height:12px; border:2px solid var(--paper); border-radius:50%; background:var(--accent); box-shadow:0 0 0 3px #c44b2c55; }
.atlas-current-projects { margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); background: var(--paper); }
.atlas-current-projects[hidden] { display: none; }
.atlas-current-projects > p { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.atlas-current-projects nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.atlas-current-projects a { display: grid; grid-template-columns: 1fr auto; gap: 6px; border-top: 1px solid var(--line); padding: 12px 0; min-height: 44px; font-size: 15px; }
.atlas-current-projects a strong { grid-column: 1 / -1; font-weight: 500; }
.atlas-current-projects a > span { font-size: 13px; color: var(--muted); }
.atlas-current-projects a:hover strong { color: var(--accent); }
@media(max-width:760px) { .atlas-current-projects nav { grid-template-columns: repeat(2,minmax(0,1fr)); } }
