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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ff6b6b;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Main */
.main {
    flex: 1;
    display: flex;
    position: relative;
}

#map {
    flex: 1;
    min-height: 500px;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 320px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-card,
.info-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cta-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.cta-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.cta-card ol {
    margin-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.cta-card li {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
}

/* Info Card */
.info-card {
    position: relative;
}

.close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

#pothole-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.info-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.info-content .reporter,
.info-content .date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.info-content .reporter span,
.info-content .date span {
    color: #333;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #999;
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
}

/* Custom Marker */
.pothole-marker {
    background: #ff6b6b;
    border: 3px solid white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.pothole-marker:hover {
    transform: scale(1.1);
}

.pothole-marker.fixed {
    background: #4CAF50;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.status-badge.pending {
    background: #ffebee;
    color: #c62828;
}

.status-badge.fixed {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Leaflet Popup Override */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
}

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

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 1rem;
        max-height: 40vh;
        overflow-y: auto;
    }

    .cta-card,
    .info-card {
        border-radius: 12px;
    }

    #map {
        height: calc(100vh - 200px);
    }

    .logo h1 {
        font-size: 1.25rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .cta-card h2 {
        font-size: 1.1rem;
    }

    .whatsapp-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}
