/* Properties Page Styles - Luxury & Modern */

.properties-header {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.properties-header .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.properties-header.hero-with-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(35, 38, 15, 0.6);
    pointer-events: none;
    z-index: 1;
}

.properties-header h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.properties-header p {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* Filters Section - Premium Design */
.filters-section {
    background: var(--bg-light);
    padding: 50px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.filters-container {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.08),
        0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.filter-group input,
.filter-group select {
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-dark);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(104, 104, 69, 0.1);
    transform: translateY(-1px);
}

.filter-group input::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.filter-actions {
    display: flex;
    gap: 12px;
    grid-column: 1 / -1;
    margin-top: 10px;
}

.btn-filter {
    padding: 14px 32px;
    background: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(71, 70, 45, 0.2);
}

.btn-filter:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 70, 45, 0.3);
}

.btn-filter-clear {
    padding: 14px 32px;
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-filter-clear:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

/* Properties List Section */
.properties-list-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.results-header {
    margin-bottom: 50px;
    text-align: center;
}

.results-header h2 {
    font-size: clamp(24px, 4vw, 32px);
    color: var(--primary-dark);
    font-weight: 400;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

/* Property Cards - Luxury Design */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin-top: 0;
}

.property-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.08),
        0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.15),
        0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.property-image-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--light);
}

.property-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .property-image-wrapper img {
    transform: scale(1.1);
}

.property-featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.property-category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(35, 38, 15, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.property-info {
    padding: 32px;
}

.property-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.property-location {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

.property-description {
    color: var(--text-light);
    font-size: 15px;
    margin: 16px 0 24px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-features-list {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-light);
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.property-features-list span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.property-price {
    font-size: 32px;
    font-weight: 400;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.property-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.property-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.property-link:hover::after {
    transform: translateX(4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.empty-state p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.btn-view-all {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(71, 70, 45, 0.2);
}

.btn-view-all:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 70, 45, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .properties-header {
        background-attachment: scroll;
    }
    
    .filters-section {
        position: relative;
        top: 0;
        padding: 30px 0;
    }
    
    .filters-container {
        padding: 24px;
        border-radius: 16px;
    }
    
    .filters-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-actions {
        grid-column: 1;
        flex-direction: column;
    }
    
    .btn-filter,
    .btn-filter-clear {
        width: 100%;
    }
    
    .properties-header {
        padding: 120px 0 60px;
        margin-top: 0;
    }
    
    .properties-list-section {
        padding: 50px 0;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .property-info {
        padding: 24px;
    }
    
    .property-image-wrapper {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .filters-container {
        padding: 20px;
    }
    
    .property-image-wrapper {
        height: 240px;
    }
    
    .property-title {
        font-size: 20px;
    }
    
    .property-price {
        font-size: 28px;
    }
    
    .property-features-list {
        gap: 12px;
        font-size: 13px;
    }
}
