/* 
    YEXTHÓ REAL ESTATE - HOME SPECIFIC STYLES
    Includes: Hero Video, Parallax, Boutique Mosaic, Featured Listings, and Community CTA.
*/

/* --- 1. HERO SECTION & PARALLAX --- */
.hero-video-wrapper {
    position: relative;
    height: 90vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--yext-black);
}

#heroVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110vw;
    height: 150%;
    min-width: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(44, 74, 62, 0.6));
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    z-index: 2;
    color: var(--yext-white);
    text-align: center;
    width: 100%;
    will-change: transform;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- 2. SEARCH BAR (HOME VERSION) --- */
.search-container {
    background: var(--yext-white);
    border-left: 8px solid var(--yext-green);
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    max-width: 800px;
}

    .search-container .form-select {
        height: 60px;
        font-weight: 600;
    }

    .search-container .btn-dark {
        height: 60px;
    }

/* --- 3. BOUTIQUE SECTION (DESCUBRE YEXTHÓ) --- */
.mb-100 {
    margin-bottom: 100px;
}

.image-wrapper {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

    .image-wrapper img {
        transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
        object-fit: cover;
        height: 500px;
    }

    .image-wrapper:hover img {
        transform: scale(1.08);
    }

.border-accent {
    position: absolute;
    width: 200px;
    height: 200px;
    z-index: 1;
    top: -30px;
    left: -30px;
}

.badge-tag {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1rem;
}

.bg-yext-red {
    background-color: #E31F26;
}

.bg-yext-green {
    background-color: #2E9346;
}

.bg-yext-orange {
    background-color: #F39221;
}

.text-yext-red {
    color: #E31F26;
}

.text-yext-green {
    color: #2E9346;
}

.text-yext-orange {
    color: #F39221;
}

.title-line {
    width: 150px;
    height: 3px;
    background-color: var(--yext-green-light);
}

/* --- 4. FEATURED LISTINGS --- */
.property-card {
    background: var(--yext-white);
    transition: var(--transition);
    border-bottom-width: 5px;
    border-bottom-style: solid;
}

    .property-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

.img-property {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
    height: 250px;
    object-fit: cover;
}

.property-card:hover .img-property {
    filter: grayscale(0%);
}

.badge-premium {
    background-color: #E31F26;
    color: var(--yext-white);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.border-yext-red {
    border-bottom-color: #E31F26;
}

.border-yext-yellow {
    border-bottom-color: #F7D117;
}

.border-yext-green {
    border-bottom-color: #2E9346;
}

.border-yext-blue {
    border-bottom-color: #2872B9;
}

.border-yext-pink {
    border-bottom-color: #C2278E;
}

.border-yext-orange {
    border-bottom-color: #F39221;
}

/* --- 5. COMMUNITY CTA SECTION --- */
.section-cta-container {
    border-top: 12px solid var(--yext-green);
    background-color: var(--yext-pink-light);
}

.title-divider-pink {
    width: 60px;
    height: 4px;
    background-color: var(--yext-pink);
}

.cta-card-modern {
    background: var(--yext-white);
    border: 1px solid rgba(194, 39, 142, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 4px solid var(--yext-pink);
    transition: var(--transition);
}

    .cta-card-modern:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(194, 39, 142, 0.15);
    }

.cta-image-top {
    height: 200px;
    width: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s;
}

.cta-card-modern:hover .cta-image-top {
    filter: grayscale(0%);
}

.cta-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cta-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

/* --- 6. CACTUS SPRITE LOGIC --- */
.cactus-sprite, .cactus-sprite-title {
    background-image: url('/images/cactus_sprite.png');
    background-repeat: no-repeat;
    background-size: 400% 400%;
    display: inline-block;
}

.cactus-sprite-title {
    width: 80px;
    height: 80px;
    background-position: 33.33% 100%;
    filter: invert(44%) sepia(11%) saturate(1217%) hue-rotate(85deg) brightness(94%) contrast(88%);
}

.cactus-mini {
    width: 40px;
    height: 40px;
    position: absolute;
    bottom: 15px;
    right: 15px;
    opacity: 0.8;
    filter: invert(44%) sepia(11%) saturate(1217%) hue-rotate(85deg);
}

.cactus-pink {
    filter: invert(30%) sepia(85%) saturate(1500%) hue-rotate(295deg) brightness(90%) contrast(100%);
}
