/* ============================================================
   Suggest iskalnik (samodejno dopolnjevanje) — moderniziran slog
   ============================================================ */

/* sidrišče za spustni seznam pod vnosnim poljem */
.m-search {
    position: relative;
}

/* spustni seznam zadetkov */
.demo_list_id,
.demo_list_id_y {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 99999;
    width: 380px;
    max-width: 92vw;
    max-height: 70vh;
    overflow-y: auto;
    margin: 8px 0 0 0;
    padding: 8px;
    background-color: #fff;
    border: 1px solid #e3e9ec;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(13, 30, 55, .22);
    font-size: 13px;
}

.demo_list_id_y {
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
}

/* posamezen zadetek */
.search_item {
    list-style: none !important;
    position: relative;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

/* ločilna črta med zadetki */
.search_item:not(:last-child) {
    border-bottom: 1px solid #e9eef1;
}

.search_item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 9px 12px;
    color: #1d3557;
}

/* označen zadetek (tipkovnica / miška) — nežen rdeč odtenek */
.search_item:hover,
.search_item.hovered {
    background-color: #fdecee;
    border-color: #f3c2c7;
    box-shadow: inset 3px 0 0 #e63946;
}

/* vsebina zadetka */
.search_item .item_content {
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 1.35;
}

.item_content_do {
    color: #1d3557;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.item_content_do b {
    display: block;
    margin-bottom: 3px;
    padding-right: 36px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.oldFont {
    color: #6b7a86 !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    line-height: 1.4;
}

.modFont {
    float: right;
    display: inline-block;
    color: #e63946 !important;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.2;
}

/* ikona vrste (avto/moto…) v vrstici */
.search_icon {
    position: absolute;
    top: 10px;
    right: 12px;
    height: 15px;
}

/* CTA "prikaži vse" */
.show_all {
    display: block;
    width: 100%;
    padding: 11px 0;
    text-align: center !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background-color: #e63946;
    border-radius: 8px;
}

.clear_fix {
    clear: both;
    height: 0;
}

.demo_list_id span,
.demo_list_id_y span {
    margin: 0 !important;
}

/* lepša drsna letev v seznamu */
.demo_list_id::-webkit-scrollbar,
.demo_list_id_y::-webkit-scrollbar {
    width: 8px;
}

.demo_list_id::-webkit-scrollbar-thumb,
.demo_list_id_y::-webkit-scrollbar-thumb {
    background: #cdd8de;
    border-radius: 8px;
}
