/* ========== MONETA - Kabupaten Tabalong ========== */
/* ========== GLOBAL STYLES ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* ========== LANDING PAGE STYLES ========== */
#landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#landing-page.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.landing-header {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-logo {
    height: 45px;
    width: auto;
}

.landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.map-icon-container {
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.landing-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.landing-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

.landing-button {
    background: #4CAF50;
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-button:hover {
    background: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.login-button {
    background: transparent;
    color: white;
    padding: 12px 30px;
    border: 2px solid white;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-button:hover {
    background: white;
    color: #1e3c72;
}

.logout-button {
    background: #f44336;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-button:hover {
    background: #d32f2f;
}

/* ========== LOGIN MODAL ========== */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.login-modal.active {
    display: flex;
}

.login-modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: fadeInUp 0.3s ease;
    position: relative;
}

.login-modal h2 {
    color: #1e3c72;
    margin-bottom: 20px;
}

.login-modal input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.login-modal button {
    width: 100%;
    padding: 12px;
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.login-modal button:hover {
    background: #2a5298;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #999;
    cursor: pointer;
}

.login-error {
    color: #f44336;
    font-size: 0.9rem;
    margin-top: 10px;
    display: none;
}

/* ========== ADMIN SIDEBAR ========== */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    z-index: 1003;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.admin-sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1002;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    background: rgba(255,255,255,0.3);
}

.sidebar-menu {
    padding: 20px 0;
    flex: 1;
}

.sidebar-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 4px solid transparent;
    cursor: pointer;
}

.sidebar-item:hover {
    background: #f5f5f5;
    border-left-color: #2196F3;
}

.sidebar-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sidebar-item span {
    font-weight: 500;
}

.sidebar-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 10px 20px;
}

.sidebar-section-title {
    padding: 10px 20px;
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toggle-indicator {
    font-size: 0.7rem;
    transition: color 0.3s;
    margin-left: auto;
}

.toggle-indicator.active {
    color: #4CAF50;
}

.toggle-indicator.inactive {
    color: #9e9e9e;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.sidebar-logout {
    width: 100%;
    padding: 12px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-logout:hover {
    background: #d32f2f;
}

/* ========== DROPDOWN CONTENT IN SIDEBAR ========== */
.sidebar-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
    margin: 0 20px;
    border-radius: 8px;
}

.sidebar-dropdown.active {
    max-height: 500px;
    margin: 10px 20px;
    padding: 15px;
}

.dropdown-content {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
    text-align: justify;
}

.dropdown-content p {
    margin-bottom: 10px;
}

/* ========== BATAS DESA OPTIONS ========== */
.batas-desa-options {
    margin: 10px 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    display: none;
}

.batas-desa-options.active {
    display: block;
}

.batas-desa-options .option-item {
    margin-bottom: 15px;
}

.batas-desa-options label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.batas-desa-options select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.batas-desa-legend {
    font-size: 0.8rem;
    color: #666;
    padding: 10px 20px;
    background: #fff3e0;
    border-left: 3px solid #ff9800;
    margin: 5px 20px;
    border-radius: 4px;
    display: none;
}

.batas-desa-legend.active {
    display: block;
}

/* ========== GUEST SIDEBAR ========== */
.guest-menu-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1002;
    background: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1e3c72;
    transition: all 0.2s;
}

.guest-menu-btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.guest-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    z-index: 1003;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.guest-sidebar.active {
    left: 0;
}

/* ========== HAMBURGER BUTTON ========== */
.hamburger-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1002;
    background: white;
    color: #1e3c72;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.hamburger-btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

/* ========== MAP TYPE SELECTOR ========== */
.map-type-selector {
    padding: 15px 20px;
}

.map-type-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 0.9rem;
}

.map-type-selector select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.map-type-selector select:focus {
    outline: none;
    border-color: #2196F3;
}

/* ========== BOTTOM NAVIGATION PANEL - MOBILE FIX ========== */
.nav-panel {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1005 !important;
    display: flex;
    gap: 10px;
    max-width: 95%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
}

.nav-item:hover {
    background: #f0f0f0;
}

