.map-page-container {
    display: flex;
    height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
}

.map-sidebar {
    width: 380px;
    background-color: #fff;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--color-text-primary);
}

.sidebar-filters {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    font-size: 1rem;
}

.btn-filter {
    width: 100%;
    padding: 12px;
    background-image: var(--color-gradient);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sidebar-results {
    flex-grow: 1;
    overflow-y: auto;
}

#results-container .result-item {
    display: flex;
    padding: 15px 20px;
    gap: 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s;
}
#results-container .result-item:hover {
    background-color: var(--color-surface);
}
.result-item-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--border-radius);
}
.result-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}
.result-item-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}
.no-results, .loading-results {
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text-secondary);
}

.map-main {
    flex-grow: 1;
    height: 100%;
}
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}
.leaflet-popup-content {
    margin: 13px 20px;
    font-family: var(--font-family);
}
.custom-popup-content {
    text-align: center;
}
.custom-popup-content img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}
.custom-popup-content h5 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}
.custom-popup-content a {
    font-weight: 600;
}
.custom-map-marker {
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    background-size: cover;
    background-position: center;
}
.marker-cluster-small div {
    background-color: rgba(138, 77, 171, 0.6) !important;
}
.marker-cluster-small div span {
    line-height: 28px !important;
}

@media (max-width: 768px) {
    .map-page-container {
        flex-direction: column;
        height: auto;
    }
    .map-sidebar {
        width: 100%;
        height: 50vh;
    }
    .map-main {
        height: 50vh;
    }
}
.user-location-marker {
    background: var(--color-blue);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px !important;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
