/* LIVEONTHEMAP shared UI — same on every page */
header {
    background: #D1DADF;
    padding: 0;
    text-align: center;
    line-height: 0;
    width: 100%;
    overflow: hidden;
}
.header-banner {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

/* ===== Site navigation (desktop + hamburger mobile) ===== */
nav.site-nav,
nav {
    background: #0a3d62;
    padding: 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    line-height: normal;
    height: auto;
    box-sizing: border-box;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    box-sizing: border-box;
}

.nav-brand {
    display: none; /* optional brand; links are enough on desktop */
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.04em;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    z-index: 220;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
}

nav a,
.nav-links a {
    color: #ffffff;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.3;
    display: inline-block;
    padding: 6px 0;
    vertical-align: middle;
}

nav a:hover,
.nav-links a:hover {
    opacity: 0.85;
}

/* Mobile hamburger */
@media (max-width: 700px) {
    .nav-inner {
        justify-content: space-between;
        padding: 8px 12px;
    }

    .nav-brand {
        display: block;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0a3d62;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0 1rem;
        box-shadow: 0 12px 24px rgba(0,0,0,0.2);
        border-top: 1px solid rgba(255,255,255,0.12);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a,
    nav .nav-links a {
        margin: 0;
        padding: 14px 20px;
        font-size: 1.05rem;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Override legacy inline nav a styles on small screens */
    nav > a {
        display: none !important;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    box-sizing: border-box;
    width: 100%;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}
a.card, .card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 320px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}
a.card:hover, .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}
a.card img, .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
a.card:hover img, .card:hover img { transform: scale(1.08); }
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.8rem 1.4rem 1.6rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: white;
    text-align: center;
}
.card-overlay h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.15;
}

@media (max-width: 1000px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .cards { grid-template-columns: 1fr; }
    a.card, .card { height: 280px; }
}
