/* ========================================
   Property Hive Custom Grid Styles
   Based on Eden Grid Design (edengrid.png)
   ======================================== */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100;200;300;375;400;500;600;700;800;900&display=swap');

/* Chronicle Display font from local assets */
@font-face {
    font-family: "Chronicle Display";
    src: url('../assets/fonts/ChronicleDisplay-Regular.ttf') format('truetype'),
         url('../assets/fonts/chronicle-display.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Default font family for all property grid elements */
.property_listing,
.property_listing * {
    font-family: "Raleway", sans-serif;
    color: #005A5A;
}

/* Search Results Page Background */
.propertyhive {
    background-color: #F7F2EF;
}

/* Property Grid Container */
.property-search-results-container {
    background-color: #F7F2EF;
    padding: 40px 20px;
}

/* Container & Grid Layout */
.listing_wrapper {
    margin-bottom: 30px;
    padding: 0 15px;
}

.property_listing {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    height: 100%;
    align-items: stretch;
    gap: 0;
}

.property_listing:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Image Wrapper Section (Left Side) */
.listing-unit-img-wrapper {
    position: relative;
    overflow: hidden;
    flex: 0 0 50%;
    min-height: 300px;
    border-radius: 12px 0 0 12px;
}

.listing-unit-img-wrapper a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: block;
}

.listing-unit-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
    display: block;
}

.property_listing:hover .listing-unit-img-wrapper img {
    transform: scale(1.05);
}

.prop_new_details {
    position: relative;
    width: 100%;
    height: 100%;
}

.prop_new_details_back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.property_listing:hover .prop_new_details_back {
    background: rgba(0, 0, 0, 0.05);
}

.featured_gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 0;
}

/* Availability Badge - In Right Column */
.listing_unit_availability_wrapper {
    background: transparent;
    color: #005A5A;
    padding: 0;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    text-transform: capitalize;
    text-align: center;
    flex: 0 0 auto;
}

/* Placeholder when no availability */
.listing_unit_availability_placeholder {
    flex: 0 0 auto;
}

/* Price Badge (Bottom Left) */
.listing_unit_price_wrapper {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #fff;
    color: #005A5A;
    padding: 7px 20px;
    border-radius: 0;
    font-size: 18px;
    font-weight: 375;
    z-index: 2;
    font-family: "Chronicle Display", serif;
    font-style: normal;
    line-height: normal;
}

.price_label {
    font-size: 13px;
    font-weight: 600;
    margin-left: 4px;
    color: #005A5A;
    display: inline-block;
}

/* Property Information Section (Right Side) */
.property-unit-information-wrapper {
    padding: 40px 80px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fff;
}

.property-unit-information-wrapper h4 {
    margin: 0 0 12px 0;
}

.property-unit-information-wrapper h4 a {
    color: #005A5A;
    text-decoration: none;
    font-size: 22px;
    font-weight: 375;
    line-height: normal;
    font-family: "Chronicle Display", serif;
    font-style: normal;
    display: inline-block;
}

/* Hide price badge in property information (only show on image) */
.property-unit-information-wrapper > .listing_unit_price_wrapper {
    display: none;
}

/* Address Section */
.property_card_categories_wrapper {
    font-size: 15px;
    color: #111111;
    margin-bottom: 0;
    line-height: 1.5;
    font-weight: 500;
}

.property_card_categories_wrapper a {
    color: #2c5f5f;
    text-decoration: none;
}

/* Bedrooms & Bathrooms */
.property_listing_details_v2 {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 0;
    align-items: center;
}

.property_listing_details_v2_item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.property_listing_details_v2_item .icon_label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.property_listing_details_v2_item .icon_label img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Description Text */
.listing_details {
    font-size: 15px;
    color: #111111;
    line-height: 1.6;
    margin-bottom: 0;
    word-break: break-word;
}

.listing_details a {
    color: #2c5f5f;
    text-decoration: none;
    font-weight: 600;
}

.the_grid_view {
    display: block !important;
}

.the_list_view {
    display: none !important;
}

/* Divider Line */
.property-info-divider {
    height: 1px;
    background-color: #ddd;
    margin: 0;
    width: 100%;
}

