/* Page sheet for maps.php. Linked after style.css by includes/css.php,
   so these rules win ties against the shared sheet. */

.maps-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}
/* Look comes from THE SWITCH primitive in style.css. This row is the
   page's primary navigation, so it runs larger than a board tab. */
.maps-tab { --tab-px: 26px; --tab-py: 11px; --tab-fs: 0.82rem; }

.maps-section { margin-top: 28px; }
.maps-section:first-child { margin-top: 0; }
.maps-section h2 {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}
.maps-section h2 .count {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.72rem;
    margin-left: 6px;
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.map-card {
    display: block;
    background: #0a0a0c;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
    transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
    cursor: zoom-in;
}
.map-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 0 0 1px var(--accent-glow);
}
.map-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #000 center/cover no-repeat;
    border-bottom: 1px solid var(--border);
}
.map-name {
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 40px rgba(0,0,0,0.8);
}
.lightbox-cap {
    position: absolute;
    bottom: 18px;
    left: 0; right: 0;
    text-align: center;
    color: var(--text-mid);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 3px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.lightbox-close:hover { border-color: var(--accent); color: #fff; }

@media (max-width: 600px) {
    .maps-tab { --tab-px: 16px; --tab-py: 9px; --tab-fs: 0.72rem; }
    .maps-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
