/* Map projects — layout/scroll parity with intheritagedesktop master_maps embed */

.map-projects-embed .map-projects-map {
    width: 100%;
    height: 600px;
    min-height: 600px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f0f0f0;
}

.map-projects-embed .map-projects-status {
    border-color: #d1d5db;
    background: #fff;
}

.map-projects-embed .map-projects-status--active,
.map-projects-embed .map-projects-status--active:focus,
.map-projects-embed .map-projects-status--active:active {
    border-color: #125C94;
    background: #eef6fb;
}

.map-projects-embed .map-projects-status--active:hover {
    border-color: #125C94;
    background: #eef6fb;
}

.map-projects-embed .border-maps-card {
    border: 1px solid #b2b1b1;
}

.map-projects-marker-icon {
    background: transparent !important;
    border: none !important;
}

.map-projects-cluster-icon {
    background: transparent !important;
    border: none !important;
}

/* master_maps embed — popup */
.master-popup-container .leaflet-popup-content {
    margin: 0;
    padding: 0;
    width: auto !important;
}

.master-popup-container .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 0.5rem;
}

.master-popup-container .leaflet-popup-content p {
    margin: 0 !important;
}

.master-popup-container .master-map-result-card {
    min-width: 400px;
}

.master-popup-container .master-map-result-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #125C94;
}

.master-popup-container img {
    display: block;
}

.leaflet-tile-container img {
    max-width: none !important;
}

.leaflet-bottom.leaflet-right {
    display: none !important;
}

/* master_maps embed — responsive (heritage) */
@media (max-width: 1279px) {
    .map-projects-embed .map-projects-map {
        height: 400px !important;
        min-height: 400px !important;
    }

    .map-projects-embed .mobile-filter-panel {
        max-height: 800px;
    }
}

@media (min-width: 1280px) {
    .map-projects-embed .desktop-filter-panel {
        height: 600px;
    }
}
