/* 📍 Full-Screen Map & Sidebar Layout */
.property-map-sidebar-container {
    display: flex;
    flex-direction: row;
    width: 100vw; /* Full page width */
    min-height: 100vh; /* Ensures full height */
    position: relative;
}

/* 🗺️ Full-Height Map */
#property-map {
   width: 850px; /* Fixed width */
    height: 100vh; /* Full viewport height */
    max-width: 100%; /* Ensures it doesn't break responsiveness */
    border-right: 2px solid #ddd; /* Optional: Adds a subtle separator */
}

/* 📋 Sidebar Scrolls with the Page */
#property-sidebar {
    flex: 1;
    min-width: 350px;
    max-width: 350px; /* 🔹 Match theme constraints */
    height: auto; /* Sidebar height grows dynamically */
    overflow-y: visible; /* Sidebar scrolls with the page */
    overflow-x: hidden; /* 🔹 Prevents unwanted horizontal scroll */
    padding: 15px;
    background: #f9f9f9;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
}

/* 📋 Scrollable Property List Inside the Sidebar */
#property-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 80vh; /* Prevents it from exceeding the sidebar */
    overflow-y: auto; /* Enables scrolling within the property list */
    overflow-x: hidden; /* 🔹 Prevents unwanted horizontal scroll */
}

/* 🏢 Sidebar Property Item Styling */
.property-item {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    width: 100%; /* 🔹 Ensures it never exceeds the sidebar width */
}

/* 🔹 Make Entire Item Clickable */
.property-link {
    text-decoration: none;
    display: block;
    width: 100%; /* 🔹 Prevents overflowing */
    height: 100%;
    position: relative;
    z-index: 2;
    overflow-x: hidden; /* 🔹 Ensures no side scrolling */
}

/* 🖼️ Property Image Styling */
.property-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 10px;
}

/* 🔵 Blue Opaque Box for Title */
.property-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 103, 192, 0.75); /* Blue with 75% opacity */
    padding: 10px;
    text-align: center;
    z-index: 2;
}

/* 🏷️ Property Title */
.property-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin: 0;
    padding: 5px;
}

/* 🏗️ Responsive Adjustments */
@media (max-width: 1024px) {
    .property-map-sidebar-container {
        flex-direction: column;
    }

    #property-map {
        width: 100%;
        min-width: 100%;
        height: 60vh; /* Shrinks map on smaller screens */
    }

    #property-sidebar {
        width: 100%;
        max-width: 100%;
        height: auto; /* Allows full scrolling */
        position: relative;
        overflow-x: hidden; /* 🔹 Fix for horizontal scrollbars on mobile */
    }
}

/* 📍 Full-Screen Map & Sidebar Layout */
.property-map-sidebar-container {
    display: flex;
    flex-direction: row;
    width: 1200px; /* Total width of the site */
    min-height: 100vh; /* Full screen height */
    margin: 0 auto; /* Centers the container */
}

/* 🗺️ Adjust Map Width */
#property-map {
    width: 850px; /* Exact remaining space after the sidebar */
    height: 100vh; /* Full height */
    border-right: 2px solid #ddd; /* Optional: Adds a subtle separator */
}

/* 📋 Sidebar Scrolls with the Page */
#property-sidebar {
    width: 350px;
    max-width: 350px; /* Matches theme constraint */
    height: auto; /* Sidebar height grows dynamically */
    overflow-y: visible; /* Sidebar scrolls with the page */
    overflow-x: hidden; /* 🔹 Prevents unwanted horizontal scroll */
    padding: 15px;
    background: #f9f9f9;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
}

