/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: #0f1724;
}

/* ===== MAP ===== */
#map {
    height: 100vh;
    width: 100%;
    z-index: 0;
}

/* ===== DESKTOP NAVBAR ===== */
.desktop-navbar {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 1200;
    pointer-events: none;
}
.navbar-shell {
    position: relative;
    isolation: isolate;
    width: min(1180px, 100%);
    min-height: 76px;
    margin: 0 auto;
    padding: 9px 10px 9px 18px;
    display: grid;
    grid-template-columns: minmax(210px, auto) minmax(0, 620px);
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(186, 230, 253, 0.22);
    border-radius: 50px;
    background:
        linear-gradient(115deg, rgba(14, 25, 44, 0.86), rgba(20, 40, 67, 0.63) 54%, rgba(13, 45, 74, 0.72)),
        rgba(15, 23, 42, 0.68);
    box-shadow: 0 26px 70px rgba(2, 8, 23, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(125, 211, 252, 0.08);
    backdrop-filter: blur(28px) saturate(165%);
    pointer-events: auto;
}
.navbar-shell::before {
    content: '';
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 10% 0%, rgba(186, 230, 253, 0.16), transparent 32%), radial-gradient(circle at 85% 100%, rgba(56, 189, 248, 0.12), transparent 28%);
}
.navbar-search-slot {
    min-width: 0;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    bottom: 45px;
    left: 50%;
    width: min(720px, calc(100vw - 24px));
    height: min(70vh, 680px);
    max-height: 70dvh;
    background: linear-gradient(180deg, #1a2332 0%, #2a3f5e 100%);
    color: #fff;
    z-index: 10000;
    padding: 20px 18px;
    overflow-y: auto;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    transform: translateX(-50%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.sidebar.closed {
    transform: translate(-50%, calc(100% + 48px));
}
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.sidebar::-webkit-scrollbar-thumb {
    background: #4fc3f7;
    border-radius: 4px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    gap: 12px;
}
.sidebar-header h1 {
    min-width: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fbff;
    display: flex;
    align-items: center;
    gap: 9px;
    letter-spacing: 0;
    white-space: nowrap;
}
.sidebar-header h1 i {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 16px;
    color: white;
}
/* ===== SEARCH DROPDOWN MODERN ===== */
.search-wrapper {
    position: relative;
    margin-bottom: 0;
}
.mobile-search-host {
    display: none;
}
.search-container {
    display: flex;
    align-items: center;
    padding: 3px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.22), 0 14px 32px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(145%);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.search-container:focus-within {
    border-color: rgba(26, 115, 232, 0.55);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.14), 0 5px 15px rgba(15, 23, 42, 0.2), 0 20px 42px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}
.search-box {
    flex: 1;
    position: relative;
    min-width: 0;
}
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #5f6368;
    font-size: 1.3rem;
    z-index: 2;
    pointer-events: none;
}
#searchInput {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px 12px 44px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: #202124;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
    cursor: text;
    box-shadow: none;
}
#searchInput::placeholder {
    color: #70757a;
}
#searchInput:focus {
    background: rgba(248, 250, 252, 0.72);
    border-color: rgba(26, 115, 232, 0.16);
    box-shadow: none;
}
/* ===== DROPDOWN MODERN ===== */
.dropdown-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    max-height: 340px;
    overflow-y: auto;
    display: none;
    z-index: 10001;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2), 0 24px 48px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.76);
    scroll-behavior: smooth;
    backdrop-filter: blur(24px) saturate(145%);
    padding: 6px;
}
.dropdown-list.active {
    display: block;
}
.dropdown-list::-webkit-scrollbar {
    width: 4px;
}
.dropdown-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.dropdown-list::-webkit-scrollbar-thumb {
    background: #4fc3f7;
    border-radius: 4px;
}

