.bd-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bd-broker-card {
    border: 1px solid #ddd;
    padding: 10px;
    flex: 0 0 calc(33.333% - 20px);
    box-sizing: border-box;
    text-align: center;
    background: #fff;
    transition: 0.3s;
}

.bd-broker-card:hover {
    box-shadow: 0 0 12px rgba(0,0,0,0.25);
}

.bd-search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.bd-search-bar input,
.bd-search-bar select {
    padding: 8px;
    flex: 1;
    min-width: 150px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.bd-search-bar button {
    padding: 8px 15px;
    cursor: pointer;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    transition: 0.3s;
}

/* Lightbox background */
#bd-map-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    z-index: 9999;
}

/* Lightbox content takes full lightbox */
.bd-lightbox-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    overflow: hidden;
}

/* Map fills the entire lightbox */
#bd-map-container {
    width: 100%;
    height: 100%;
}

#bd-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Close button */
#bd-close-lightbox {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 35px;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}
.bd-view-map-btn {
    border: 1px solid #ccc;
    padding: 3px 6px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.3s;
    margin-bottom: 10px;
}
.bd-broker-name {
    font-size: 14px;
    font-weight: normal;
    background-color: #f0f0f0;
    padding: 15px;
}
.bd-broker-city {
    font-size: 13px;
    margin: 8px 0 4px 0;
}
.bd-broker-address {
    font-size: 12px;
}

#bd-close-lightbox:hover {
    background: rgba(0,0,0,0.8);
}

/* Responsive grid */
@media (max-width: 900px) {
    .bd-broker-card { flex: 0 0 calc(50% - 20px); }
}

@media (max-width: 600px) {
    .bd-broker-card { flex: 0 0 100%; }
}
