/* ================================================
   SEARCH PAGE STYLES
   ================================================ */

.search-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.search-filters-panel {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-filters-panel h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--luxury-text);
}

.filters-form {
    margin-top: 30px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--luxury-text);
    margin-bottom: 8px;
}

.filter-group input,
.filter-group select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--luxury-primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 63, 0.1);
}

.filter-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.filter-actions button {
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.search-results {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.results-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--luxury-text);
}

.results-view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--luxury-text-light);
}

.view-btn.active {
    background: var(--luxury-primary);
    color: white;
    border-color: var(--luxury-primary);
}

.view-btn:hover {
    border-color: var(--luxury-accent);
    color: var(--luxury-accent);
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.results-container.list-view {
    grid-template-columns: 1fr;
}

.property-card-list {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.property-card-list:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.property-image-list {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-image-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-info-list {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-info-list .property-price {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.property-info-list .property-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.property-info-list .property-description {
    color: var(--luxury-text-light);
    line-height: 1.6;
    margin-top: 15px;
}

.pagination {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--luxury-text);
}

.page-btn:hover {
    border-color: var(--luxury-primary);
    color: var(--luxury-primary);
}

.page-btn.active {
    background: var(--luxury-primary);
    color: white;
    border-color: var(--luxury-primary);
}

.page-dots {
    padding: 0 5px;
    color: var(--luxury-text-light);
}

.no-results,
.error-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--luxury-text-light);
}

.no-results p,
.error-message p {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .results-container {
        grid-template-columns: 1fr;
    }
    
    .property-card-list {
        grid-template-columns: 1fr;
    }
    
    .property-image-list {
        height: 250px;
    }
}

