:root {
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,a,input {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button:disabled {
  opacity: .32;
  cursor: default;
}

a {
  color: inherit;
}

button:focus-visible,a:focus-visible,input:focus-visible,[tabindex="0"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button {
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}

.atlas {
  max-width: 1800px;
  margin: auto;
  padding: 0 36px;
}

.expand {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 12px 17px;
  font-size: 11px;
}

.kicker {
  font-size: 9px;
  letter-spacing: .18em;
  font-weight: 750;
  margin: 0 0 14px;
}

.atlas-layout {
  grid-template-columns: minmax(0,1fr) 310px;
  gap: 16px;
}

.map-shell {
  position: relative;
  min-width: 0;
  height: 710px;
  overflow: hidden;
  border-radius: 0;
  background: #e8eef0;
  isolation: isolate;
}

.map-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.map-canvas.dragging {
  cursor: grabbing;
}

.map-canvas:focus-visible {
  outline-offset: -4px;
}

#map-svg {
  width: 100%;
  height: 100%;
  display: block;
  background: #e8eef0;
  user-select: none;
}

#terrain {
  pointer-events: none;
}

.map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  font-size: 13px;
}

.map-loading span {
  width: 20px;
  height: 20px;
  border: 2px solid #cddbec;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

.map-topbar {
  position: absolute;
  z-index: 5;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  pointer-events: none;
}

.map-topbar>* {
  pointer-events: auto;
}

.view-switch {
  display: flex;
  gap: 3px;
  background: var(--photo-label);
  backdrop-filter: none;
}

.view-switch button {
  border: 0;
  background: transparent;
  font-size: 11px;
  white-space: nowrap;
}

.view-switch button span {
  margin-right: 7px;
  font-size: 9px;
  opacity: 1;
}

.layers-toggle {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--photo-label);
  border-radius: var(--radius-panel);
}

.layers-panel {
  position: absolute;
  top: 80px;
  right: 20px;
  z-index: 6;
  background: white;
  padding: 18px;
  border-radius: var(--radius-panel);
  box-shadow: none;
  font-size: 12px;
  min-width: 215px;
  border: 1px solid var(--line);
}

.layers-panel label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 37px;
  cursor: pointer;
}

.layers-panel input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
}

.layers-panel .original-switch {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 8px;
  font-size: 10px;
}

.map-legend {
  position: absolute;
  bottom: 60px;
  left: 20px;
  z-index: 4;
  backdrop-filter: none;
  display: flex;
  gap: 13px;
  border-radius: var(--radius-panel);
  padding: 13px 16px;
  pointer-events: none;
}

.map-legend>span {
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.map-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4786ea;
}

.map-legend .red {
  background: #e16564;
}

.map-legend .black {
  background: #303c48;
}

.map-legend .lift {
  width: 12px;
  height: 0;
  border-top: 1.5px dashed #344651;
  border-radius: 0;
  background: transparent;
}

.map-controls {
  position: absolute;
  z-index: 5;
  right: 20px;
  bottom: 60px;
  display: flex;
  align-items: center;
  flex-direction: column;
  border-radius: var(--radius-panel);
  background: var(--photo-label);
  box-shadow: none;
  overflow: hidden;
}

.map-controls button {
  border: 0;
  background: transparent;
  width: 44px;
  height: 42px;
  font-size: 24px;
  display: grid;
  place-items: center;
  min-height: 44px;
}

.map-controls span {
  font-size: 9px;
  line-height: 20px;
  color: var(--muted);
}

.map-controls button:last-child {
  border-top: 1px solid var(--line);
  height: 45px;
}

.scene-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 22px;
  backdrop-filter: none;
  font-size: 9px;
  letter-spacing: .03em;
  z-index: 4;
}

.scene-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.map-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.map-marker {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%,-50%);
  padding: 8px 11px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  transition: background .2s,color .2s,opacity .2s;
}

.map-marker:hover,.map-marker:focus-visible {
  z-index: 4;
  box-shadow: 0 4px 20px #253e4450;
}

.map-marker.place-villa {
  min-height: 43px;
  z-index: 3;
}

.map-marker.place-villa:after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: calc(50% - 6px);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--accent);
}

.map-marker .marker-symbol {
  font-size: 15px;
  margin-right: 7px;
  font-weight: 400;
}

.map-marker.landscape {
  font-weight: 650;
  font-size: 12px;
  letter-spacing: -.02em;
  box-shadow: none;
  padding: 12px 15px;
}

