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

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

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.venue-switch {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.5rem;
    text-decoration: underline;
}

.venue-switch:hover {
    color: #2c3e50;
}

.year-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.year-nav button {
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.year-nav button:hover:not(:disabled) {
    background: #1a252f;
}

.year-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#current-year {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    min-width: 80px;
    text-align: center;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.month-section {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.month-header {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.weekend-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.weekend-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    text-align: center;
}

.header-row {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.25rem;
}

.day-cell {
    padding: 0.5rem 0.25rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: default;
}

.day-cell.available {
    background: #f8f9fa;
    color: #333;
}

.day-cell.booked {
    background: #aaa;
    color: #000;
    position: relative;
}

.day-cell.booked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 1px;
    background: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.day-cell.booked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 1px;
    background: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) rotate(45deg);
}

.day-cell.empty {
    background: transparent;
}

.footer {
    margin-top: 2rem;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

.error {
    text-align: center;
    color: #e74c3c;
    padding: 2rem;
}

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

    h1 {
        font-size: 1.5rem;
    }

    #calendar {
        grid-template-columns: 1fr;
    }
}
