/*
 * Leaflet CSS fallback for Genealogia Map.
 * If leaflet.css from CDN is blocked, these essential rules keep tiles/markers/controls positioned correctly.
 */
.leaflet-container {
    overflow: hidden;
    position: relative;
    outline-style: none;
    background: #ddd;
    font-family: inherit;
}
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
    position: absolute;
    left: 0;
    top: 0;
}
.leaflet-container img.leaflet-tile,
.leaflet-container img.leaflet-marker-icon,
.leaflet-container img.leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
}
.leaflet-tile {
    filter: inherit;
    visibility: hidden;
    user-select: none;
    -webkit-user-drag: none;
}
.leaflet-tile-loaded {
    visibility: inherit;
}
.leaflet-grab {
    cursor: grab;
}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-marker-draggable {
    cursor: move;
    cursor: grabbing;
}
.leaflet-map-pane { z-index: 400; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }
.leaflet-control { position: relative; z-index: 800; pointer-events: auto; }
.leaflet-top,
.leaflet-bottom { position: absolute; z-index: 1000; pointer-events: none; }
.leaflet-top { top: 0; }
.leaflet-right { right: 0; }
.leaflet-bottom { bottom: 0; }
.leaflet-left { left: 0; }
.leaflet-control { float: left; clear: both; }
.leaflet-right .leaflet-control { float: right; }
.leaflet-top .leaflet-control { margin-top: 10px; }
.leaflet-bottom .leaflet-control { margin-bottom: 10px; }
.leaflet-left .leaflet-control { margin-left: 10px; }
.leaflet-right .leaflet-control { margin-right: 10px; }
.leaflet-control-zoom a {
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    width: 30px;
    height: 30px;
    line-height: 30px;
    display: block;
    text-align: center;
    text-decoration: none;
    color: #000;
    font: bold 18px 'Lucida Console', Monaco, monospace;
}
.leaflet-control-zoom a:hover { background-color: #f4f4f4; }
.leaflet-control-zoom-in { border-top-left-radius: 4px; border-top-right-radius: 4px; }
.leaflet-control-zoom-out { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }
.leaflet-control-attribution {
    background: rgba(255,255,255,.8);
    margin: 0;
    padding: 0 5px;
    color: #333;
    font-size: 11px;
}
.leaflet-control-attribution a { text-decoration: none; }
.leaflet-popup { position: absolute; text-align: center; margin-bottom: 20px; }
.leaflet-popup-content-wrapper {
    padding: 1px;
    text-align: left;
    border-radius: 12px;
    background: white;
    box-shadow: 0 3px 14px rgba(0,0,0,.4);
}
.leaflet-popup-content { margin: 13px 19px; line-height: 1.4; }
.leaflet-popup-tip-container { width: 40px; height: 20px; position: absolute; left: 50%; margin-left: -20px; overflow: hidden; pointer-events: none; }
.leaflet-popup-tip { width: 17px; height: 17px; padding: 1px; margin: -10px auto 0; transform: rotate(45deg); background: white; box-shadow: 0 3px 14px rgba(0,0,0,.4); }
.leaflet-popup-close-button { position: absolute; top: 0; right: 0; border: none; text-align: center; width: 24px; height: 24px; font: 16px/24px Tahoma, Verdana, sans-serif; color: #757575; text-decoration: none; background: transparent; }
.leaflet-popup-close-button:hover { color: #111; }
.leaflet-marker-icon,
.leaflet-marker-shadow { display: block; }
.leaflet-interactive { cursor: pointer; }
.leaflet-touch .leaflet-control-zoom a { width: 34px; height: 34px; line-height: 34px; }
