/* ============================================================
   PROPERTIES PAGE & PROPERTY DETAIL STYLES
   ============================================================ */

/* Page Hero */
.properties-hero {
    padding: 180px 0 80px;
    background: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
}

.properties-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 100%);
}

/* Quick Search Bar */
.quick-search-bar {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 1.5rem;
}

.search-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
}

.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-input:focus {
    background: rgba(255,255,255,0.15);
    border-color: #AA8C59;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(170,140,89,0.2);
}

.filter-select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
}

.filter-select option { color: #333; background: #fff; }
.filter-select:focus { border-color: #AA8C59; box-shadow: 0 0 0 3px rgba(170,140,89,0.2); }

/* Filter Panel */
.filter-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.filter-group {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f5f5f5;
}

.filter-label {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    margin-bottom: 0.75rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    transition: color 0.2s;
}

.filter-checkbox input { margin-right: 10px; accent-color: #AA8C59; }
.filter-checkbox:hover span { color: #AA8C59; }

/* Bed/Bath Selector */
.bed-bath-option {
    cursor: pointer;
}

.bed-bath-option input { display: none; }
.bed-bath-option span {
    display: inline-block;
    width: 44px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.bed-bath-option input:checked + span {
    background: #AA8C59;
    color: #fff;
    border-color: #AA8C59;
}

.bed-bath-option:hover span { border-color: #AA8C59; }

/* Results Toolbar */
.results-toolbar {
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.view-toggle {
    border-radius: 6px !important;
    padding: 0.35rem 0.65rem;
}

.view-toggle.active { background: #AA8C59; color: #fff; border-color: #AA8C59; }

/* Promotion Badges */
.promo-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-badge.premium {
    background: linear-gradient(135deg, #6B21A8, #9333EA);
    color: #fff;
}

.promo-badge.gold {
    background: linear-gradient(135deg, #D97706, #F59E0B);
    color: #fff;
}

.promo-badge.promoted {
    background: linear-gradient(135deg, #0891B2, #06B6D4);
    color: #fff;
}

.promo-badge.featured {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    color: #fff;
}

/* Description Clamp */
.description-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.page-link {
    color: #333;
    border: none;
    margin: 0 3px;
    border-radius: 8px !important;
    padding: 8px 14px;
}

.page-item.active .page-link {
    background: #AA8C59;
    color: #fff;
}

.page-link:hover { background: #f0f0f0; color: #AA8C59; }

/* Property Detail Hero */
.property-detail-hero {
    padding: 160px 0 60px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-detail-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
}

.property-detail-hero .badge {
    position: static !important;
}

.breadcrumb-item a { transition: color 0.2s; }
.breadcrumb-item a:hover { color: #AA8C59 !important; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* Stat Cards */
.stat-card {
    background: #f8f9fa;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: #AA8C59;
    transform: translateY(-2px);
}

/* Amenity Icon */
.amenity-icon {
    width: 40px;
    height: 40px;
    background: rgba(170,140,89,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #AA8C59;
    flex-shrink: 0;
}

/* Property Detail Price */
.property-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: #AA8C59;
    font-family: 'Playfair Display', serif;
}

/* Mobile Filter */
@media (max-width: 991px) {
    .filter-panel {
        position: fixed;
        top: 0; left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        z-index: 1050;
        border-radius: 0;
        overflow-y: auto;
        transition: left 0.3s ease;
    }
    .filter-panel.show { left: 0; }
    .filter-backdrop {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        display: none;
    }
    .filter-backdrop.show { display: block; }
}
