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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f5f5;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

header p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

#main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

#sidebar {
    width: 260px;
    min-width: 260px;
    background: #2c3e50;
    color: white;
    padding: 1.25rem;
    overflow-y: auto;
}

#sidebar h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.filter-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-checkbox input[type="checkbox"] {
    accent-color: #3498db;
    width: 16px;
    height: 16px;
}

.color-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

#map {
    flex: 1;
}

/* Category cluster styles */
.category-cluster {
    background: transparent;
    border: none;
}

.category-cluster div {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.category-cluster span {
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Custom marker styles */
.custom-marker {
    background: transparent;
    border: none;
}

.marker-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-icon svg {
    display: block;
}

/* Popup styles */
.point-popup {
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.point-popup h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.point-popup .category {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    text-transform: capitalize;
    margin-bottom: 0.5rem;
}

.point-popup .description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.point-popup .coordinates {
    color: #888;
    font-size: 0.8rem;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    margin: 12px 16px;
    max-height: 320px;
    overflow-y: auto;
}
