/* E.L Areas Served — 3D satellite territory map (rev el-sheet-slides-20261105).
   Ported from the approved mock (areas-served-map-mock-e-l, Chris's verdict
   2026-11-04 "Map is cool"). All classes namespaced am- so nothing collides
   with site-5.css. MapLibre's own stylesheet loads separately from the CDN. */

.am-card{
  border:1px solid #D7E1EC; border-radius:20px; overflow:hidden;
  background:#fff; margin-top:28px;
}
.am-wrap{position:relative;}
#amMap{height:430px; width:100%; background:#14231A;}
@media (min-width:900px){ #amMap{height:540px;} }
.maplibregl-ctrl-attrib{display:none;}

/* Fallback line (shown until the map proves it can load; stays if it can't) */
.am-fallback{
  padding:18px; font-size:15px; line-height:1.5; color:#4A5B73; background:#fff;
}
.am-fallback a{color:#0059B1; font-weight:600;}

/* MapLibre HTML markers — NOTE: no `position` on marker element classes;
   .maplibregl-marker owns positioning. Inner clusters position freely. */
.am-town-marker, .am-home-marker{cursor:pointer; -webkit-tap-highlight-color:transparent;}
.am-pin-cluster{position:relative; width:24px; height:32px; transition:transform .18s ease; transform-origin:50% 100%;}
.am-town-marker.selected .am-pin-cluster{transform:scale(1.3);}
.am-pin-cluster svg{display:block; filter:drop-shadow(0 2px 3px rgba(0,0,0,.45));}
.am-pin-label{
  position:absolute; left:27px; top:12px; white-space:nowrap;
  font-size:11px; font-weight:700; color:#fff; letter-spacing:.01em;
  pointer-events:none;
  text-shadow:
    1.5px 0 0 rgba(18,24,14,.88), -1.5px 0 0 rgba(18,24,14,.88),
    0 1.5px 0 rgba(18,24,14,.88), 0 -1.5px 0 rgba(18,24,14,.88),
    1px 1px 0 rgba(18,24,14,.88), -1px -1px 0 rgba(18,24,14,.88),
    1px -1px 0 rgba(18,24,14,.88), -1px 1px 0 rgba(18,24,14,.88),
    0 2px 6px rgba(0,0,0,.5);
}
.am-town-marker.am-label-left .am-pin-label{left:auto; right:27px;}
.am-home-cluster{position:relative; width:36px; height:36px; transition:transform .18s ease; transform-origin:50% 50%;}
.am-home-marker.selected .am-home-cluster{transform:scale(1.18);}
.am-home-badge{
  width:36px; height:36px; border-radius:50%; background:#E8641C;
  border:3px solid #fff; box-shadow:0 0 0 1.5px rgba(20,25,15,.35), 0 3px 8px rgba(0,0,0,.45);
  display:flex; align-items:center; justify-content:center;
}
.am-home-label{
  position:absolute; left:46px; top:-30px; display:flex; flex-direction:column;
  pointer-events:none; white-space:nowrap;
}
.am-home-label-name{
  font-size:13.5px; font-weight:800; color:#fff; letter-spacing:.02em; line-height:1.15;
  text-shadow:
    1.5px 0 0 rgba(18,24,14,.88), -1.5px 0 0 rgba(18,24,14,.88),
    0 1.5px 0 rgba(18,24,14,.88), 0 -1.5px 0 rgba(18,24,14,.88),
    1px 1px 0 rgba(18,24,14,.88), -1px -1px 0 rgba(18,24,14,.88),
    1px -1px 0 rgba(18,24,14,.88), -1px 1px 0 rgba(18,24,14,.88),
    0 2px 6px rgba(0,0,0,.5);
}
.am-home-label-sub{
  font-size:11px; font-weight:800; color:#FFA03C; line-height:1.3;
  text-shadow:
    1.5px 0 0 rgba(18,24,14,.85), -1.5px 0 0 rgba(18,24,14,.85),
    0 1.5px 0 rgba(18,24,14,.85), 0 -1.5px 0 rgba(18,24,14,.85),
    1px 1px 0 rgba(18,24,14,.85), -1px -1px 0 rgba(18,24,14,.85),
    1px -1px 0 rgba(18,24,14,.85), -1px 1px 0 rgba(18,24,14,.85);
}

/* Compass rose */
.am-compass{
  position:absolute; top:10px; right:10px; z-index:5; pointer-events:none;
  display:flex; flex-direction:column; align-items:center;
}
.am-compass-n{
  font-size:15px; font-weight:800; color:#fff; line-height:1; margin-bottom:2px;
  text-shadow:
    1.5px 0 0 rgba(18,24,14,.9), -1.5px 0 0 rgba(18,24,14,.9),
    0 1.5px 0 rgba(18,24,14,.9), 0 -1.5px 0 rgba(18,24,14,.9),
    1px 1px 0 rgba(18,24,14,.9), -1px -1px 0 rgba(18,24,14,.9),
    1px -1px 0 rgba(18,24,14,.9), -1px 1px 0 rgba(18,24,14,.9);
}
.am-compass svg{display:block; filter:drop-shadow(0 2px 5px rgba(0,0,0,.4));}

.am-hint{padding:10px 14px 0; font-size:13px; color:#4A5B73; background:#fff;}
.am-caption{padding:5px 14px 0; font-size:13px; line-height:1.45; color:#4A5B73; background:#fff;}
.am-credit{padding:6px 14px 11px; font-size:11px; color:#4A5B73; text-align:right; background:#fff;}

/* Town sheet (card under the map) */
.am-sheet{
  display:none; margin-top:14px; border:1.5px solid #06204A; border-radius:20px;
  padding:18px; background:#fff;
}
.am-sheet.open{display:block;}
.am-sheet .am-sheet-top{display:flex; align-items:flex-start; justify-content:space-between; gap:10px;}
.am-sheet h3{font-size:22px; color:#06204A; line-height:1.15;}
.am-sheet .am-home-tag{
  display:inline-block; margin-left:8px; vertical-align:middle;
  font-family:"IBM Plex Mono",ui-monospace,monospace; font-size:10.5px; letter-spacing:.1em;
  text-transform:uppercase; color:#fff; background:#0059B1;
  border-radius:999px; padding:3px 9px; font-weight:500;
}
.am-sheet p{font-size:15px; line-height:1.5; color:#4A5B73; margin:8px 0 16px;}
.am-sheet-close{
  font:inherit; background:none; border:none; cursor:pointer; color:#4A5B73;
  font-size:22px; line-height:1; padding:2px 6px;
}
.am-actions{display:flex; gap:10px; flex-wrap:wrap;}
.am-btn{
  flex:1 1 150px; text-align:center; text-decoration:none; font-weight:600; font-size:15.5px;
  border-radius:999px; padding:13px 16px; display:inline-block; font-family:inherit;
}
.am-btn-book{background:#0059B1; color:#fff;}
.am-btn-call{background:#fff; color:#06204A; border:1.5px solid #06204A;}

/* Selected town in the A–Z list under the map (the list itself is site-5.css) */
#areas .towns li.am-active{background:#EEF3F8;}
#areas .towns li.am-active a{color:#0059B1; font-weight:600;}

/* "See <Town>" link (rev el-picture-fix-20261105): the town's picture
   lives on its dedicated page now, not inside this sheet. */
.am-see{
  display:inline-block; margin:0 0 14px; font-weight:600; font-size:15.5px;
  color:#0059B1; text-decoration:none;
}
.am-see[hidden]{display:none;}
