        * { box-sizing: border-box; }
        body { background: #e0f0f8; font-family: system-ui, sans-serif; }
        #map { position: relative; width: 100%; height: 520px; overflow: hidden; }

        .status-box {
            position: absolute;
            top: 15px; left: 15px;
            background: rgba(255, 255, 255, 0.96);
            padding: 14px 18px;
            border-radius: 12px;
            font-size: 12.5px;
            z-index: 10;
            box-shadow: 0 4px 20px rgba(0,0,0,0.12);
            pointer-events: none;
            border: 1px solid #eee;
        }

        /* ================= MARKER SIZE: CSS VARIABLES PER DEVICE ================= */
        /* JS reads --marker-base and applies zoom multipliers on top */

        :root {
            --marker-base: 52px;   /* default / large desktop */
            --temp-c-size: 14px;
            --temp-f-size: 11px;
        }

        /* Large desktop */
        @media screen and (min-width: 1400px) {
            :root {
                --marker-base: 58px;
                --temp-c-size: 15px;
                --temp-f-size: 12px;
            }
        }

        /* Tablet landscape */
        @media screen and (max-width: 1024px) {
            :root {
                --marker-base: 44px;
                --temp-c-size: 13px;
                --temp-f-size: 10px;
            }
        }

        /* Tablet portrait / large phone */
        @media screen and (max-width: 768px) {
            :root {
                --marker-base: 38px;
                --temp-c-size: 12px;
                --temp-f-size: 9px;
            }
        }

        /* Mobile portrait */
        @media screen and (max-width: 480px) {
            :root {
                --marker-base: 32px;
                --temp-c-size: 11px;
                --temp-f-size: 8px;
            }
        }

        /* ================= TEMPERATURE MARKER ================= */

        .temp-marker {
            border-radius: 50%;
            color: #fff;
            font-weight: bold;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.4);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .temp-marker:hover {
            transform: scale(1.1);
            border-color: rgba(255, 255, 255, 0.8);
        }

        .temp-c {
            font-size: var(--temp-c-size);   /* ← CSS variable */
            line-height: var(--temp-c-size);
            text-shadow:
                -1px -1px 0 #000,
                 1px -1px 0 #000,
                -1px  1px 0 #000,
                 1px  1px 0 #000,
                 0px  2px 4px rgba(0,0,0,0.8);
        }

        .temp-f {
            font-size: var(--temp-f-size);   /* ← CSS variable */
            opacity: 1;
            line-height: var(--temp-f-size);
            margin-top: 2px;
            text-shadow: 1px 1px 2px #000;
        }

        /* fade animation */
        .fade-marker {
            opacity: 0;
            transform: scale(0.85);
            transition: opacity 0.35s ease, transform 0.35s ease;
        }

        .fade-marker.show {
            opacity: 1;
            transform: scale(1);
        }

        /* ================= WEATHER POPUP ================= */

        .weather-popup .maplibregl-popup-content {
            background: rgba(0, 0, 0, 0.85);
            color: #fff;
            border: none;
            border-radius: 6px;
            padding: 6px 10px;
            font-size: 13px;
            font-weight: bold;
            box-shadow: 0 2px 8px rgba(0,0,0,0.4);
            pointer-events: none;
        }

        .weather-popup .maplibregl-popup-tip {
            border-top-color: rgba(0, 0, 0, 0.85);
        }

        .weather-popup .maplibregl-popup-close-button {
            display: none;
        }