/* ========================================
   PREMIUM Properties Page Styles - v2.0
   Luxury Aesthetic Redesign
   ======================================== */

/* Breadcrumb Navigation - Enhanced */
.breadcrumb-nav {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 18px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.breadcrumb-nav .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.breadcrumb-link {
    color: #2c5f7c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-link:hover {
    color: #d4af37;
    transform: translateX(2px);
}

.breadcrumb-separator {
    color: #cbd5e0;
    margin: 0 5px;
}

.breadcrumb-current {
    color: #666;
    font-size: 14px;
    font-weight: 700;
}

/* ========================================
   PREMIUM HERO SECTION WITH BACKGROUND IMAGE
   ======================================== */

.properties-hero {
    padding: 120px 0 100px;
    background: 
        linear-gradient(135deg, rgba(26, 60, 109, 0.55) 0%, rgba(44, 95, 124, 0.50) 50%, rgba(26, 60, 109, 0.55) 100%),
        url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?w=1920&q=80') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

/* Animated overlay pattern */
.properties-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.12) 0%, transparent 50%);
    animation: heroShimmer 15s ease-in-out infinite;
    z-index: 1;
}

/* Subtle scan line effect */
.properties-hero::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    animation: scanLine 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes heroShimmer {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scanLine {
    0% { top: -100%; }
    100% { top: 200%; }
}

.properties-hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.properties-hero .content-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(194, 127, 58, 0.25) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(212, 175, 55, 0.5);
    color: #ffd700;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: badgePulse 3s ease-in-out infinite;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3); }
}

.properties-hero .content-badge i {
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.5));
}

.properties-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(212, 175, 55, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.properties-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.98);
    max-width: 750px;
    margin: 0 auto 50px;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Premium Stats Cards */
.properties-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 
        0 20px 60px rgba(212, 175, 55, 0.4),
        0 0 60px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: #ffd700;
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(212, 175, 55, 0.5);
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ========================================
   PREMIUM FILTERS SECTION
   ======================================== */

.properties-filters {
    padding: 40px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 2px solid rgba(212, 175, 55, 0.1);
    position: relative;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Mobile Filter Toggle - Premium */
.mobile-filter-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #1a3c6d 0%, #2c5f7c 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(44, 95, 124, 0.25);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.mobile-filter-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: left 0.5s ease;
}

.mobile-filter-toggle:hover::before {
    left: 100%;
}

.mobile-filter-toggle:hover {
    background: linear-gradient(135deg, #2c5f7c 0%, #1a3c6d 100%);
    box-shadow: 0 12px 32px rgba(44, 95, 124, 0.35);
    transform: translateY(-2px);
}

.mobile-filter-toggle .toggle-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.mobile-filter-toggle .toggle-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.mobile-filter-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

/* Filters Wrapper */
.filters-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: end;
}

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

.filter-group label {
    font-size: 13px;
    font-weight: 700;
    color: #1a3c6d;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group label i {
    color: #d4af37;
    font-size: 15px;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.filter-select {
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1a3c6d;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-select:hover {
    border-color: #d4af37;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
}

.filter-select:focus {
    border-color: #2c5f7c;
    outline: none;
    box-shadow: 0 0 0 4px rgba(44, 95, 124, 0.1);
}

.btn-clear-filters {
    padding: 14px 28px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #1a3c6d;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-clear-filters:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #cbd5e0 100%);
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-clear-filters i {
    color: #d4af37;
}

/* ========================================
   PREMIUM PROPERTIES SECTION
   ======================================== */

.all-properties-section {
    padding: 80px 0;
    background: 
        linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%),
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(44, 95, 124, 0.03) 0%, transparent 50%);
}

.properties-count {
    font-size: 20px;
    font-weight: 700;
    color: #1a3c6d;
    margin-bottom: 40px;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(44, 95, 124, 0.05) 100%);
    border-left: 4px solid #d4af37;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.properties-count span {
    color: #d4af37;
    font-size: 24px;
}

/* Premium Property Grid */
.all-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
}

/* No Results - Premium */
.no-results {
    text-align: center;
    padding: 100px 30px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(212, 175, 55, 0.1);
}

.no-results i {
    font-size: 80px;
    color: #d4af37;
    margin-bottom: 30px;
    opacity: 0.5;
}

.no-results h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #1a3c6d;
    margin-bottom: 15px;
    font-weight: 700;
}

.no-results p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

/* ========================================
   PREMIUM CTA SECTION
   ======================================== */

