/* ============================================================
   MONITORING PENANGANAN BENCANA — style.css
   Sections:
   1.  Reset & Variables
   2.  Base
   3.  Layout: Map
   4.  Layout: Topbar
   5.  Layout: Category Sidebar
   6.  Layout: Panels
   7.  Panel Header & Breadcrumb
   8.  Panel Scroll
   9.  Category Sections (indicators)
   10. Location Cards
   11. Masalah Kritis Cards
   12. Legend / Wilayah List
   13. Map Popup
   14. Province Popup
   15. Leaflet Overrides
   16. Utilities
   17. Animations
   ============================================================ */


/* ── 1. RESET & VARIABLES ──────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Ink */
    --ink:          #1c1a16;
    --ink2:         #3a3730;
    --ink3:         #6a6558;

    /* Paper */
    --paper:        #f5f1eb;
    --paper2:       #ede8e0;
    --paper3:       #e4ddd2;
    --white:        #fdfaf6;

    /* Borders */
    --border:       #d8d0c4;
    --border2:      #c8bfb0;

    /* Accent */
    --accent:       #2c5545;
    --accent2:      #3d7060;
    --accent-light: #e0ede8;

    /* Semantic colours */
    --red:          #8b2a22;
    --red-light:    #f5e8e6;
    --orange:       #8b5e1a;
    --orange-light: #f5ede0;
    --green:        #1a5c30;
    --green-light:  #e0f0e6;
    --yellow:       #7a6a1a;
    --yellow-light: #f5f0d8;
    --blue:         #1a3a6a;
    --blue-light:   #e0e8f5;

    /* Panel */
    --panel-bg:     rgba(253, 250, 246, 0.96);
    --shadow:       0 4px 24px rgba(28, 26, 22, 0.14);
    --shadow-lg:    0 8px 48px rgba(28, 26, 22, 0.20);

    /* Topbar */
    --topbar-h:     74px;
    --topbar-bg:    #2b5799;
    --topbar-border:#04275d;

    /* Sidebar */
    --sidebar-w:    84px;
    --sidebar-gap:  16px;
}


/* ── 2. BASE ───────────────────────────────────────────────── */
html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    font-size: 13px;
}


/* ── 3. MAP ────────────────────────────────────────────────── */
#map {
    position: fixed;
    inset: 0;
    z-index: 0;
    margin-top: var(--topbar-h);
}


/* ── 4. TOPBAR ─────────────────────────────────────────────── */
#topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--topbar-h);
    background: var(--topbar-bg);
    border-bottom: 10px solid var(--topbar-border);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(28, 26, 22, 0.08);
}

#topbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

#topbar .brand-logo,
#topbar .brand-logo > img {
    height: 52px;
    margin-top: 2px;
}

#topbar .topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

#topbar .topbar-logo-secondary {
    height: 52px;
}

#topbar .topbar-info-icon {
    height: 26px;
    margin-top: 2px;
}


/* ── 5. CATEGORY SIDEBAR ───────────────────────────────────── */
#cat-sidebar {
    position: fixed;
    left: var(--sidebar-gap);
    top: var(--topbar-h);
    bottom: var(--sidebar-gap);
    z-index: 90;
    width: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Primary category button */
.cat-btn {
    width: var(--sidebar-w);
    height: var(--sidebar-w);
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--panel-bg);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 4px;
    transition: background .18s, border-color .18s, box-shadow .18s;
    box-shadow: 0 2px 8px rgba(28, 26, 22, 0.08);
}

/* Secondary action button (search / data) */
.cat-btn2 {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--panel-bg);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 4px;
    transition: background .18s, border-color .18s;
    box-shadow: 0 2px 8px rgba(28, 26, 22, 0.08);
}

.cat-btn:hover,
.cat-btn2:hover {
    border-color: #7EA5C7;
    background: #7EA5C7;
}

.cat-btn.active {
    background: #7EA5C7;
    border-color: #7EA5C7;
    box-shadow: 0 4px 16px rgba(44, 85, 69, 0.55);
}

.cat-btn .cat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ink2);
    text-align: center;
    line-height: 1.2;
}

.cat-btn:hover .cat-label,
.cat-btn.active .cat-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Cat action column */
.cat-action-col {
    position: fixed;
    right: 28px;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 90;
}

