/* Properties Page Styles - Mobile First - Enhanced UX/UI */

.properties-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Hero Section - Enhanced */
.properties-hero {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.properties-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.properties-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.properties-hero p {
    font-size: 17px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* Layout */
.properties-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
}

/* Filters Sidebar - Enhanced */
.filters-sidebar {
    order: 2;
}

.filters-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,107,53,0.1);
    position: sticky;
    top: 20px;
}

.filters-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2c3e50;
    padding-bottom: 15px;
    border-bottom: 3px solid #ff6b35;
}

.filters-card h3 i {
    color: #ff6b35;
    background: rgba(255,107,53,0.1);
    padding: 10px;
    border-radius: 10px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
}

.filter-group .form-control {
    border: 2px solid #e8ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.filter-group .form-control:focus {
    outline: none;
    border-color: #ff6b35;
    background: white;
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    flex: 1;
}

.price-inputs span {
    color: #999;
    font-size: 14px;
    font-weight: 600;
}

.filters-card .btn-block {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.filters-card .btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.filters-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

.filters-card .btn-secondary {
    background: #6c757d;
    border: none;
}

.filters-card .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Properties Main - Enhanced */
.properties-main {
    order: 1;
}

.properties-header {
    background: white;
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #ff6b35;
}

.properties-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.properties-header h2::before {
    content: '🏠';
    font-size: 24px;
}

/* Properties Grid - Enhanced */
.properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: rgba(255,107,53,0.3);
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(255,193,7,0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.listing-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.listing-badge.sale {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.listing-badge.rent {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.property-image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.property-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.property-card:hover .property-image::after {
    opacity: 1;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .property-image img {
    transform: scale(1.15);
}

.property-info {
    padding: 20px;
}

.property-price {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.property-price span {
    font-size: 15px;
    font-weight: 500;
    color: #999;
    -webkit-text-fill-color: #999;
}

.property-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.property-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-title a:hover {
    color: #ff6b35;
}

.property-location {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-location i {
    color: #ff6b35;
    font-size: 13px;
}

.property-features {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-top: 15px;
    border-top: 2px solid #f0f3f5;
}

.property-features span {
    font-size: 13px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.property-features i {
    color: #ff6b35;
    font-size: 14px;
}

.property-actions {
    display: flex;
    gap: 10px;
}

.property-actions .btn {
    flex: 1;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 13px;
}

.property-actions .btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.property-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

.property-actions .btn-success {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

.property-actions .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

/* No Properties - Enhanced */
.no-properties {
    background: white;
    border-radius: 15px;
    padding: 80px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.no-properties i {
    font-size: 80px;
    color: #e0e0e0;
    margin-bottom: 25px;
    display: block;
}

.no-properties h3 {
    font-size: 26px;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 700;
}

.no-properties p {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 16px;
}

.no-properties .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
}

/* Pagination - Enhanced */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-link {
    padding: 12px 18px;
    background: white;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
}

.page-link:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.page-link.active {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    color: white;
    border-color: #ff6b35;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.page-link i {
    font-size: 12px;
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.property-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Tablet */
@media (min-width: 768px) {
    .properties-hero {
        padding: 80px 0 50px;
    }
    
    .properties-hero h1 {
        font-size: 42px;
    }
    
    .properties-hero p {
        font-size: 19px;
    }
    
    .properties-layout {
        grid-template-columns: 320px 1fr;
        gap: 30px;
    }
    
    .filters-sidebar {
        order: 1;
    }
    
    .properties-main {
        order: 2;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .property-image {
        height: 240px;
    }
    
    .property-price {
        font-size: 30px;
    }
    
    .property-title {
        font-size: 18px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .properties-layout {
        grid-template-columns: 340px 1fr;
        gap: 35px;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .property-image {
        height: 260px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .property-image {
        height: 280px;
    }
}

/* Mobile Specific Enhancements */
@media (max-width: 767px) {
    .filters-card {
        position: relative;
        top: 0;
    }
    
    .property-card {
        margin-bottom: 5px;
    }
    
    .property-actions {
        flex-direction: column;
    }
    
    .property-actions .btn {
        width: 100%;
    }
}
