/* Search Page Styles */
.search-hero {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(25, 135, 84, 0.9)),
                url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

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

.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;
}

/* View containers */
.view-container {
    display: none;
}

.view-container.active {
    display: block;
}

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

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

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

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

.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;
}

/* Carousel image fixes */
.carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* List view specific image fixes */
#listView .carousel-item img {
    width: 100%;
    height: 200px !important;
    object-fit: cover;
}

#listView .col-md-3 {
    position: relative;
    overflow: hidden;
}

#listView .carousel {
    height: 200px;
}

.carousel-previews {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.carousel-preview {
    flex: 0 0 auto;
    width: 80px;
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 0.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.carousel-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-preview:hover,
.carousel-preview.active {
    border-color: #0d6efd;
}

/* 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;
    }
}
