:root {
    --primary-blue: #2563eb;
    --primary-dark: #1e3a8a;
    --accent-color: #38bdf8;
    --white-glass: rgba(255, 255, 255, 0.85);
    --dark-text: #1f2937;
    --light-text: #f3f4f6;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-strong: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: var(--dark-text);
    overflow-x: hidden;
}

/* Glassmorphism Header */
.glass-header {
    background: var(--white-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: var(--shadow-soft);
}

.banner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.banner-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.banner-placeholder:hover::before {
    opacity: 1;
}

.banner-placeholder:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-2px);
}

.banner-content {
    display: flex;
    flex-direction: column;
    text-align: right;
    z-index: 10;
}

.banner-text {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.banner-subtext {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Banner Image Wrapper Khusus */
.banner-image-wrapper {
    width: 100%;
    min-height: 160px;
    /* Minimal height untuk placeholder */
    background: #e2e8f0;
    border: 2px dashed #94a3b8;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    cursor: pointer;
}

.banner-image-wrapper:hover {
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-blue);
}

.banner-img {
    border-radius: 18px;
    /* Sesuaikan dengan bentuk wrapper */
    transition: transform 0.3s ease;
}

.banner-image-wrapper:hover .banner-img {
    transform: scale(1.02);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: white;
    text-align: center;
    border-radius: 0 0 40px 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-strong);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: radial-gradient(#ffffff 2px, transparent 2px);
    background-size: 30px 30px;
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Interactive Category Buttons */
.category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 20;
    margin-top: -30px;
}

.cat-btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    cursor: pointer;
    background: white;
    color: var(--dark-text);
}

.cat-btn:hover,
.cat-btn.active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cat-btn.faskes {
    color: #ef4444;
}

.cat-btn.faskes:hover,
.cat-btn.faskes.active {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.cat-btn.polisi {
    color: #3b82f6;
}

.cat-btn.polisi:hover,
.cat-btn.polisi.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.cat-btn.posko {
    color: #f59e0b;
}

.cat-btn.posko:hover,
.cat-btn.posko.active {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

.cat-btn.wisata {
    color: #10b981;
}

.cat-btn.wisata:hover,
.cat-btn.wisata.active {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.cat-btn.oleh {
    color: #8b5cf6;
}

.cat-btn.oleh:hover,
.cat-btn.oleh.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}


/* Map Container Enhancements */
/* Map Container Enhancements */
.map-wrapper {
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.map-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-color));
    z-index: 10;
    border-radius: 2rem 2rem 0 0;
}

/* Custom Scrollbar for CCTV List */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(75, 85, 99, 1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 114, 128, 1);
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Custom Map Popups */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: var(--shadow-strong);
}

.leaflet-popup-content {
    font-family: 'Inter', sans-serif;
    margin: 15px;
}

.leaflet-popup-content b {
    color: var(--primary-dark);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}