/* Store Locator styles */
.store-locator-map-container {
    width: 100%;
    height: 600px;
    border-radius: 0;
    overflow: hidden;
    background-color: #f5f5f5;
}

#store-locator-map {
    width: 100%;
    height: 100%;
}

/* Apply grayscale only to map tiles, not to controls or popups */
#store-locator-map .leaflet-tile-container img,
#store-locator-map .leaflet-tile-pane {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

/* Ensure popups and controls are NOT affected by grayscale filter */
.leaflet-popup,
.leaflet-popup-content-wrapper,
.leaflet-popup-content,
.leaflet-popup-tip,
.leaflet-control,
.leaflet-control-zoom,
.store-popup,
.store-popup strong {
    filter: grayscale(0%) !important;
    -webkit-filter: grayscale(0%) !important;
}

/* Hide Leaflet attribution */
#store-locator-map .leaflet-control-attribution {
    display: none !important;
}

/* Custom marker styles */
.store-marker {
    background: transparent !important;
    border: none !important;
    width: 20px !important;
    height: 30px !important;
}

.store-marker-pin {
    width: 20px;
    height: 30px;
    background-color: #7e5c4f;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
    padding: 0;
}

.store-marker-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
}

/* Ensure Leaflet marker container doesn't interfere */
.leaflet-marker-icon.store-marker {
    background: transparent !important;
    border: none !important;
}

/* Leaflet popup customization - Simple and clean */
.leaflet-popup-content-wrapper {
    border-radius: 0;
    padding: 1.25rem 1.5rem 1.5rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: none;
    background: #ffffff;
}

.leaflet-popup-content {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    font-family: var(--wp--preset--font-family--inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: var(--wp--preset--color--chocolat, #7e5c4f);
    min-width: 180px;
    max-width: 250px;
}

.store-popup {
    color: var(--wp--preset--color--chocolat, #7e5c4f);
    font-family: var(--wp--preset--font-family--inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.store-popup strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #A74E18 !important;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.store-popup > div {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.store-popup small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    opacity: 0.7;
    line-height: 1.4;
}

.leaflet-popup-tip {
    background: #ffffff;
}

.leaflet-popup-close-button {
    color: var(--wp--preset--color--chocolat, #7e5c4f) !important;
    font-size: 1.125rem !important;
    font-weight: 300 !important;
    padding: 0.5rem !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
}

.leaflet-popup-close-button:hover {
    color: #A74E18 !important;
}

/* Leaflet controls styling */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a {
    background-color: #ffffff !important;
    color: #7e5c4f !important;
    border: 1px solid #e0e0e0 !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 18px !important;
    font-weight: 300 !important;
}

.leaflet-control-zoom a:hover {
    background-color: #f5f5f5 !important;
}

.leaflet-control-zoom-in {
    border-bottom: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .store-locator-map-container {
        height: 400px;
    }
}

