/* styles.css */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
    background: #f3f4f6;
}

.site-header {
    padding: 1.25rem 1.5rem;
    background: #111827;
    color: white;
}

.site-header h1 {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
}

.site-header p {
    margin: 0;
    color: #d1d5db;
}

.map-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    min-height: calc(100vh - 92px);
}

.sidebar {
    padding: 1.25rem;
    background: white;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
}

.sidebar h2 {
    margin-top: 0;
}

.help-text {
    color: #4b5563;
    line-height: 1.5;
}

.map {
    width: 100%;
    min-height: calc(100vh - 92px);
}

.legend {
    margin: 1rem 0;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.legend-color {
    width: 18px;
    height: 18px;
    display: inline-block;
    border-radius: 4px;
}

.legend-color.available {
    background: #16a34a;
}

.legend-color.unavailable {
    background: #dc2626;
}

.area-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.area-card {
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #16a34a;
    border-radius: 0.5rem;
    background: #ffffff;
}

.area-card.unavailable {
    border-left-color: #dc2626;
    opacity: 0.75;
}

.area-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.area-card p {
    margin: 0.25rem 0;
    color: #4b5563;
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    background: #16a34a;
}

.badge.unavailable {
    background: #dc2626;
}

@media (max-width: 800px) {
    .map-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .map {
        min-height: 65vh;
    }
}