/* Ensure padding and borders don't increase element width */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --paper-color: rgb(251, 246, 238);
    --ink-color: rgb(45, 45, 45);
    --accent-color: rgb(128, 0, 0);
    --gold-color: rgb(184, 134, 11);
    --border-color: rgb(180, 180, 180);
}

body {
    background-color: var(--paper-color);
    background-image: url('regency-flower-pattern.png');
    background-repeat: repeat;
    
    color: var(--ink-color);
    font-family: 'Lora', serif;
    line-height: 1.6;
    margin: 0;
    padding: 2rem 1rem;
}

.container {
    /* Width set to 100% with max-width constraint increased for more space */
    width: 100%;
    max-width: 1100px; 
    margin: 0 auto;
    background-color: rgb(255, 255, 255);
    border: double 4px var(--gold-color);
    padding: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
    color: var(--ink-color);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-style: italic;
    color: rgb(100, 100, 100);
    font-size: 1.1rem;
}

.locations-grid {
    display: grid;
    /* Allow wrapping for flexibility on smaller screens */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.location-card {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

.location-card:hover {
    background-color: rgb(248, 248, 248);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.location-card h2 {
    font-size: 1.5rem;
    margin-top: 0;
    border-bottom: 1px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.address {
    margin: 1.5rem 0;
}

.time {
    font-style: italic;
    font-weight: 600;
    color: var(--accent-color);
}

.map-wrapper {
    text-align: center;
}

.map-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

#map {
    width: 100%;
    height: 450px;
    border: 2px solid var(--ink-color);
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: rgb(100, 100, 100);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .location-card h2 {
        font-size: 1.2rem;
    }

    #map {
        height: 350px;
    }
}

/* Desktop: Force 3 columns on the same row when screen is wide enough */
@media (min-width: 1024px) {
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
