/* Autocomplete de busca de imóveis — compartilhado (navbar + hero) */

.property-search-wrap {
    position: relative;
}

.property-search-bar {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.24);
}

.property-search-bar--navbar {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.property-search-form--navbar .property-search-submit {
    background: transparent;
    color: hsl(var(--foreground));
    padding: 0 1.25rem;
}

.property-search-form--navbar .property-search-submit:hover {
    background: transparent;
    color: hsl(var(--muted-foreground));
}

.property-search-wrap--navbar .property-search-dropdown {
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.property-search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: none;
    outline: none;
    background: transparent;
    color: hsl(var(--foreground));
    min-width: 0;
    font-family: var(--font-body), sans-serif;
}

.property-search-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.property-search-submit {
    background: hsl(var(--foreground));
    color: #fff;
    border: none;
    padding: 0 1.25rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-search-submit:hover {
    background: hsl(var(--foreground) / 0.85);
}

.property-search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.property-search-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.property-search-tab-btn.property-search-tab-active {
    color: #fff;
    font-weight: 600;
    border-bottom-color: #fff;
}

.property-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    max-height: 320px;
    overflow-y: auto;
    font-size: 13px;
}

.property-search-dropdown-title {
    padding: 8px 12px 4px;
    font-size: 11px;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f0f0f0;
}

.property-search-dropdown-item,
.property-search-dropdown-item-codigo {
    padding: 9px 12px 9px 36px;
    cursor: pointer;
    color: #333;
    border-bottom: 1px solid #f7f7f7;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-search-dropdown-item:last-child,
.property-search-dropdown-item-codigo:last-child {
    border-bottom: none;
}

.property-search-dropdown-item:hover,
.property-search-dropdown-item.property-search-item-focus {
    background: #f0f5ff;
}

.property-search-dropdown-item-codigo {
    color: #21611c;
    font-weight: bold;
}

.property-search-dropdown-item-codigo:hover {
    background: #f0fff0;
}

.property-search-item-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: #aaa;
}

.property-search-item-sub {
    font-size: 11px;
    color: #999;
    margin-left: 4px;
}

/* Hero: mesma barra do navbar; tabs centralizadas acima */
.property-search-form--hero .property-search-tabs {
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.property-search-form--hero .property-search-tab-btn {
    font-size: 1rem;
    padding-bottom: 0.5rem;
}

.property-search-form--hero .property-search-dropdown,
.property-search-form--hero .property-search-dropdown-title,
.property-search-form--hero .property-search-dropdown-item,
.property-search-form--hero .property-search-dropdown-item-codigo {
    text-align: left;
}

/* Hero slideshow */
.hero-slide {
    opacity: 0;
    transition: opacity 1.2s ease-out;
    pointer-events: none;
    z-index: 0;
}

.hero-slide.hero-slide-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hero-dot {
    display: block;
    height: 0.375rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.hero-dot-active {
    width: 1.5rem;
    background: #fff;
}

.hero-dot:not(.hero-dot-active) {
    width: 0.375rem;
}

/* Hero headline — fade-up (entrada + troca de banner) */
.hero-headline-enter {
    opacity: 0;
    transform: translateY(1.25rem);
}

.hero-headline-enter.hero-headline-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.85s ease-out,
        transform 0.85s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .hero-headline-enter {
        opacity: 1;
        transform: none;
    }

    .hero-headline-enter.hero-headline-visible {
        transition: none;
    }
}