.dropdown-item {
    padding: 11px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: none;
    border-radius: 14px;
    gap: 12px;
}
.dropdown-item:hover {
    background: rgba(26, 115, 232, 0.1);
}
.dropdown-item:last-child {
    border-bottom: none;
}
.dropdown-item .item-name {
    color: #202124;
    font-size: 0.88rem;
    flex: 1;
}
.dropdown-item .item-code {
    color: #5f6368;
    font-size: 0.7rem;
    background: rgba(95, 99, 104, 0.08);
    padding: 2px 10px;
    border-radius: 12px;
    font-family: monospace;
    white-space: nowrap;
}
.dropdown-item .item-level {
    font-size: 0.65rem;
    color: #1967d2;
    background: rgba(26, 115, 232, 0.1);
    padding: 1px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.dropdown-empty {
    padding: 20px;
    text-align: center;
    color: #7788a0;
    font-size: 0.85rem;
}

/* ===== CATEGORIES ===== */
.categories {
    margin-top:20px;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px) saturate(130%);
}
.categories h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: #eef7ff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0;
}
.categories h3 i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(125, 211, 252, 0.14);
    color: #7dd3fc;
}
.category-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(125, 211, 252, 0.45) rgba(255, 255, 255, 0.06);
}
.category-list::-webkit-scrollbar {
    height: 5px;
}
.category-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}
.category-list::-webkit-scrollbar-thumb {
    background: rgba(125, 211, 252, 0.5);
    border-radius: 999px;
}
.category-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    flex: 0 0 76px;
    width: 76px;
    min-height: 92px;
    padding: 10px 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 14, 24, 0.34);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
    font-size: 0.74rem;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}
.category-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(125, 211, 252, 0.2), transparent 62%);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.category-item span {
    position: relative;
    z-index: 1;
}
.category-item span:first-child {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    color: #dbeafe;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}
.category-item:hover {
    background: rgba(15, 23, 36, 0.62);
    border-color: rgba(125, 211, 252, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}
.category-item:hover::before,
.category-item.active::before {
    opacity: 1;
}
.category-item.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(37, 99, 235, 0.12));
    border-color: rgba(125, 211, 252, 0.42);
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.category-item i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 12px;
    color: #7dd3fc;
    background: rgba(125, 211, 252, 0.1);
    font-size: 0.9rem;
}
.badge {
    min-width: 34px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: #eef7ff;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ===== SELECTED INFO ===== */
.selected-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    margin-top: 20px;
    min-height: 65px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.selected-info h3 {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #b0c4de;
    display: flex;
    align-items: center;
    gap: 8px;
}
.selected-info .text-muted {
    color: #7788a0;
    font-size: 0.85rem;
}
.weather-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 16px;
    margin-top: 4px;
}
.weather-detail .label {
    color: #7788a0;
    font-size: 0.75rem;
}
.weather-detail .value {
    font-weight: 500;
    font-size: 0.88rem;
    color: #e8edf5;
}
.weather-detail .value img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ===== FORECAST CARDS ===== */
.forecast-section {
    margin-bottom: 16px;
}
.forecast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.forecast-header h3 {
    color: #eef7ff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0;
}
.forecast-header h3 i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(125, 211, 252, 0.14);
    color: #7dd3fc;
}
.forecast-source {
    color: #8ea4bd;
    font-size: 0.68rem;
    white-space: nowrap;
}
.forecast-empty {
    display: none;
}
.forecast-day {
    margin-bottom: 12px;
}
.forecast-day-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: #c7d7ea;
    font-size: 0.78rem;
    font-weight: 700;
}
.forecast-day-title span:last-child {
    color: #7788a0;
    font-size: 0.68rem;
    font-weight: 600;
}
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.forecast-card {
    min-width: 0;
    min-height: 112px;
    padding: 9px;
    border-radius: 8px;
    background: rgba(8, 14, 24, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.forecast-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}
.forecast-time {
    color: #7dd3fc;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}
.forecast-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
}
.forecast-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.forecast-desc {
    min-height: 30px;
    color: #f8fbff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}
.forecast-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 8px;
    color: #aebed1;
    font-size: 0.68rem;
}
.forecast-meta span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.forecast-meta i {
    color: #7dd3fc;
    width: 12px;
    text-align: center;
}

/* ===== DATA SOURCE ===== */
.data-source {
    padding-top: 12px;
    border-top: 2px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    margin-bottom: 10px;
}
.data-source p {
    margin-bottom: 3px;
    color: #b0c4de;
}
.data-source i {
    margin-right: 8px;
    color: #4fc3f7;
    width: 18px;
}
.update-time {
    color: #7788a0 !important;
    font-size: 0.7rem;
}
/* Styling Tombol Refresh */
.refresh-btn {
    position: fixed;
    right: 22px;
    bottom: 70px;
    width: 54px;
    height: 54px;
    background-color: #1a233a; /* Warna gelap senada dengan tema map/header Anda */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 36, 0.82);
    color: #7dd3fc;
    border-radius: 18px;
    font-size: 1.2rem;
    z-index: 1;     /* Memastikan berada di atas peta / leaflet */
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all 0.25s;
    border: 1px solid rgba(125, 211, 252, 0.24);
    backdrop-filter: blur(14px);
}

/* Efek Hover */
.refresh-btn:hover {
    background-color: #233050;
    color: #4dadff; /* Efek highlight biru ketika diarahkan mause */
}

/* Animasi Berputar saat diklik (Opsional) */
.refresh-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== LOADING ===== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 36, 0.92);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    backdrop-filter: blur(4px);
}
.loading.active {
    display: flex;
}
.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(79, 195, 247, 0.15);
    border-top-color: #4fc3f7;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.loading p {
    margin-top: 18px;
    color: #b0c4de;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* ===== CUSTOM POPUP ===== */
