@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

body::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

body::-webkit-scrollbar-thumb {
    border-radius: 0.5rem;
    background-color: #505050;
    visibility: visible;
}

body::-webkit-scrollbar-track {
    background-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f074c0; /* Add background color */
    background-position: center;
    background-image: url('../img/bg5.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg5.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px); /* Apply blur directly to the background image */
    z-index: -2; /* Make sure it's behind everything */
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
    z-index: -1; /* Overlay the blurred image but behind content */
}





header {
    background: linear-gradient(90deg, rgba(197, 160, 197, 0.349)0%, rgba(253, 101, 253, 0.671) 100%);
    color: #000000;
    text-align: center;
    padding: 1em 0;
    margin: 15px auto;
    position: relative;
    z-index: 1;
    border: 1px solid #fa28a9;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-radius: 25px;
    box-shadow: 0 .4rem .8rem #0005;
    width: 50%;
}

@media screen and (max-width: 768px) {
    header {
        width: 80%;
    }
}

@media screen and (max-width: 576px) {
    header {
        width: 90%;
    }
}

header h1 {
    font-size: 1.7em;
    margin: 0;
    font-weight: 700;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1em;
    background: linear-gradient(90deg, rgb(211 189 211 / 29%)0%, rgba(253, 101, 253, 0.671)100%);
    box-shadow: 0 .4rem .8rem #0005;
    margin-bottom: 1em;
    position: relative;
    z-index: 1;
    border: 1px solid #fa28a9;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-radius: 25px;
    max-width: 1250px;
    margin: 1em auto;
}

.filter-panel input[type="text"],
.filter-panel input[type="number"],
.filter-panel select {
    flex: 1;
    margin: 0.5em;
    max-width: 200px;
    padding: 0.5em;
    font-size: 1em;
    border: 1px solid #fa28a9;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background: #f074c0;
    backdrop-filter: blur(5px);
    transition: border-color 0.3s, box-shadow 0.3s;
    font-weight: 600;
}

.filter-panel input[type="text"]:focus,
.filter-panel input[type="number"]:focus,
.filter-panel select:focus {
    outline: none;
    border-color: #d8d8d8;
    box-shadow: 0 0 5px rgba(194, 194, 194, 0.89);
}

.filter-panel button {
    margin: 0.5em;
    min-width: 100px;
    padding: 0.5em 1em;
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 20px;
    background-color: #f074c0;
    color: white; 
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.filter-panel button:hover {
    background-color: #3d3d3d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.house-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1em;
    z-index: 1;
}

@media screen and (max-width: 768px) {
    .filter-panel {
        width: 75%;
    }
}

@media screen and (max-width: 576px) {
    .filter-panel {
        width: 75%;
    }
}

.status_s.available {
    background-color: #86e49d;
    box-shadow: 0 .2rem .8rem #0005;
    border-radius: 20px;
}

.status_s.cancelled {
    background-color: #c92121;
    box-shadow: 0 .2rem .8rem #0005;
    border-radius: 20px;
}

.status_s.pending {
    background-color: #ebc474;
    box-shadow: 0 .2rem .8rem #0005;
    border-radius: 20px;
}

.status_s.shipped {
    background-color: #6fcaea;
    box-shadow: 0 .2rem .8rem #0005;
    border-radius: 20px;
}

.status_s.all {
    background-color: #cccfd1;
    box-shadow: 0 .2rem .8rem #0005;
    border-radius: 20px;
}

.block-container {
    width: 100%;
    margin-bottom: 2rem; /* Add space between blocks */
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center all house cards under a block */
}

.block-header {
    width: 100%; /* Keep the full width */
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 0.8em;
    color: #000000; /* Text color */

    /* Modify the gradient for a narrower look */
    background: linear-gradient(to right, transparent 35%, #f074c0 35%, #f074c0 65%, transparent 65%);
    padding: 0.3em;
    position: relative;
}

.block-header::before {
    content: '';
    position: absolute;
    left: 35%; /* Adjust to match the gradient */
    width: 30%; /* Narrower border area */
    height: 100%;
    top: 0;
    z-index: -1; /* Keep it behind the text */

}

.house-card {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: space-between; /* Distribute space between elements */
    background: linear-gradient(90deg, rgb(211 189 211 / 29%)0%, rgba(253, 101, 253, 0.671)100%);
    border: 1px solid #fa28a9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 1em;
    padding: 1em;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #fa28a9;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-radius: 25px;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.house-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.house-card button {
    margin: 0.5em;
    min-width: 100px;
    padding: 0.5em 1em;
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 20px;
    background-color: rgb(0, 0, 0);
    color: white; 
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.house-card button:hover {
    opacity: 85%;
}

.house-card img {
    max-width: 100%;
    box-shadow: 0 .1rem .2rem #0005;
    margin-bottom: 1em;
    border-radius: 15px;
    flex-shrink: 0; /* Ensure the image doesn't shrink */
}

.house-card h2 {
    font-size: 1.5em;
    margin: 0.5em 0;
    color: #000000;
    font-weight: 600;
}

.house-card p {
    margin: 0.5em 0;
    color: #000000;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .filter-panel {
        flex-direction: column;
        align-items: center;
    }

    .filter-panel input[type="text"],
    .filter-panel input[type="number"] {
        width: 63%;
        margin: 0.5em auto;
    }

    .filter-panel select {
        width: 200px;
        margin: 0.5em auto;
    }

    .filter-panel button {
        width: 90%;
        margin: 0.5em auto;
    }

    .house-card {
        width: 90%;
        margin: 0.5em auto;
    }
}

/* Add animation for modal opening */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Add animation for modal closing */
@keyframes modalFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Darker background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Highest z-index */
    animation: modalFadeIn 0.3s ease;
}

.modal.fade-out {
    animation: modalFadeOut 0.3s ease;
}

.modal-content {
    max-width: 80%; /* Keep modal size reasonable */
    max-height: 80vh;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 10px;
}

/* Large image inside the modal */
.large-image {
    max-width: 100%; 
    max-height: 100%;
    border-radius: 10px;
}

/* Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 25px;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    z-index: 10000;
}

/* Navigation Arrows */
.prev-arrow, .next-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 20px;
    z-index: 10000;
    border-radius: 50%;
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

@media screen and (max-width: 768px) {
    .modal-content {
        max-width: 90%; /* Expand modal on smaller screens */
        max-height: 80vh;
    }

    .prev-arrow, .next-arrow {
        padding: 8px;
        font-size: 18px;
    }

    .close {
        font-size: 22px;
    }
}

@media screen and (max-width: 576px) {
    .modal-content {
        max-width: 95%;
    }
}

/* Inquiry Popup CSS */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    backdrop-filter: blur(6px);
}

.popup h2 {
    margin-bottom: 10px;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background: linear-gradient(90deg, rgba(230, 84, 230, 0.671)0%, rgba(253, 101, 253, 0.671) 100%);
    border: 2px solid #fa28a9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    max-width: 300px;
    width: 100%;
    text-align: center;
    border-radius: 30px;
    animation: fadeIn 0.3s ease-in-out;
    max-height: 75vh;
    overflow: auto;
}

.close-btn {
    position: absolute;
    top: 7px;
    right: 13px;
    cursor: pointer;
    font-size: 23px;
    font-weight: 700;
    color: #000;
}

.popup form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}

