/* Zillow-Style Property Search Styles */

/* Main Search Container - Zillow-style sticky header */
.livewire-search-component .search-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Primary Search Bar - Zillow-inspired */
.zillow-search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.zillow-search-input {
    width: 100%;
    height: 48px;
    border: 2px solid #006ba6;
    border-radius: 8px;
    padding: 12px 60px 12px 16px;
    font-size: 16px;
    font-weight: 400;
    color: #2d3748;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 107, 166, 0.1);
    transition: all 0.2s ease;
}

.zillow-search-input:focus {
    outline: none;
    border-color: #0077be;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.15);
}

.zillow-search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #006ba6;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.zillow-search-button:hover {
    background: #0077be;
}

/* Filter Pills Container - Zillow horizontal layout */
.zillow-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 16px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Filter Pills - Zillow-style buttons */
.zillow-filter-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.zillow-filter-pill:hover {
    border-color: #006ba6;
    background: #f8fafc;
}

.zillow-filter-pill.active {
    background: #006ba6;
    color: white;
    border-color: #006ba6;
}

.zillow-filter-pill .filter-icon {
    margin-left: 8px;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.zillow-filter-pill.active .filter-icon {
    transform: rotate(180deg);
}

/* Filter Dropdowns - Zillow-style panels */
.zillow-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    margin-top: 8px;
    padding: 20px;
    min-width: 320px;
    max-height: 400px;
    overflow-y: auto;
}

.zillow-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

/* Price Range Inputs - Zillow-style */
.zillow-price-inputs {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.zillow-price-input {
    flex: 1;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    color: #374151;
    background: #fafafa;
    transition: all 0.2s ease;
}

.zillow-price-input:focus {
    outline: none;
    border-color: #006ba6;
    background: white;
}

.price-separator {
    color: #6b7280;
    font-weight: 500;
}

/* Suggested Price Ranges - Zillow pills */
.price-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.price-suggestion {
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 12px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.price-suggestion:hover {
    background: #e5e7eb;
    border-color: #006ba6;
}

/* Bedroom/Bathroom Selectors - Zillow circles */
.zillow-room-selector {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.room-option {
    width: 44px;
    height: 44px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.room-option:hover {
    border-color: #006ba6;
    color: #006ba6;
}

.room-option.selected {
    background: #006ba6;
    border-color: #006ba6;
    color: white;
}

/* Advanced Filters Toggle */
.advanced-filters-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.advanced-filters-toggle:hover {
    background: #f9fafb;
    border-color: #006ba6;
}

/* Results Section - Zillow-style header */
.zillow-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.results-count {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-button:hover {
    border-color: #006ba6;
}

.sort-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1001;
    margin-top: 4px;
}

.sort-option {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: none;
    border: none;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sort-option:hover {
    background: #f9fafb;
}

.sort-option.active {
    background: #eff6ff;
    color: #006ba6;
}

/* Property Grid - Zillow-style cards */
.zillow-property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* Loading States */
.loading-blur {
    filter: blur(2px);
    opacity: 0.7;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .zillow-filters-container {
        padding: 12px 16px;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .zillow-filters-container::-webkit-scrollbar {
        display: none;
    }
    
    .zillow-filter-pill {
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .zillow-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        border-radius: 0;
        border: none;
        max-height: none;
        overflow-y: auto;
        padding: 60px 20px 20px;
        background: white;
    }
    
    .zillow-dropdown::before {
        display: none;
    }
    
    .mobile-filter-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: white;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        z-index: 1002;
    }
    
    .mobile-close-button {
        background: none;
        border: none;
        font-size: 18px;
        color: #6b7280;
        cursor: pointer;
        padding: 8px;
    }
    
    .zillow-property-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .zillow-property-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .zillow-dropdown {
        min-width: 280px;
    }
}

/* Desktop Styles */
@media (min-width: 1025px) {
    .zillow-filters-container {
        justify-content: center;
    }
    
    .zillow-property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .zillow-property-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Accessibility */
.zillow-filter-pill:focus,
.zillow-search-input:focus,
.room-option:focus {
    outline: 2px solid #006ba6;
    outline-offset: 2px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-down {
    animation: slideDown 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}














