/* ===================================
   PROPERTIES PAGE - PREMIUM CATALOG
   =================================== */

/* Header Section */
.properties-header {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.properties-header .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1920&auto=format&fit=crop&q=80') center/cover no-repeat;
}

.properties-header .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    opacity: 1 !important;
}

.properties-header .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
}

.properties-header-content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
}

.properties-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.properties-subtitle {
    font-size: 1.2rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 4rem;
}

/* Filter Section Inside Video */
.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.filter-select {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    padding-right: 3rem;
}

.filter-select option {
    background: var(--dark);
    color: var(--white);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.25);
}

.filter-button {
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.4);
}

/* Remove old filter section styles */
.filter-section {
    display: none;
}

/* Properties Grid Section (White & Minimalist Professional) */
.properties-grid-section {
    padding: 6rem 0;
    background: #FFFFFF;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Property Card */
.property-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    opacity: 1 !important;
}

.property-card:hover {
    transform: translateY(-8px);
    background: #FFFFFF;
    border-color: #CBD5E1;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.property-image {
    position: relative;
    height: 260px;
    min-height: 260px;
    overflow: hidden;
    background: #E2E8F0;
    width: 100%;
}

.property-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

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

.property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.property-card:hover .property-overlay {
    opacity: 1;
}

.view-details-btn {
    padding: 0.875rem 2rem;
    background: #FFFFFF;
    color: #0F172A;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.view-details-btn:hover {
    background: #2563EB;
    color: #FFFFFF;
}

.property-info {
    padding: 1.75rem 2rem 2rem;
}

.property-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: #0F172A !important;
    font-weight: 600;
}

.property-location {
    color: #64748B !important;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.property-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #334155 !important;
    font-size: 0.85rem;
    background: #F8FAFC;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.meta-item svg {
    color: #2563EB !important;
}

.property-price {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 700;
    color: #2563EB !important;
    padding-top: 1.25rem;
    border-top: 1px solid #F1F5F9;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    padding: 2rem 0;
}

.load-more-btn {
    padding: 1.2rem 3rem;
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.load-more-btn:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* CTA Section */
.properties-cta {
    padding: 8rem 0;
    background: var(--off-white);
}

.properties-cta .cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.properties-cta .cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2.5rem;
    color: var(--dark);
}

.properties-cta .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.properties-cta .btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.properties-cta .btn-outline:hover {
    background: var(--dark);
    color: var(--white);
}

/* Responsive */
@media (max-width: 1200px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 968px) {
    /* Header */
    .properties-header {
        height: auto;
        min-height: 100vh;
        padding: 8rem 0 4rem;
    }
    
    .properties-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        margin-bottom: 0.75rem;
    }
    
    .properties-subtitle {
        font-size: 1.125rem;
        margin-bottom: 3rem;
    }
    
    /* Filter */
    .filter-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1.5rem;
    }
    
    .filter-select {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
        background-position: right 1.25rem center;
        padding-right: 2.75rem;
    }
    
    .filter-button {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }
    
    /* Properties Grid */
    .properties-grid-section {
        padding: 4rem 0;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .property-image {
        height: 250px;
    }
    
    .property-info {
        padding: 1.5rem;
    }
    
    .property-name {
        font-size: 1.375rem;
        margin-bottom: 0.4rem;
    }
    
    .property-location {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }
    
    .property-meta {
        gap: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .meta-item {
        font-size: 0.8125rem;
    }
    
    .property-price {
        font-size: 1.5rem;
        padding-top: 1.25rem;
    }
    
    .view-details-btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.875rem;
    }
    
    /* Load More */
    .load-more-section {
        padding: 1.5rem 0;
    }
    
    .load-more-btn {
        padding: 1rem 2.5rem;
        font-size: 0.9375rem;
    }
    
    /* CTA */
    .properties-cta {
        padding: 5rem 0;
    }
    
    .properties-cta .cta-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: 2rem;
    }
    
    .properties-cta .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .properties-cta .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    /* Header */
    .properties-header {
        padding: 7rem 0 3rem;
    }
    
    .properties-title {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 0.5rem;
    }
    
    .properties-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    /* Filter */
    .filter-container {
        gap: 0.875rem;
        padding: 0 1.25rem;
    }
    
    .filter-select {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
        border-radius: 40px;
        background-position: right 1rem center;
        padding-right: 2.5rem;
    }
    
    .filter-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.8125rem;
        border-radius: 40px;
    }
    
    /* Properties Grid */
    .properties-grid-section {
        padding: 3rem 0;
    }
    
    .properties-grid {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .property-card {
        border-radius: 6px;
    }
    
    .property-image {
        height: 220px;
    }
    
    .property-overlay {
        padding: 1rem;
    }
    
    .view-details-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.8125rem;
        border-radius: 40px;
    }
    
    .property-info {
        padding: 1.25rem;
    }
    
    .property-name {
        font-size: 1.25rem;
        margin-bottom: 0.375rem;
    }
    
    .property-location {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }
    
    .property-meta {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .meta-item {
        font-size: 0.75rem;
        gap: 0.375rem;
    }
    
    .meta-item svg {
        width: 14px;
        height: 14px;
    }
    
    .property-price {
        font-size: 1.375rem;
        padding-top: 1rem;
    }
    
    /* Load More */
    .load-more-section {
        padding: 1.25rem 0;
    }
    
    .load-more-btn {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
        border-radius: 40px;
    }
    
    /* CTA */
    .properties-cta {
        padding: 4rem 0;
    }
    
    .properties-cta .cta-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 1.5rem;
    }
    
    .properties-cta .cta-buttons {
        gap: 0.875rem;
    }
}

@media (max-width: 480px) {
    .properties-title {
        font-size: 2rem;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-name {
        font-size: 1.125rem;
    }
    
    .property-price {
        font-size: 1.25rem;
    }
}
