/* peta */
.map-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: var(--green-deep);
    font-size: 1.15rem;
    margin: 0
}

.map-sub {
    font-size: .82rem;
    color: #6B7280;
    margin: 0
}

#mapWrap {
    background: #fff
}

#mapWrap:fullscreen {
    padding: 12px;
    display: flex;
    flex-direction: column
}

#mapWrap:fullscreen .map-row {
    flex: 1
}

#mapWrap:fullscreen #map {
    height: 100% !important
}

#map {
    height: 520px;
    border-radius: 8px;
    z-index: 1
}

.btn-full {
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #374151;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 8px;
    padding: .5rem .9rem
}

.btn-full:hover {
    background: var(--cream);
    border-color: var(--gold);
    color: var(--green-deep)
}

/* cluster */
.dy-cluster {
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3)
}

/* legenda */
.legend-head {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: .85rem;
    color: var(--green-deep)
}

.legend-head .bi {
    transition: transform .2s
}

.legend-head.collapsed .bi {
    transform: rotate(-90deg)
}

.legend-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .35rem .2rem;
    font-size: .82rem;
    cursor: pointer;
    border-radius: 6px;
    user-select: none
}

.legend-item:hover {
    background: var(--cream)
}

.legend-item .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex: 0 0 14px
}

.legend-item.off {
    opacity: .35
}

.legend-item .cnt {
    margin-left: auto;
    font-size: .72rem;
    color: #9CA3AF
}

/* rekap */
.rekap-item {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .4rem .2rem;
    border-bottom: 1px solid #F3F4F6;
    cursor: pointer;
    font-size: .82rem
}

.rekap-item:last-child {
    border-bottom: 0
}

.rekap-item:hover {
    background: var(--cream)
}

.rekap-item.active {
    background: var(--cream)
}

.rekap-badge {
    min-width: 34px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    border-radius: 6px;
    padding: .15rem .4rem
}

.rekap-item .bi {
    margin-left: auto;
    color: #9CA3AF
}

/* popup */
.leaflet-popup-content-wrapper {
    border-radius: 10px
}

.pp-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: var(--green-deep);
    font-size: .95rem;
    margin-bottom: .3rem
}

.pp-row {
    font-size: .78rem;
    color: #6B7280;
    margin-bottom: .15rem
}

.pp-row b {
    color: #374151
}

.pp-btn {
    display: block;
    margin-top: .5rem;
    text-align: center;
    background: var(--green-mid);
    color: #fff !important;
    text-decoration: none;
    font-size: .76rem;
    font-weight: 600;
    border-radius: 6px;
    padding: .35rem
}

.pp-btn:hover {
    background: var(--green-deep)
}

.leaflet-bar a {
    color: var(--green-deep)
}

.loc-btn {
    background: #fff;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--green-deep);
    font-size: 1.05rem
}

#rekapBody {
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Scrollbar tipis */
#rekapBody::-webkit-scrollbar {
    width: 5px;
}

#rekapBody::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#rekapBody::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}