/**
 * Simple Map CSS - Clean and minimal
 */

/* Base map styles + typography (Open Sans via theme token) */
.simple-map-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    font-family: var(--font-primary);
}

.simple-map-wrapper :is(input, textarea, select, button, .button) {
    font-family: var(--font-primary);
}

.simple-map-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Elementor vertical centering */
.elementor-column:has(.simple-map-wrapper) > .elementor-widget-wrap {
    display: flex !important;
    align-items: center; /* Vertical center */
    justify-content: center;
}

/* Leaflet map controls styling */
.simple-map-container .leaflet-control-zoom a {
    color: var(--color-text) !important;
    background-color: var(--color-white) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}

.simple-map-container .leaflet-control-zoom a:hover {
    background-color: #f8f8f8 !important;
}

.simple-map-container .leaflet-control-attribution {
    font-size: 9px !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .simple-map-container .leaflet-control-zoom a {
        width: 32px;
        height: 32px;
        line-height: 32px;
    }
} 

/* Light "suitable for" filters overlay (used by [simple-map]) */
.simple-map-filters-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    max-width: 250px;
}

.simple-map-filters-overlay .feature-filters h4 {
    font-size: 0.8em;
    padding: 6px 10px;
    border-radius: 6px;
}

/* Simple map popup card */
.simple-map-container .leaflet-popup-content-wrapper {
    border-radius: 10px;
}

.simple-map-popup-card {
    width: 220px;
}

.simple-map-popup-title {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.2;
    color: var(--color-green-dark);
}

.simple-map-popup-image-wrap,
.simple-map-popup-image-placeholder {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #f3f3f3;
}

.simple-map-popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.simple-map-popup-button {
    display: inline-block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    background: var(--color-orange);
    color: var(--color-white) !important;
    border-radius: 0;
    padding: 9px 12px;
    font-weight: 600;
    transition: filter 0.2s ease;
}

.simple-map-popup-button:hover {
    filter: brightness(1.08);
    color: var(--color-white) !important;
}