/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : Jul 4, 2025, 2:18:25 PM
    Author     : qualebs
*/

.view-container{
    display: none;
}
.active{
    display: flex;
}
.button-bar {
    display: flex;
    justify-content: right;
    align-items: center;
    width: 100%;
    margin: 1.5rem auto;
    padding: 12px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.bar-button {
    background-color: #0d6efd;
    color: #fff;
    border: none;
    padding: 10px 18px;
    margin: 0 5px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.bar-button:hover {
    background-color: #084298;
}
/*profile cards*/
.profiles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 2rem;
}
.profile-card-link{
    display: flex;
    width: 100%;
    max-width: 250px;
    height: 400px;
}
.profile-card {
    width: 100%;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
}
.profile-card:hover {
    transform: scale(1.02);
}
.swiper {
    width: 100%;
    height: 400px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    padding: 1rem;
}

.profile-details h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.profile-details p {
    margin: 0.25rem 0;
    color: #555;
}

.price-tag {
    margin-top: 0.5rem;
    font-weight: bold;
    color: #2b9348;
}
/*end profile cards*/

.radius-slider-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: auto;
}
.slider-wrapper {
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
}

.radius-display {
    color: #555;
    margin-top: 0.5rem;
    text-align: center;
}
.pulse-marker {
    width: 20px;
    height: 20px;
    background: rgba(0, 136, 255, 0.4);
    border: 4px solid #0088ff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-sizing: border-box;
    position: relative;
}
.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.popup-photo:hover {
    transform: scale(1.1);
}

.popup-text {
    margin-top: 5px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.leaflet-marker-icon.large {
    transform: scale(1.5);
    z-index: 1000 !important;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }
    70% {
        transform: scale(1.8);
        opacity: 0;
    }
    100% {
        transform: scale(0.9);
        opacity: 0;
    }
}

/*filter panel*/
.filter-panel {
    position: fixed;
    background: #f8f9fa;
    padding: 1rem;
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    border-radius: 8px;
    z-index: 2000;
}

.filter-panel.hidden {
    transform: translateX(-110%);
}

.filter-panel h2 {
    font-size: 18px;
    margin-bottom: 1rem;
}

.filter-panel label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

.filter-panel input[type="range"] {
    width: 100%;
}

.filter-panel select, .filter-panel input[type="number"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/*end filter panel*/


/* Map View */
.map-view {
    width: 100%;
    height: 80vh; /* Occupies 80% of the visible screen height */
    max-height: 100vh;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}
/*mobile*/
@media (min-width: 1px) and (max-width: 762px) {
    .profiles-grid {
        align-content: center;
        justify-content: center;
    }
    .profile-card-link{
        width: 90%;
        max-width: 500px;
        height: auto;
    }
    .map-view {
        height: 70vh; /* Slightly smaller on mobile for better layout balance */
        border-radius: 0.5rem;
    }
    .filter-panel {
    }
}
/*tablet*/
@media (min-width: 768px) {
    .profile-card-link{
        width: 250px;
        height: 330px;
    }
}