
/*Maps Marker clusters*/
.qiupidsaas-main-content {
    height: calc(100vh - 100px); /*calc(100vh - 56px); /* Full height minus navbar */
    overflow: hidden;
}

:root {
    --qiupidsaas-primary: #ED147D;
    --qiupidsaas-primary-light: #f64998;
    --qiupidsaas-primary-dark: #c90e66;
}
.qiupidsaas-map-listings-filters .mt-profile-search.horizontal_form, 
.qiupidsaas-map-listings-filters .mt-profile-search.vertical_form{
    margin-top: 12px;
}
.qiupidsaas-map-listings-filters h2 {
    font-size: 25px;
}
.leaflet-container a{
    color: #000 !important;
}
/* Profiles panel */
.qiupidsaas-listings-panel {
    height: 100%;
    scrollbar-width: none;     /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    overflow-y: auto;
    transition: transform 0.3s ease;
    background: #fff;
}

.qiupidsaas-listings-panel::-webkit-scrollbar,
.qiupidsaas-listings-wrapper::-webkit-scrollbar {
  display: none;             /* Chrome, Safari, Opera */
}
.qiupidsaas-listings-wrapper {
    overflow-y: auto;
    padding: 0 18px;
    scrollbar-width: none;     /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    /*max-height: calc(100vh - 160px);*/
}

/* Map panel */
.qiupidsaas-map-panel {
    height: 100%;
    transition: transform 0.3s ease;
}

#qiupidsaas_map {
    width: 100%;
    height: 100%;
}

/* Mobile view toggle button */
.qiupidsaas-mobile-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.qiupidsaas-mobile-toggle .btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile grid layout */
#qiupidsaas_profiles_grid {
    margin-right: -8px;
    margin-left: -8px;
}

/* Profile card styles */
.qiupidsaas-profile-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
}
.qiupidsaas-map-listings-filters .mt-profile-search .form-control, 
.qiupidsaas-map-listings-filters .mt-profile-search.vertical_form select, 
.qiupidsaas-map-listings-filters .mt-profile-search.vertical_form input[type="search"]{
    margin-top: 5px;
}
.qiupidsaas-map-listings-filters .mt-form-field-group{
    padding-right: 5px;
}
.qiupidsaas-map-listings-filters .qiupidsaas-single-filter button {
    background: transparent;
    border: 1px solid #b4b4b4;
    border-radius: 10px;
    font-size: 13px;
    color: #666;
}
.qiupidsaas-map-listings-filters {
    padding: 0 30px;
    margin-bottom: 30px;
}
.qiupidsaas-profile-card:hover, .qiupidsaas-profile-card.active {
    border: 1px solid transparent;
    border-color: var(--qiupidsaas-primary);
}

.qiupidsaas-profile-image-container {
    position: relative;
    height: auto;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.qiupidsaas-profile-img img{
    width: 100%;
}
.qiupidsaas-profile-img {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #888;
}

.qiupidsaas-profile-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 10;
}

.qiupidsaas-profile-badge .badge {
    font-size: 0.6rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.qiupidsaas-profile-name {
    font-weight: 600;
}

.qiupidsaas-profile-age {
    font-size: 0.9rem;
    background-color: var(--bs-secondary);
}

.qiupidsaas-profile-location {
    font-size: 0.85rem;
    color: var(--bs-secondary);
}

.qiupidsaas-profile-bio {
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qiupidsaas-profile-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.qiupidsaas-interest-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: rgba(237, 20, 125, 0.1);
    color: var(--qiupidsaas-primary);
    display: inline-block;
}

.qiupidsaas-membership-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600;
}

.qiupidsaas-membership-badge.starter {
    background-color: #FFD166;
    color: #333;
}

.qiupidsaas-membership-badge.premium {
    background-color: #06D6A0;
    color: #333;
}

.qiupidsaas-membership-badge.platinum {
    background-color: #073B4C;
    color: white;
}

/* Leaflet custom marker popup */
.qiupidsaas-custom-popup {
    max-width: 300px;
}

.qiupidsaas-popup-image {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    margin-bottom: 10px;
    border-radius: 12px;
}

.qiupidsaas-popup-content h5 {
    margin-bottom: 5px;
    font-size: 20px;
    color: var(--qiupidsaas-primary);
}

.qiupidsaas-popup-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}
.leaflet-popup-content p{
    margin: 0 !important;
}
/* Mobile styles */
@media (max-width: 767.98px) {
    .qiupidsaas-listings-panel, .qiupidsaas-map-panel {
        height: calc(100vh - 56px);
        width: 100%;
        position: absolute;
        top: 56px;
        left: 0;
    }
    
    .qiupidsaas-listings-panel {
        transform: translateX(-100%);
        z-index: 900;
    }
    
    .qiupidsaas-map-panel {
        z-index: 800;
    }
    
    .qiupidsaas-show-listings .qiupidsaas-listings-panel {
        transform: translateX(0);
    }
    
    .qiupidsaas-show-listings .qiupidsaas-map-panel {
        transform: translateX(100%);
    }
}

/* Cluster custom styles */
.marker-cluster-small {
    background-color: rgba(237, 20, 125, 0.6);
}
.marker-cluster-small div {
    background-color: rgba(237, 20, 125, 0.8);
    color: white;
}

.marker-cluster-medium {
    background-color: rgba(237, 20, 125, 0.6);
}
.marker-cluster-medium div {
    background-color: rgba(237, 20, 125, 0.8);
    color: white;
}

.marker-cluster-large {
    background-color: rgba(237, 20, 125, 0.6);
}
.marker-cluster-large div {
    background-color: rgba(237, 20, 125, 0.8);
    color: white;
}

/* Marker highlight effect */
.qiupidsaas-highlighted-marker {
    z-index: 1000 !important;
}

/* Custom marker styles */
.qiupidsaas-custom-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 36px;
    text-align: center;
    line-height: 36px;
    height: 36px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #ED147D;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.qiupidsaas-custom-marker.online {
    background-color: #ED147D;
}

.qiupidsaas-custom-marker.offline {
    background-color: #888;
}

.qiupidsaas-custom-marker.highlighted {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(237, 20, 125, 0.8);
    z-index: 1000;
}

/* Online indicator */
.qiupidsaas-online-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.qiupidsaas-online-indicator.online {
    background-color: #00D26A;
}

.qiupidsaas-online-indicator.offline {
    background-color: #aaa;
}

/* Pagination styles */
.qiupidsaas-pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.qiupidsaas-pagination .page-item .page-link:hover,
.qiupidsaas-pagination .page-item.active .page-link {
    background-color: var(--qiupidsaas-primary);
    border-color: var(--qiupidsaas-primary);
}