/**
 * RecruitXray Distance & Map - Styling
 */

/* Map Container */
#rx-distance-map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1;
}

/* Candidate Markers */
.rx-map-marker {
    background: transparent !important;
    border: none !important;
    z-index: 1000 !important;
}

.rx-map-marker-inner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    cursor: pointer;
}

.rx-map-marker:hover .rx-map-marker-inner {
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Photo Markers */
.rx-map-marker-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #10b981;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.rx-map-marker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rx-map-marker:hover .rx-map-marker-photo {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.leaflet-popup-content {
    margin: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* View Toggle Buttons */
.rx-view-toggle {
    display: none;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.rx-view-toggle.active {
    display: flex;
}

.rx-view-btn {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.rx-view-btn:hover {
    border-color: #10b981;
    color: #10b981;
}

.rx-view-btn.active {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* Map View */
#rx-map-view {
    display: none;
}

#rx-map-view.active {
    display: block;
}

/* Results View */
#searchresults {
    display: block;
}

#searchresults.hidden {
    display: none;
}