.nav-item.active {
    background: #e3f2fd;
    color: #1976d2;
}

.nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-bottom: 4px;
    background: #f5f5f5;
    border-radius: 4px;
    display: block;
}

.nav-item span {
    font-size: 11px;
    line-height: 1.2;
}

/* ========== DRAGGABLE PANELS ========== */
.panel {
    position: fixed;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 1002;
    width: 95%;
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
    touch-action: pan-y;
    transition: height 0.3s ease;
}

.panel.collapsed {
    height: 50vh;
}

.panel.expanded {
    height: 80vh;
}

.drag-handle {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin: 12px auto 16px;
    cursor: grab;
}

.panel h3 {
    color: #d32f2f;
    margin-bottom: 12px;
    padding: 0 16px 8px;
    border-bottom: 1px solid #eee;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    cursor: pointer;
    font-size: 24px;
    color: #999;
    line-height: 1;
}

/* ========== DATA CARDS ========== */
.data-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 16px;
}

.data-card {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: border-left 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.data-card:hover {
    background: #f0f0f0;
}

.data-card.highlighted {
    border-left: 4px solid #d32f2f;
    background-color: #fff9f9;
}

.data-card-header {
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.data-card-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: 4px;
    word-wrap: break-word;
}

.data-card-label {
    color: #666;
}

.data-card-value {
    color: #333;
    font-weight: 500;
    text-align: right;
}

/* ========== SEARCH BOX ========== */
.search-box {
    width: calc(100% - 32px);
    padding: 8px;
    margin: 0 16px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* ========== DETAIL SECTION ========== */
.detail-section {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 16px 16px;
    word-wrap: break-word;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.detail-label {
    min-width: 120px;
    color: #666;
    font-weight: 500;
}

.detail-value {
    flex: 1;
    color: #333;
    text-align: right;
}

/* ========== STATUS BADGE ========== */
.status-badge-container {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    margin: 0 16px 16px;
    border-left: 4px solid #ccc;
}

.status-badge-container.termanfaatkan {
    border-left-color: #4CAF50;
}

.status-badge-container.tidak_termanfaatkan {
    border-left-color: #f44336;
}

.status-badge-container.dalam_proses {
    border-left-color: #ffeb3b;
}

.status-badge-container.sengketa {
    border-left-color: #9c27b0;
}

.status-badge-container.cadangan_pemerintah {
    border-left-color: #2196F3;
}

.status-badge-container.belum_dievaluasi {
    border-left-color: #9e9e9e;
}

.status-badge-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.status-badge-icon {
    font-size: 1.2rem;
}

.status-badge-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.status-badge-label.termanfaatkan {
    color: #4CAF50;
}

.status-badge-label.tidak_termanfaatkan {
    color: #f44336;
}

.status-badge-label.dalam_proses {
    color: #f57f17;
}

.status-badge-label.sengketa {
    color: #9c27b0;
}

.status-badge-label.cadangan_pemerintah {
    color: #2196F3;
}

.status-badge-label.belum_dievaluasi {
    color: #9e9e9e;
}

.status-percentage {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}

.status-percentage strong {
    color: #333;
}

/* ========== GOOGLE MAPS BUTTON ========== */
.btn-google-maps {
    width: calc(100% - 32px);
    padding: 10px 14px;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    margin: 12px 16px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.btn-google-maps:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* ========== PHOTO GALLERY ========== */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin: 0 16px 16px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 10px;
    padding: 2px;
    text-align: center;
}

/* ========== FORM STYLES ========== */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #666;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #f9f9f9;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.btn-submit {
    width: calc(100% - 32px);
    padding: 12px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 0 16px 15px;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #0b7dda;
}

.btn-admin-only {
    display: none;
}

/* ========== REVIEW SECTION ========== */
.review-list {
    margin: 0 16px 16px;
}

.review-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #f9f9f9;
    font-size: 0.9rem;
    word-wrap: break-word;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.review-name {
    font-weight: bold;
    color: #333;
}

.review-date {
    color: #777;
    font-size: 0.8rem;
}

.review-stars {
    color: #ffca28;
    font-size: 14px;
}

.add-review-form {
    padding: 0 16px 16px;
}

.rating {
    display: flex;
    margin: 6px 0 12px;
}

.rating label {
    font-size: 20px;
    color: #ddd;
    cursor: pointer;
    margin-right: 4px;
}

.rating input[type="radio"]:checked + label {
    color: #ffca28;
}

.btn-add-review {
    width: calc(100% - 32px);
    padding: 10px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 0 16px 15px;
    font-size: 0.95rem;
    text-align: left;
}

/* ========== TOAST NOTIFICATION ========== */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
    min-width: 250px;
    justify-content: center;
}

.toast.success {
    background: #4CAF50;
}

.toast.error {
    background: #f44336;
}

.toast.info {
    background: #2196F3;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* ========== LIGHTBOX ========== */
#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#lightbox-overlay img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain;
}

#lightbox-overlay div {
    text-align: center;
    margin-top: 12px;
    color: white;
    font-size: 1rem;
}

