/* ---------- Shared styles for every page ---------- */
:root {
    --brown: #774213;
    --brown-dark: #5a310d;
    --cream: #fff8ee;
    --sand: #f3e7d3;
    --line: #e6d7bf;
    --ink: #2a1a0c;
    --muted: #6b5643;
    --open: #2f7a3a;
    --closed: #a83a2a;
    --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; width: 100%; }

img { max-width: 100%; height: auto; }

a { color: var(--brown); }

:focus-visible {
    outline: 3px solid #e0a458;
    outline-offset: 2px;
}

.page-title {
    text-align: center;
    color: var(--brown);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin: 2.5rem 1rem 1.5rem;
}

/* ---------- Header / navigation ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding: 0.9rem 2rem;
    background-color: var(--brown);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.title {
    color: var(--cream);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1.15;
}

.title span { display: block; font-weight: 600; font-size: 0.95rem; opacity: 0.85; }

.nav-tabs { display: flex; gap: 0.25rem; }

.nav-tabs a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.nav-tabs a:hover { background-color: var(--brown-dark); }

.nav-tabs a[aria-current="page"] {
    background-color: var(--cream);
    color: var(--brown);
}

@media (max-width: 640px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 0.7rem 1rem 0.6rem;
    }
    .title { font-size: 1.15rem; text-align: center; }
    .title span { font-size: 0.85rem; }
    .nav-tabs { justify-content: space-between; }
    .nav-tabs a { font-size: 1rem; padding: 0.4rem 0.6rem; }
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 3rem;
    background: var(--sand);
    color: var(--ink);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2.5rem;
    font-size: 0.95rem;
    text-align: center;
}

.site-footer p { margin: 0; }
.site-footer a { font-weight: 600; }

/* ---------- Directions picker (Apple devices) ---------- */
.maps-picker {
    border: none;
    border-radius: 16px;
    padding: 1.25rem;
    width: min(320px, calc(100% - 2rem));
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.maps-picker::backdrop { background: rgba(42, 26, 12, 0.45); }

.maps-picker-title {
    margin: 0 0 0.9rem;
    text-align: center;
    font-weight: 700;
    color: var(--muted);
}

.maps-choice,
.maps-cancel {
    display: block;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.8rem;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.maps-choice { background: var(--brown); color: var(--cream); }
.maps-choice:hover { background: var(--brown-dark); }

.maps-cancel {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}
