/* Estilos para el buscador de propiedades */
.elg-property-search-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.elg-property-search-input-container {
    display: flex;
    border: 1px solid #f5f6f7;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f5f6f7;
    transition: all 0.3s ease;
}

.elg-property-search-input-container:focus-within {
    border-color: #2594d1;
    box-shadow: 0 0 0 2px rgba(37, 148, 209, 0.2);
}

.elg-property-search-tags-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
    padding: 3px 12px;
    min-height: 42px;
    min-width: 50px;
}

.elg-property-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-right: 6px;
}

.elg-property-search-tag {
    display: inline-flex;
    align-items: center;
    background-color: #5fb8f0;
    border-radius: 4px;
    padding: 3px 6px;
    margin-right: 4px;
    margin-bottom: 0px;
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
}

.elg-property-search-tag-count {
    background-color: #2594d1;
    color: white;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 14px;
    margin-right: 6px;
    margin-bottom: 0px;
}

.elg-property-search-tag-remove {
    margin-left: 6px;
    cursor: pointer;
    color: #ffffff;
    font-size: 12px;
}

.elg-property-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    min-width: 50px;
}

.elg-property-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.elg-property-search-button:hover {
    opacity: 0.9;
}

.elg-property-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.elg-property-search-results.active {
    display: block;
}

.elg-property-search-result {
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.elg-property-search-result:last-child {
    border-bottom: none;
}

.elg-property-search-result:hover {
    background-color: #f9f9f9;
}

.elg-property-search-result-icon {
    margin-right: 10px;
    color: #757575;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.elg-property-search-result-content {
    flex: 1;
}

.elg-property-search-result-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
    font-size: 15px;
    line-height: 18px;
}

.elg-property-search-result-subtitle {
    font-size: 12px;
    line-height: 16px;
    color: #757575;
}

/* Estilos eliminados ya que ahora usamos el subtítulo para mostrar el tipo */

.elg-property-search-hidden-inputs {
    display: none;
}

/* Estilos para el modo de búsqueda activa */
.elg-property-search-container.search-active .elg-property-search-input-container {
    border-radius: 4px 4px 0 0;
    border-bottom-color: #f0f0f0;
}

/* Estilos para la versión clean del buscador */
.elg-property-search-clean .elg-property-search-input-container {
    border: none;
    box-shadow: none;
    background-color: transparent;
}

.elg-property-search-clean .elg-property-search-input-container:focus-within {
    box-shadow: none;
}

.elg-property-search-loading, .elg-property-search-no-results{
    padding: 10px;
}
/* Estilos para pantallas pequeñas */
@media (max-width: 576px) {
    .elg-property-search-tag {
        max-width: 150px;
    }
    .elg-property-search-input {
        font-size: 12px;
    }
    .elg-property-search-tags-container {
        padding: 3px 3px;
    }
}