/* ========== GPS MARKER ========== */
.custom-gps-marker {
    background: #4285f4;
    border: 3px solid white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    box-shadow: 0 0 0 2px white, 0 2px 6px rgba(66,133,244,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-gps-marker i {
    color: white;
    font-size: 16px;
}

/* ========== BOUNDARY LEGEND ========== */
.boundary-legend {
    position: fixed;
    bottom: 100px;
    right: 10px;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    font-size: 0.85rem;
    display: none;
}

.boundary-legend.active {
    display: block;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
}

.legend-line {
    width: 30px;
    height: 3px;
    border-radius: 2px;
}

.legend-line.desa {
    background: repeating-linear-gradient(
        90deg,
        #4CAF50 0px,
        #4CAF50 5px,
        transparent 5px,
        transparent 8px
    );
    border: 1px solid #4CAF50;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .panel {
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }

    .nav-panel {
        width: 95% !important;
        justify-content: space-around;
        bottom: 12px !important;
        padding: 10px 8px !important;
        z-index: 1005 !important;
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }

    .nav-item {
        min-width: 55px !important;
        padding: 6px 4px !important;
    }
    
    .nav-icon {
        width: 22px !important;
        height: 22px !important;
    }
    
    .nav-item span {
        font-size: 10px !important;
    }

    .landing-title {
        font-size: 1.6rem;
    }

    .landing-subtitle {
        font-size: 0.95rem;
    }

    .landing-button {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .header-logo {
        height: 40px;
    }

    .logo-group {
        gap: 10px;
        padding: 8px 20px;
    }

    .admin-sidebar,
    .guest-sidebar {
        width: 260px;
        left: -260px;
    }

    .hamburger-btn,
    .guest-menu-btn {
        display: flex !important;
    }
}

/* Very Small Mobile */
@media (max-width: 360px) {
    .nav-panel {
        bottom: 16px !important;
        padding: 8px 6px !important;
    }
    
    .nav-item {
        min-width: 50px !important;
    }
    
    .nav-icon {
        width: 20px !important;
        height: 20px !important;
    }
}

/* ========== MODERN POPUP STYLES - GPS & BIDANG TANAH (COMPACT) ========== */

/* Base Popup Styles */
.modern-popup .leaflet-popup-content-wrapper,
.leaflet-popup-content-wrapper {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 8px 30px rgba(65, 105, 225, 0.3);
    border: none;
    overflow: hidden;
    min-width: 260px;
}

.modern-popup .leaflet-popup-content,
.leaflet-popup-content {
    margin: 0 !important;
    width: 280px !important;
    max-width: 280px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
}

.leaflet-popup-tip {
    background: white;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.2);
    width: 20px;
    height: 20px;
}

.leaflet-popup-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: white;
    background: rgba(255, 255, 255, 0.25);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
    padding: 0;
    line-height: 1;
}

