/* Coast FM — Fuel Prices page */

/* No top padding here — .page-hero's own margin-bottom (3rem) provides the
   gap, matching the convention used by every other page template. */
.fuel-map-page {
    padding: 0 0 3rem;
}

.fuel-map__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fuel-map__filter {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    color: var(--color-text);
}

.fuel-map__locate {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font-heading);
    cursor: pointer;
}

.fuel-map__locate:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.fuel-map__updated {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.fuel-map__layout {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.fuel-map__canvas {
    flex: 0 0 70%;
    width: 70%;
    height: 480px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.fuel-map__list {
    flex: 1 1 30%;
    min-width: 0;
    max-height: 480px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.fuel-map__list-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-white);
}

.fuel-map__list-item:last-child {
    border-bottom: none;
}

.fuel-map__list-item:nth-child(even) {
    background: var(--color-light);
}

.fuel-map__list-name {
    flex: 1 1 100%;
    font-weight: 600;
    color: var(--color-dark);
}

/* Below ~900px the map/list side-by-side split gets too cramped — stack instead. */
@media (max-width: 900px) {
    .fuel-map__layout {
        flex-direction: column;
    }

    .fuel-map__canvas,
    .fuel-map__list {
        flex-basis: auto;
        width: 100%;
    }
}

.fuel-map__list-fuel {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.fuel-map__list-price {
    font-family: var(--font-heading);
    color: var(--color-accent-dk);
    font-weight: 700;
    min-width: 4.5rem;
    text-align: right;
}

.fuel-map__info {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.5;
}

.fuel-map__info-price {
    color: var(--color-accent-dk);
    font-weight: 700;
}
