/* Search Page Styles */
.search-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.search-hero h1,
.search-hero p {
    color: #ffffff;
}

.search-filters {
    background: white;
    padding: 0;
    border-radius: 0.5rem;
    box-shadow: none;
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
}

/* Filter toggle button - brand colors */
#toggleFilterBtn {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: #ffffff;
}

#toggleFilterBtn:hover,
#toggleFilterBtn:focus {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

#toggleFilterBtn i {
    color: var(--accent-color);
}

#toggleFilterBtn:hover i,
#toggleFilterBtn:focus i {
    color: var(--primary-color);
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section h6 {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.filter-section h6 .arrow {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.filter-section h6 .arrow.collapsed {
    transform: rotate(-90deg);
}

.filter-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.filter-content.collapsed {
    max-height: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
}

.property-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.quick-actions {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-card:hover .quick-actions {
    opacity: 1;
}

.badge-availability {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.search-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.filter-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.filter-tag .btn-close {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Sort dropdown styling */
.sort-dropdown {
    width: 250px;
}

.sort-dropdown-toggle,
.sort-dropdown-menu {
    width: 100%;
}

/* Common inline styles converted to classes */
.img-cover {
    object-fit: cover;
}

.img-height-60 {
    height: 60px;
}

.img-height-45 {
    height: 45px;
}

.img-height-40 {
    height: 40px;
}

.img-height-30 {
    height: 30px;
}

.img-width-60 {
    width: 60px;
}

.img-width-40 {
    width: 40px;
}

.border-radius-0375 {
    border-radius: 0.375rem;
}

.font-size-07rem {
    font-size: 0.7rem;
}

.font-size-075rem {
    font-size: 0.75rem;
}

.font-size-09rem {
    font-size: 0.9rem;
}

.font-size-095rem {
    font-size: 0.95rem;
}

.padding-025-05 {
    padding: 0.25rem 0.5rem;
}

.margin-top-25px {
    margin-top: 25px;
}

.position-fixed-bottom-right {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 1000;
}

.display-none {
    display: none;
}

/* Availability badge styling */
.badge-availability {
    background-color: var(--availability-color, #6c757d);
    color: white;
}

/* Price color utilities */
.price-rent-color {
    color: #6f42c1;
}

/* Button small styling */
.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Consistent 220px thumbnail height across search result views */
#cardView .card-img-wrapper,
#listView .card-img-wrapper,
#gridView .card-img-wrapper {
    height: 220px;
}

/* No slide animation on thumbnail carousels */
#cardView .carousel-item,
#listView .carousel-item,
#gridView .carousel-item {
    transition: none !important;
}

#cardView .card-img-wrapper .carousel,
#listView .card-img-wrapper .carousel,
#gridView .card-img-wrapper .carousel,
#cardView .card-img-wrapper img,
#listView .card-img-wrapper img,
#gridView .card-img-wrapper img {
    height: 100%;
}

/* Filter sidebar */
#filterSidebar {
    position: fixed;
    top: 100px;
    left: -450px;
    width: 450px;
    z-index: 1000;
    transition: left 0.3s ease;
    background: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
}

/* Floating toggle button positioning */
#floatingToggleBtn {
    top: 100px;
    left: 15px;
    z-index: 1000;
}

/* Filter icon margin */
#filterIcon {
    margin-left: 5px;
}

/* Custom toast styles */
.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 250px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .search-filters {
        padding: 1rem;
    }
    
    .search-summary {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .search-summary .d-flex {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .search-summary h5,
    .search-summary .sort-dropdown,
    .search-summary .layout-toggle {
        width: 100%;
        text-align: center;
    }
    
    .search-summary .d-flex:last-child {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
}
