/* ============================================================
   SHOP MAP — Leaflet map widget (page and embedded variants)
   ============================================================ */

.shop-map[hidden],
.shop-map [hidden] {
    display: none !important;
}

/* Full-height variant used inside .map-page */
.shop-map--page {
    display: flex;
    flex: 1;
    min-height: 0;
}

.shop-map--page .map-body {
    flex: 1;
}

/* Embedded variant used under the shop search form */
.shop-map--embed {
    height: 440px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.shop-map--embed .map-body {
    height: 100%;
}

.shop-map__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .shop-map--embed {
        height: 340px;
    }
}

/* Markers */
.custom-map-marker {
    background: transparent !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
}

.marker-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 18px;
    position: relative;
    transition: transform 0.2s ease;
    aspect-ratio: 1 / 1;
}

.marker-circle i {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-circle:hover {
    transform: scale(1.1);
}

.marker-circle--blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.marker-circle--red {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.marker-circle--green {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.marker-circle--red::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    animation: marker-pulse 2s ease-out infinite;
}

@keyframes marker-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Popups */
.map-popup {
    padding: 10px;
    max-width: 250px;
}

.map-popup h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333333;
}

.map-popup p {
    margin: 4px 0;
    font-size: 13px;
    color: #666666;
}

.map-popup .btn {
    margin-top: 8px;
    display: inline-block;
    padding: 6px 12px;
    background: #667eea;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

.map-popup .btn:hover {
    background: #764ba2;
}
