/* LIAMES — Home search (UX premium / padrões atuais) */

.liames-home-search-section {
    margin-top: 0;
    position: relative;
    z-index: 40;
    padding: 0;
}

.liames-home-search__field--query {
    flex: 1.35 1 0;
    min-width: 140px;
}

.liames-home-search__query {
    width: 100%;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: 28px;
    color: #0F172A !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.liames-home-search__query::placeholder {
    color: #94A3B8;
}

.liames-home-search {
    max-width: 1180px;
    margin: 0 auto;
}

.liames-home-search__shell {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 28px;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 24px 48px rgba(15, 23, 42, 0.14);
    overflow: visible;
}

/* Category tabs — segmented control */
.liames-home-search__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 14px 16px 10px;
    margin: 0;
    list-style: none;
    background: transparent;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.liames-home-search__tabs .nav-item {
    margin: 0;
}

.liames-home-search__tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: #475569;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    padding: 10px 16px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.liames-home-search__tab:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--liames-primary, #3B82F6);
}

.liames-home-search__tab.active,
.nav-pills .liames-home-search__tab.active {
    background: var(--liames-primary, #3B82F6) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.28);
}

/* Form bar */
.liames-home-search__panel {
    padding: 10px;
}

.liames-home-search__form {
    margin: 0;
}

.liames-home-search__bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    overflow: visible;
}

.liames-home-search__field {
    position: relative;
    flex: 1 1 0;
    min-width: 110px;
    padding: 12px 12px 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    transition: background 0.18s ease;
}

.liames-home-search__field:hover {
    background: #F8FAFC;
}

.liames-home-search__field:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: rgba(226, 232, 240, 0.95);
}

.liames-home-search__field--actions {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    padding: 10px 12px;
    background: #fff;
}

.liames-home-search__field--actions:hover {
    background: #fff;
}

.liames-home-search__field--actions::after {
    display: none !important;
}

.liames-home-search__label {
    display: block;
    margin: 0;
    color: #0F172A;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.liames-home-search__field .select2-container,
.liames-home-search__field select.mh-filter-select {
    width: 100% !important;
    min-width: 0 !important;
}

.liames-home-search__field .select2-container--default .select2-selection--single {
    height: 28px !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

.liames-home-search__field .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 22px 0 0 !important;
    line-height: 28px !important;
    color: #64748B !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.liames-home-search__field .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 28px !important;
    right: 0 !important;
    width: 18px !important;
}

.liames-home-search__field .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #94A3B8 transparent transparent transparent !important;
}

/* Kill legacy dividers inside home search */
.liames-home-search .atn-single-search-item {
    padding-right: 0;
    width: 100%;
}

.liames-home-search .atn-single-search-item::after {
    display: none !important;
}

.liames-home-search .br-search-geo-fields {
    display: contents;
}

.liames-home-search .atn-search-filter-label {
    display: block;
    margin: 0;
    color: #0F172A;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.liames-home-search__locate {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.liames-home-search__locate svg {
    display: block;
    width: 20px;
    height: 20px;
}

.liames-home-search__locate:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.35);
    color: var(--liames-primary, #3B82F6);
}

.liames-home-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 52px;
    height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--liames-primary, #3B82F6) 0%, #2563EB 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

.liames-home-search__submit:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.38);
    color: #fff !important;
}

.liames-home-search__submit img {
    width: 18px;
    height: 18px;
}

/* Hide unused type cells gracefully when missing */
.liames-home-search__bar--no-type {
    /* flex layout handles missing type field automatically */
}

/* Banner: evita títulos sobrepostos do slider */
.header-banner-wrap .banner-slider .swiper-slide:not(.swiper-slide-active) .banner-slider-content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.header-banner-wrap .banner-slider .swiper-slide-active .banner-slider-content {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease;
}

.header-banner-wrap .banner-slider-content .lg-title-78px {
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.08;
}

.header-banner-wrap .banner-slider-content .in-subtitle-16px {
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    opacity: 0.92;
}

/* Mobile */
@media (max-width: 767.98px) {
    .liames-home-search-section {
        margin-top: 0;
    }

    .liames-home-search__shell {
        border-radius: 22px;
    }

    .liames-home-search__bar,
    .liames-home-search__bar--no-type {
        flex-direction: column;
    }

    .liames-home-search__field {
        padding: 14px 16px;
        flex: 1 1 auto;
    }

    .liames-home-search__field:not(:last-child)::after {
        right: 16px;
        left: 16px;
        top: auto;
        bottom: 0;
        width: auto;
        height: 1px;
    }

    .liames-home-search__field--actions {
        justify-content: stretch;
        padding: 12px 16px 16px;
    }

    .liames-home-search__submit {
        flex: 1;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .liames-home-search__tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 12px;
    }

    .liames-home-search__tabs::-webkit-scrollbar {
        display: none;
    }

    .liames-home-search__tab {
        white-space: nowrap;
        flex: 0 0 auto;
    }
}

/* Override legacy wrappers inside LIAMES home search */
.liames-home-search .atn-search-tab-content,
.liames-home-search .atn-search-content {
    all: unset;
    display: block;
}

.liames-home-search .tab-content > .tab-pane {
    display: none;
}

.liames-home-search .tab-content > .active {
    display: block;
}
