/* ============================================
   SEARCH WIDGET – ans Ende von style.css
   ============================================ */

.search-wrap {
    position: relative;
    max-width: 420px;
    margin: 0 auto 1.5rem auto;
}

.search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65em 1em 0.65em 2.4em;
    font-family: 'Zector', 'Inter', Arial, sans-serif;
    font-size: 1.08em;
    border: 2px solid #f0d8b5;
    border-radius: 24px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23bbb' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 0.85em center no-repeat;
    outline: none;
    transition: border-color 0.2s;
    color: #222;
}

.search-input:focus {
    border-color: #e97422;
}

.search-input::placeholder {
    color: #bbb;
}

.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #f0d8b5;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 100;
    overflow: hidden;
}

.search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6em 1em;
    text-decoration: none;
    color: #222;
    font-family: 'Zector', 'Inter', Arial, sans-serif;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.1s;
}

.search-item:hover,
.search-item.search-active {
    background: #fff8f0;
    color: #e97422;
}

.search-country {
    font-size: 0.82em;
    color: #aaa;
    margin-left: 0.5em;
    flex-shrink: 0;
}

.search-empty {
    padding: 0.8em 1em;
    color: #999;
    font-family: 'Zector', 'Inter', Arial, sans-serif;
    cursor: default;
}

@media (prefers-color-scheme: dark) {
    .search-input {
        background-color: #2a2a2a;
        border-color: #555;
        color: #eee;
    }
    .search-input:focus {
        border-color: #e97422;
    }
    .search-input::placeholder {
        color: #777;
    }
    .search-dropdown {
        background: #2a2a2a;
        border-color: #555;
    }
    .search-item {
        color: #ddd;
    }
    .search-item:hover,
    .search-item.search-active {
        background: #3a3a3a;
        color: #fd8f3e;
    }
}
