/* ── Map Page Styles ────────────────────────── */

/* Leaflet map container */
#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Custom map marker popup */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    border: none !important;
    padding: 0 !important;
}
.leaflet-popup-content {
    margin: 0 !important;
    width: 240px !important;
}
.leaflet-popup-tip {
    background: white !important;
}

/* Center card in popup */
.map-popup {
    padding: 16px;
}
.map-popup h6 {
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.map-popup .badge-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    margin: 2px;
    background: rgba(16,185,129,0.12);
    color: #047857;
}
.map-popup .directions-btn {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 8px;
    background: linear-gradient(135deg, #10b981, #047857);
    color: white !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}
.map-popup .directions-btn:hover {
    opacity: 0.9;
}

/* Custom marker icon */
.custom-marker {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #10b981, #047857);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(16,185,129,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-marker-inner {
    transform: rotate(45deg);
    font-size: 14px;
}

/* Center card in results list */
.center-card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.center-card:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16,185,129,0.15);
    transform: translateY(-1px);
}
.center-card.active {
    border-color: #10b981;
    background: rgba(16,185,129,0.05);
}
.center-card h6 {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1F2937;
    margin-bottom: 4px;
}
.center-card .distance-badge {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
}
.center-card .type-chip {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(16,185,129,0.1);
    color: #047857;
    font-weight: 500;
}

/* Range input styling */
.form-range::-webkit-slider-thumb {
    background: #10b981;
}
.form-range::-moz-range-thumb {
    background: #10b981;
    border: none;
}

/* Radius circle on map */
.radius-circle {
    stroke: #10b981;
    stroke-width: 2;
    stroke-dasharray: 6,4;
    fill: rgba(16,185,129,0.06);
}

/* User location marker */
.user-marker {
    width: 18px;
    height: 18px;
    background: #3B82F6;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.3);
    animation: pulse-location 2s infinite;
}
@keyframes pulse-location {
    0%   { box-shadow: 0 0 0 4px rgba(59,130,246,0.3); }
    100% { box-shadow: 0 0 0 12px rgba(59,130,246,0); }
}