.map-marker.landscape small {
  display: block;
  font-size: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: .04em;
}

.map-marker[aria-pressed=true] small {
  color: #dce8ff;
}

.route-stroke {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  transition: opacity .18s,stroke-width .18s;
}

.lift-halo {
  stroke: #ffffffad;
}

.lift-color {
  stroke: #314c53;
}

.route-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 16;
  vector-effect: non-scaling-stroke;
  pointer-events: stroke;
  cursor: pointer;
}

.route-group.active .route-halo {
  stroke: #fff;
  stroke-width: 10;
}

.route-group.active .route-color {
  stroke-width: 5;
  filter: drop-shadow(0 1px 3px #26476b44);
}

.route-group.active .lift-color {
  stroke-width: 3;
}

.map-canvas.has-active .route-group:not(.active) {
  opacity: .36;
}

.map-tooltip {
  position: absolute;
  z-index: 10;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 15px;
  font-size: 11px;
  color: white;
  border-radius: var(--radius-panel);
  pointer-events: none;
  white-space: nowrap;
}

.trail-badge {
  position: absolute;
  transform: translate(-50%,-50%);
  min-width: 21px;
  height: 21px;
  background: #3d80da;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 8px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 6px #18364b22;
  pointer-events: auto;
  cursor: pointer;
  padding: 0 3px;
}

.trail-badge.active {
  min-width: 28px;
  height: 28px;
  z-index: 3;
  box-shadow: 0 0 0 4px #ffffff90;
}

dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  max-width: 580px;
  width: calc(100% - 36px);
  padding: 40px;
}

dialog::backdrop {
  backdrop-filter: none;
}

dialog h2 {
  font-size: 30px;
  margin: 0 0 25px;
}

dialog p:not(.kicker) {
  font-size: 12px;
  line-height: 1.85;
}

dialog a {
  font-size: 12px;
  color: var(--accent);
}

.dialog-close {
  position: absolute;
  right: 15px;
  top: 12px;
  background: none;
  border: 0;
  font-size: 27px;
  width: 35px;
  height: 35px;
  min-height: 44px;
}

.atlas:fullscreen {
  max-width: none;
  width: 100vw;
  height: 100dvh;
  overflow: auto;
}

.is-embedded .atlas {
  padding: 0 22px;
  border-radius: var(--radius-panel);
}

.is-embedded .map-shell {
  height: 560px;
}

@media (min-width:1600px) {
  .atlas-layout {
    grid-template-columns: minmax(0,1fr) 340px;
  }
  .map-shell {
    height: 800px;
    border-radius: 0;
  }
}

@media (max-width:1100px) {
  .atlas {
    padding: 0 22px;
  }
  .atlas-layout {
    grid-template-columns: minmax(0,1fr) 275px;
  }
  .map-topbar {
    top: 14px;
    left: 14px;
    right: 14px;
  }
  .view-switch button span {
    display: none;
  }
  .map-legend {
    left: 14px;
    gap: 9px;
    padding: 11px;
  }
  .map-controls {
    right: 14px;
    border: 1px solid var(--line);
  }
}

@media (max-width:780px) {
  .expand {
    padding: 10px;
  }
  .expand span {
    display: none;
  }
  .kicker {
    font-size: 8px;
    letter-spacing: .15em;
    margin-bottom: 12px;
  }
  .atlas-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .map-shell,.is-embedded .map-shell {
    border-radius: 0;
  }
  .map-topbar {
    top: 12px;
    left: 10px;
    right: 10px;
  }
  .view-switch {
    border-radius: var(--radius-control);
  }
  .layers-toggle {
    border-radius: var(--radius-panel);
    flex-shrink: 0;
  }
  .layers-panel {
    right: 10px;
  }
  .map-legend {
    left: 10px;
    bottom: 50px;
    gap: 8px;
    flex-wrap: wrap;
    padding: 9px 10px;
    border-radius: var(--radius-panel);
  }
  .map-controls {
    right: 10px;
    bottom: 50px;
    border: 1px solid var(--line);
  }
  .map-controls button {
    width: 40px;
    height: 40px;
    min-height: 44px;
  }
  .scene-caption {
    height: 36px;
    font-size: 8px;
    padding: 0 14px;
  }
  .map-marker {
    font-size: 9px;
    padding: 7px 9px;
  }
  .map-marker.landscape {
    font-size: 10px;
    padding: 9px 11px;
  }
  .map-marker .marker-symbol {
    font-size: 12px;
    margin-right: 4px;
  }
  .atlas:fullscreen {
    padding: 0 10px;
  }
  .atlas:fullscreen .atlas-layout {
    display: block;
  }
  .atlas:fullscreen .map-shell {
    height: calc(100dvh - 120px);
    min-height: 0;
  }
  .map-tooltip {
    font-size: 10px;
    bottom: 105px;
    max-width: 80%;
    white-space: normal;
  }
  .is-embedded .atlas {
    border-radius: var(--radius-panel);
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Geographic layers share the terrain projection; labels never move their anchors. */

#water-lines {
  fill: none;
  stroke-width: 3;
  pointer-events: none;
}

#parking-areas {
  stroke-width: .7;
  pointer-events: none;
}