.cat-action {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* ── 6. PANELS ─────────────────────────────────────────────── */

/* All summary panels share this base */
.summary-panel {
    position: fixed;
    right: 16px;
    top: 86px;
    z-index: 90;
    width: 520px;
    max-height: calc(100dvh - 102px);
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
    display: none;                  /* shown by JS */
    flex-direction: column;
    overflow-y: scroll;
    transition: opacity .25s;
}

/* When shown, use flex */
.summary-panel.is-visible {
    display: flex;
}


/* ── 7. PANEL HEADER & BREADCRUMB ──────────────────────────── */
.panel-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.panel-title-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    flex: 1;
    line-height: 1.4;
}

.panel-sub {
    font-size: 11px;
    color: var(--ink3);
    margin-top: 4px;
}

.panel-close {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--paper2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--ink3);
    transition: background .15s;
}

.panel-close:hover {
    background: var(--paper3);
}

/* Breadcrumb row (province / kabupaten / kecamatan) */
.breadcrumb-row {
    display: flex;
    flex-direction: row;
    font-size: 10px;
    margin-top: 8px;
}

.breadcrumb-cell {
    flex: 1;
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 4px 8px;
    background: #DFDFDF;
    border-right: 2px solid #fff;
}

.breadcrumb-cell:last-child {
    border-right: none;
}

/* Status legend (normal / mendekati / atensi) */
.status-legend {
    display: flex;
    flex-direction: row;
    font-size: 10px;
    margin-top: 6px;
}

.status-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}


/* ── 8. PANEL SCROLL ───────────────────────────────────────── */
.panel-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 12px;
}

.panel-scroll::-webkit-scrollbar        { width: 4px; }
.panel-scroll::-webkit-scrollbar-track  { background: transparent; }
.panel-scroll::-webkit-scrollbar-thumb  { background: var(--border2); border-radius: 2px; }


/* ── 9. CATEGORY SECTIONS (indicators) ────────────────────── */
.cat-section {
    border-top: 1px solid var(--border);
    overflow: hidden;
    animation: fadeIn .2s ease both;
}

.cat-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 8px;
    cursor: pointer;
    transition: background .15s;
    user-select: none;
}

.cat-section-header:hover {
    background: var(--paper2);
}

.cat-section-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.cat-section-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cat-section-name {
    flex: 1;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}

.cat-section-name-sub {
    font-size: 10px;
    color: gray;
    display: block;
    margin-top: 1px;
}

.cat-section-amount {
    font-size: 10px;
    font-weight: 700;
    color: var(--ink);
    margin-right: 4px;
    white-space: nowrap;
    text-align: right;
    width: 100%;
    padding-right: 12px;
}

.cat-seciton-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 12px;
    padding-right: 12px;
}

.cat-section-pct {
    font-size: 10px;
    font-weight: 700;
    color: var(--ink);
    margin-right: 4px;
    white-space: nowrap;
}
.cat-card__progress {
    display: flex;
    flex-direction: column;
    align-items: end;
    padding-right: 12px;
}

.cat-section-arrow {
    font-size: 9px;
    color: var(--ink3);
    transition: transform .2s;
}

.cat-section.open .cat-section-arrow {
    transform: rotate(180deg);
}

.cat-bar {
    height: 5px;
    background: var(--paper3);
    border-radius: 3px;
    margin: 0 12px 8px;
    overflow: hidden;
}

.cat-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #e8a838, #c97b22);
    transition: width .6s ease;
}

.cat-body {
    display: none;
    padding: 0 12px 10px;
}

.cat-section.open .cat-body {
    display: block;
}

/* No-data placeholder */
.no-data {
    color: gray;
    font-size: 13px;
    padding: 8px 12px;
}


/* ── 10. LOCATION CARDS ────────────────────────────────────── */
.loc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 0 8px 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .15s;
}

.loc-card:hover {
    box-shadow: 0 2px 12px rgba(28, 26, 22, 0.10);
}

.loc-card__header {
    display: flex;
    flex-direction: column;
    padding: 10px 12px 4px;
}

.loc-card__wilayah {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
}

.loc-card__indikator {
    font-size: 10px;
    color: gray;
    margin-top: 1px;
}

