html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
}

#map {
    height: 100%;
    width: 100%;
    display: block;
}

.leaflet-control-layers {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    padding: 10px !important;
    font-size: 14px;
}

/* Vervaagde routes */
.route-dim {
    opacity: 0.3;
    filter: blur(1.2px);
}

/* Infopaneel */
#info {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 1000;
    width: min(440px, calc(100% - 24px));
    box-sizing: border-box;
    padding: 14px 16px 10px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    font-size: 13px;
    color: #222;
}
#info[hidden] { display: none; }

#info h2 {
    margin: 0 24px 2px 0;
    font-size: 16px;
}
#info-bereik {
    min-height: 16px;
    margin-bottom: 8px;
    color: #666;
    font-size: 12px;
}
#sluit {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

#stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 6px;
    margin-bottom: 10px;
}
.stat b {
    display: block;
    font-size: 15px;
}
.stat span {
    font-size: 11px;
    color: #777;
}

#profiel {
    display: block;
    width: 100%;
    height: 120px;
    cursor: crosshair;
    touch-action: none;
    background: #f4f4f4;
    border-radius: 6px;
}
#hover {
    min-height: 18px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: bold;
}
.tip {
    margin: 4px 0 0;
    font-size: 11px;
    color: #888;
}

@media (max-width: 520px) {
    #stats { grid-template-columns: repeat(2, 1fr); }
}