/* Módulo: Home */

/* Imagen de propiedad — tamaño uniforme */
.property-item .item-thumb {
    position: relative;
    overflow: hidden;
    height: 210px;
}

.property-item .item-thumb a.hover-effect {
    display: block;
    width: 100%;
    height: 100%;
}

.property-item .item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform .4s ease;
}

.property-item .item-thumb a.hover-effect:hover img {
    transform: scale(1.05);
}

/* ── Buscador home con autocomplete ─────────────────────────────────────── */
.hs-wrap {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}
.hs-input-row {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(6,27,48,.35);
    padding: 6px 6px 6px 20px;
    gap: 8px;
}
.hs-icon {
    color: #b0bec5;
    font-size: 16px;
    flex-shrink: 0;
}
.hs-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #1a2d4d;
    background: transparent;
    padding: 8px 0;
    min-width: 0;
}
.hs-input::placeholder { color: #9eb3c2; }
.hs-btn {
    background: #22bef8;
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    flex-shrink: 0;
}
.hs-btn:hover { background: #0aa8e0; }

/* Dropdown */
.hs-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(6,27,48,.22);
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e8edf3;
}
.hs-dropdown.hs-open { display: block; }

.hs-group-label {
    padding: 10px 18px 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #22bef8;
    border-top: 1px solid #f0f4f8;
}
.hs-group:first-child .hs-group-label { border-top: none; }

.hs-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background .15s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(34,190,248,.15);
    user-select: none;
    -webkit-user-select: none;
}
.hs-item:hover, .hs-item.hs-active { background: #f0f8ff; }

.hs-item-name {
    flex: 1;
    font-size: 14px;
    color: #1a2d4d;
    font-weight: 500;
}
.hs-item-sub {
    font-size: 12px;
    color: #8fa8bc;
    white-space: nowrap;
}
.hs-item-count {
    font-size: 11px;
    color: #fff;
    background: #22bef8;
    border-radius: 20px;
    padding: 1px 7px;
    font-weight: 700;
    flex-shrink: 0;
}
.hs-empty {
    padding: 18px;
    text-align: center;
    color: #8fa8bc;
    font-size: 14px;
}

/* Palabra coincidente resaltada */
mark.hs-match {
    background: transparent;
    color: #f0a500;
    font-weight: 800;
    padding: 0;
}

/* Móvil — reset defensivo + diseño pill idéntico al desktop */
@media (max-width: 767px) {
    .hs-wrap {
        max-width: 100%;
        padding: 0 4px;
    }
    .hs-input-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        background: #fff !important;
        border-radius: 50px !important;
        box-shadow: 0 6px 24px rgba(6,27,48,.4) !important;
        padding: 5px 5px 5px 16px !important;
        gap: 6px !important;
        border: none !important;
    }
    .hs-input {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        padding: 8px 0 !important;
        font-size: 15px !important;
        color: #1a2d4d !important;
        margin: 0 !important;
        height: auto !important;
    }
    .hs-btn {
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        background: #22bef8 !important;
        color: #fff !important;
        border: none !important;
        border-radius: 40px !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        box-shadow: none !important;
        height: auto !important;
        width: auto !important;
        margin: 0 !important;
    }
    .hs-dropdown {
        left: 0 !important;
        right: 0 !important;
        border-radius: 16px !important;
    }
}

/* ── Quitar fondo del contenedor del buscador ───────────────────────────── */
.banner-search-main {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Botón buscador: padding reducido en móvil (texto oculto con hidden-xs) */
@media (max-width: 767px) {
    #hs-submit { padding: 11px 16px !important; }
}
