/* Local Leaflet 1.9.x map-layout essentials for FollowMyRace.live.
 * This file is served by your own GoDaddy host to prevent broken map tiles when
 * CDN stylesheets are blocked, unavailable, or cached incorrectly.
 * Leaflet JavaScript and OpenStreetMap tile images still require connectivity.
 */
#race-map.leaflet-container {
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:#e7eff0;
  font-family:'DM Sans',Arial,sans-serif;
  font-size:12px;
  line-height:1.5;
  touch-action:pan-x pan-y;
  cursor:grab;
}
#race-map.leaflet-container.leaflet-dragging {cursor:grabbing;}
#race-map .leaflet-pane,
#race-map .leaflet-tile,
#race-map .leaflet-marker-icon,
#race-map .leaflet-marker-shadow,
#race-map .leaflet-tile-container,
#race-map .leaflet-pane > svg,
#race-map .leaflet-pane > canvas,
#race-map .leaflet-zoom-box,
#race-map .leaflet-image-layer,
#race-map .leaflet-layer {
  position:absolute;
  top:0;
  left:0;
}
#race-map .leaflet-pane {z-index:400;}
#race-map .leaflet-tile-pane {z-index:200;}
#race-map .leaflet-overlay-pane {z-index:400;}
#race-map .leaflet-shadow-pane {z-index:500;}
#race-map .leaflet-marker-pane {z-index:600;}
#race-map .leaflet-tooltip-pane {z-index:650;}
#race-map .leaflet-popup-pane {z-index:700;}
#race-map .leaflet-map-pane canvas {z-index:100;}
#race-map .leaflet-map-pane svg {z-index:200;}
/* Critical: site-wide img {max-width:100%} must not resize map tiles. */
#race-map .leaflet-tile-pane img,
#race-map .leaflet-marker-pane img,
#race-map .leaflet-shadow-pane img,
#race-map img.leaflet-image-layer,
#race-map .leaflet-tile {
  display:block;
  max-width:none !important;
  max-height:none !important;
  width:auto;
  padding:0;
  border:0;
}
#race-map .leaflet-overlay-pane svg {max-width:none !important;max-height:none !important;}
#race-map .leaflet-tile {visibility:hidden;user-select:none;-webkit-user-drag:none;filter:inherit;}
#race-map .leaflet-tile.leaflet-tile-loaded {visibility:visible;}
#race-map .leaflet-tile-container,#race-map .leaflet-pane > svg {pointer-events:none;}
#race-map .leaflet-marker-icon,#race-map .leaflet-marker-shadow {display:block;user-select:none;-webkit-user-drag:none;}
#race-map .leaflet-marker-icon,#race-map .leaflet-marker-shadow,#race-map .leaflet-image-layer {pointer-events:none;}
#race-map .leaflet-marker-icon.leaflet-interactive,#race-map .leaflet-pane > svg path.leaflet-interactive {pointer-events:auto;cursor:pointer;}
#race-map .leaflet-zoom-animated {transform-origin:0 0;}
#race-map.leaflet-zoom-anim .leaflet-zoom-animated {transition:transform .25s cubic-bezier(0,0,.25,1);}
#race-map.leaflet-zoom-anim .leaflet-tile,#race-map.leaflet-pan-anim .leaflet-tile {transition:none;}
#race-map.leaflet-zoom-anim .leaflet-zoom-hide {visibility:hidden;}
#race-map .leaflet-control {position:relative;z-index:800;pointer-events:auto;float:left;clear:both;}
#race-map .leaflet-top,#race-map .leaflet-bottom {position:absolute;z-index:1000;pointer-events:none;}
#race-map .leaflet-top {top:0;}
#race-map .leaflet-bottom {bottom:0;}
#race-map .leaflet-left {left:0;}
#race-map .leaflet-right {right:0;}
#race-map .leaflet-right .leaflet-control {float:right;}
#race-map .leaflet-top .leaflet-control {margin-top:10px;}
#race-map .leaflet-bottom .leaflet-control {margin-bottom:10px;}
#race-map .leaflet-left .leaflet-control {margin-left:10px;}
#race-map .leaflet-right .leaflet-control {margin-right:10px;}
#race-map .leaflet-bar {border:2px solid rgba(0,0,0,.2);border-radius:5px;background-clip:padding-box;box-shadow:0 1px 5px rgba(0,0,0,.2);}
#race-map .leaflet-bar a {display:block;background:#fff;border-bottom:1px solid #ccc;width:30px;height:30px;line-height:30px;text-align:center;font:bold 19px 'Lucida Console',monospace;text-decoration:none;color:#132a37;}
#race-map .leaflet-bar a:first-child {border-radius:4px 4px 0 0;}
#race-map .leaflet-bar a:last-child {border:0;border-radius:0 0 4px 4px;}
#race-map .leaflet-bar a:hover {background:#eff5f4;}
#race-map .leaflet-bar a.leaflet-disabled {color:#bbb;cursor:default;}
#race-map .leaflet-control-attribution {background:rgba(255,255,255,.87);padding:0 6px;margin:0;color:#334c56;font-size:10px;line-height:1.6;}
#race-map .leaflet-control-attribution a {color:#206e81;text-decoration:none;}
#race-map .leaflet-attribution-flag {display:inline !important;width:1em;height:.66em;vertical-align:baseline;}
#race-map .leaflet-tooltip {position:absolute;padding:6px 9px;color:#17384a;background:#fff;border:1px solid #e4eced;border-radius:5px;white-space:nowrap;user-select:none;pointer-events:none;box-shadow:0 2px 8px #0a22363b;font-size:11px;}
#race-map .leaflet-tooltip:before {content:"";position:absolute;border:6px solid transparent;pointer-events:none;}
#race-map .leaflet-tooltip-top {margin-top:-6px;}
#race-map .leaflet-tooltip-bottom {margin-top:6px;}
#race-map .leaflet-tooltip-top:before {bottom:0;left:50%;margin-left:-6px;margin-bottom:-12px;border-top-color:white;}
#race-map .leaflet-tooltip-bottom:before {top:0;left:50%;margin-left:-6px;margin-top:-12px;border-bottom-color:white;}
#race-map .leaflet-tooltip-left {margin-left:-6px;}
#race-map .leaflet-tooltip-right {margin-left:6px;}
#race-map .leaflet-tooltip-left:before {right:0;top:50%;margin-top:-6px;margin-right:-12px;border-left-color:white;}
#race-map .leaflet-tooltip-right:before {left:0;top:50%;margin-top:-6px;margin-left:-12px;border-right-color:white;}
#race-map .leaflet-tooltip.leaflet-interactive {pointer-events:auto;cursor:pointer;}
#race-map .leaflet-popup {position:absolute;text-align:center;margin-bottom:20px;}
#race-map .leaflet-popup-content-wrapper {background:#fff;padding:1px;border-radius:10px;box-shadow:0 3px 14px #0003;text-align:left;}
#race-map .leaflet-popup-content {margin:12px 20px;font-size:12px;min-height:1px;}
#race-map .leaflet-popup-tip-container {width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none;}
#race-map .leaflet-popup-tip {background:#fff;box-shadow:0 3px 14px #0003;width:17px;height:17px;margin:-10px auto 0;transform:rotate(45deg);}
#race-map .leaflet-popup-close-button {position:absolute;top:0;right:0;width:24px;height:24px;line-height:24px;text-decoration:none;}
#race-map .leaflet-div-icon {background:#fff;border:1px solid #555;}
/* Always clip tiles to the map panel; never over the map header or footer. */
.map-panel {min-width:0;}
.map-panel .race-map {display:block;width:100%;min-width:0;overflow:hidden;}
.map-panel .map-footer {position:relative;z-index:1;background:white;}
@media(max-width:760px){#race-map .leaflet-control-attribution{font-size:9px;}}