/* Footer Wrapper - Availability and Button Row */
.property-footer-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.property-footer-wrapper .listing_unit_availability_wrapper {
    flex: 0 0 auto;
    min-width: auto;
    order: 1;
}

.property-footer-wrapper .prop-but {
    flex: 0 0 auto;
    margin-bottom: 0;
    padding: 12px 28px;
    order: 2;
}

/* View Property Button */
.prop-but {
    background: #2c5f5f;
    color: #fff;
    border: 2px solid #2c5f5f;
    padding: 12px 28px;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.prop-but:hover {
    background: #fff;
    color: #2c5f5f;
    border-color: #2c5f5f;
}

.prop-but a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.prop-but i {
    font-size: 14px;
}

/* Property Status Tags */
.property_card_categories_wrapper:last-child {
    margin-top: auto;
    margin-bottom: 0;
}

.property_card_categories_wrapper a[rel="tag"] {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 8px;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .listing-unit-img-wrapper {
        flex: 0 0 50%;
    }
}

@media (max-width: 1024px) {
    .listing-unit-img-wrapper {
        flex: 0 0 50%;
        min-height: 280px;
    }

    .property-unit-information-wrapper {
        padding: 30px 60px;
    }

    .property-unit-information-wrapper h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .listing_wrapper {
        padding: 0 10px;
        margin-bottom: 20px;
    }

    /* Stack image on top, content below on tablets */
    .property_listing {
        flex-direction: column;
    }

    .listing-unit-img-wrapper {
        flex: 0 0 auto;
        min-height: 240px;
        border-radius: 12px 12px 0 0;
    }

    .property-unit-information-wrapper {
        padding: 24px 32px;
        flex: 1;
    }

    .property-unit-information-wrapper h4 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .property_listing_details_v2 {
        gap: 18px;
        margin-bottom: 12px;
    }

    .prop-but {
        padding: 11px 18px;
        font-size: 12px;
        margin-bottom: 10px;
    }

    .listing_details {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .property_card_categories_wrapper {
        font-size: 12px;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .listing_wrapper {
        padding: 0;
        margin-bottom: 15px;
    }

    .property_listing {
        border-radius: 8px;
        flex-direction: column;
    }

    .listing-unit-img-wrapper {
        flex: 0 0 auto;
        min-height: 200px;
        border-radius: 8px 8px 0 0;
    }

    .property-unit-information-wrapper {
        padding: 18px 20px;
        border-radius: 0 0 8px 8px;
    }

    .listing_unit_price_wrapper {
        bottom: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .property-unit-information-wrapper h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .property_listing_details_v2 {
        gap: 15px;
    }

    .property-footer-wrapper {
        flex-direction: column;
        gap: 12px;
        justify-content: flex-start;
    }

    .property-footer-wrapper .listing_unit_availability_wrapper {
        width: 100%;
        min-width: auto;
    }

    .property-footer-wrapper .prop-but {
        width: 100%;
        padding: 11px 24px;
    }

    .prop-but {
        font-size: 12px;
    }

    .listing_details {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .property-info-divider {
        margin: 12px 0;
    }
}

/* Featured Property Styling */
.listing_wrapper.featured .property_listing {
    border: 2px solid #2c5f5f;
}

.listing_wrapper.featured::before {
    content: "Featured";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2c5f5f;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 5;
}

/* Animation Utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.listing_wrapper {
    animation: fadeInUp 0.5s ease-out;
}

/* Remove room name styling from description */
.listing_details .room .name {
    display: none;
}

.listing_details .room br {
    display: none;
}

.listing_details .room:not(:last-child)::after {
    content: "";
}

/* ========================================
   Search Form Styling
   ======================================== */

/* Results Controls Wrapper */
.results-controls-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 15px;
}

.property-search-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
}

.search-form-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: nowrap;
}

.search-form-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

/* Hide the entire search-form-field when its child is hidden */
.search-form-field > [style*="display: none"],
.search-form-field > [style*="display:none"] {
    display: none !important;
}

.search-form-field:has(> [style*="display: none"]),
.search-form-field:has(> [style*="display:none"]) {
    display: none !important;
}

/* Hide search-form-field when it contains only a hidden input */
.search-form-field:has(> input[type="hidden"]) {
    display: none !important;
}

/* Style existing Property Hive labels */
.search-form-field label {
    font-size: 15px;
    font-weight: 600;
    color: #2c5f5f;
    margin-bottom: 8px;
    text-transform: capitalize;
    display: block;
}

/* Form field inputs and selects */
.search-form-field select,
.search-form-field input[type="text"],
.search-form-field input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
    color: #333;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

/* Move select chevron icon 5px to the left */
.search-form-field select {
    padding-right: 9px;
    background-position: right 5px center;
}

.search-form-field select:focus,
.search-form-field input[type="text"]:focus,
.search-form-field input[type="number"]:focus {
    outline: none;
    border-color: #2c5f5f;
}

/* Price range wrapper - for two inputs side by side */
.search-form-field.price-range {
    flex: 1.5;
    min-width: 220px;
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-range-inputs input {
    flex: 1;
}

.price-range-separator {
    color: #333;
    font-weight: 600;
    padding: 0 5px;
    flex-shrink: 0;
}

/* Search button */
.search-form-submit-wrapper {
    flex: 0 0 auto;
}

.search-button {
    background: #A0754D;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
    white-space: nowrap;
    line-height: 1.6em;
}

.search-button:hover {
    background: #8b6440;
}

.search-button i {
    display: none;
}

.search-button::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../images/search_icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Ordering/Catalog dropdown styling */
.propertyhive_catalog_ordering select,
select.orderby {
    width: auto;
    padding: 12px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
    color: #333;
    font-family: inherit;
    transition: border-color 0.3s ease;
    cursor: pointer;
    background-position: right 5px center;
}

.propertyhive_catalog_ordering select:focus {
    outline: none;
    border-color: #2c5f5f;
}

/* Responsive search form */
@media (max-width: 1024px) {
    .property-search-form {
        padding: 24px 20px;
        margin-bottom: 30px;
    }

    .search-form-wrapper {
        gap: 12px;
        flex-wrap: wrap;
    }

    .search-form-field {
        flex: 0 0 calc(33.333% - 8px);
        min-width: auto;
    }

    .search-form-submit-wrapper {
        flex: 0 0 auto;
        align-self: flex-end;
    }

    .search-button {
        width: auto;
        justify-content: center;
    }

    .price-range-inputs {
        display: flex;
    }

    .price-range-inputs input {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .property-search-form {
        padding: 18px 16px;
        margin-bottom: 20px;
    }

    .search-form-wrapper {
        gap: 10px;
        flex-direction: column;
    }

    .search-form-field {
        width: 100%;
        min-width: auto;
        flex: 1 1 auto;
    }

    .search-form-submit-wrapper {
        width: 100%;
    }

    .search-field-label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .search-form-field select,
    .search-form-field input[type="text"],
    .search-form-field input[type="number"] {
        padding: 10px 12px;
        font-size: 12px;
        width: 100%;
    }

    .search-button {
        padding: 11px 24px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Custom Pagination Styling
   ======================================== */

.propertyhive-pagination-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 30px 20px;
    text-align: center;
}

.pagination-dots-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Pagination page numbers */
.pagination-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 50px;
    background-color: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.pagination-dot:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

/* Active pagination page */
.pagination-dot.active {
    cursor: default;
    pointer-events: none;
    background-color: #8b6f47;
    color: #fff;
    border-color: #8b6f47;
}

/* Pagination arrows */
.pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #fff;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-arrow span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: #fafafa;
    border-color: #eee;
}

/* Pagination info text */
.pagination-info {
    text-align: center;
}

.pagination-text {
    margin: 0;
    font-size: 15px;
    color: #111111;
    font-weight: 500;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .pagination-dots-wrapper {
        gap: 8px;
    }

    .pagination-dot .dot-inner {
        width: 7px;
        height: 7px;
    }

    .pagination-dot.active .dot-inner {
        width: 9px;
        height: 9px;
    }

    .pagination-arrow {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }

    .propertyhive-pagination-custom {
        padding: 20px 15px;
        gap: 12px;
    }
}

/* ========================================
   Single Property Image Slider
   ======================================== */

.property-image-slider {
    width: 100%;
    background-color: #000;
}

.property-image-slider .slider-wrapper {
    position: relative;
    width: 100%;
}

.property-image-slider .slider-container {
    position: relative;
    width: 100%;
    max-height: 800px;
    overflow: hidden;
}

.property-image-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-image-slider .slide.active {
    opacity: 1;
    position: relative;
}

.property-image-slider .slide img {
    width: 100%;
    height: 100%;
    max-height: 800px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Slider Navigation Arrows */
.property-image-slider .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 4px;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-image-slider .slider-arrow:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.property-image-slider .slider-arrow span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.property-image-slider .slider-prev {
    left: 20px;
}

.property-image-slider .slider-next {
    right: 20px;
}

/* ========================================
   Mobile Search Filters Toggle
   ======================================== */

/* Hide toggle button on desktop */
.search-filters-toggle {
    display: none;
}

/* Show toggle button on mobile */
@media (max-width: 576px) {
    .search-filters-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 12px 16px;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 15px;
        font-weight: 600;
        color: #005A5A;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-bottom: 15px;
    }

    .search-filters-toggle:hover {
        background-color: #f5f5f5;
        border-color: #999;
    }

    .search-filters-toggle .toggle-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        font-size: 18px;
        font-weight: 700;
        transition: transform 0.3s ease;
    }

    .search-filters-toggle .toggle-text {
        flex: 1;
        text-align: left;
    }

    /* Hide search form by default on mobile */
    .search-form-wrapper-container {
        display: none;
        animation: slideDown 0.3s ease forwards;
    }

    /* Show search form when active */
    .search-form-wrapper-container.active {
        display: block;
    }

    /* Change icon to minus when active */
    .search-filters-toggle.active .toggle-icon {
        transform: rotate(45deg);
    }

    /* Slide down animation */
    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
            overflow: hidden;
        }
        to {
            opacity: 1;
            max-height: 1000px;
            overflow: visible;
        }
    }

    /* Slide up animation (reverse) */
    @keyframes slideUp {
        from {
            opacity: 1;
            max-height: 1000px;
            overflow: visible;
        }
        to {
            opacity: 0;
            max-height: 0;
            overflow: hidden;
        }
    }

    .search-form-wrapper-container.closing {
        animation: slideUp 0.3s ease forwards;
    }
}

/* ========================================
   Property Overview Section
   ======================================== */

.property-overview {
    background-color: #005A5A;
    border-top: 7px solid #a9745b;
    padding: 60px 20px;
}

.overview-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Availability Badge */
.overview-availability {
    display: flex;
    gap: 10px;
}

.availability-badge {
    background-color: #a9745b;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 15px 25px;
    border-radius: 5px;
    display: inline-block;
}

/* Overview Rows */
.overview-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.overview-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.overview-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
    text-align: right;
}

