body {
    background-color: #e5e7eb;
}

#map {
    height: calc(100vh - 350px);
    min-height: 600px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1;
}

.search-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-container h5 {
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input-group .form-select,
.search-input-group .form-control {
    border-radius: 8px;
    border: none;
    padding: 12px 45px 12px 15px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-input-group .form-control:focus {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    outline: none;
}

/* Autocomplete styling (W3Schools style) */
.autocomplete {
    position: relative;
    display: inline-block;
    width: 100%;
    z-index: 10000;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 10001 !important;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    margin-top: 2px;
}

.autocomplete-items div:last-child {
    border-bottom: none;
}

.autocomplete-items div:hover {
    background-color: #f8f9fa;
}

.autocomplete-active {
    background-color: #667eea !important;
    color: #ffffff !important;
}

.search-input-group .btn {
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.search-input-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.info-panel {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature-popup {
    max-width: 300px;
}

.loading {
    text-align: center;
    padding: 20px;
}

.map-container {
    position: relative;
    width: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.leaflet-control-layers {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.leaflet-popup-content p {
    margin: 0;
}

/* Override Leaflet default max-width of 301px */
.leaflet-popup-content-wrapper {
    max-width: none !important;
    width: auto !important;
}

.leaflet-popup-content {
    width: auto !important;
    max-width: none !important;
}

/* Fix pagination layout */
.pagination .page-link {
    font-size: 14px;
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-size: 16px;
    font-weight: bold;
}

/* Navigation styling */
.navbar {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    color: #333 !important;
}

.navbar .btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .btn:not(.btn-outline-secondary) {
    border: none !important;
}

.navbar .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none !important;
}

.navbar .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Cluster styling */
.land-cluster {
    background-color: #ffc107;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #000;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.land-cluster.small {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.land-cluster.medium {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

.land-cluster.large {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.land-cluster div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.land-cluster span {
    line-height: 1;
}

/* Building cluster styling */
.building-cluster {
    background-color: #28a745;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.building-cluster.small {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.building-cluster.medium {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

.building-cluster.large {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.building-cluster div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.building-cluster span {
    line-height: 1;
}




body {
    background-color: #e5e7eb;
}

#map {
    height: calc(100vh - 350px);
    min-height: 600px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1;
}

.search-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-container h5 {
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input-group .form-select,
.search-input-group .form-control {
    border-radius: 8px;
    border: none;
    padding: 12px 45px 12px 15px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-input-group .form-control:focus {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    outline: none;
}

/* Autocomplete styling (W3Schools style) */
.autocomplete {
    position: relative;
    display: inline-block;
    width: 100%;
    z-index: 10000;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 10001 !important;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    margin-top: 2px;
}

.autocomplete-items div {
    padding: 12px 15px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.autocomplete-items div:last-child {
    border-bottom: none;
}

.autocomplete-items div:hover {
    background-color: #f8f9fa;
}

.autocomplete-active {
    background-color: #667eea !important;
    color: #ffffff !important;
}

.search-input-group .btn {
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.search-input-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.info-panel {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature-popup {
    max-width: 300px;
}

.loading {
    text-align: center;
    padding: 20px;
}

.map-container {
    position: relative;
    width: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.leaflet-control-layers {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Fix pagination layout */
.pagination .page-link {
    font-size: 14px;
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-size: 16px;
    font-weight: bold;
}

/* Navigation styling */
.navbar {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    color: #333 !important;
}

.navbar .btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .btn:not(.btn-outline-secondary) {
    border: none !important;
}

.navbar .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none !important;
}

.navbar .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Cluster styling */
.land-cluster {
    background-color: #ffc107;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #000;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.land-cluster.small {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.land-cluster.medium {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

.land-cluster.large {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.land-cluster div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.land-cluster span {
    line-height: 1;
}

/* Building cluster styling */
.building-cluster {
    background-color: #28a745;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.building-cluster.small {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.building-cluster.medium {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

.building-cluster.large {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.building-cluster div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.building-cluster span {
    line-height: 1;
}


body {
    background-color: #e5e7eb;
}

#map {
    height: calc(100vh - 350px);
    min-height: 600px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1;
}

.search-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-container h5 {
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input-group .form-select,
.search-input-group .form-control {
    border-radius: 8px;
    border: none;
    padding: 12px 45px 12px 15px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-input-group .form-control:focus {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    outline: none;
}

/* Autocomplete styling (W3Schools style) */
.autocomplete {
    position: relative;
    display: inline-block;
    width: 100%;
    z-index: 10000;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 10001 !important;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    margin-top: 2px;
}

.autocomplete-items div {
    padding: 12px 15px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.autocomplete-items div:last-child {
    border-bottom: none;
}

.autocomplete-items div:hover {
    background-color: #f8f9fa;
}

.autocomplete-active {
    background-color: #667eea !important;
    color: #ffffff !important;
}

.search-input-group .btn {
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.search-input-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.info-panel {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature-popup {
    max-width: 300px;
}

.loading {
    text-align: center;
    padding: 20px;
}

.map-container {
    position: relative;
    width: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.leaflet-control-layers {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Fix pagination layout */
.pagination .page-link {
    font-size: 14px;
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-size: 16px;
    font-weight: bold;
}

/* Navigation styling */
.navbar {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    color: #333 !important;
}

.navbar .btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .btn:not(.btn-outline-secondary) {
    border: none !important;
}

.navbar .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none !important;
}

.navbar .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Cluster styling */
.land-cluster {
    background-color: #ffc107;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #000;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.land-cluster.small {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.land-cluster.medium {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

.land-cluster.large {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.land-cluster div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.land-cluster span {
    line-height: 1;
}

/* Building cluster styling */
.building-cluster {
    background-color: #28a745;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.building-cluster.small {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.building-cluster.medium {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

.building-cluster.large {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.building-cluster div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.building-cluster span {
    line-height: 1;
}


/* Stats Cards Gradient using Tailwind CSS Variables */
.stat-card-blue {
    background: linear-gradient(135deg, var(--color-blue-500) 0%, var(--color-blue-600) 50%, var(--color-indigo-700, #4338ca) 100%);
}
.stat-card-green {
    background: linear-gradient(135deg, var(--color-emerald-500) 0%, var(--color-green-600) 50%, var(--color-teal-700, #0f766e) 100%);
}
.stat-card-orange {
    background: linear-gradient(135deg, var(--color-yellow-500) 0%, var(--color-yellow-600) 50%, var(--color-red-600) 100%);
}
.stat-card-purple {
    background: linear-gradient(135deg, var(--color-violet-500) 0%, var(--color-pink-600, #db2777) 50%, var(--color-red-600) 100%);
}

/* Fallback jika CSS variables tidak tersedia */
@supports not (color: var(--color-blue-500)) {
    .stat-card-blue {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #4338ca 100%);
    }
    .stat-card-green {
        background: linear-gradient(135deg, #10b981 0%, #059669 50%, #0f766e 100%);
    }
    .stat-card-orange {
        background: linear-gradient(135deg, #eab308 0%, #ca8a04 50%, #dc2626 100%);
    }
    .stat-card-purple {
        background: linear-gradient(135deg, #8b5cf6 0%, #db2777 50%, #dc2626 100%);
    }
}

/* Responsive Grid untuk Stats Cards - Fallback jika Tailwind responsive classes tidak tersedia */
@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Stats Cards untuk Equipment Statistics */
.stat-card-pink {
    background: linear-gradient(135deg, var(--color-pink-500, #ec4899) 0%, var(--color-pink-600, #db2777) 50%, var(--color-red-500, #ef4444) 100%);
}
.stat-card-cyan {
    background: linear-gradient(135deg, var(--color-cyan-500, #06b6d4) 0%, var(--color-cyan-600, #0891b2) 50%, var(--color-blue-500) 100%);
}

/* Fallback jika CSS variables tidak tersedia */
@supports not (color: var(--color-pink-500)) {
    .stat-card-pink {
        background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #ef4444 100%);
    }
    .stat-card-cyan {
        background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #3b82f6 100%);
    }
}

/* Custom right positioning for reset button */
#btn-reset-view {
    right: 0.25rem !important;
}

/* Filter Panel - Lebar kecil untuk desktop */
@media (min-width: 1024px) {
    .filter-panel {
        width: 24rem !important; /* setara dengan max-w-sm (384px) */
        flex-shrink: 0;
    }
}

/* Ensure both filter and info panels have equal height */
.filter-panel {
    display: flex;
    flex-direction: column;
}

.filter-panel + .kt-card {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    min-width: 0;
}

/* Ensure info panel content is full width */
.filter-panel + .kt-card > div {
    width: 100%;
}

.filter-panel + .kt-card .grid {
    width: 100%;
}

/* Filter Panel - Lebar kecil untuk desktop */
@media (min-width: 1024px) {
    .filter-panel {
        width: 24rem !important; /* setara dengan max-w-sm (384px) */
        flex-shrink: 0;
    }
}

/* Override Leaflet popup width limit - Must be very specific */
.leaflet-container .leaflet-popup-content-wrapper {
    max-width: none !important;
    width: auto !important;
    min-width: 500px !important;
}

.leaflet-container .leaflet-popup-content {
    width: auto !important;
    max-width: none !important;
    min-width: 500px !important;
    margin: 13px 19px !important;
}

.leaflet-container .leaflet-popup {
    max-width: none !important;
    width: auto !important;
}

.leaflet-popup-content-wrapper {
    max-width: none !important;
    width: auto !important;
    min-width: 500px !important;
}

.leaflet-popup-content {
    width: auto !important;
    max-width: none !important;
    min-width: 500px !important;
    margin: 13px 19px !important;
}

.leaflet-popup {
    max-width: none !important;
    width: auto !important;
}

.feature-popup {
    width: 100% !important;
    min-width: 500px !important;
    display: block !important;
}

/* Map Drawer Styles (Google Maps style) - Inside map container */
.map-drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    pointer-events: none;
    width: 0;
    opacity: 0;
    transition: opacity 0.6s ease, width 0s linear 0.6s;
}

.map-drawer.active {
    pointer-events: auto;
    width: auto;
    opacity: 1;
    transition: opacity 0.6s ease, width 0s linear 0s;
}

.map-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.map-drawer.active .map-drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

.map-drawer-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    width: 500px;
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    overflow: hidden;
    border-radius: 12px;
    will-change: transform;
}

.map-drawer.active .map-drawer-content {
    transform: translateX(0);
}

/* Mobile: Drawer from bottom */
@media (max-width: 767px) {
    .map-drawer {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 0;
        transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .map-drawer.active {
        height: 80vh;
    }
    
    .map-drawer-content {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }
    
    .map-drawer.active .map-drawer-content {
        transform: translateY(0);
    }
}

.map-drawer-handle {
    width: 40px;
    height: 4px;
    background-color: #d1d5db;
    border-radius: 2px;
    margin: 12px auto 8px;
    cursor: grab;
}

.map-drawer-handle:active {
    cursor: grabbing;
}

.map-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.map-drawer-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.map-drawer-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
}

.map-drawer-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.map-drawer-close i {
    font-size: 18px;
}

.map-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    -webkit-overflow-scrolling: touch;
}

.map-drawer-body::-webkit-scrollbar {
    width: 8px;
}

.map-drawer-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.map-drawer-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.map-drawer-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Drawer Content Styles */
.drawer-section {
    margin-bottom: 20px;
}

.drawer-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawer-field {
    margin-bottom: 8px;
}

.drawer-field-label {
    font-size: 12px;
    color: #6b7280;
    display: block;
}

.drawer-field-value {
    font-size: 14px;
    color: #111827;
    word-break: break-word;
}

.drawer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.drawer-grid-full {
    grid-column: 1 / -1;
}

.drawer-button {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.drawer-button:hover {
    background-color: #2563eb;
}

/* Desktop: Drawer from left side - drawer overlays map */
@media (min-width: 768px) {
    /* Parent container needs to allow overflow for drawer */
    .kt-card > div {
        position: relative;
        overflow: visible;
    }
    
    /* Map container stays full width, drawer overlays on top */
    .map-container {
        width: 100%;
    }
    
    /* Map container stays full width, drawer overlays on top */
    
    /* Drawer container should not have explicit width, let content define it */
    .map-drawer.active {
        width: auto;
    }
    
    .map-drawer-handle {
        display: none;
    }
}

/* Swipe to close on mobile */
@media (max-width: 767px) {
    .map-drawer-content {
        touch-action: pan-y;
    }
    
    /* On mobile, map container doesn't resize */
    .map-container.drawer-open {
        width: 100%;
    }
}

/* Hide Leaflet popups when drawer is active */
.map-drawer.active ~ * .leaflet-popup {
    display: none !important;
}

/* Pulse animation for problematic land markers */
@keyframes pulse-red {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

/* Image Slider Styles */
.drawer-image-slider {
    position: relative;
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.drawer-image-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.drawer-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-image-slide.active {
    opacity: 1;
    z-index: 1;
}

.drawer-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.drawer-image-prev,
.drawer-image-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    opacity: 0.8;
    pointer-events: auto;
    user-select: none;
}

.drawer-image-prev:hover,
.drawer-image-next:hover {
    background-color: rgba(255, 255, 255, 1);
    opacity: 1;
}

.drawer-image-prev {
    left: 10px;
}

.drawer-image-next {
    right: 10px;
}

.drawer-image-prev i,
.drawer-image-next i {
    font-size: 18px;
    color: #333;
}

.drawer-image-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.drawer-image-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s, transform 0.2s;
    pointer-events: auto;
    user-select: none;
}

.drawer-image-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.drawer-image-indicator.active {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.3);
}

/* Mobile adjustments for image slider */
@media (max-width: 767px) {
    .drawer-image-slider {
        height: 250px;
    }
    
    .drawer-image-prev,
    .drawer-image-next {
        width: 36px;
        height: 36px;
    }
    
    .drawer-image-prev i,
    .drawer-image-next i {
        font-size: 16px;
    }
}

/* Dashboard Theme - Modern Light Grey Background */
body {
    background-color: #e5e7eb;
}

/* Card styling dengan efek glassmorphism */
.kt-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
    transition: all 0.3s ease;
}

.kt-card:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25) !important;
    transform: translateY(-2px);
}

/* Container utama dengan background light grey */
.container-fluid {
    background-color: transparent;
}

/* Header dengan background sesuai tema dashboard */
.kt-header {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

.kt-header h1,
.kt-header .text-foreground {
    color: #ffffff !important;
}

.kt-header .kt-btn-outline {
    border-color: #475569 !important;
    color: #ffffff !important;
}

.kt-header .kt-btn-outline:hover {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

.kt-header .kt-btn-primary,
.kt-header .kt-btn-success {
    color: #ffffff !important;
}

/* Efek glass untuk stat cards */
.stat-card-blue,
.stat-card-green,
.stat-card-orange,
.stat-card-purple,
.stat-card-pink,
.stat-card-cyan {
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2) !important;
}

/* Background image untuk body */
body {
    background-image: url('/img/jayapurakota-night.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    position: relative !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    pointer-events: none;
}

/* Memastikan konten utama tetap readable */
.container-fluid {
    position: relative;
    z-index: 1;
}

/* Memastikan search card dan autocomplete berada di atas map */
.kt-card:has(.autocomplete) {
    position: relative;
    z-index: 9999;
}

/* Fallback untuk browser yang tidak support :has() */
.kt-card .autocomplete {
    position: relative;
    z-index: 10000;
}

/* Map Compass Overlay - Bottom Right */
.map-compass-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    pointer-events: none;
}

.map-compass-overlay:hover {
    background: transparent;
    box-shadow: none;
    transform: scale(1.05);
}

.map-compass-icon {
    width: clamp(60px, 9vw, 120px);
    height: clamp(60px, 9vw, 120px);
    display: block;
    pointer-events: none;
}

/* Responsive adjustments for compass */
/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .map-compass-overlay {
        bottom: 18px;
        right: 18px;
        padding: 0;
    }
    
    .map-compass-icon {
        width: clamp(75px, 7.5vw, 105px);
        height: clamp(75px, 7.5vw, 105px);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .map-compass-overlay {
        bottom: 15px;
        right: 15px;
        padding: 0;
    }
    
    .map-compass-icon {
        width: clamp(45px, 11.25vw, 90px);
        height: clamp(45px, 11.25vw, 90px);
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .map-compass-overlay {
        bottom: 10px;
        right: 10px;
        padding: 0;
    }
    
    .map-compass-icon {
        width: clamp(37.5px, 13.5vw, 75px);
        height: clamp(37.5px, 13.5vw, 75px);
    }
}