#street-casings {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  pointer-events: none;
}

#street-lines {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  pointer-events: none;
}

#building-shadows {
  pointer-events: none;
}

#buildings {
  stroke-width: .7;
  stroke-linejoin: round;
}

#school-belt {
  stroke-width: 2.2;
  pointer-events: none;
}

.map-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.place-leader line {
  stroke: #6b859b;
  stroke-width: 1.2;
  stroke-linecap: round;
}

.place-leader circle {
  fill: #fff;
  stroke: #456781;
  stroke-width: 2;
}

.leader-villa circle {
  fill: #235bd6;
  stroke: white;
  stroke-width: 2.5;
  filter: drop-shadow(0 1px 3px #235bd655);
}

.map-marker.place-villa:after {
  display: none;
}

.street-label {
  position: absolute;
  white-space: nowrap;
  pointer-events: none;
  transform-origin: center;
}

@media (max-width:420px) {
  .view-switch button {
    padding: 9px 8px;
    font-size: 9px;
    min-height: 44px;
  }
  .map-topbar {
    gap: 5px;
  }
  .street-label {
    font-size: 9px;
  }
}

.north-indicator {
  position: absolute;
  right: 33px;
  top: 90px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 23px;
  text-shadow: 0 1px 4px white;
}

.north-indicator small {
  font-size: 8px;
  font-weight: 700;
}

.map-scale {
  position: absolute;
  z-index: 4;
  bottom: 13px;
  text-align: center;
  font-size: 8px;
  line-height: 13px;
  border-bottom: 1px solid #526b7d;
  pointer-events: none;
}

.map-scale:before,.map-scale:after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 4px;
}

.map-scale:before {
  left: 0;
}

.map-scale:after {
  right: 0;
}

.scene-caption>span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width:780px) {
  .north-indicator {
    right: 23px;
    top: 73px;
  }
  .map-scale {
    bottom: 10px;
  }
}

/* Quiet winter ground, continuous curves and a distinct school landmark. */

#water-lines {
  stroke-linecap: round;
  stroke-linejoin: round;
}

#building-shadows {
  fill: #98aeb124;
}

.route-halo {
  stroke: #ffffffed;
  stroke-width: 6.5;
}

.route-color {
  stroke-width: 2.8;
}

.lift-halo {
  stroke-width: 4;
}

.lift-color {
  stroke-width: 1.4;
  stroke-dasharray: 3 4;
}

.map-marker {
  border-radius: var(--radius-control);
}

.map-marker.place-villa {
  border-radius: var(--radius-control);
}

.map-marker.place-school,.map-marker.place-school[aria-pressed=true] {
  min-height: 43px;
  z-index: 3;
  border-radius: var(--radius-control);
}

.map-marker.place-school[aria-pressed=true] {
  background: #fbe5bd;
  border-color: #c9924e;
}

.leader-school circle {
  fill: #c18331;
  stroke: white;
  stroke-width: 2.5;
  filter: drop-shadow(0 1px 3px #b4763040);
}

#school-belt {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: none;
}

#school-belt .school-treads {
  stroke-linecap: butt;
}

@media (max-width:780px) {
  .map-marker.place-school {
    min-height: 39px;
  }
  .map-legend {
    row-gap: 7px;
  }
  .map-legend>span {
    font-size: 7.5px;
  }
}

/* Architectural winter atlas: quiet white surfaces, charcoal architecture, sand accent. */

:root {
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
}

.atlas {
  background: #faf9f6;
}

dialog h2 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -.045em;
}

.kicker {
  color: var(--ink);
}

.map-shell,#map-svg {
  background: #eeeee5;
}

.view-switch {
  border-radius: var(--radius-control);
  padding: 5px;
  box-shadow: none;
}

.view-switch button {
  border-radius: var(--radius-control);
}

