/* === SCROLL CONTENT WILAYAH === */
.wilayah-scroll {
    max-height: 70vh;          /* tinggi area */
    overflow-y: auto;          /* scroll otomatis */
    padding-right: 8px;
}

/* scrollbar (opsional biar cakep) */
.wilayah-scroll::-webkit-scrollbar {
    width: 6px;
}
.wilayah-scroll::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 10px;
}
.wilayah-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.wilayah-item {
    max-width: 800px;   /* kira-kira ±20 cm di laptop */
    margin: auto;       /* biar ke tengah */
}

/* === FOTO LURAH === */
.foto-lurah {
    width: 90px;
    aspect-ratio: 3 / 4;  /* ⬅️ ini kunci 3x4 */
    object-fit: cover;
    border-radius: 8px;
}

/* === MOBILE RESPONSIVE (tetap kiri-kanan) === */
@media (max-width: 576px) {
    .wilayah-row {
        display: flex;
        flex-wrap: nowrap;     /* PENTING: biar tidak turun */
        align-items: center;
    }

    .foto-col {
        flex: 0 0 130px;
    }

    .data-col {
        flex: 1;
        padding-left: 10px;
    }

    .data-col h5 {
        font-size: 20px;
    }

    .data-col td {
        font-size: 13px;
        padding: 2px 0;
    }
}

/* SEARCH KECIL & KIRI */
.search-wilayah {
    width: 260px;        /* desktop */
}

@media (max-width: 576px) {
    .search-wilayah {
        width: 200px;    /* mobile tetap kecil */
    }
}


/* SCROLL KHUSUS CARD */
.wilayah-scroll {
    max-height: 65vh;      /* tinggi area card */
    overflow-y: auto;
    padding-right: 6px;
}

/* BIAR FOOTER TIDAK KEIKUT */
body {
    overflow-x: hidden;
}

.label-col {
    width: 110px;     /* kunci lebar label */
    padding-right: 4px;
    white-space: nowrap;
}

.value-col {
    padding-left: 0;
}


 html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

.logo-navbar {
    height: 45px;
}

.navbar-brand span {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .logo-navbar {
        height: 32px;
    }

    .navbar-brand span {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .navbar {
        padding-bottom: 0.6rem;
    }
}


.img-preview-modal {
    max-width: 400px;   /* ukuran desktop */
    width: 100%;
    height: auto;
}

/* kalau layar kecil tetap responsif */
@media (max-width: 576px) {
    .img-preview-modal {
        max-width: 250px;
    }
}


.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.modal-content {
    width: auto;
    max-width: 450px;
    margin: auto;
    border-radius: 12px;
}


/* ===== NAVBAR FIX ===== */
.custom-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030; /* lebih rendah dari modal bootstrap */
}

/* kasih jarak supaya konten tidak ketutup navbar */
body {
    padding-top: 80px;
    overflow-x: hidden;
}

/* ===== MODAL FIX ===== */
.modal {
    z-index: 1055 !important; /* default bootstrap */
}

.modal-backdrop {
    z-index: 1050 !important;
}

/* ukuran modal lebih proporsional */
.modal-dialog {
    max-width: 450px;
}

.modal-content {
    border-radius: 12px;
}

/* foto preview */
.img-preview-modal {
    max-width: 350px;
    width: 100%;
    height: auto;
}

/* responsive */
@media (max-width: 576px) {
    .img-preview-modal {
        max-width: 250px;
    }
}


.info-lurah .label {
    width: 120px;
    font-weight: 600;
}

.info-lurah .colon {
    width: 10px;
}

.info-lurah .value {
    flex: 1;
}

/* Responsive HP */
@media (max-width: 576px) {

    .info-lurah .label {
        width: 95px;
        font-size: 13px;
    }

    .info-lurah .value {
        font-size: 13px;
    }

    .data-col h5 {
        font-size: 15px;
    }

}

   
   