/**
 * Estilos Autocomplete - Inmobiliarie Geocode PRO
 * Coherente con el diseño premium del wizard
 */

.ie-ac-wrap {
    position: relative;
    width: 100%;
}

.ie-ac-input {
    width: 100%;
    min-height: 54px;
    padding: 14px 44px 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat right 14px center;
    background-size: 20px;
    color: #0f172a;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    box-sizing: border-box;
    font-family: inherit;
}

.ie-ac-input:focus {
    border-color: #1e40af;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

.ie-ac-input::placeholder {
    color: #94a3b8;
}

.ie-ac-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(15,23,42,0.12);
    padding: 6px;
    box-sizing: border-box;
}

/* Scrollbar personalizado */
.ie-ac-dropdown::-webkit-scrollbar {
    width: 8px;
}

.ie-ac-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.ie-ac-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.ie-ac-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.ie-ac-item {
    padding: 12px 14px;
    cursor: pointer;
    font-size: 15px;
    border-radius: 8px;
    transition: background 0.15s ease;
    color: #0f172a;
    user-select: none;
    line-height: 1.4;
}

.ie-ac-item:hover,
.ie-ac-item.ie-ac-active {
    background: #eff6ff;
    color: #1e40af;
    font-weight: 600;
}

.ie-ac-empty {
    padding: 16px 14px;
    color: #64748b;
    font-size: 14px;
    text-align: center;
    font-style: italic;
}

/* Responsive: dropdown más alto en desktop */
@media (min-width: 768px) {
    .ie-ac-dropdown {
        max-height: 340px;
    }
}

/* Mobile: asegurar que el dropdown no se salga */
@media (max-width: 480px) {
    .ie-ac-dropdown {
        max-height: 220px;
    }

    .ie-ac-item {
        padding: 14px 12px;
        font-size: 16px; /* Más grande para touch */
    }
}