.view-switch button[aria-pressed=true] {
  background: var(--accent);
  box-shadow: none;
  color: white;
}

.layers-toggle {
  border: 1px solid #e7e8df;
  min-height: 44px;
}

.map-controls button:hover {
  background: var(--surface);
}

.map-controls {
  border: 1px solid var(--line);
}

.map-loading {
  background: #f5f5ed;
}

.map-loading span {
  border-color: #d9ddce;
  border-top-color: #78846b;
}

.map-marker {
  color: #4a5449;
  border: 1px solid #e0e4da;
  box-shadow: none;
  background: #fffef9f5;
  min-height: 36px;
}

.map-marker[aria-pressed=true] {
  background: #68735f;
  color: #fff;
}

.map-marker.place-villa {
  background: var(--accent);
  color: white;
  border: 1px solid #ffffffb3;
  box-shadow: none;
  letter-spacing: .015em;
  padding: 12px 17px;
}

.map-marker.place-villa[aria-pressed=true] {
  background: var(--accent);
}

.map-marker.place-school,.map-marker.place-school[aria-pressed=true] {
  color: #6e552e;
  background: #fff9e9;
  border: 1px solid #cabb9a;
  box-shadow: none;
  padding: 11px 15px;
}

.map-marker.place-school .marker-symbol {
  color: #a3874d;
}

.map-marker.place-villa .marker-symbol {
  font-size: 18px;
}

.map-marker:focus-visible,button:focus-visible,a:focus-visible,input:focus-visible,[tabindex="0"]:focus-visible {
  outline-color: #829268;
}

.map-marker.landscape {
  color: #4a5449;
  background: #fffef9eb;
}

.map-marker.landscape[aria-pressed=true] {
  color: white;
  background: #68735f;
}

#buildings {
  stroke: none;
  fill: none;
  pointer-events: none;
}

.house {
  stroke-linejoin: round;
}

.villa-house,.villa-terrace,.school-area {
  pointer-events: visiblePainted;
  cursor: pointer;
}

.villa-house {
  filter: drop-shadow(1px 1px .5px #48564124);
}

#buildings .villa-footprint {
  fill: #f3ead8;
  stroke: #a99b79;
  stroke-width: 1;
  stroke-linejoin: round;
}

.school-zone {
  fill: url(#school-snow);
  stroke-linejoin: round;
}

.school-fence {
  fill: none;
  stroke: #baab8b;
  stroke-width: .4;
  stroke-linecap: round;
}

.site-label {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .15em;
  pointer-events: none;
}

.site-tree {
  pointer-events: none;
}

#site-ground,#site-details {
  pointer-events: none;
}

#site-details .school-details {
  pointer-events: visiblePainted;
  cursor: pointer;
}

#site-details {
  opacity: 0;
}

.close-view #site-details {
  opacity: 1;
}

#site-ground {
  transition: opacity .3s;
}

#building-shadows {
  stroke: none;
  filter: blur(.65px);
}

#street-casings {
  stroke: #cecfc6;
  opacity: .75;
}

#street-lines {
  stroke: #fdfbf5;
}

#parking-areas {
  fill: #d8d9ce;
  stroke: #efeee6;
}

#water-lines {
  stroke: #bdd1d0;
  opacity: .6;
}

.street-label {
  color: #71786a;
  text-shadow: 0 0 4px #fff,0 0 7px #fff;
  font-size: 9px;
  letter-spacing: .08em;
}

.north-indicator {
  color: #85917b;
}

.map-scale {
  color: #767e6c;
  border-color: #929c86;
}

.map-scale:before,.map-scale:after {
  background: #929c86;
}

.scene-dot {
  background: #899b77;
}

.scene-caption {
  background: #fcfcf7e8;
  color: #6b7363;
}

.map-legend {
  background: var(--photo-label);
  color: #656e60;
}

.map-legend .school {
  border-radius: var(--radius-panel);
  width: 11px;
  height: 7px;
  background: #ead5a8;
  border: 1px solid #bf9e61;
}

#school-belt {
  stroke: none;
}

#school-belt .school-halo {
  stroke: #fcf9ec;
  stroke-width: 3;
  stroke-dasharray: none;
  filter: none;
  opacity: 1;
}

#school-belt .school-track {
  stroke: #818878;
  stroke-width: 1.6;
  stroke-dasharray: none;
}

#school-belt .school-treads {
  stroke: #d5d6c2;
  stroke-width: 1;
  stroke-dasharray: .25 .4;
}

