/* Central Okanagan service atlas */
.service-atlas {
  --atlas-ink: #192e36;
  --atlas-copper: #9f522a;
  --atlas-rule: #d0d6cc;
  --atlas-warm: #fcfbf4;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(17rem, .78fr);
  align-items: start;
  gap: clamp(28px, 4.5vw, 82px);
  margin: 0 0 clamp(48px, 7vw, 100px);
  color: var(--atlas-ink);
}
.areas-page .page-intro {
  padding-bottom: clamp(26px, 3vw, 46px);
}
.atlas-map, .atlas-directory { min-width: 0; }
.atlas-plane {
  position: relative;
  perspective: 1100px;
  border-radius: 15px;
}
.atlas-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 6 / 5;
  border: 1px solid #a8b6a8;
  border-radius: inherit;
  background: #e3e7d6;
  box-shadow: 0 1px 2px #142d2c19, 0 10px 26px -18px #102c2d70;
}
.atlas-surface::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 4;
  pointer-events: none;
  border: 1px solid #344f4c3b;
  border-radius: 9px;
}
.atlas-topography, .atlas-regions, .atlas-cursor-light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.atlas-topography { object-fit: fill; }
.atlas-regions { overflow: visible; pointer-events: none; }
.atlas-region {
  fill: #ffffec0a;
  stroke: #52685e80;
  stroke-width: .8px;
}
.atlas-region path {
  cursor: pointer;
  pointer-events: visiblePainted;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.atlas-region.is-active, .atlas-region:hover {
  fill: #e6a4514d;
  stroke: #9a592c;
  stroke-width: 1.5px;
}
.atlas-cursor-light {
  pointer-events: none;
  background: radial-gradient(ellipse 31% 34% at var(--light-x, 50%) var(--light-y, 50%), #fff9dc64, transparent);
  opacity: 0;
}
.atlas-north {
  position: absolute;
  top: 6%;
  left: 6%;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #253c3a;
  font: 700 .66rem/1 var(--sans);
  letter-spacing: .03em;
  text-shadow: 0 0 4px var(--atlas-warm);
  pointer-events: none;
}
.atlas-north svg { width: 15px; height: 24px; }
.atlas-lake {
  position: absolute;
  left: 58.8%;
  top: 24.6%;
  color: #fff9e7;
  font: italic clamp(11px, 1.1vw, 16px)/1.2 Georgia, serif;
  letter-spacing: .08em;
  white-space: nowrap;
  text-shadow: 0 1px 3px #304e51;
  transform: translate(-50%, -50%) rotate(-83deg);
  pointer-events: none;
}
.atlas-pin {
  --dot-size: 14px;
  position: absolute;
  z-index: 2;
  left: var(--pin-x);
  top: var(--pin-y);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 44px;
  color: #243a3b;
  text-decoration: none;
  white-space: nowrap;
  transform: translate(calc(var(--dot-size) / -2), -50%);
  -webkit-tap-highlight-color: transparent;
}
.atlas-pin[data-community="west-kelowna"] {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + var(--dot-size) / 2), -50%);
}
.atlas-pin i {
  z-index: 1;
  display: grid;
  flex: 0 0 var(--dot-size);
  place-items: center;
  width: var(--dot-size);
  height: var(--dot-size);
  background: #2d4747;
  border: 2px solid #fffff4;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #35514d, 0 1px 3px #1a30334d;
}
.atlas-pin span {
  display: block;
  padding: .43em .62em;
  border: 1px solid #bcc3ae;
  border-radius: 5px;
  background: #fffef3f5;
  box-shadow: 0 2px 4px #1b383225;
  font: 700 clamp(.75rem, 1vw, .98rem)/1.1 var(--sans);
  letter-spacing: -.015em;
}
.atlas-pin.is-active, .atlas-pin:focus-visible, .atlas-pin:hover { z-index: 3; }
.atlas-pin.is-active span, .atlas-pin:focus-visible span, .atlas-pin:hover span {
  color: #fffdf5;
  border-color: #283e3d;
  background: #243b3b;
  box-shadow: 0 2px 8px #293c3538;
}
.atlas-pin.is-active i, .atlas-pin:focus-visible i, .atlas-pin:hover i {
  background: #c36833;
  box-shadow: 0 0 0 1px #78492b, 0 0 0 5px #c9833e38, 0 0 0 9px #fcf1c323;
}
.atlas-pin:focus-visible { outline-offset: 2px; border-radius: 4px; }
.atlas-caption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 1rem;
  padding: .8rem .15rem 0;
  font: 400 .73rem/1.45 var(--sans);
  color: #52605a;
}
.atlas-caption strong { color: #354640; font-size: .79rem; }
.atlas-caption a { text-decoration-color: #939d94; }
.atlas-directory { padding-top: clamp(3px, 1vw, 16px); }
.atlas-directory h2 {
  margin: 0 0 clamp(14px, 1.8vw, 28px);
  font: 400 clamp(1.85rem, 2.7vw, 2.95rem)/1.08 var(--serif);
  letter-spacing: -.043em;
}
.atlas-places {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--atlas-rule);
}
.atlas-place {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--atlas-rule);
  background: transparent;
}
.atlas-place-link {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 15px);
  flex: 1;
  min-width: 0;
  min-height: clamp(46px, 4.1vw, 63px);
  padding: 7px 4px;
  color: var(--atlas-ink);
  text-decoration: none;
  font: 700 clamp(.96rem, 1.25vw, 1.21rem)/1.2 var(--sans);
  letter-spacing: -.028em;
}
.atlas-place-link:hover, .atlas-place-link:focus-visible { text-decoration: underline; }
.atlas-place-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin: 0 3px;
  border: 1px solid #697e72;
  border-radius: 50%;
}
.atlas-place.is-active .atlas-place-dot {
  background: var(--atlas-copper);
  border-color: var(--atlas-copper);
  box-shadow: 0 0 0 3px #b8774125;
}
.atlas-place.is-active { background: linear-gradient(90deg, #d3b98f1d, transparent 85%); }
.atlas-toggle {
  align-self: center;
  display: grid;
  width: 44px;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #4d6155;
}
.atlas-toggle:hover, .atlas-toggle:focus-visible { background: #e8ece3; color: var(--atlas-ink); }
.atlas-toggle svg { width: 16px; height: 16px; }
.atlas-toggle[aria-expanded="true"] .atlas-plus-stem { display: none; }
.atlas-details { margin-top: clamp(16px, 1.8vw, 28px); }
.atlas-detail {
  position: relative;
  padding: clamp(17px, 1.9vw, 28px);
  border-radius: 10px;
  background: #203c3c;
  color: #fffdf2;
}
.atlas-detail h3 {
  margin: 0 0 9px;
  font: 400 clamp(1.55rem, 2.2vw, 2.15rem)/1.1 var(--serif);
  letter-spacing: -.035em;
}
.atlas-detail p {
  color: #ecf0e5;
  font: 400 clamp(.9rem, 1vw, 1rem)/1.5 var(--sans);
}
.atlas-detail-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .6em;
  margin: .45rem 0 -.45rem;
  color: #fff5da;
  text-decoration: underline;
  text-decoration-color: #c3a170;
  text-underline-offset: 4px;
  font: 700 .94rem/1.3 var(--sans);
}
.atlas-detail-link:focus-visible { outline-color: #ffd59c; }
.atlas-detail-link svg { width: 17px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .atlas-surface { transition: transform 180ms ease-out, box-shadow 180ms ease-out; }
  .atlas-plane.has-pointer .atlas-surface {
    transform: rotateX(var(--atlas-rx)) rotateY(var(--atlas-ry));
    box-shadow: 0 2px 4px #142d2c22, 0 15px 31px -20px #102c2d80;
  }
  .atlas-cursor-light { transition: opacity .16s; }
  .atlas-plane.has-pointer .atlas-cursor-light { opacity: 1; }
}
@media (max-width: 820px) {
  .service-atlas { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .atlas-directory { padding-top: 0; }
  .atlas-directory h2 { margin-bottom: 14px; }
  .atlas-pin span { font-size: clamp(.75rem, 2.6vw, .92rem); }
  .atlas-caption { justify-content: flex-start; }
}
@media (max-width: 820px) and (hover: none) {
  .atlas-place { flex-wrap: wrap; }
  .atlas-place .atlas-detail { flex: 1 0 100%; margin-bottom: 10px; }
  .atlas-details:empty { display: none; }
}
@media (max-width: 420px) {
  .atlas-pin { --dot-size: 12px; gap: 2px; }
  .atlas-pin span { padding: .4em .42em; }
  .atlas-north svg { width: 12px; height: 19px; }
  .atlas-caption { font-size: .69rem; }
}
@media print {
  .service-atlas { grid-template-columns: 1fr; }
  .atlas-directory { break-inside: avoid; }
  .atlas-toggle { display: none; }
}
.atlas-credits { text-align: right; }
.atlas-credits summary {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: #929c90;
  text-underline-offset: 3px;
}
.atlas-credits summary::after {
  content: "+";
  font-size: .9rem;
  font-weight: 700;
}
.atlas-credits[open] { flex: 1 0 55%; }
.atlas-credits[open] summary::after { content: "−"; }
.atlas-credits p { margin: .35em 0 0 auto; max-width: 44em; }
@media (max-width: 820px) { .atlas-caption { justify-content: space-between; } }