.custom-popup .leaflet-popup-content-wrapper {
    background: #1a2332;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.custom-popup .leaflet-popup-tip {
    background: #1a2332;
}
.custom-popup .leaflet-popup-content {
    padding: 4px 2px;
    margin: 10px 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .desktop-navbar {
        display: none;
    }
    .sidebar {
        bottom: 45px;
        width: 100%;
        height: 70dvh;
        max-height: 70dvh;
        padding: 16px;
    }
    .sidebar.closed {
        transform: translate(-50%, calc(100% + 48px));
    }
    .mobile-search-host {
        position: fixed;
        top: max(12px, env(safe-area-inset-top));
        left: 50%;
        z-index: 700;
        display: block;
        width: min(600px, calc(100vw - 24px));
        transform: translateX(-50%);
        pointer-events: none;
    }
    .mobile-search-host .search-wrapper {
        margin: 0;
        pointer-events: auto;
    }
    .mobile-search-host .search-container {
        padding: 4px;
        border-color: rgba(255, 255, 255, 0.78);
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.84);
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.24), 0 20px 42px rgba(15, 23, 42, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(26px) saturate(150%);
    }
    .mobile-search-host #searchInput {
        min-height: 48px;
        border-radius: 14px;
        background: transparent;
        font-size: 16px;
    }
    .mobile-search-host .refresh-btn {
        right: 14px;
        top: 120px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    .mobile-search-host .refresh-btn span {
        display: none;
    }
    .mobile-search-host .dropdown-list {
        top: calc(100% + 10px);
    }
    .weather-detail {
        grid-template-columns: 1fr;
    }
    .forecast-grid {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 10px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        scrollbar-color: rgba(125, 211, 252, 0.45) rgba(255, 255, 255, 0.06);
    }
    .forecast-grid::-webkit-scrollbar {
        height: 5px;
    }
    .forecast-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.06);
        border-radius: 999px;
    }
    .forecast-grid::-webkit-scrollbar-thumb {
        background: rgba(125, 211, 252, 0.5);
        border-radius: 999px;
    }
    .forecast-card {
        flex: 0 0 168px;
        width: 168px;
        scroll-snap-align: start;
    }
    .sidebar-header h1 {
        font-size: 1.4rem;
    }
    .dropdown-item {
        flex-wrap: wrap;
        gap: 4px;
    }
    .dropdown-item .item-code {
        display: none;
    }
    .dropdown-item .item-level {
        font-size: 0.6rem;
    }
}
@media (max-width: 480px) {
    .sidebar {
        padding: 12px;
    }
    .search-container {
        flex-wrap: wrap;
    }
    .mobile-search-host {
        width: calc(100vw - 24px);
    }
    .mobile-search-host .search-container {
        flex-wrap: nowrap;
    }
    .mobile-search-host .refresh-btn {
        right: 22px;
        bottom: 40px;
        width: 54px;
        height: 54px;
    }
}