.properties-cta {
    padding: 120px 0;
    background: linear-gradient(135deg, #1a3c6d 0%, #2c5f7c 50%, #1a3c6d 100%);
    position: relative;
    overflow: hidden;
}

/* Animated background */
.properties-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(212, 175, 55, 0.1) 2px, transparent 2px),
        radial-gradient(circle, rgba(212, 175, 55, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    animation: ctaPattern 20s linear infinite;
}

@keyframes ctaPattern {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.properties-cta .cta-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.properties-cta .cta-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #d4af37 0%, #c27f3a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    box-shadow: 
        0 12px 40px rgba(212, 175, 55, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.3);
    position: relative;
    animation: ctaIconFloat 3s ease-in-out infinite;
}

@keyframes ctaIconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.properties-cta .cta-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: ctaIconRing 2s ease-in-out infinite;
}

@keyframes ctaIconRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.properties-cta .cta-icon i {
    font-size: 40px;
    color: white;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.properties-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.properties-cta p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    line-height: 1.7;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-cta-primary::before,
.btn-cta-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-cta-primary:hover::before,
.btn-cta-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #d4af37 0%, #c27f3a 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-cta-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-cta-primary i,
.btn-cta-secondary i {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-cta-primary:hover i,
.btn-cta-secondary:hover i {
    transform: translateX(5px);
}

.btn-cta-primary span,
.btn-cta-secondary span {
    position: relative;
    z-index: 1;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (min-width: 769px) {
    /* Always show filters on desktop/tablet */
    .mobile-filter-toggle {
        display: none !important;
    }
    
    .filters-wrapper {
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
        display: grid !important;
    }
}

@media (max-width: 1024px) {
    .properties-hero h1 {
        font-size: 44px;
    }

    .stat-item {
        padding: 18px 28px;
        border-radius: 15px;
    }

    .stat-value {
        font-size: 32px;
        margin-bottom: 7px;
    }
    
    .stat-label {
        font-size: 11px;
    }

    .properties-cta h2 {
        font-size: 38px;
    }

    .all-properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Mobile optimizations */
    .properties-hero {
        padding: 60px 0 50px;
    }

    .properties-hero h1 {
        font-size: 34px;
    }

    .properties-hero p {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .properties-stats {
        gap: 20px;
    }

    .stat-item {
        padding: 16px 24px;
        border-radius: 14px;
    }

    .stat-value {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .stat-label {
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    /* Filters Mobile */
    .properties-filters {
        position: relative;
        top: 0;
        padding: 20px 0;
    }

    .mobile-filter-toggle {
        display: flex;
    }

    .filters-wrapper {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
        grid-template-columns: 1fr;
        gap: 15px;
        display: grid;
    }

    .filters-wrapper.expanded {
        max-height: 1500px;
        opacity: 1;
        margin-bottom: 15px;
        display: grid;
    }

    .all-properties-section {
        padding: 50px 0;
    }

    .properties-count {
        font-size: 18px;
        padding: 16px 24px;
    }

    .properties-count span {
        font-size: 20px;
    }

    .all-properties-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .properties-cta {
        padding: 80px 0;
    }

    .properties-cta .cta-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 30px;
    }

    .properties-cta .cta-icon i {
        font-size: 32px;
    }

    .properties-cta h2 {
        font-size: 32px;
    }

    .properties-cta p {
        font-size: 17px;
        margin-bottom: 40px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
        padding: 18px 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .properties-hero {
        padding: 50px 0 40px;
    }

    .properties-hero .content-badge {
        font-size: 12px;
        padding: 10px 22px;
        margin-bottom: 24px;
    }

    .properties-hero h1 {
        font-size: 28px;
    }

    .properties-hero p {
        font-size: 15px;
        margin-bottom: 35px;
    }

    .properties-stats {
        flex-direction: row;
        gap: 12px;
        justify-content: space-between;
    }

    .stat-item {
        flex: 1;
        padding: 14px 16px;
        border-radius: 12px;
        min-width: 0;
    }

    .stat-value {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .stat-label {
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .properties-filters {
        padding: 15px 0;
    }

    .mobile-filter-toggle {
        padding: 16px 20px;
        font-size: 15px;
        border-radius: 14px;
    }

    .all-properties-section {
        padding: 40px 0;
    }

    .properties-count {
        font-size: 16px;
        padding: 14px 20px;
    }

    .properties-count span {
        font-size: 18px;
    }

    .all-properties-grid {
        gap: 25px;
    }

    .properties-cta {
        padding: 60px 0;
    }

    .properties-cta .cta-icon {
        width: 70px;
        height: 70px;
    }

    .properties-cta .cta-icon i {
        font-size: 28px;
    }

    .properties-cta h2 {
        font-size: 26px;
        line-height: 1.4;
    }

    .properties-cta p {
        font-size: 16px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 16px 32px;
        font-size: 15px;
    }
}