.leaflet-popup-close-button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* Popup Header - Blue Gradient */
.popup-gps-header,
.popup-bidang-header {
    background: linear-gradient(135deg, #4169E1 0%, #2E4CB8 100%);
    color: white;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.popup-gps-header i,
.popup-bidang-header i {
    font-size: 1.5rem;
    color: white;
}

.popup-gps-header span,
.popup-bidang-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    flex: 1;
    letter-spacing: 0.3px;
    margin: 0;
}

/* Popup Body */
.popup-gps-body,
.popup-bidang-body {
    background: white;
    padding: 15px 18px;
}

/* Info Rows */
.popup-gps-row,
.popup-bidang-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
    gap: 12px;
}

.popup-gps-row:last-child,
.popup-bidang-row:last-child {
    border-bottom: none;
}

.popup-gps-row:hover,
.popup-bidang-row:hover {
    background: #F5F8FF;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 8px;
}

/* Labels dengan Icon */
.popup-bidang-label,
.popup-gps-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    flex: 1;
}

.popup-bidang-label i,
.popup-gps-label i {
    color: #4169E1;
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

/* Values */
.popup-bidang-value,
.popup-gps-value {
    font-size: 0.9rem;
    color: #333;
    font-weight: 700;
    text-align: right;
    flex-shrink: 0;
}

/* Popup Footer */
.popup-bidang-footer,
.popup-gps-footer {
    padding: 0 18px 15px;
}

.popup-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.popup-btn-primary {
    background: linear-gradient(135deg, #4169E1 0%, #2E4CB8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.4);
}

.popup-btn-primary:hover {
    background: linear-gradient(135deg, #2E4CB8 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(65, 105, 225, 0.5);
}

.popup-btn-primary:active {
    transform: translateY(0);
}

.popup-btn-primary i {
    font-size: 1.1rem;
}

/* Loading Popup */
.leaflet-popup-content i.fa-spinner {
    color: #4169E1;
    font-size: 1.8rem;
    margin: 15px;
}

/* Responsive untuk Mobile */
@media (max-width: 480px) {
    .modern-popup .leaflet-popup-content,
    .leaflet-popup-content {
        width: 260px !important;
        max-width: 260px;
    }
    
    .popup-gps-header,
    .popup-bidang-header {
        padding: 14px 16px;
    }
    
    .popup-gps-header i,
    .popup-bidang-header i {
        font-size: 1.4rem;
    }
    
    .popup-gps-header span,
    .popup-bidang-header h3 {
        font-size: 1.05rem;
    }
    
    .popup-gps-body,
    .popup-bidang-body {
        padding: 14px 16px;
    }
    
    .popup-gps-row,
    .popup-bidang-row {
        padding: 9px 0;
        gap: 10px;
    }
    
    .popup-bidang-label,
    .popup-gps-label {
        font-size: 0.8rem;
    }
    
    .popup-bidang-label i,
    .popup-gps-label i {
        font-size: 0.95rem;
        width: 16px;
    }
    
    .popup-bidang-value,
    .popup-gps-value {
        font-size: 0.85rem;
    }
    
    .popup-btn {
        padding: 11px 18px;
        font-size: 0.9rem;
    }
    
    .leaflet-popup-close-button {
        top: 8px;
        right: 8px;
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .modern-popup .leaflet-popup-content,
    .leaflet-popup-content {
        width: 240px !important;
        max-width: 240px;
    }
    
    .popup-gps-header,
    .popup-bidang-header {
        padding: 12px 14px;
    }
    
    .popup-gps-body,
    .popup-bidang-body {
        padding: 12px 14px;
    }
    
    .popup-bidang-label,
    .popup-gps-label {
        font-size: 0.75rem;
    }
    
    .popup-bidang-value,
    .popup-gps-value {
        font-size: 0.8rem;
    }
}

/* Dark Mode Compatible - Navigation */
[data-theme="dark"] .nav-panel {
    background: var(--bg-panel, #1f1f3a);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

[data-theme="dark"] .nav-icon {
    background: var(--bg-secondary, #16213e);
}

[data-theme="dark"] .nav-item:hover {
    background: var(--bg-secondary, #16213e);
}

[data-theme="dark"] .nav-item.active {
    background: rgba(33, 150, 243, 0.2);
    color: #64B5F6;
}