.loc-card__pelaksana {
    font-size: 10px;
    color: var(--ink2);
    margin-top: 1px;
}
.loc-card__photos {
    display: flex;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    position: relative;
    height: 100px;
    margin: 6px 8px 8px;
    border-radius: 6px;
}

.loc-card__before,
.loc-card__after {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: gray;
}

.loc-card__before img,
.loc-card__after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
    transition: transform .2s;
}

.loc-card__before img:hover,
.loc-card__after img:hover {
    transform: scale(1.05);
}

.loc-card__before span,
.loc-card__after span {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
    pointer-events: none;
}

.loc-card__divider {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.loc-card__divider-icon {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, .9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #444;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
}


.loc-card__progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.loc-card__pct {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

.loc-card__bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    overflow: hidden;
}

.loc-card__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #5a9a6e, #3d7a55);
    border-radius: 3px;
    transition: width .4s ease;
}

.loc-card__jumlah {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 12px 8px;
}
.loc-card__keterangan-text {
    font-size: 12px;
}

.loc-card__icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.loc-card__jumlah-text {
    font-size: 10px;
    color: #555;
    flex: 1;
}

.loc-card__arrow {
    font-size: 10px;
    color: #999;
    transition: transform .2s;
    display: inline-block;
    flex-shrink: 0;
}

/* Photos (before / after) */
.loc-card__photos {
    border-top: 1px solid var(--border);
}

.photo-compare {
    display: flex;
    position: relative;
    height: 110px;
}

.photo-compare__slot {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.photo-compare__slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-compare__label {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

.photo-compare__divider {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, .9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #444;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: #ccc;
}


/* ── 11. MASALAH KRITIS CARDS ──────────────────────────────── */
.mk-list-wrap {
    background: #fff5f5;
    border: 1px solid #f5c6c6;
    border-radius: 10px;
    padding: 10px;
    margin: 0 8px 8px;
}

.mk-list-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.mk-list-title {
    font-size: 12px;
    font-weight: 700;
    color: #dc3545;
}

.mk-list-count {
    font-size: 11px;
    color: #dc3545;
    background: #fce8e8;
    border-radius: 10px;
    padding: 1px 8px;
    font-weight: 600;
}

.mk-card {
    background: var(--white);
    border: 1px solid #f5c6c6;
    border-left: 3px solid #dc3545;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .15s;
}

.mk-card:hover {
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.12);
}

.mk-card__header {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px 6px;
}

.mk-card__wilayah {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
}

.mk-card__indikator {
    font-size: 10px;
    color: gray;
}

.mk-card__pelaksana {
    font-size: 10px;
    color: #555;
}

.mk-card__jumlah {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 12px 6px;
}

.mk-card__icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.mk-card__jumlah-text {
    font-size: 10px;
    color: #555;
    flex: 1;
}

.mk-card__arrow {
    font-size: 10px;
    color: #999;
    transition: transform .2s;
    margin-left: auto;
    flex-shrink: 0;
}

.mk-card__keterangan {
    font-size: 10px;
    color: #777;
    background: #fff8f8;
    border-radius: 6px;
    padding: 4px 8px;
    border: 1px solid #f5c6c6;
    margin: 0 12px 8px;
}

.mk-card__photos {
    display: flex;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    position: relative;
    height: 100px;
    margin: 6px 8px 8px;
    border-radius: 6px;
}

.mk-card__before,
.mk-card__after {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: gray;
}

.mk-card__before img,
.mk-card__after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: bmkk;
    transition: transform .2s;
}

.mk-card__before img:hover,
.mk-card__after img:hover {
    transform: scale(1.05);
}

.mk-card__before span,
.mk-card__after span {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
    pointer-events: none;
}

.mk-card__divider {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.mk-card__divider-icon {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, .9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #444;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
}



/* ── 12. LEGEND / WILAYAH LIST ─────────────────────────────── */
.leg-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--ink2);
    padding: 4px 12px;
    cursor: pointer;
    transition: background .12s;
}

.leg-item:hover {
    background: var(--paper2);
}

.leg-item.back-btn {
    font-size: 12px;
    color: var(--accent2);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.leg-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}


/* ── 13. MAP POPUP ─────────────────────────────────────────── */
.custom-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.custom-popup .leaflet-popup-tip-container {
    display: none;
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    width: auto !important;
}

