/* ============================================
   PROPERTY SEARCH PAGE - CLEAN STYLES
   ============================================ */

* {
    box-sizing: border-box;
}

/* Banner */
.property-banner {
    height: 300px;
    background: linear-gradient(rgba(26, 49, 77, 0.7), rgba(26, 49, 77, 0.7)), 
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.property-banner-content {
    max-width: 800px;
}

.property-banner h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.property-banner p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Search Form */
.search-form-container {
    background: white;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-form {
    max-width: 1200px;
    margin: 0 auto;
}

.search-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-field {
    flex: 1;
    min-width: 150px;
}

.search-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-submit {
    flex: 0 0 auto;
}

.search-submit .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

/* Main Container */
.property-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.properties-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Sidebar */
.properties-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-section {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-section h3 {
    margin: 0 0 0.7rem 0;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a314d;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1.2;
}

.filter-item:hover {
    color: #d3a03a;
}

.filter-item.active {
    color: #d3a03a;
    font-weight: 600;
}

.filter-badge {
    font-size: 0.7rem;
    background: #f0f0f0;
    color: #666;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* Price Range */
.price-range {
    padding: 0;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    color: #666;
}

.price-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
}

.price-inputs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.price-inputs input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Bedrooms */
.bedrooms-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bedroom-btn {
    padding: 0.4rem 0.8rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

.bedroom-btn:hover {
    border-color: #d3a03a;
    color: #d3a03a;
}

.bedroom-btn.active {
    background: #d3a03a;
    color: white;
    border-color: #d3a03a;
}

/* Advanced Search Button */
.btn-advanced-search {
    width: 100%;
    padding: 0.6rem 1rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Main Content */
.properties-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.grid-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.sort-controls .form-select {
    width: 180px;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    border: 1px solid #ddd;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.property-card-wrapper {
    display: flex;
    flex-direction: column;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-info {
    padding: 0 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.no-results h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.no-results p {
    margin: 0;
    color: #666;
}

/* Button Styles */
.btn-gold {
    background: #d3a03a;
    color: white;
    border: 1px solid #d3a03a;
    font-weight: 600;
}

.btn-gold:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-outline-secondary {
    border: 1px solid #ddd;
    color: #333;
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #999;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.form-select,
.form-control {
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
    .properties-layout {
        grid-template-columns: 1fr;
    }
    
    .properties-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .property-banner h1 {
        font-size: 2rem;
    }
    
    .property-banner p {
        font-size: 1rem;
    }
    
    .search-row {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .search-field {
        width: 100%;
        min-width: 100%;
    }
    
    .search-submit {
        flex: 1 1 100%;
    }
    
    .search-submit .btn {
        width: 100%;
    }
    
    .properties-sidebar {
        grid-template-columns: 1fr;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .sort-controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-controls .form-select {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .property-banner {
        height: 200px;
    }
    
    .property-banner h1 {
        font-size: 1.5rem;
    }
    
    .property-banner p {
        font-size: 0.9rem;
    }
    
    .search-form-container {
        padding: 1rem;
    }
    
    .search-row {
        gap: 0.6rem;
    }
    
    .property-search-container {
        padding: 1rem 0.5rem;
    }
    
    .properties-layout {
        gap: 1rem;
    }
    
    .filter-section {
        padding: 0.8rem;
    }
    
    .grid-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .grid-header h2 {
        font-size: 1.1rem;
    }
}
