/* ── TUC Search Bar ──────────────────────────────────────────────────────── */

.tuc-search-wrap {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'DM Sans', sans-serif;
}

.tuc-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.tuc-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #1B2B4B;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.tuc-search-input {
    width: 100%;
    padding: 18px 52px 18px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1C1C1C;
    background: #FFFFFF;
    border: 2px solid #1B2B4B;
    border-radius: 12px;
    outline: none;
    box-shadow: 0 2px 12px rgba(27, 43, 75, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.tuc-search-input:focus {
    border-color: #E8872A;
    box-shadow: 0 0 0 3px rgba(232, 135, 42, 0.18);
}

.tuc-search-input::placeholder {
    color: #9CA3AF;
}

/* ── Dropdown ────────────────────────────────────────────────────────────── */

.tuc-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1.5px solid #E0DDD9;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(27, 43, 75, 0.14);
    z-index: 9999;
    overflow: hidden;
}

.tuc-search-dropdown[hidden] {
    display: none;
}

/* ── Items ───────────────────────────────────────────────────────────────── */

.tuc-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #1B2B4B;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid #F0EDE8;
    transition: background 0.15s, color 0.15s;
}

.tuc-search-item:last-child {
    border-bottom: none;
}

.tuc-search-item:hover,
.tuc-search-item.is-active {
    background: #1B2B4B;
    color: #FFFFFF;
}

.tuc-search-item:hover .tuc-badge-proche,
.tuc-search-item.is-active .tuc-badge-proche {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.tuc-search-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tuc-search-arrow {
    font-size: 13px;
    color: #E8872A;
    flex-shrink: 0;
}

.tuc-search-item:hover .tuc-search-arrow,
.tuc-search-item.is-active .tuc-search-arrow {
    color: #E8872A;
}

/* ── Badge "Ville proche" ────────────────────────────────────────────────── */

.tuc-badge-proche {
    font-size: 11px;
    font-weight: 600;
    color: #E8872A;
    background: rgba(232, 135, 42, 0.10);
    border-radius: 100px;
    padding: 3px 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Message aucun résultat ──────────────────────────────────────────────── */

.tuc-search-no-result {
    padding: 16px 20px;
    font-size: 14px;
    color: #6B7280;
    text-align: center;
}

.tuc-search-no-result a {
    color: #E8872A;
    font-weight: 600;
    text-decoration: none;
}

.tuc-search-no-result a:hover {
    text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .tuc-search-input {
        font-size: 15px;
        padding: 16px 48px 16px 16px;
    }

    .tuc-search-icon {
        right: 14px;
    }
}
