/* Leaflet 1.9.4 CSS - LeruoCare Local Distribution */

.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 {
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    background: #EDE8D0;
    outline: 0;
    font-family: 'PT Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    width: 100%;
    height: 100%;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.leaflet-tile::selection {
    background: transparent;
}

.leaflet-safari .leaflet-tile {
    image-rendering: -webkit-optimize-contrast;
}

.leaflet-safari .leaflet-tile-container {
    width: 1600px;
    height: 1600px;
    -webkit-transform: translate3d(0, 0, 0);
}

.leaflet-marker-icon,
.leaflet-marker-shadow {
    display: block;
    pointer-events: auto;
}

.leaflet-container .leaflet-overlay-pane svg {
    max-width: none !important;
    max-height: none !important;
}

.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
    max-width: none !important;
    max-height: none !important;
    width: auto;
    padding: 0;
}

.leaflet-container.leaflet-touch-zoom {
    touch-action: pan-x pan-y;
}

.leaflet-container.leaflet-touch-drag {
    touch-action: pinch-zoom;
}

.leaflet-tile {
    filter: inherit;
    visibility: inherit;
}

.leaflet-tile-loaded {
    opacity: 1;
    transition: opacity 0.2s linear;
}

.leaflet-zoom-box {
    width: 0;
    height: 0;
    box-sizing: border-box;
    z-index: 800;
}

/* Panes */
.leaflet-map-pane svg {
    position: absolute;
    left: 0;
    top: 0;
}

.leaflet-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-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg { z-index: 200; }

.leaflet-vml-shape {
    width: 1px;
    height: 1px;
}

.lvml {
    behavior: url(#default#VML);
    display: inline-block;
    position: absolute;
}

/* Controls */
.leaflet-control {
    position: relative;
    z-index: 800;
    pointer-events: visiblePainted;
    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-zoom {
    margin: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.2);
    background: #fff;
}

.leaflet-control-zoom a {
    background-color: #fff;
    width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    text-decoration: none;
    color: #333;
    display: block;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s ease;
}

.leaflet-control-zoom-in {
    border-bottom: 1px solid #e0e0e0;
}

.leaflet-control-zoom a:hover {
    background-color: #f4f4f4;
    color: #111;
}

.leaflet-control-attribution {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 8px;
    margin: 0;
    color: #555;
    border-top-left-radius: 4px;
}

.leaflet-control-attribution a {
    color: #0078A8;
    text-decoration: none;
}

/* Popups */
.leaflet-popup {
    position: absolute;
    text-align: left;
    margin-bottom: 24px;
    pointer-events: auto;
}

.leaflet-popup-content-wrapper {
    padding: 1px;
    text-align: left;
    border-radius: 8px;
    background: #ffffff;
    color: #2D3748;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}

.leaflet-popup-content {
    margin: 12px 16px;
    line-height: 1.45;
    font-size: 0.85rem;
}

.leaflet-popup-tip-container {
    width: 40px;
    height: 20px;
    position: absolute;
    left: 50%;
    margin-left: -20px;
    overflow: hidden;
    pointer-events: none;
}

.leaflet-popup-tip {
    width: 14px;
    height: 14px;
    padding: 1px;
    margin: -8px auto 0;
    transform: rotate(45deg);
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

.leaflet-popup-close-button {
    position: absolute;
    top: 6px;
    right: 8px;
    padding: 2px 4px;
    border: none;
    text-align: center;
    width: 18px;
    height: 18px;
    font: 16px/14px Tahoma, Verdana, sans-serif;
    color: #718096;
    text-decoration: none;
    font-weight: bold;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
}

.leaflet-popup-close-button:hover {
    color: #1A202C;
    background: #EDF2F7;
}

/* Tooltips */
.leaflet-tooltip {
    position: absolute;
    padding: 4px 8px;
    background-color: #ffffff;
    border: 1px solid #CBD5E0;
    border-radius: 4px;
    color: #1A202C;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    pointer-events: none;
}

.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
    position: absolute;
    pointer-events: none;
    border: 6px solid transparent;
    background: transparent;
    content: "";
}

.leaflet-tooltip-bottom { margin-top: 6px; }
.leaflet-tooltip-top { margin-top: -6px; }

/* Custom Div Icons for Agricultural Cockpit */
.marker-sediba,
.marker-lesaka,
.marker-hazard {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.marker-sediba:hover,
.marker-lesaka:hover,
.marker-hazard:hover {
    transform: scale(1.15);
}
