:root {
    --primary-color: #5D4037;
    /* Warm earthy brown */
    --secondary-color: #8D6E63;
    /* Lighter brown */
    --accent-color: #FF7043;
    /* Soft orange/terracotta */
    --bg-color: #FBE9E7;
    /* Very light warm background */
    --white: #FFFFFF;
    --text-color: #3E2723;
    --booked-color: #E57373;
    /* Red for booked dates */
    --available-color: #81C784;
    /* Green for available dates */
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background-color: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero Section (Index) */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('images/f1_mc_laren.png');
    /* mclaren F1 */
    background-size: cover;
    background-position: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Reservation Page */
.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.day-name {
    text-align: center;
    font-weight: bold;
    color: var(--secondary-color);
}

.day {
    aspect-ratio: 1;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    cursor: instance;
    /* Will be set to pointer if available in JS */
    transition: all 0.2s;
    position: relative;
}

.day.available:hover {
    background-color: var(--bg-color);
    cursor: pointer;
    border-color: var(--primary-color);
}

.day.booked {
    background-color: #ffebee;
    color: #c62828;
    cursor: not-allowed;
}

.day .status {
    font-size: 0.8rem;
    margin-top: auto;
    align-self: flex-end;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
}

.modal h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-secondary {
    background: #ccc;
    color: #333;
}

.btn-danger {
    background-color: #E57373;
    color: white;
}

.btn-danger:hover {
    background-color: #c62828;
}/* Message (Loading/Error) */
.message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--secondary-color);
}
.message.error {
    color: var(--booked-color);
}
