/* ==========================================================
   Where to buy — map, country selector, retailer list
   ========================================================== */

/* Map */
#map {
    width: 100%;
    height: 500px;
    background: #fff;
}

@media (max-width: 768px) {
    #map { height: 320px; }
}

/* Leaflet overrides */
.leaflet-container {
    background: #fff;
    cursor: grab;
}
.leaflet-grab { cursor: grab; }
.leaflet-dragging .leaflet-grab { cursor: grabbing; }
.leaflet-marker-icon { opacity: 1 !important; }
.leaflet-bar a {
    background-color: #2a2a2a;
    color: #fff;
    border-bottom-color: #444;
}
.leaflet-bar a:hover { background-color: #3a3a3a; }
.leaflet-popup-content a { color: #EEAD1E; }

/* GPU compositing hints for smoother zoom animation */
.leaflet-image-layer {
    will-change: transform;
}
.leaflet-overlay-pane svg {
    will-change: transform;
}

/* Country selector */
#bb-country-pills {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 24px;
    flex-wrap: wrap;
}

.bb-country-label {
    font-weight: 600;
    white-space: nowrap;
}

.bb-country-select {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    padding: 8px 12px;
    font-size: inherit;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: inherit;
    cursor: pointer;
    appearance: auto;
}

.bb-country-select:focus {
    outline: none;
    border-color: #EEAD1E;
}

/* Retailer list */
.bb-retailer-prompt {
    color: #888;
    margin: 0;
}

#bb-retailer-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.bb-retailer-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    width: calc(33% - 8px);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .bb-retailer-card { width: 100%; }
}

.bb-retailer-name { font-weight: 600; font-size: inherit; line-height: inherit; margin-bottom: 4px; }
.bb-retailer-address { font-size: inherit; line-height: inherit; color: #666; margin-bottom: 2px; }

.bb-retailer-link { font-size: inherit; line-height: inherit; color: #EEAD1E; text-decoration: none; margin-top: auto; }
.bb-retailer-link:hover { text-decoration: underline; }
.bb-retailer-tagline { font-size: inherit; line-height: inherit; }
.bb-retailer-prompt { font-size: inherit; line-height: inherit; }

/* Brewbrain direct card */
.bb-retailer-card--direct {
    border-color: #EEAD1E;
    background: #fffdf5;
}
.bb-retailer-tagline {
    color: #666;
    margin-bottom: 8px;
}
