/* Favorite Button Styles */
.favorite-btn {
    background: transparent;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    border-color: #ff4444;
    background-color: rgba(255, 68, 68, 0.1);
}

.favorite-btn.is-favorite {
    border-color: #ff4444;
}

.favorite-btn.is-favorite i {
    color: #ff4444;
}

/* CRITICAL: Remove focus styles that cause the red circle to stick */
.favorite-btn:focus,
.favorite-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ddd; /* Reset to default when not favorite */
}

.favorite-btn.is-favorite:focus,
.favorite-btn.is-favorite:focus-visible {
    border-color: #ff4444; /* Keep red border if it's a favorite */
}

/* Remove Bootstrap's default focus ring */
.favorite-btn:focus:not(:focus-visible) {
    outline: 0;
    box-shadow: none;
}



/* Stylesheet for the Property Details Page */

.property-details-page .page-header-bar {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.property-details-page img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.375rem; /* Matches Bootstrap's border-radius */
}

.main-photo-container img {
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container without distortion */
}

.key-details-list, .property-bullets {
    list-style-type: none;
    padding-left: 0;
    font-size: 1.1rem;
}

.key-details-list li, .property-bullets li {
    padding: 0.4rem 0;
}

.property-bullets i {
    margin-right: 8px;
}

.property-description {
    line-height: 1.6;
}

/*
=================================================
  PRINT STYLES - Hides unnecessary elements
  and ensures a clean, single-column layout.
=================================================
*/
@media print {
    /* Hide header, footer, and sidebar when printing */
    .fixed-header, .fixed-footer, .offcanvas {
        display: none !important;
    }

    /* Remove padding that compensates for fixed header/footer */
    .content-wrapper {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Force all columns to be full-width, creating a single-column flow */
    .property-details-page .col-lg-7,
    .property-details-page .col-lg-5,
    .property-details-page .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Remove extra margin/padding for a tighter print layout */
    .property-details-page {
        margin-top: 0 !important;
    }

    /* Prevent page breaks inside key sections */
    .main-photo-container, .key-details-list, .photo-gallery {
        page-break-inside: avoid;
    }

    a {
        text-decoration: none;
        color: #000;
    }
}