/* Style kustom untuk Shepherd.js */
.shepherd-custom-theme.shepherd-element {
    background: #212529;
    /* Latar belakang gelap */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
}

.shepherd-custom-theme .shepherd-header {
    background: #198754;
    /* Hijau seperti tema Anda */
    padding: 0.75rem 1rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.shepherd-custom-theme .shepherd-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.shepherd-custom-theme .shepherd-text {
    color: #f8f9fa;
    /* Teks putih */
    padding: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.shepherd-custom-theme .shepherd-text strong {
    color: #28a745;
    /* Aksen hijau */
}

.shepherd-custom-theme .shepherd-footer {
    padding: 0 1.25rem 1.25rem;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.shepherd-custom-theme .shepherd-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.shepherd-custom-theme .shepherd-button:not(:disabled):hover {
    background: #218838;
}

.shepherd-custom-theme .shepherd-button.shepherd-button-secondary {
    background: #6c757d;
}

.shepherd-custom-theme .shepherd-button.shepherd-button-secondary:not(:disabled):hover {
    background: #5a6268;
}

/* Ini adalah panah yang menunjuk ke elemen */
.shepherd-custom-theme[data-popper-placement^="right"] .shepherd-arrow::before {
    border-right-color: #212529;
}

.shepherd-custom-theme[data-popper-placement^="bottom"] .shepherd-arrow::before {
    border-bottom-color: #212529;
}
.leaflet-tooltip.my-labels {
    background-color: transparent;
    border: transparent;
    box-shadow: none;
    font-size: 15px;
    color: #ff0;
    text-align: center;
}

.map-layout-container {
    display: flex; /* Mengaktifkan Flexbox */
    flex-direction: column; /* Mengatur item secara vertikal (map di atas, card di bawah) */
    
    /* Mengisi sisa tinggi layar. Sesuaikan '95vh' jika ada header/navbar */
    /* vh = viewport height. 100vh = 100% tinggi layar. */
    height: 100vh;
    padding: 0; /* Hapus padding bawaan kolom jika ada */
}


#map {
    flex-grow: 1; /* INI KUNCINYA: membuat map mengisi semua ruang kosong yang tersedia */
    position: relative; /* Diperlukan agar elemen di dalamnya (seperti layer) terposisi dengan benar */
    width: 100%;
}

.border-sunkist-gelap{
    border-color: #9e5700 !important;
}

table {
    width: 200px !important;
}

#kmz-popup table tbody tr td {
    justify-content: center;
    display: flex;
}




.leaflet-control-layers-base {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    position:absolute;
    gap: 2px;
    padding: 2px;
    left: 500%;
    top:55px;
    width: fit-content;
    height: fit-content;
    border-radius: 10px;
}


.leaflet-control-layers-base label {
    display: inline-block;
    width: 100px;
    margin: 5px;
    cursor: pointer;
    text-align: center;
}

.leaflet-control-layers-base img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: 0.2s;
}
.leaflet-control-layers-base span img {
    border-color: #2a2a2a;
    box-shadow: 0 0 5px #2a2a2a;
}
.leaflet-control-layers-base input:checked+span img {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.7);
}
.leaflet-control-layers-base input[type="radio"] {
    display: none;
}

.popup {
    position: absolute;
    top: 30px;
    right: 20px;
    width: auto;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1000;
}


.leaflet-popup-content {
    width: auto !important;
    /* display: none; */
}

.leaflet-popup-tip-container {
    display: none;
}

.button-filter {
    position: absolute;
    top: 10px;
    left: 15px;
    z-index: 1001;
}


.leaflet-top.leaflet-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.legend{
        position: absolute;
    top: 10px;
    left: 60vh;
    z-index: 1001;
    display: inline-block;
    background-color: #ddd;
}

#selector{
        position: absolute;
    top: 10px;
    left: 30vw;
    z-index: 1001;
    display: inline-block;
}
.dropbtn {
    background-color: #0b6b01;
    color: white;
    padding: 7px;
    font-size: 16px;
    border: solid 5px white;
    border-radius: 50%;
}

.dropdown {
    position: absolute;
    top: 10px;
    left: 15px;
    z-index: 1001;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #042b05;
}

@media only screen and (max-width: 600px) {
    .wrapper .content {
        width: 100vw !important;
        height: 100vh !important;
    }

    .img-marker>a>img {
        width: auto !important;
    }
}