/* Style Umum */
.header-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            rgba(135, 206, 250, 0) 0%,
            rgba(0, 255, 213, 1) 50%,
            rgba(135, 206, 250, 0) 100%);
    background-size: 200% 50%;
    animation: light-move 10s linear infinite;
    opacity: 1;
    filter: blur(1px);
    z-index: 30;
}

@keyframes light-move {
    0% {
        background-position: -50% 0;
    }

    100% {
        background-position: 150% 0;
    }
}

.info-item {
    font-size: 0.9rem;
}

/* Loader style */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #01f0f8ff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== Elevation Canvas Modern ===== */
/* ===== Elevation Panel (Solid Bottom Sheet) ===== */
#elevation-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Fixed height for 'page-like' feel at bottom */
    height: 200px;
    /* Solid Dark Background (Not Transparent) */
    background: rgba(30, 41, 59, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2000;
    /* High z-index to ensure it sits ABOVE map tiles and controls */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: env(safe-area-inset-bottom);
    /* Safe area for iPhone Home Bar */
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 640px) {
    #elevation-panel {
        height: 140px;
        /* Reduced height on mobile as requested (diperkecil) */
        border-radius: 12px 12px 0 0;
    }
}

#elevCanvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
    /* Canvas background transparent so panel color shows through */
    background: transparent;
}