/* ===========================================================
 * House of Cherry — Interactive Map styles
 * Append to the existing theme style.css (after the current
 * .map-section block, which lives around line 430).
 *
 * Replaces the static iframe layout with an interactive map +
 * clickable brand-filter buttons.
 * =========================================================== */

/* The map fills the wrapper. Wrapper already exists in theme. */
#hoc-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* The legend was a static row of dots; we upgrade items to buttons. */
.map-section__legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
}
.map-section__legend-item:hover {
    background: rgba(255, 255, 255, 0.5);
}
.map-section__legend-item.is-active {
    background: var(--color-charcoal);
    border-color: var(--color-charcoal);
}
.map-section__legend-item.is-active .map-section__legend-label {
    color: #fff;
}
.map-section__legend-item.is-dimmed {
    opacity: 0.45;
}

/* Slightly larger filter dots for visibility on buttons. */
.map-section__legend-item .map-section__legend-dot {
    width: 10px;
    height: 10px;
}

.map-section__hint {
    text-align: center;
    margin-top: 14px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-charcoal);
    opacity: 0.65;
}

/* InfoWindow content (rendered inside Google's bubble). */
.hoc-iw { font-family: var(--font-body); padding: 4px 4px 2px; max-width: 220px; }
.hoc-iw__brand {
    font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--color-deep-cherry); margin-bottom: 4px;
}
.hoc-iw__name {
    font-family: var(--font-display); font-weight: 600;
    font-size: 1.1rem; color: var(--color-charcoal); margin-bottom: 6px;
}
.hoc-iw__link {
    font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--color-deep-cherry); text-decoration: none;
    border-bottom: 1px solid var(--color-deep-cherry); padding-bottom: 1px;
}
