.property_detail_page-container_buy {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.property_detail_page-gallery_buy {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto;
    gap: 2px;
    width: 100%;
    margin-bottom: 20px;
}

.property_detail_page-large-image_buy {
    width: 100%;
    max-width: 100%;
    height: 100% !important;
    display: block;
    margin: 0 auto;
}

.property_detail_page-small-images_buy {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    height: 100%;
}

.property_detail_page-small-image_buy {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.property_detail_page-content_buy {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.property_detail_page-details_buy {
    flex: 2;
}

.property_detail_page-title_buy {
    font-size: 2em;
    font-weight: bold;
    margin: 20px 0;
}

.property_detail_page-sticky-info-box_buy {
    flex: 1;
    position: sticky;
    top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 10px; /* Rounded edges */
    height: fit-content; /* Adjust height to fit content */
    margin-top: 30px;
}

.property_detail_page-mobile-sticky-info-box_buy {
    display: none; /* Hidden by default */
    padding: 10px;
    border: 1px solid #fff;
    background-color: #fff;
    border-radius: 10px; /* Rounded edges */
    margin-bottom: 20px;
}

.property_detail_page-price-box_buy {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.property_detail_page-agent-info_buy {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.property_detail_page-main-features_buy {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns layout */
    gap: 20px;
    margin-bottom: 20px;
}

.property-feature_buy {
    display: flex;
    align-items: center;
}

.property-feature-icon_buy {
    margin-right: 10px;
    font-size: 1.2em;
}

.property-feature-title_buy {
    font-weight: bold;
    margin-right: 5px;
    font-size: 0.9em; /* Smaller font size */
}

.property-feature-value_buy {
    color: #333;
    font-size: 0.9em; /* Smaller font size */
}

.property_detail_page-agent-photo_buy {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 10px;
}

.property_detail_page-agent-details_buy {
    font-size: 0.9em;
}

.property_detail_page-contact-buttons_buy {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.property_detail_page-contact-btn_buy {
    flex: 1;
    padding: 10px;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px; /* Rounded edges for buttons */
}

.property_detail_page-contact-btn_buy:hover {
    background-color: #333;
}

.property_detail_page-section-title_buy {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.property_detail_page-amenities-list_buy {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.property_detail_page-amenity-item_buy {
    border: 1px solid #fff;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 150px; /* Adjusted width */
    height: 150px; /* Adjusted height */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.property_detail_page-amenity-icon_buy {
    font-size: 2em; /* Increased icon size */
    margin-bottom: 10px;
}

.property_detail_page-location-description_buy {
    margin-top: 0px;
    font-size: 1em;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
}

.property_detail_page-rera-info_buy .property_detail_page-rera-box_buy {
    display: flex;
    align-items: center;
}

.property_detail_page-rera-info_buy .property_detail_page-rera-text_buy {
    flex: 1;
}

.property_detail_page-rera-qr-frame-wrapper_buy {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.property_detail_page-rera-qr-frame_buy {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*border: 1px solid #000;*/
    border-radius: 10px;
    overflow: hidden;
    width: 200px; /* Set width to 200px */
}

.property_detail_page-rera-verified_buy {
    background-color: #fff; 
    display: none;
    color: #fff; /* White text */
    padding: 5px;
    text-align: center;
    width: 100%; /* Full width of the QR frame */
    border-bottom: 1px solid #000; /* Border at the bottom to match the frame */
}

.property_detail_page-rera-qr-code_buy {
    width: 120px; /* Increased size */
    height: 120px; /* Increased size */
}

.property_detail_page-section_buy {
    margin-bottom: 30px; /* Added gap between sections */
}

#property-map_buy {
    width: 100%;  /* Full width of the container */
    height: 300px; /* Set height to 300px */
    border: 0;
}

.property_detail_page-gallery-modal_buy {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.property_detail_page-gallery-overlay_buy {
    display: none;
    position: fixed;
    z-index: 998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.property_detail_page-spinner_buy {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.property_detail_page-gallery-modal-image_buy {
    max-width: 90%;
    max-height: 80%;
}

.property_detail_page-gallery-prev_buy,
.property_detail_page-gallery-next_buy {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 2em;
    cursor: pointer;
    user-select: none;
    z-index: 1000; /* Ensure they are above the modal */
}

.property_detail_page-gallery-prev_buy {
    left: 20px;
}

.property_detail_page-gallery-next_buy {
    right: 20px;
}

.property_detail_page-gallery-close_buy {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2em;
    cursor: pointer;
    user-select: none;
    z-index: 1000; /* Ensure it is above the modal */
}

#mobile-gallery_buy {
    display: none;
}

.see-video-icon_buy {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    color: #fff;
    padding: 10px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    z-index: 10; /* Ensure it appears above other elements */
    align-self: end;
    margin-bottom: 10px;
    margin-left: 10px;
}

.see-video-icon_buy i {
    font-size: 1.5em;
    margin-right: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px; /* Set a fixed width */
    height: 32px; /* Set a fixed height */
}

.property_detail_page-youtube-modal_buy {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.property_detail_page-youtube-content_buy {
    position: relative;
    width: 80%;
    max-width: 800px;
}

.property_detail_page-youtube-iframe_buy {
    width: 100%;
    height: 450px;
}

.property_detail_page-youtube-close_buy {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2em;
    cursor: pointer;
    user-select: none;
}

#mortgage-calculator-section_buy{
    margin-bottom: 30px;
}
.mortgage-calculator-container_buy {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 30px 0;
    background-color: #fff;
    border-radius: 10px;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mortgage-calculator-title_buy {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.mortgage-calculator-container_buy p {
    margin-bottom: 20px;
    color: #666;
    font-size: 1em;
}

.mortgage-calculator-fields_buy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.mortgage-calculator-fields_buy label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.mortgage-calculator-fields_buy input,
.mortgage-calculator-fields_buy select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

.mortgage-calculator-result_buy {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #2c3e50;
    text-align: center;
}

.mortgage-calculator-note_buy {
    font-size: 0.9em;
    color: #888;
    text-align: center;
    margin-top: 10px; /* Add some space between the button and note */
}

#calculate-button_buy {
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    display: block;
    margin: 20px auto 0 auto; /* Center the button */
    width: 100%; /* Full-width button */
    max-width: 300px; /* Limit max-width */
    text-align: center;
}

#calculate-button_buy:hover {
    background-color: #000;
}

/* Styles for the Email Popup */
.buy-email-popup {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

    
.buy-close-popup {
    position: absolute;
    right: 10px;
    top: 0px;
    background: white !important;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: black !important;
}

.buy-custom-close-btn {
    margin-top: 20px;  /* Adds spacing between the message and the close button */
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.buy-custom-close-btn:hover {
    background-color: #333;  /* Change background on hover */
}

.buy-email-popup h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

.buy-email-popup form {
    display: flex;
    flex-direction: column;
}

.buy-email-popup input {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.buy-email-popup p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1em;
    color: #666;
}

.buy-email-popup button {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.buy-email-popup button:hover {
    background-color: #333;
}

/* Responsive styles for mobile */
@media (max-width: 760px) {
    
    .mortgage-calculator-fields_buy {
        grid-template-columns: 1fr;
    }

    .see-video-icon_buy {
        position: absolute;
        background-color: rgba(0, 0, 0, 0.7);
        color: #fff;
        padding: 6px 10px;
        border-radius: 30px;
        cursor: pointer;
        font-size: 1em;
        display: flex;
        align-items: center;
        z-index: 10;
        align-self: end;
        margin-bottom: 0px;
        margin-left: 5px;
        margin-top: -50px;
    }
    
    .see-video-icon_buy i {
        font-size: 1.5em;
        margin-right: 8px;
        border: 2px solid #fff;
        border-radius: 50%;
        padding: 3px;
    }

    .property_detail_page-main-features_buy {
        grid-template-columns: repeat(2, 1fr); /* Two columns layout for mobile */
    }
    
    #property-gallery_buy {
        display: none;
    }

    #mobile-gallery_buy {
        display: block;
        width: 100%;
        position: relative;
    }

    .mobile-gallery-wrapper_buy {
        position: relative;
        text-align: center;
        margin-bottom: 20px;
        width: 110%;
        margin-left: -5%;
    }

    .mobile-gallery-image_buy {
        width: 100%;
        height: auto;
    }

    .mobile-gallery-nav_buy {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: white;
        font-size: 2em;
        cursor: pointer;
        user-select: none;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 10px;
    }

    .mobile-gallery-prev_buy {
        left: 10px;
    }

    .mobile-gallery-next_buy {
        right: 10px;
    }

    .property_detail_page-gallery_buy {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .property_detail_page-large-image_buy,
    .property_detail_page-small-images_buy {
        width: 100%;
        height: auto;
        display: block;
    }

    .property_detail_page-small-images_buy {
        display: none; /* Hide small images on mobile */
    }

    .property_detail_page-content_buy {
        flex-direction: column;
    }

    .property_detail_page-sticky-info-box_buy {
        display: none; /* Hide original sticky on mobile */
    }

    .property_detail_page-mobile-sticky-info-box_buy {
        display: block; /* Show mobile sticky on mobile */
    }

    .property_detail_page-amenities-list_buy {
        display: flex;
        flex-direction: column; /* Display as a column to stack amenities */
    }

    .property_detail_page-amenity-item_buy {
        display: flex;
        background-color: #fff;
        border: 1px solid #fff;
        align-items: center;
        padding: 10px;
        width: 100%; /* Full width */
        height: auto; /* Adjust height */
        text-align: left; /* Align text to the left */
        border: none; /* Remove border */
        border-bottom: 1px solid #ccc; /* Add bottom border for separation */
        border-radius: 0; /* Remove border radius */
        margin-bottom: 10px; /* Add margin bottom for spacing */
    }

    .property_detail_page-amenity-icon_buy {
        font-size: 1.5em; /* Smaller icon size for mobile */
        margin-right: 10px; /* Margin to the right of the icon */
        margin-bottom: 0; /* Remove bottom margin */
    }

    .property_detail_page-amenity-item_buy span {
        display: inline-block; /* Ensure text is inline with icon */
        vertical-align: middle; /* Vertically align text */
    }
}
