/* PWMedia Schaduwkaart v4.1.0 */

.pwsc-widget {
    font-family: inherit;
    font-size: 14px;
    color: #fff;
    background: #000;
    overflow: hidden;
    margin: 0 0 24px;
}

.pwsc-map-wrap { position: relative; }
.pwsc-map { width: 100%; background: #111; display: block; }

.pwsc-loading {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.8);
    display: flex; align-items: center; justify-content: center;
    gap: 10px; font-size: 11px; color: #fff; z-index: 1000;
    text-transform: uppercase; letter-spacing: .4px;
    transition: opacity .3s;
}
.pwsc-loading.hidden { opacity: 0; pointer-events: none; }

.pwsc-spinner {
    width: 16px; height: 16px;
    border: 2px solid #333; border-top-color: #f0b849;
    border-radius: 50%; animation: pwsc-spin .7s linear infinite;
}
@keyframes pwsc-spin { to { transform: rotate(360deg); } }

.pwsc-no-coords {
    position: absolute; inset: 0; background: #000;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; z-index: 999;
}

/* ── Controls ── */
.pwsc-controls {
    display: grid; grid-template-columns: 1fr 1fr;
    background: #000; border-top: 1px solid #222;
}
.pwsc-control-group {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; border-right: 1px solid #222;
}
.pwsc-control-group:last-child { border-right: none; }

.pwsc-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 700; color: #fff;
    white-space: nowrap; text-transform: uppercase;
    letter-spacing: .8px; min-width: 58px; flex-shrink: 0;
}
.pwsc-label svg { stroke: #fff; flex-shrink: 0; }

/* ── Slider ── */
.pwsc-slider-wrap {
    flex: 1;
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
}

/* Witte lijn via pseudo-element */
.pwsc-slider-wrap::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: #ffffff;
    pointer-events: none;
    z-index: 0;
}

/*
 * De slider zelf: volledig transparant, alleen de thumb is zichtbaar.
 * height = 24px zodat de klikzone groot genoeg is.
 * De thumb wordt gestyled via ::-webkit-slider-thumb en ::-moz-range-thumb.
 */
.pwsc-slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 24px;
    margin: 0;
    padding: 0;
    background: transparent;
    outline: none;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 1;
}

/* Track: onzichtbaar — lijn zit in ::before op de wrapper */
.pwsc-slider::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    appearance: none;
    height: 24px;
    background: transparent;
    border: none;
}

.pwsc-slider::-moz-range-track {
    height: 1px;
    background: transparent;
    border: none;
}

/*
 * Thumb webkit — geel bolletje, zwarte border 1px
 * margin-top centreert de 20px dot op de 1px track:
 * -(20/2) + (1/2) = -9.5px
 */
.pwsc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eeee22;
    border: 1px solid #000000;
    cursor: pointer;
    margin-top: 2px;
}

/* Thumb Firefox */
.pwsc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eeee22;
    border: 1px solid #000000;
    cursor: pointer;
    box-sizing: border-box;
}

/* ── Waarden ── */
.pwsc-value {
    font-size: 13px; font-weight: 700; color: #fff;
    min-width: 72px; text-align: right; flex-shrink: 0;
}

/* ── Zon info ── */
.pwsc-sun-info {
    background: #000; border-top: 1px solid #222;
    padding: 8px 18px; font-size: 11px; color: #fff;
    min-height: 32px; display: flex; align-items: center;
}
.pwsc-sun-pos { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pwsc-sun-pos .pwsc-sun-item { display: flex; align-items: center; gap: 6px; }
.pwsc-sun-pos .pwsc-sun-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #f0b849; flex-shrink: 0;
}
.pwsc-sun-pos .pwsc-sun-dot.below { background: #555; }

/* ── Leaflet overrides ── */
.pwsc-widget .leaflet-control-attribution {
    background: rgba(0,0,0,.7) !important; color: #888 !important; font-size: 10px !important;
}
.pwsc-widget .leaflet-control-attribution a { color: #aaa !important; }
.pwsc-widget .leaflet-control-zoom a {
    background: #111 !important; color: #fff !important; border-color: #333 !important;
}
.pwsc-widget .leaflet-control-zoom a:hover { background: #222 !important; color: #f0b849 !important; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .pwsc-controls { grid-template-columns: 1fr; }
    .pwsc-control-group { border-right: none; border-bottom: 1px solid #222; }
    .pwsc-control-group:last-child { border-bottom: none; }
}
