/* ===================================
   PREMIUM LISTINGS PAGE STYLES
   Based on RealAgent Framer Template
   =================================== */

/* Hero Section */
.properties-hero-new {
    position: relative;
    height: 52vh;
    min-height: 440px;
    display: flex;
    align-items: flex-end;
    background: #000;
    overflow: hidden;
}

.properties-hero-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-bg-image-new {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.75);
    transition: transform 0.3s ease;
}

.properties-hero-new:hover .hero-bg-image-new {
    transform: scale(1.02);
}

.properties-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0;
}

.hero-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-rating svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.properties-hero-tag {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.properties-hero-title {
    font-family: var(--font-display);
    font-size: clamp(56px, 10vw, 96px);
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 40px 0;
    line-height: 1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5), 0 6px 24px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Filter Tabs - Inside Hero */
.properties-filters {
    display: flex;
    gap: 24px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.filter-btn {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 500;
    padding: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.filter-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.filter-btn.active {
    color: #ffffff;
}

.filter-btn.active::after {
    transform: scaleX(1);
}

/* Properties Section */
.properties-section {
    padding: 80px 0 120px 0;
    background: #ffffff;
    max-width: 100%;
    overflow-x: hidden;
}

.hero-jump-btn {
    margin-top: 28px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(4px);
}

.hero-jump-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.18);
}

.hero-jump-btn:active {
    transform: translateY(0);
}

/* Override container padding for properties section */
.properties-section .container {
    width: 95% !important;
    max-width: 1400px !important;
    padding: 0 12px !important;
    margin: 0 auto !important;
}

/* Properties Grid */
.properties-grid-new {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* Property Card */
.property-card-new {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
}

.property-card-new:hover,
.property-card-new:focus,
.property-card-new:hover .property-title-new,
.property-card-new:focus .property-title-new {
    text-decoration: none;
}

.property-card-new:hover {
    opacity: 1 !important;
}

.property-card-new:hover .property-image-new,
.property-card-new:hover .property-image-new img {
    opacity: 1 !important;
    filter: none !important;
}

/* Property Info - ABOVE Image */
.property-info-new {
    margin-bottom: 20px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    pointer-events: none;
}

.property-title-new {
    font-family: var(--font-ui);
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-align: left;
}

.property-meta-new {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    color: rgba(0, 0, 0, 0.55);
    text-align: left;
}

.meta-item-new {
    display: inline;
}

.meta-item-new::after {
    content: ',';
    margin-right: 4px;
}

.meta-item-new:last-child::after {
    content: '';
    margin-right: 0;
}

.property-price-new {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.55);
    margin: 0;
    text-align: left;
}

/* Property Image - BELOW Info */
.property-image-new {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 420px;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
    box-shadow: var(--shadow-medium);
}

.property-image-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Remove badge */
.property-badge-new {
    display: none;
}

.badge-dot-new {
    display: none;
}

/* Section Header */
.section-header-new {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag-new {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
}

.section-title-new {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 400;
    color: #000;
    margin: 0;
}

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

/* Mobile Responsive */
@media (max-width: 767px) {
    .properties-hero-new {
        height: 60vh;
        min-height: 500px;
    }

    .properties-hero-content {
        padding: 40px 0;
    }

    .hero-rating svg {
        width: 16px;
        height: 16px;
    }

    .properties-hero-tag {
        font-size: 14px;
    }

    .properties-hero-title {
        font-size: 48px;
        margin-bottom: 32px;
    }

    .properties-filters {
        gap: 20px;
    }

    .filter-btn {
        font-size: 15px;
    }

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

    .properties-grid-new {
        gap: 60px;
    }

    .property-title-new {
        font-size: 18px;
    }

    .property-info-new {
        margin-bottom: 18px;
        padding: 0 20px;
    }

    .property-image-new {
        min-height: 320px;
        border-radius: 10px;
    }

    .section-header-new {
        margin-bottom: 40px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
    .property-info-new {
        padding: 0 24px;
    }

    .property-image-new {
        min-height: 380px;
        border-radius: 10px;
    }
}

/* Desktop and above */
@media (min-width: 1200px) {
    .properties-grid-new {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 24px;
        align-items: start;
    }

    .properties-grid-new .property-card-new:nth-child(3n) {
        grid-column: span 2;
    }

    .property-card-new {
        max-width: 100%;
        margin: 0;
    }

    .property-info-new {
        padding: 0;
    }

    .property-image-new {
        min-height: 460px;
        border-radius: 10px;
    }
}