#school-belt path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

dialog {
  color: var(--ink);
  box-shadow: none;
}

dialog::backdrop {
  background: #29352855;
}

dialog p:not(.kicker) {
  color: var(--muted);
}

.map-tooltip {
  background: #485641;
}

@media (max-width:1100px) {
  .view-switch button {
    font-size: 10px;
    padding: 12px 10px;
    min-height: 44px;
  }
}

@media (max-width:780px) {
  .map-shell,.is-embedded .map-shell {
    height: 530px;
    border-radius: 0;
  }
  .map-marker.place-villa {
    padding: 10px 12px;
    background: var(--accent);
    color: white;
  }
  .map-marker.place-school {
    padding: 9px 11px;
  }
  .layers-toggle {
    width: 37px;
    height: 42px;
    min-height: 44px;
  }
  .view-switch {
    padding: 4px;
    gap: 0;
  }
  .map-legend {
    max-width: calc(100% - 67px);
  }
}

@media (max-width:360px) {
  .view-switch button {
    font-size: 8px;
    padding: 10px 6px;
    min-height: 44px;
  }
  .map-topbar {
    left: 8px;
    right: 8px;
  }
  .layers-toggle {
    width: 33px;
    min-height: 44px;
  }
}

.map-legend .villa-legend {
  display: none;
}

.home-view .map-legend .villa-legend {
  display: flex;
}

.home-view .map-legend>span:nth-child(n+2):nth-child(-n+5) {
  display: none;
}

.map-legend .villa {
  background: var(--accent);
  border-radius: var(--radius-panel);
  width: 10px;
  height: 8px;
}

.leader-villa line {
  stroke: #6d7961;
  stroke-width: 1;
}

.leader-school line {
  stroke: #b3a17e;
  stroke-width: 1;
}

/* Expanded K+K grounds: snow texture and softly outlined, connected activity spaces. */

.school-zone-shadow {
  fill: #a3936c;
  opacity: .09;
  filter: blur(.85px);
  pointer-events: none;
}

.school-zone {
  stroke: #bfa474;
  stroke-width: .38;
  fill-opacity: .88;
}

.school-area.selected .school-zone,.school-area:hover .school-zone {
  stroke: #a48a57;
  stroke-width: .5;
  fill-opacity: 1;
}

.school-grooming {
  fill: none;
  stroke: #fffcf2;
  stroke-width: .22;
  opacity: .5;
  pointer-events: none;
}

.school-house {
  pointer-events: visiblePainted;
  cursor: pointer;
  filter: drop-shadow(.3px .4px .25px #63513a19);
}

.school-carousel,.school-rope {
  pointer-events: visiblePainted;
}

#site-details .school-fence {
  stroke: #b6a681;
  stroke-width: .3;
  opacity: .75;
}

.places-hidden .school-house .site-label {
  display: none;
}

/* A rubber conveyor surface, metal sides and drive terminals distinguish it from a rail. */

#school-belt .belt-shadow {
  stroke: #6d7769;
  stroke-width: 3.7;
  opacity: .16;
  filter: blur(.22px);
}

#school-belt .belt-frame {
  stroke: #fdfbf3;
  stroke-width: 3.55;
}

#school-belt .belt-rail {
  stroke: #aab3a9;
  stroke-width: 2.95;
}

#school-belt .belt-rubber {
  stroke: #46534d;
  stroke-width: 2.05;
}

#school-belt .belt-grip {
  stroke: #778477;
  stroke-width: 1.7;
  stroke-dasharray: .14 .38;
  stroke-linecap: butt;
}

#school-belt .belt-terminal {
  stroke-dasharray: none;
}

.school-area-title {
  display: none;
  fill: #554c37;
  font-weight: 700;
  letter-spacing: .06em;
  paint-order: stroke fill;
  stroke: #fffdf7;
  stroke-width: .7;
  stroke-linejoin: round;
}

.site-labels-readable .school-area-title {
  display: block;
}

/* Regions open directly from their labels in the resort overview. */

.map-topbar {
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}

.map-topbar .layers-toggle {
  margin-left: auto;
  flex-shrink: 0;
}