/* Title and Address */
.property-title {
    font-family: 'Chronicle Display', serif !important;
    font-size: 36px !important;
    font-weight: 400 !important;
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
}

.property-address {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.map-marker-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.address-text {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    color: #fff;
}

/* Asking Price */
.asking-price-label {
    font-family: 'Raleway', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.property-price {
    font-family: 'Chronicle Display', serif;
    font-size: 40px;
    font-weight: 400;
    color: #fff;
}

.price-qualifier {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    color: #fff;
}

/* Divider Line */
.overview-divider {
    height: 7px;
    background-color: #fff;
    width: 100%;
}

/* Specs Row Layout */
.overview-specs .overview-left {
    flex-direction: row;
    gap: 40px;
}

/* Specs Items */
.specs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.spec-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.spec-text {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    color: #fff;
}

/* View EPC Button */
.view-epc-button {
    background-color: #fff;
    color: #005A5A;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-epc-button:hover {
    background-color: transparent;
    color: #fff;
}

/* EPC Modal */
#epc-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.epc-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.epc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.epc-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.epc-modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.3s ease;
}

.epc-modal-close:hover {
    color: #000;
}

.epc-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#epc-images-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#epc-images-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .property-overview {
        padding: 40px 20px;
    }

    .overview-row {
        flex-direction: column;
        gap: 50px;
    }

    .property-title {
        font-size: 28px;
    }

    .asking-price-label {
        font-size: 18px;
    }

    .property-price {
        font-size: 32px;
    }

    .price-row {
        gap: 5px;
    }

    .overview-right {
        align-items: flex-start;
        text-align: left;
    }

    /* Center EPC modal on mobile */
    .epc-modal-content {
        margin: 0;
    }
}
