/* sita_search_box.css */
@import url('sita_palette.css');

#search-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    z-index: 9999;
}

#search-box {
    width: 100%;
    padding: 12px 18px;
    font-size: 17px;
    border-radius: var(--radius-large, 30px);
    border: 1px solid var(--color-border, #ccc);
    background: var(--color-bg, #ffffff);
    outline: none;
    box-shadow: var(--shadow-light, 0 2px 6px rgba(0,0,0,0.15));
    transition: box-shadow 0.2s ease;
}

#search-box:focus {
    box-shadow: var(--shadow-strong, 0 4px 12px rgba(0,0,0,0.25));
}

/* ---------------------------
   DESPLEGABLE DE RESULTADOS
   --------------------------- */

.search-results {
    position: absolute;
    width: 100%;
    background: var(--color-bg, #ffffff);
    box-shadow: var(--shadow-dropdown, 0 2px 8px rgba(0,0,0,0.2));
    border-radius: var(--radius-small, 10px);
    margin-top: 5px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.search-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--color-border-light, #eee);
    font-size: 15px;
}

.search-item:hover {
    background: var(--color-hover, #f0f0f0);
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) {
    #search-container {
        top: 18px;
        left: 50%;
        right: auto;
        width: min(58vw, 290px);
        transform: translateX(-50%);
    }

    #search-box {
        box-sizing: border-box;
        padding: 10px 14px;
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    #search-container {
        width: min(56vw, 240px);
    }

    #search-box {
        padding-left: 12px;
        padding-right: 12px;
    }
}