.popup input,
.popup button {
    padding: 8px;
    border: 2px solid #fa28a9;
    border-radius: 30px;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 5px;
    background: #dbdbdb;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.popup input:focus {
    outline: none;
}

.popup button {
    background-color: #000000;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
}

.popup button:hover {
    opacity: 90%;
}

.close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.popup {
    scrollbar-color: transparent;
}

.popup::-webkit-scrollbar {
    width: 0.5rem;
}

.popup::-webkit-scrollbar-thumb {
    border-radius: 0.5rem;
    background-color: transparent;
}

.popup::-webkit-scrollbar-track {
    background-color: transparent;
}

.popup:hover::-webkit-scrollbar-thumb {
    visibility: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.confirmation-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background: linear-gradient(90deg, rgba(230, 84, 230, 0.671)0%, rgba(253, 101, 253, 0.671) 100%);
    border: 4px solid #fa28a9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
    max-width: 350px;
    width: 100%;
    text-align: center;
    border-radius: 30px;
    max-height: 75vh;
    overflow: auto;
    font-weight: 700;
    animation-duration: 0.3s;
    animation-fill-mode: both;
}

@media (max-width: 900px) {
    .popup {
        max-width: 75%;
    }

    .confirmation-popup {
        max-width: 80%;
    }
}

/* Loader CSS */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    font-size: 32px;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.5);
}

#spinner {
    width: 2em;
    animation: rotate 750ms linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#sGD stop {
    stop-color: #ffffff;
}

.path-solid {
    stroke: #ffffff;
}

.no-results-message {
    font-weight: 600;
}


/*Pop Enquiry Start*/
#enquiryDetailsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
    z-index:2000;
}

.enquiry-modal-content {
    background: linear-gradient(90deg, rgba(230, 84, 230, 0.76)0%, rgba(253, 101, 253, 0.808) 100%);;
    border: 2px solid #41414161;
    padding: 20px;
    width: 17%;
    border-radius: 30px;
    box-shadow: 0 .4rem .8rem #0005;
    text-align: center;
    font-size: 17px;
    overflow: auto;
    max-height: 55vh;
    z-index:2000;
}


.enquiry-modal-content {
    scrollbar-color:  transparent; /* Firefox */
    z-index:2000;
}

.enquiry-modal-content::-webkit-scrollbar {
    width: 0.5rem; /* Chrome, Safari, and Opera */
    z-index:2000;
}

.enquiry-modal-content::-webkit-scrollbar-thumb {
    border-radius: 0.5rem;
    background-color: transparent;
}

.enquiry-modal-content::-webkit-scrollbar-track {
    background-color: transparent; /* Optional: you can change it to another color if needed */
}

.enquiry-modal-content:hover::-webkit-scrollbar-thumb {
    visibility: hidden;
}

.enquiry-close {
    color: #000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin: -14px -3px;
    z-index:2000;
}

.enquiry-close:hover,
.enquiry-close:focus {
    opacity: 85%;
    text-decoration: none;
    cursor: pointer;
}

/* Animation for modal appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}



