/* ========================================
   CSS VARIABLES & RESET
   ======================================== */
:root {
    /* Color Palette */
    --primary: #0B4F6C;
    --secondary: #1766A6;
    --accent: #01B8AA;
    --danger: #E74C3C;
    --warning: #F1C40F;
    --bg-light: #F4F7F6;
    --text-dark: #1a1a1a;
    --text-medium: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #00d4b8 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 14px; /* FONT LEBIH KECIL & CLEAN */
    /* Prevent horizontal scroll on mobile */
    max-width: 100vw;
}

/* Prevent text overflow globally */
h1, h2, h3, h4, h5, h6, p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.brand-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-medium);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--primary);
    cursor: pointer;
}

/* ========================================
   HERO SECTION - CLEAN & MINIMALIST
   ======================================== */
.hero-section {
    position: relative;
    min-height: 85vh; /* Lebih pendek */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(1, 184, 170, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.hero-logo-large {
    margin-bottom: 24px;
    animation: fadeInUp 1s ease 0.1s both;
}

.hero-logo-large img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.hero-title {
    font-size: 48px; /* LEBIH KECIL & CLEAN */
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 16px; /* LEBIH KECIL */
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 36px;
    font-weight: 400;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.hero-scroll-indicator:hover {
    transform: translateX(-50%) scale(1.2);
}

.hero-scroll-indicator i {
    font-size: 28px;
    color: var(--white);
    opacity: 0.8;
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-description {
    font-size: 15px;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   DASHBOARD SECTION
   ======================================== */
.dashboard-section {
    padding: var(--section-padding);
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon-wrapper.primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.stat-icon-wrapper.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
}

.stat-icon-wrapper.danger {
    background: linear-gradient(135deg, var(--danger) 0%, #c0392b 100%);
    color: var(--white);
}

.stat-icon-wrapper.accent {
    background: var(--gradient-accent);
    color: var(--white);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 6px;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-light);
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
}

.stat-trend.positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.stat-card.loading .stat-value {
    height: 38px;
}

.skeleton-text {
    width: 100px;
    height: 32px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 6px;
}

/* ========================================
   MAP SECTION
   ======================================== */
/* ========================================
   MAP SECTION
   ======================================== */
.map-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.map-section .section-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    margin-bottom: 16px;
}

.map-section .section-description {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    margin-bottom: 40px;
}

.map-container-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--white);
    border: 6px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.map-container {
    height: 700px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ========================================
   LEAFLET CONTROLS RESPONSIVE
   ======================================== */
   
/* Layer control panel */
.leaflet-control-layers {
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid rgba(1, 184, 170, 0.2) !important;
}

.leaflet-control-layers-expanded {
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    max-height: 400px;
    overflow-y: auto;
}

.leaflet-control-layers-list {
    max-height: 350px;
    overflow-y: auto;
}

.leaflet-control-layers label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 4px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: background 0.2s ease;
}

.leaflet-control-layers label:hover {
    background: rgba(1, 184, 170, 0.05);
    border-radius: 6px;
}

/* Legend control */
.legend-control {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 16px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid rgba(1, 184, 170, 0.2) !important;
    max-width: 220px;
}

.legend-control h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 12px;
}

.legend-color {
    width: 24px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Zoom control */
.leaflet-control-zoom {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid rgba(1, 184, 170, 0.2) !important;
}

.leaflet-control-zoom a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 20px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    color: var(--primary) !important;
    transition: all 0.2s ease !important;
}

.leaflet-control-zoom a:hover {
    background: var(--accent) !important;
    color: white !important;
}

.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 10;
    transition: opacity var(--transition-medium);
}

.map-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.map-loading p {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.loader {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(11, 79, 108, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Leaflet Popup */
.leaflet-popup-content-wrapper {
    background: var(--white);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 280px;
}

.popup-header {
    padding: 16px 18px;
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
}

.popup-header.potential {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.popup-header.saturated {
    background: linear-gradient(135deg, var(--danger) 0%, #c0392b 100%);
}

.popup-body {
    padding: 16px 18px;
}

.popup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.popup-row:last-child {
    border-bottom: none;
}

.popup-label {
    font-size: 13px;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 6px;
}

.popup-value {
    font-size: 15px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

.popup-value.positive {
    color: #10b981;
}

.popup-value.negative {
    color: var(--danger);
}

.popup-status {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.popup-status-text {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-status-text.potential {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.popup-status-text.saturated {
    background: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

/* Legend */
.legend {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 14px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    line-height: 1.6;
    font-size: 12px;
}

.legend h4 {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.legend i {
    width: 18px;
    height: 18px;
    display: inline-block;
    margin-right: 6px;
    border-radius: 3px;
    vertical-align: middle;
}

/* ========================================
   METHODOLOGY SECTION - MODERN GRID
   ======================================== */
.methodology-section {
    padding: var(--section-padding);
    background: var(--white);
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 28px;
}

.method-card {
    background: linear-gradient(135deg, rgba(11, 79, 108, 0.02) 0%, rgba(1, 184, 170, 0.02) 100%);
    border: 1px solid rgba(11, 79, 108, 0.1);
    border-radius: 16px;
    padding: 28px;
    transition: all var(--transition-medium);
}

.method-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.method-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    margin-bottom: 18px;
}

.method-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.method-card p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 14px;
}

.method-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(1, 184, 170, 0.05);
    border-radius: 8px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

.method-detail i {
    font-size: 14px;
}

/* ========================================
   RECOMMENDATIONS SECTION
   ======================================== */
.recommendations-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.table-container {
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    margin-bottom: 16px;
}

/* ========================================
   RECOMMENDATIONS TABLE - FLEX RESPONSIVE
   ======================================== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.recommendations-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 800px; /* Minimum width for proper display */
}

.recommendations-table thead {
    background: var(--gradient-primary);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.recommendations-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Prevent header wrapping */
}

/* Column width distribution */
.recommendations-table th:nth-child(1) { width: 8%; }  /* Rank */
.recommendations-table th:nth-child(2) { width: 30%; } /* Kelurahan */
.recommendations-table th:nth-child(3) { width: 15%; } /* Penduduk */
.recommendations-table th:nth-child(4) { width: 12%; } /* Apotek */
.recommendations-table th:nth-child(5) { width: 12%; } /* Defisit */
.recommendations-table th:nth-child(6) { width: 23%; } /* Status */

.th-content {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
}

.recommendations-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.recommendations-table tbody tr:hover {
    background: rgba(1, 184, 170, 0.05);
    transform: translateX(4px);
}

.recommendations-table td {
    padding: 14px 12px;
    font-size: 13px;
    vertical-align: middle;
}

/* Mobile-friendly column widths */
.recommendations-table td:nth-child(1) { text-align: center; }
.recommendations-table td:nth-child(2) { 
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recommendations-table td:nth-child(3) { text-align: right; }
.recommendations-table td:nth-child(4) { text-align: center; }
.recommendations-table td:nth-child(5) { text-align: center; }
.recommendations-table td:nth-child(6) { text-align: center; }

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--white);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    color: var(--white);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
    color: var(--white);
}

.rank-badge.default {
    background: var(--gradient-primary);
    color: var(--white);
}

.kelurahan-name {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap; /* Allow badge to wrap if needed */
    line-height: 1.4;
}

.kelurahan-name-text {
    flex-shrink: 0;
}

/* Badge "Tanpa Apotek" styling */
.badge-tanpa-apotek {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #FF6B6B 0%, #E74C3C 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.potential {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.status-badge.saturated {
    background: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

.defisit-value {
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--accent);
    font-size: 16px;
}

.table-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium);
    font-size: 13px;
    padding: 10px 14px;
    background: rgba(1, 184, 170, 0.05);
    border-radius: 10px;
}

.table-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 50px 20px;
}

/* ========================================
   METHODOLOGY SECTION - DENGAN NOMOR
   ======================================== */
.methodology-section {
    padding: var(--section-padding);
    background: var(--white);
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 28px;
}

.method-card {
    position: relative;
    background: linear-gradient(135deg, rgba(11, 79, 108, 0.02) 0%, rgba(1, 184, 170, 0.02) 100%);
    border: 1px solid rgba(11, 79, 108, 0.1);
    border-radius: 16px;
    padding: 28px;
    transition: all var(--transition-medium);
}

.method-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

/* NOMOR BESAR DI POJOK */
.method-number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(1, 184, 170, 0.1);
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.method-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    margin-bottom: 18px;
}

.method-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.method-card p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 14px;
}

.method-tech {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(1, 184, 170, 0.05);
    border-radius: 8px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

.method-tech i {
    font-size: 14px;
}

/* ========================================
   CONTACT SECTION - CLEAN & COMPACT
   ======================================== */
.contact-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(11, 79, 108, 0.03) 0%, rgba(1, 184, 170, 0.03) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-left h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}

.contact-left > p {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 28px;
}

.researcher-info {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(11, 79, 108, 0.1);
    margin-bottom: 24px;
}

.researcher-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    flex-shrink: 0;
}

.researcher-info h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 4px;
}

.researcher-info p {
    font-size: 13px;
    color: var(--text-medium);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid rgba(11, 79, 108, 0.1);
    border-radius: 10px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.contact-link:hover {
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.contact-link i {
    color: var(--accent);
    font-size: 18px;
}

.contact-right h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 20px;
}

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

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid rgba(11, 79, 108, 0.1);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.tech-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.tech-item i {
    color: var(--accent);
    font-size: 20px;
}

/* ========================================
   FOOTER - SUPER COMPACT
   ======================================== */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 35px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-left {
    flex: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-left p {
    font-size: 13px;
    opacity: 0.85;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 3px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .methodology-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 768px) {
    /* Container padding lebih kecil di mobile */
    .container {
        padding: 0 16px;
    }
    
    /* Navbar mobile */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: var(--shadow-lg);
        transition: left var(--transition-medium);
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-toggle {
        display: block;
    }
    
    /* HERO SECTION - MOBILE FIX */
    .hero {
        padding: 100px 0 60px;
        min-height: auto; /* Remove fixed height */
    }
    
    .hero-content {
        padding: 0 16px;
        max-width: 100%;
    }
    
    .hero-logo-large {
        margin-bottom: 20px;
    }
    
    .hero-logo-large img {
        height: 50px;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 24px;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 8px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    /* Hero Stats Mobile - HORIZONTAL SCROLL */
    .hero-stats {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 16px;
        margin-top: 40px;
        padding: 0 16px 16px 16px; /* Extra bottom padding for scrollbar */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; /* Smooth scroll iOS */
        scrollbar-width: thin; /* Firefox */
        scrollbar-color: rgba(1, 184, 170, 0.5) rgba(255, 255, 255, 0.1); /* Firefox */
        position: relative;
    }
    
    /* Gradient fade hint at right edge - indicates more content */
    /* Gradient fade hint at right edge - lighter for mobile */
    .hero-stats::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 16px;
        width: 60px; /* Wider but lighter */
        background: linear-gradient(to left, 
            rgba(11, 79, 108, 0.15) 0%,  /* Much lighter! */
            rgba(11, 79, 108, 0) 100%
        );
        pointer-events: none;
        border-radius: 0 20px 20px 0;
    }
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    .hero-stats::-webkit-scrollbar {
        height: 4px;
    }
    
    .hero-stats::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }
    
    .hero-stats::-webkit-scrollbar-thumb {
        background: rgba(1, 184, 170, 0.5);
        border-radius: 10px;
    }
    
    .hero-stats::-webkit-scrollbar-thumb:hover {
        background: rgba(1, 184, 170, 0.8);
    }
    
    /* Stats cards horizontal */
    .hero-stat-item {
        flex: 0 0 280px; /* Fixed width, tidak shrink */
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    
    .stat-card {
        padding: 20px;
        flex: 0 0 280px; /* Fixed width for consistency */
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    /* Sections */
    .section-title {
        font-size: 24px;
        line-height: 1.3;
        padding: 0 8px;
    }
    
    .section-description {
        font-size: 14px;
        line-height: 1.6;
        padding: 0 8px;
    }
    
    /* Dashboard */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    /* Metodologi */
    .methodology-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Map */
    .map-container {
        height: 400px;
        border-radius: 12px;
    }
    
    /* Mobile map controls adjustments */
    .leaflet-control-layers-expanded {
        max-width: 280px !important;
        max-height: 320px !important;
        font-size: 12px !important;
        margin-top: 0 !important; /* Remove margin-top since we're hiding by default */
    }
    
    /* Position zoom control to avoid toggle button */
    .leaflet-control-zoom {
        margin-top: 70px !important; /* Push down below toggle button */
    }
    
    .leaflet-control-layers label {
        font-size: 12px !important;
        padding: 6px 2px !important;
    }
    
    .legend-control {
        max-width: 180px !important;
        padding: 12px !important;
        font-size: 11px !important;
    }
    
    .legend-control h4 {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .legend-item {
        margin: 6px 0 !important;
        font-size: 10px !important;
    }
    
    .legend-color {
        width: 20px !important;
        height: 14px !important;
    }
    
    .leaflet-control-zoom a {
        width: 36px !important;
        height: 36px !important;
        line-height: 36px !important;
        font-size: 18px !important;
    }
    
    /* Popup adjustments for mobile */
    .leaflet-popup-content-wrapper {
        max-width: 280px !important;
        border-radius: 12px !important;
    }
    
    .leaflet-popup-content {
        margin: 12px !important;
        font-size: 13px !important;
    }
    
    /* Info Section */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    /* Table responsive */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .recommendations-table {
        min-width: 700px;
    }
}

@media (max-width: 480px) {
    /* Extra small adjustments */
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-logo-large img {
        height: 45px;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .hero-description {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Stats mobile extra small - maintain horizontal scroll */
    .hero-stats {
        gap: 12px;
        margin-top: 30px;
        padding: 0 12px 12px 12px;
    }
    
    .hero-stat-item {
        flex: 0 0 240px; /* Smaller width for tiny screens */
    }
    
    .stat-card {
        padding: 16px;
        flex: 0 0 240px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* Section titles smaller */
    .section-title {
        font-size: 22px;
    }
    
    .section-description {
        font-size: 13px;
    }
    
    /* Dashboard cards */
    .stat-item {
        padding: 16px;
    }
    
    .stat-icon-large {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stat-number-large {
        font-size: 32px;
    }
    
    /* Map smaller on tiny screens */
    .map-container {
        height: 350px;
    }
    
    /* Map smaller on tiny screens */
    .map-container {
        height: 350px;
    }
    
    /* Even smaller controls for tiny screens */
    .leaflet-control-layers-expanded {
        max-width: 240px !important;
        max-height: 280px !important;
    }
    
    .legend-control {
        max-width: 160px !important;
        padding: 10px !important;
    }
    
    .legend-control h4 {
        font-size: 11px !important;
    }
    
    .legend-item {
        font-size: 9px !important;
    }
    
    /* Methodology cards */
    .method-card {
        padding: 20px;
    }
    
    .method-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    /* Buttons full width */
    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    /* Navbar brand smaller */
    .nav-brand {
        font-size: 18px;
    }
    
    .nav-logo {
        height: 32px;
    }
}
/* ========================================
   INFO SECTION - 3 GRID CARDS MODERN
   ======================================== */
.info-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgba(11, 79, 108, 0.02) 0%, rgba(1, 184, 170, 0.02) 100%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(11, 79, 108, 0.08);
    overflow: hidden;
    transition: all var(--transition-medium);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.info-card-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card-header i {
    font-size: 28px;
}

.info-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.info-card-body {
    padding: 28px;
}

/* CARD 1: PENGEMBANG SISTEM */
.developer-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--white);
}

.info-card-body h4 {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.developer-nim {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.developer-program,
.developer-faculty,
.developer-university {
    text-align: center;
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 4px;
    line-height: 1.5;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    background: rgba(1, 184, 170, 0.05);
    border: 1px solid rgba(1, 184, 170, 0.2);
    border-radius: 10px;
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.contact-btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.contact-btn i {
    font-size: 20px;
}

/* CARD 2: TEKNOLOGI */
.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: rgba(1, 184, 170, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(1, 184, 170, 0.1);
    transition: all var(--transition-fast);
}

.tech-item:hover {
    background: rgba(1, 184, 170, 0.08);
    border-color: var(--accent);
    transform: translateX(4px);
}

.tech-item > i {
    font-size: 28px;
    color: var(--accent);
    flex-shrink: 0;
}

.tech-item h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.tech-item p {
    font-size: 12px;
    color: var(--text-medium);
    line-height: 1.4;
}

/* CARD 3: INFORMASI PENELITIAN */
.research-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.research-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.research-item > i {
    font-size: 24px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.research-item h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.research-item p {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* INFO SECTION RESPONSIVE */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   HERO BADGE & STATS - MISSING CSS
   ======================================== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 80px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.15); /* Slightly more opaque */
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* More visible border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Lighter shadow */
    transition: all 0.3s ease;
}

.hero-stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 24px;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 14px;
    opacity: 0.9;
}

/* FOOTER LINKS & COLUMNS - MISSING CSS */
.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.85;
    font-size: 13px;
    transition: all var(--transition-fast);
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.85;
}

/* SECTION BADGE - OVAL WITH GRADIENT */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(1, 184, 170, 0.3);
}

/* GRADIENT TEXT FOR HERO TITLE */
.gradient-text {
    background: linear-gradient(135deg, #01B8AA 0%, #FED976 50%, #01B8AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-animation 3s ease infinite;
    background-size: 200% auto;
    /* Prevent overflow on mobile */
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Pastikan hero title tidak terlalu besar */
.hero-title {
    font-size: 42px;
    line-height: 1.3;
}

/* ========================================
   MAP USAGE GUIDE / TUTORIAL
   ======================================== */
.map-usage-guide {
    background: linear-gradient(135deg, rgba(1, 184, 170, 0.1) 0%, rgba(11, 79, 108, 0.05) 100%);
    border: 2px solid rgba(1, 184, 170, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.map-usage-guide h4 {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-usage-guide h4 i {
    color: var(--accent);
    font-size: 20px;
}

.usage-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usage-steps li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-medium);
}

.usage-steps li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.usage-steps li:nth-child(1)::before { content: '1'; }
.usage-steps li:nth-child(2)::before { content: '2'; }
.usage-steps li:nth-child(3)::before { content: '3'; }
.usage-steps li:nth-child(4)::before { content: '4'; }
.usage-steps li:nth-child(5)::before { content: '5'; }

.usage-steps li strong {
    color: var(--primary);
    font-weight: 600;
}

/* Mobile adjustments for usage guide */
@media (max-width: 768px) {
    .map-usage-guide {
        padding: 16px;
        margin: 20px 0;
    }
    
    .map-usage-guide h4 {
        font-size: 14px;
    }
    
    .usage-steps li {
        font-size: 13px;
        padding-left: 28px;
    }
    
    .usage-steps li::before {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .map-usage-guide {
        padding: 14px;
    }
    
    .map-usage-guide h4 {
        font-size: 13px;
    }
    
    .usage-steps li {
        font-size: 12px;
    }
}

/* ========================================
   MOBILE: KECILKAN LEGEND & LAYER CONTROL
   ======================================== */

@media (max-width: 768px) {
    /* LAYER CONTROL - KECIL & COLLAPSED BY DEFAULT */
    .leaflet-control-layers {
        max-width: 140px !important; /* SANGAT KECIL */
        font-size: 10px !important;
        padding: 6px !important;
        margin-top: 10px !important;
        margin-right: 10px !important;
    }
    
    .leaflet-control-layers-toggle {
        width: 32px !important;
        height: 32px !important;
        background-size: 16px 16px !important; /* Icon kecil */
    }
    
    .leaflet-control-layers-expanded {
        max-width: 160px !important; /* Saat dibuka tetap kecil */
        max-height: 200px !important;
        font-size: 10px !important;
        padding: 8px !important;
        overflow-y: auto !important;
    }
    
    .leaflet-control-layers label {
        font-size: 10px !important;
        padding: 4px 2px !important;
        gap: 4px !important;
    }
    
    .leaflet-control-layers input {
        width: 12px !important;
        height: 12px !important;
    }
    
    /* LEGEND - SANGAT KECIL */
    .legend-control,
    .legend {
        max-width: 120px !important; /* SANGAT KECIL */
        padding: 6px !important;
        font-size: 8px !important;
        margin-left: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .legend-control h4,
    .legend h4 {
        font-size: 9px !important;
        margin-bottom: 4px !important;
    }
    
    .legend-item {
        margin: 3px 0 !important;
        font-size: 8px !important;
        gap: 4px !important;
    }
    
    .legend-color,
    .legend i {
        width: 12px !important;
        height: 10px !important;
        margin-right: 3px !important;
    }
    
    /* ZOOM CONTROL - KECIL */
    .leaflet-control-zoom {
        margin: 10px !important;
    }
    
    .leaflet-control-zoom a {
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
        font-size: 16px !important;
    }
    
    /* ========================================
       POPUP - KECIL DAN COMPACT DI MOBILE
       ======================================== */
    
    .leaflet-popup-content-wrapper {
        max-width: 240px !important;
    }
    
    .leaflet-popup-content {
        min-width: 200px !important;
    }
    
    .popup-header {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
    
    .popup-body {
        padding: 8px 12px !important;
    }
    
    .popup-row {
        padding: 5px 0 !important;
    }
    
    .popup-label {
        font-size: 10px !important;
    }
    
    .popup-label i {
        font-size: 9px !important;
    }
    
    .popup-value {
        font-size: 12px !important;
    }
    
    .popup-status {
        margin-top: 6px !important;
        padding-top: 6px !important;
    }
    
    .popup-status-text {
        padding: 4px 8px !important;
        font-size: 9px !important;
        letter-spacing: 0.3px !important;
    }
}

/* Extra small devices - LEBIH KECIL LAGI */
@media (max-width: 480px) {
    /* Layer control lebih kecil lagi */
    .leaflet-control-layers {
        max-width: 120px !important;
        font-size: 9px !important;
    }
    
    .leaflet-control-layers-toggle {
        width: 28px !important;
        height: 28px !important;
    }
    
    .leaflet-control-layers-expanded {
        max-width: 140px !important;
        max-height: 180px !important;
        font-size: 9px !important;
    }
    
    /* Legend lebih kecil lagi */
    .legend-control,
    .legend {
        max-width: 100px !important;
        padding: 5px !important;
        font-size: 7px !important;
    }
    
    .legend-control h4,
    .legend h4 {
        font-size: 8px !important;
    }
    
    .legend-item {
        font-size: 7px !important;
    }
    
    .legend-color,
    .legend i {
        width: 10px !important;
        height: 8px !important;
    }
    
    /* Zoom control lebih kecil lagi */
    .leaflet-control-zoom a {
        width: 28px !important;
        height: 28px !important;
        line-height: 28px !important;
        font-size: 14px !important;
    }
    
    /* POPUP - LEBIH KECIL LAGI */
    .leaflet-popup-content-wrapper {
        max-width: 220px !important;
    }
    
    .leaflet-popup-content {
        min-width: 180px !important;
    }
    
    .popup-header {
        padding: 8px 10px !important;
        font-size: 11px !important;
    }
    
    .popup-body {
        padding: 6px 10px !important;
    }
    
    .popup-row {
        padding: 4px 0 !important;
    }
    
    .popup-label {
        font-size: 9px !important;
    }
    
    .popup-value {
        font-size: 11px !important;
    }
    
    .popup-status-text {
        padding: 3px 6px !important;
        font-size: 8px !important;
    }
}