/* Custom Styles for Sebaran Page with New Layout */

#map {
    z-index: 1;
    height: 70vh; /* Tinggi default untuk mobile */
    width: 100%;
    border-radius: 0.5rem;
}

/* Tata Letak untuk Layar Besar (Desktop) */
@media (min-width: 1024px) { /* Terapkan pada layar lg ke atas */
    .layout-container {
        display: flex;
        gap: 1.5rem; /* Jarak antara panel info dan peta */
        align-items: flex-start;
    }

    .info-wrapper {
        flex: 1; /* Panel info mengambil 1/3 ruang */
        order: 1; /* Panel info di sebelah kiri */
        position: sticky; /* Membuat panel info tetap terlihat saat scroll */
        top: 90px; /* Jarak dari header */
    }

    .map-wrapper {
        flex: 2; /* Peta mengambil 2/3 ruang */
        order: 2; /* Peta di sebelah kanan */
    }

    #map {
        height: 75vh; /* Sesuaikan tinggi peta untuk tata letak desktop */
    }
}

/* Tata Letak untuk Layar Kecil (Mobile) */
@media (max-width: 1023px) {
    .map-wrapper {
        margin-bottom: 1.5rem; /* Beri jarak antara peta dan panel info di mobile */
    }
}

/* Styling untuk konten di dalam panel informasi */
.data-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem 0;
    border-bottom: 1px solid #f3f4f6; /* gray-100 */
    transition: background-color 0.2s;
}
.data-summary-item:hover {
    background-color: #fafafa;
}
.data-summary-item:last-child {
    border-bottom: none;
}

.data-label {
    display: flex;
    align-items: center;
    font-size: 0.8125rem; /* 13px */
    color: #4b5563; /* gray-600 */
    font-weight: 500;
}

.data-label svg {
    margin-right: 0.75rem;
    color: #059669; /* emerald-600 */
    flex-shrink: 0;
}

.data-value {
    font-size: 0.9375rem; /* 15px */
    font-weight: 600;
    color: #1f2937; /* gray-800 */
    padding-left: 1rem;
}

/* Penyesuaian untuk layar sangat kecil */
@media (max-width: 640px) {
    .data-summary-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.05rem;
    }
    .data-value {
        margin-top: 0.25rem;
        font-size: 0.80rem;
        align-self: flex-end;
    }
}

/* --- PERUBAHAN BARU: Efek Loading untuk Angka --- */
.loading-value {
    display: inline-block;
    width: 4rem; /* Lebar placeholder */
    height: 1.25rem; /* Tinggi placeholder, sesuaikan dengan font-size .data-value */
    background-color: #e5e7eb; /* tailwind: gray-200 */
    border-radius: 0.375rem; /* tailwind: rounded-md */
    animation: pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