/* Popup inner layout classes (used by markerPopup.js) */
.popup-wrap {
    font-family: 'DM Sans', sans-serif;
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.popup-header {
    display: flex;
    align-items: center;
    padding: 12px 14px 8px;
    border-bottom: 1px solid #eee;
}

.popup-title {
    font-size: 15px;
    font-weight: 700;
}

.popup-body {
    padding: 12px 14px;
}

.popup-pct-row {
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.popup-pct-val {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.popup-bar {
    height: 9px;
    border-radius: 5px;
    background: #e0e0e0;
    margin: 6px 0 12px;
    overflow: hidden;
}

.popup-bar-fill {
    height: 100%;
    background: #5a9a6e;
    border-radius: 5px;
}

.popup-jumlah {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.popup-detail-btn {
    margin: 0 8px 8px;
    background: #2a4d7a;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

.popup-detail-btn:hover {
    background: #1e3a5f;
}

/* Paket pekerjaan popup section */
.popup-pekerjaan-info {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.popup-pekerjaan-nama {
    font-size: 14px;
    margin-bottom: 4px;
}

.popup-pekerjaan-ket {
    font-size: 12px;
    color: #555;
}

.popup-nominal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    font-size: 13px;
    color: #666;
}

.popup-nominal-val {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}


/* ── 14. PROVINCE POPUP ────────────────────────────────────── */
#prov-popup {
    position: fixed;
    right: 12px;
    top: 62px;
    z-index: 90;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    min-width: 320px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s;
    pointer-events: none;
}

#prov-popup.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#prov-popup-name {
    font-family: 'DM Serif Display', serif;
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#prov-popup-name .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pp-row {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    margin-bottom: 4px;
}

.pp-label { color: var(--ink3); }
.pp-val   { font-weight: 600; font-size: 12px; color: var(--ink); }

.pp-bar {
    height: 5px;
    background: var(--paper3);
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
}

.pp-bar-fill {
    height: 100%;
    border-radius: 3px;
}


/* ── 15. LEAFLET OVERRIDES ─────────────────────────────────── */
.leaflet-top,
.leaflet-left {
    left: unset !important;
    top: unset !important;
    bottom: 18px !important;
    right: 18px !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--shadow) !important;
}

.leaflet-control-zoom a {
    background: var(--panel-bg) !important;
    color: var(--ink) !important;
    border: 1px solid var(--border) !important;
    backdrop-filter: blur(8px);
}

.leaflet-control-zoom a:hover {
    background: var(--paper2) !important;
}

.leaflet-control-attribution {
    display: none !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    box-shadow: var(--shadow);
}

.leaflet-popup-tip-container {
    display: none;
}


/* ── 16. UTILITIES ─────────────────────────────────────────── */

/* Map label on polygons */
.sub-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    display: inline-block;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.6px;
    text-shadow:
        -1px -1px 0 rgba(255,255,255,0.9),
        1px -1px 0 rgba(255,255,255,0.9),
        -1px  1px 0 rgba(255,255,255,0.9),
        1px  1px 0 rgba(255,255,255,0.9);
}

/* Update note */
.update-note {
    position: fixed;
    bottom: 8px;
    left: 8px;
    font-size: 11px;
    color: var(--ink3);
    z-index: 50;
}

/* Iframe detail overlay */
#paket_pekerjaan_detail {
    z-index: 200;
    position: fixed;
    top: 88px;
    right: 28px;
}

.iframe-wrap {
    height: 85dvh;
    width: 70vw;
    position: relative;
}

.iframe-close {
    cursor: pointer;
    color: #888;
    position: fixed;
    top: 98px;
    right: 38px;
    z-index: 300;
    font-size: 18px;
    line-height: 1;
}

.iframe-close:hover {
    color: var(--ink);
}

/* Font weight helper used in breadcrumb */
.fw-500 {
    font-weight: 500;
}


/* ── 17. ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

.vertical-tab {

}

.vertical-tab .item-tab {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    color: inherit;
    background: transparent;
    border-left: 3px solid transparent;
}

.vertical-tab .item-tab.active {
    font-weight: 600;
    color: #1a4b8c;
    background: rgba(26, 75, 140, 0.08);
    border-left: 3px solid #1a4b8c;
}
