/* ========================================
   BANNER SLIDER
   ======================================== */
.hero-banner-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-image {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-placeholder span {
    font-size: 120px;
}

.banner-overlay {
    display: none;
}

/* Informações do Imóvel */
.banner-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding-top: 80px;
    z-index: 3;
}

.banner-info .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    left: -60px;
}

.banner-info-content {
    color: var(--white);
    max-width: 450px;
    background: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(15px);
    border: 2px solid var(--primary-color);
}

.banner-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.banner-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.2;
}

.banner-features {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.banner-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.banner-features span svg {
    fill: #ffffff !important;
}

.banner-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #ffffff;
}

.banner-location svg {
    fill: #ffffff !important;
}

.banner-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--white) !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-decoration: none;
}

.banner-btn:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 174, 255, 0.4);
}

/* Controles do Slider */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-base);
}

.dot:hover,
.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Search Box Overlay */
.search-box-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 30px 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

/* Search Section Mobile - escondida por padrão */
.search-section-mobile {
    display: none;
}

.search-box-overlay .search-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-xl);
}

.search-box-overlay .search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.search-box-overlay .form-group {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-banner-slider {
        height: 500px;
    }

    .banner-info {
        width: 60%;
        padding: 40px;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-price {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .hero-banner-slider {
        height: 500px;
        margin-bottom: 0;
    }

    .banner-info {
        width: 100%;
        padding: 20px 15px;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
        bottom: 0;
        top: auto;
        height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
        align-items: flex-end;
    }

    .banner-info .container {
        left: 0;
        padding: 0 15px;
    }

    .banner-info-content {
        max-width: 100%;
        padding: 8px;
    }

    .banner-overlay {
        background: rgba(0,0,0,0.3);
    }

    .banner-badge {
        font-size: 7px;
        padding: 2px 5px;
        margin-bottom: 4px;
    }

    .banner-title {
        font-size: 14px;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .banner-price {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .banner-features {
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 4px;
    }

    .banner-features span {
        font-size: 9px;
    }

    .banner-features span svg {
        width: 9px;
        height: 9px;
    }

    .banner-location {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .banner-location svg {
        width: 9px;
        height: 9px;
    }

    .banner-btn {
        padding: 4px 10px;
        font-size: 8px;
    }

    .slider-prev,
    .slider-next {
        padding: 8px 12px;
        font-size: 16px;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .slider-dots {
        bottom: 15px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    /* Esconder search box do banner em mobile */
    .search-box-overlay {
        display: none !important;
    }

    /* Mostrar search section mobile */
    .search-section-mobile {
        display: block;
        padding: 1px 0 15px 0;
        background: #ffffff;
        margin-bottom: 0;
    }

    .search-section-mobile .search-box {
        background: var(--white);
        border-radius: 12px;
        padding: 20px 20px 20px 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-bottom: 0;
    }

    .search-section-mobile .search-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .search-section-mobile .form-group {
        margin-bottom: 0;
    }

    .search-section-mobile .form-control {
        font-size: 14px;
        padding: 12px 14px;
        border: 1px solid #e2e8f0;
    }

    .search-section-mobile .btn {
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 600;
        width: 100%;
    }

    /* Ajustar seção seguinte para não ter espaço extra */
    .search-section-mobile + .properties-section {
        padding-top: 30px;
    }
}

@media (max-width: 480px) {
    .hero-banner-slider {
        height: 450px;
    }

    .banner-title {
        font-size: 18px;
    }

    .banner-price {
        font-size: 18px;
    }

    .banner-features span {
        font-size: 10px;
    }

    .slider-prev,
    .slider-next {
        padding: 6px 10px;
        font-size: 14px;
    }
}
