/*
 * public/parts/location-map.css
 * The map of local locations on /business (see location-map.js).
 */

.etw-dir-map {
    height: 360px;
    margin: 0 0 32px;
    border: var(--card-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    z-index: 0; /* keeps Leaflet's layers under the page header */
}

/* Softer, near-black-and-white map so the pins stand out and it matches the site */
.etw-dir-map .leaflet-tile-pane {
    filter: grayscale(0.85) contrast(1.05);
}

/* Pin: black dot with a white ring. Big enough to tap on a phone. */
.etw-map-pin {
    background: none;
    border: none;
}

.etw-map-pin-dot {
    display: block;
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    border-radius: 50%;
    background: var(--c-ink);
    border: 3px solid var(--c-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease;
}

.etw-map-pin:hover .etw-map-pin-dot {
    transform: scale(1.25);
}

.etw-dir-map .leaflet-tooltip {
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
}

/* ---- "Find a place" dropdown above the map ---- */
.etw-map-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 12px;
}

.etw-map-picker-title {
    font-weight: 700;
    font-size: 15px;
}

.etw-map-picker-path {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
}

.etw-map-picker-path.is-hidden {
    display: none;
}

.etw-map-picker-back {
    padding: 6px 12px;
    border: var(--card-border);
    border-radius: 999px;
    background: var(--c-white);
    color: var(--c-ink);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.etw-map-picker-back:hover {
    background: var(--c-ink);
    color: var(--c-white);
}

.etw-map-picker-select {
    width: 100%;
    padding: 12px 14px;
    border: var(--card-border);
    border-radius: var(--card-radius);
    background: var(--c-white);
    color: var(--c-ink);
    font: inherit;
    font-size: 16px; /* 16px stops phones from zooming in on tap */
}

@media (min-width: 768px) {
    .etw-map-picker-select {
        max-width: 420px;
    }

    .etw-dir-map {
        height: 460px;
    }
}