/* ===== CLUSTER CUSTOM ===== */
.weather-cluster {
    background: transparent;
    border: none;
}
.weather-cluster-badge {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fbff;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}
.weather-cluster-badge::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 21px;
    opacity: 0.28;
    z-index: -1;
}
.weather-cluster-badge span {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}
.weather-cluster-small .weather-cluster-badge,
.weather-cluster-small .weather-cluster-badge::before {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
}
.weather-cluster-medium .weather-cluster-badge,
.weather-cluster-medium .weather-cluster-badge::before {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.weather-cluster-large .weather-cluster-badge,
.weather-cluster-large .weather-cluster-badge::before {
    background: linear-gradient(135deg, #ef4444, #7c3aed);
}

/* Container Utama Breaking News di Bawah */
.breaking-news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    border-top: 2px solid #ff3b30;
}

/* Label BREAKING NEWS (Kotak Merah) */
.ticker-title {
    background-color: #ff3b30;
    color: #fff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.4);
    z-index: 2;
    white-space: nowrap;
    animation: pulse 1.5s infinite;
}

/* Animasi berkedip lembut pada label Breaking News */
@keyframes pulse {
    0% { background-color: #ff3b30; }
    50% { background-color: #cc241b; }
    100% { background-color: #ff3b30; }
}

/* Area Teks Berjalan */
.ticker-content {
    flex-grow: 1;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
    background-color: #000;
}

marquee {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

/* Styling detail informasi */
.ticker-content span {
    margin-right: 40px;
}

.highlight-yellow {
    color: #ffd43b;
}

.highlight-cyan {
    color: #4dadff;
}
.gempa-list-btn {
    bottom: 135px; /* Ditambahkan 55px ke atas dari tombol refresh */
}
/* --- SIDEBAR DARI BAWAH (BOTTOM SHEET) --- */
.bottom-sheet {
    position: fixed;
    bottom: -100%; /* Sembunyi di bawah layar */
    left: 0;
    width: 100%;
    height: 60vh; /* Mengambil 60% dari tinggi layar */
    background-color: #111625;
    color: #fff;
    border-top: 3px solid #ff3b30;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 10000;
    transition: bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
}

.bottom-sheet.open {
    bottom: 45px; /* Berhenti tepat di atas breaking news ticker Anda */
}

.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.bottom-sheet-overlay.show {
    display: block;
}

/* Header Sidebar */
.bottom-sheet-header {
    padding: 15px 20px 5px 20px;
    position: relative;
    text-align: center;
}

.bottom-sheet-header .handle {
    width: 40px;
    height: 5px;
    background: #444;
    border-radius: 3px;
    margin: 0 auto 10px auto;
}

.bottom-sheet-header h3 {
    margin: 0;
    font-size: 18px;
}

.bottom-sheet-header .close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
}

.bottom-sheet-header .close-btn:hover { color: #fff; }

/* Body & Konten Tab */
.bottom-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px 20px;
}

.gempa-tabs {
    display: flex;
    border-bottom: 1px solid #233050;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    background: #111625;
    z-index: 10;
}

.tab-link {
    background: none;
    border: none;
    color: #888;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.tab-link.active {
    color: #4dadff;
    border-bottom: 3px solid #4dadff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Styling List Item Gempa */
.gempa-item {
    background: #1a2236;
    border-left: 4px solid #ffd43b;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 13px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
}

.gempa-item.major { border-left-color: #ff3b30; } /* Untuk Magnitudo besar */

.gempa-mag-badge {
    background: #ffd43b;
    color: #000;
    font-weight: 900;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.gempa-item.major .gempa-mag-badge {
    background: #ff3b30;
    color: #fff;
}

.gempa-details p { margin: 3px 0; }
.loading-text { text-align: center; color: #888; padding: 20px; }
