/* Bentleyville Candy Map public styles */
.bcm-wrap {
    --bcm-red: #c51646;
    --bcm-border: #ddd;
    --bcm-muted: #666;
    box-sizing: border-box;
    max-width: 100%;
}

.bcm-wrap * {
    box-sizing: border-box;
}

.bcm-heading h2 {
    color: var(--bcm-red);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.1;
    margin: 0 0 .35rem;
}

.bcm-heading p {
    color: #555;
    font-size: 1.05rem;
    margin: 0 0 1.25rem;
}

.bcm-shell {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 1.5rem;
    align-items: start;
}

.bcm-sidebar {
    background: #fff;
    border: 1px solid var(--bcm-border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.bcm-sidebar label {
    display: block;
    font-weight: 700;
    margin: .25rem 0 .4rem;
}

.bcm-sidebar input {
    width: 100%;
    font-size: 1rem;
    padding: .72rem .85rem;
    border: 1px solid #ccc;
    border-radius: 0;
    margin-bottom: .85rem;
}

.bcm-near-me {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: var(--bcm-red);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: .8rem 1rem;
    cursor: pointer;
    margin-bottom: .75rem;
}

.bcm-near-me:hover,
.bcm-near-me:focus {
    filter: brightness(.95);
}

.bcm-status {
    margin: .4rem 0;
    color: #333;
}

.bcm-count {
    color: #555;
    margin: .45rem 0 .7rem;
}

.bcm-results {
    max-height: 460px;
    overflow: auto;
    padding-right: .25rem;
}

.bcm-result {
    width: 100%;
    text-align: left;
    border: 0;
    background: #f8f8f8;
    border-radius: 10px;
    padding: .85rem;
    margin: 0 0 .75rem;
    cursor: pointer;
    color: #333;
}

.bcm-result:hover,
.bcm-result:focus {
    background: #f1f1f1;
    outline: 2px solid rgba(197, 22, 70, .15);
}

.bcm-result strong {
    display: block;
    color: #111;
    margin-bottom: .25rem;
}

.bcm-result .bcm-address {
    color: #666;
}

.bcm-result .bcm-meta {
    display: block;
    font-weight: 700;
    margin-top: .35rem;
}

.bcm-result .bcm-needs {
    color: #9a5a00;
}

.bcm-result .bcm-distance {
    color: #0a6b2b;
}

.bcm-map-panel {
    background: #fff;
    border: 1px solid var(--bcm-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.bcm-map {
    width: 100%;
    min-height: 420px;
    background: #f2f2f2;
}

.bcm-footnote {
    font-size: .95rem;
    color: #555;
    padding: .65rem .85rem;
    background: #fff;
}

.bcm-popup strong {
    font-size: 1rem;
}

.bcm-popup a {
    display: inline-block;
    margin-top: .5rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .bcm-shell {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bcm-sidebar {
        order: 1;
    }

    .bcm-map-panel {
        order: 2;
    }

    .bcm-map {
        height: 65vh !important;
        min-height: 360px;
    }

    .bcm-results {
        max-height: 330px;
    }
}

@media (max-width: 520px) {
    .bcm-wrap {
        margin-left: -8px;
        margin-right: -8px;
    }

    .bcm-heading h2 {
        font-size: 1.75rem;
    }

    .bcm-shell {
        gap: .75rem;
    }

    .bcm-sidebar,
    .bcm-map-panel {
        border-radius: 8px;
    }

    .bcm-sidebar {
        padding: .85rem;
    }

    .bcm-map {
        height: 58vh !important;
        min-height: 320px;
    }
}


.bcm-result-active {
    background: #fff4f6;
    outline: 2px solid rgba(197, 22, 70, .35);
}

.bcm-directions {
    display: inline-block;
    margin-top: .45rem;
    font-weight: 700;
    color: var(--bcm-red);
}
