/* ===== PAGES/CIRCUIT.CSS ===== */
/* The track map: a single-colour line drawing that has to read on either
   background, which is why it is inverted rather than recoloured. Kept out
   of the kit — nothing else in the design language filters an image. */

.circuit-track {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: var(--space-6);
    min-height: 260px;
}

.circuit-track img {
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: var(--svg-invert, none);
    border: none;
    margin: 0;
}

/* Inside a media card the map is the cover, so it inherits the card's frame
   and only needs the same inversion. */
.circuit-summary .media-cover img {
    filter: var(--svg-invert, none);
}

/* --- Aerial view --- */

.circuit-aerial {
    margin-bottom: var(--space-6);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.circuit-aerial img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    margin: 0;
    border: none;
}

@media (max-width: 600px) {
    .circuit-track {
        min-height: 180px;
        padding: var(--space-4);
    }

    .circuit-aerial img {
        height: 180px;
    }
}
