﻿/* Našeptávač */
/* - vyhledání zastávek u výběru zastávky/obce */

.autocomplete-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0px 0px 20px 0px;
}

    .autocomplete-wrapper input[type="text"] {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }

        .autocomplete-wrapper input[type="text"]:focus {
            outline: none;
            border-color: #0066cc;
            box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
        }

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 4px 0 0 0;
    padding: 0;
    list-style: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
}

    .autocomplete-list.visible {
        display: block;
    }

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

    .autocomplete-item:last-child {
        border-bottom: none;
    }

    .autocomplete-item:hover,
    .autocomplete-item.active {
        background-color: #f0f7ff;
        color: #0066cc;
    }

.autocomplete-status {
    padding: 10px 12px;
    color: #777;
    font-style: italic;
}

.autocomplete-input {
    background-color: white;
    border-radius: 5px;
    padding-left: 5px;
    margin-left: 0px;
    padding-right: 27px !important;
}

.autocomplete-clear {
    margin-left: -22px;
    background-image: var(--clearButton-background) !important;
    color: white;
    cursor: default;
    font-weight: bold;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border: none;
    height: 36px;
}

    .autocomplete-clear:hover {
        background-image: var(--clearButton-hover) !important;
        cursor: pointer !important;
    }

    .autocomplete-clear:focus {
        outline: none !important;
    }


/* upravy podle typu našeptávače/stranek/portalu */

.f2-search {
    top: 120px !important;
}

.searchStopsPanel {
    width: 300px !important;
    padding-top: 0 !important;
    height: calc(26px + 0.4em);
    display: flex;
    align-items: center;
    padding-left: 0em;
    padding-right: 0em;
}

.desktop .page .blockList .item {
    scroll-margin-top: 10px;
}