.view-switch {
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.view-switch button {
  padding: 12px 11px;
  min-height: 44px;
}

.region-marker {
  position: absolute;
  transform: translate(-50%,-50%);
  border: 1px solid #ffffffd9;
  border-radius: var(--radius-control);
  padding: 11px 15px;
  background: #fffef9eb;
  box-shadow: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  pointer-events: auto;
  backdrop-filter: none;
}

.region-marker:hover {
  background: white;
  box-shadow: none;
}

.region-marker.resort-villa {
  background: #f5efdc;
  color: var(--ink);
  border-color: #fffdf3;
  box-shadow: none;
}

.resort-view .north-indicator,.resort-view .map-scale {
  display: none;
}

.resort-view #map-svg {
  background: #f3f3eb;
}

.resort-view .map-legend .villa-legend {
  display: none;
}

.resort-view .scene-dot {
  background: #9da589;
}

#resort-scene>image {
  pointer-events: none;
}

.trails-layer .route-color {
  stroke-width: 3;
}

.trails-layer .route-halo {
  stroke-width: 6;
  opacity: .88;
}

.lifts-layer .route-color {
  stroke-width: 1.6;
}

.lifts-layer .route-halo {
  stroke-width: 3.5;
}

.has-active .trails-layer .active .route-color {
  stroke-width: 4;
}

@media (min-width:781px) and (max-width:1150px) {
  .view-switch button {
    font-size: 10px;
    min-height: 44px;
  }
  .map-topbar {
    right: 14px;
  }
}

@media (max-width:780px) {
  .map-topbar {
    display: grid;
    grid-template-columns: minmax(0,1fr) 38px;
    gap: 7px;
  }
  .view-switch {
    display: flex;
    justify-content: space-between;
    min-width: 0;
    border: 1px solid var(--line);
  }
  .view-switch button {
    flex: 1;
    padding: 10px 4px;
    font-size: 9px;
    min-height: 44px;
  }
  .map-topbar .layers-toggle {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 38px;
    margin: 0;
  }
  .layers-panel {
    top: 66px;
    border: 1px solid var(--line);
  }
  .region-marker {
    padding: 8px 10px;
    font-size: 10px;
    border-radius: var(--radius-control);
  }
  .resort-view .map-legend {
    max-width: calc(100% - 68px);
  }
  .trails-layer .route-color {
    stroke-width: 2.4;
  }
  .trails-layer .route-halo {
    stroke-width: 4.7;
  }
}

@media (prefers-reduced-motion:reduce) {
  .region-marker {
    transition: none;
  }
}

.panorama-villa-anchor line {
  stroke: #8a805f;
  stroke-width: 1.3;
  stroke-linecap: round;
}

.panorama-villa-anchor path {
  fill: #4f5b50;
  stroke: #fff9df;
  stroke-width: 2;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px #39452c40);
}

/* Map-only presentation; all navigation stays on the map. */

.atlas-layout {
  display: block;
}

.map-shell {
  width: 100%;
  border-radius: 0;
}

a.map-marker {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.school-area-title {
  pointer-events: visiblePainted;
  cursor: pointer;
}

#scene-caption {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Embedded map widget: no separate page chrome or outer spacing. */

:root,body {
  background: transparent;
}

.atlas,.is-embedded .atlas {
  max-width: none;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 0;
}

.map-shell {
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.map-controls #expand {
  border-radius: 0;
}

.map-controls #expand span {
  display: none;
}

.map-info {
  position: absolute;
  right: 12px;
  bottom: 7px;
  z-index: 5;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #dce0d3;
  border-radius: 50%;
  background: var(--photo-label);
  color: var(--ink);
  font: 600 13px var(--sans);
  cursor: pointer;
}

.map-info:hover {
  background: white;
}

.map-attribution {
  position: absolute;
  bottom: 43px;
  left: 20px;
  z-index: 4;
  font-size: 8px;
  line-height: 14px;
  color: #59634f;
  background: var(--photo-label);
  padding: 1px 5px;
  border-radius: var(--radius-panel);
  pointer-events: none;
}

.map-scale {
  right: 54px;
}

.scene-caption {
  padding-right: 145px;
}

.resort-view .scene-caption {
  padding-right: 50px;
}

.atlas:fullscreen {
  padding: 0;
  background: #f5f5ed;
}

.atlas:fullscreen .map-shell {
  height: 100dvh;
  min-height: 0;
  border-radius: 0;
}

@media (max-width:780px) {
  .atlas,.is-embedded .atlas {
    padding: 0;
  }
  .map-attribution {
    left: 10px;
    bottom: 37px;
    font-size: 7px;
    line-height: 12px;
  }
  .map-info {
    right: 9px;
    bottom: 4px;
  }
  .map-scale {
    right: 47px;
  }
  .scene-caption {
    padding-right: 133px;
  }
}
