/* ── EV Hero Search — Public CSS v1.8.0 ── */
*, *::before, *::after { box-sizing: border-box; }

.evhs-hero-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evhs-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.evhs-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 920px;
    padding: 0 24px;
}

.evhs-text-center { text-align: center; }
.evhs-text-left   { text-align: left; }
.evhs-text-right  { text-align: right; }

.evhs-subtitle {
    margin: 0 0 24px;
    opacity: .9;
    animation: evhsFadeUp .6s ease both;
}
.evhs-title {
    margin: 0 0 40px;
    text-shadow: 0 2px 24px rgba(0,0,0,.4);
    animation: evhsFadeUp .6s .1s ease both;
}

/* ── Search bar ── */
.evhs-search-bar {
    background: rgba(255,255,255,.97);
    border-radius: 999px;
    display: flex;
    align-items: center;
    padding: 6px;
    gap: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 4px 16px rgba(0,0,0,.15);
    animation: evhsFadeUp .6s .2s ease both;
    max-width: 860px;
    margin: 0 auto;
    /* ÖNEMLİ: overflow visible olmalı ki dropdown dışarı çıkabilsin */
    overflow: visible;
    position: relative;
    z-index: 100;
}
.evhs-text-left  .evhs-search-bar { margin-left: 0; }
.evhs-text-right .evhs-search-bar { margin-right: 0; }

.evhs-divider {
    width: 1px;
    height: 28px;
    background: #e5e7eb;
    flex-shrink: 0;
    align-self: center;
}

/* ── Custom Select ── */
.evhs-custom-select {
    flex: 1;
    position: relative; /* dropdown bu elemana göre konumlanır */
    min-width: 0;
    /* overflow: visible — dropdown dışarı çıkmalı */
}

.evhs-cs-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 12px 18px;
    cursor: pointer;
    border-radius: 999px;
    transition: background .15s;
    user-select: none;
    -webkit-user-select: none;
}
.evhs-cs-trigger:hover { background: rgba(0,0,0,.04); }

.evhs-cs-label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #1d2327;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.evhs-custom-select.has-value .evhs-cs-label { font-weight: 600; }

.evhs-cs-arrow {
    display: flex;
    align-items: center;
    color: #9ca3af;
    flex-shrink: 0;
    transition: transform .2s, color .15s;
}
.evhs-custom-select.is-open .evhs-cs-arrow {
    transform: rotate(180deg);
    color: #4f46e5;
}

/* ── Dropdown ── */
.evhs-cs-dropdown {
    /* position:absolute — parent evhs-custom-select'e göre */
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 6px rgba(0,0,0,.07), 0 10px 30px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.06);
    padding: 6px;
    z-index: 99999;
    /* başlangıçta gizli */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

/* AÇIK DURUM */
.evhs-custom-select.is-open .evhs-cs-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* sağa taşma: son select dropdown sağa taşarsa sola yasla */
.evhs-custom-select:last-of-type .evhs-cs-dropdown {
    left: auto;
    right: 0;
}

/* ── Liste ── */
.evhs-cs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}
.evhs-cs-list::-webkit-scrollbar { width: 4px; }
.evhs-cs-list::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

.evhs-cs-list li {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
    min-height: 44px;
    transition: background .1s, color .1s;
    white-space: nowrap;
}
.evhs-cs-list li:hover { background: #f5f3ff; color: #4f46e5; }
.evhs-cs-list li.is-selected { background: #eef2ff; color: #4338ca; font-weight: 600; }
.evhs-cs-list li.is-selected::after {
    content: '✓';
    margin-left: auto;
    font-size: 12px;
    color: #4f46e5;
}
.evhs-cs-list li.evhs-cs-clear {
    color: #9ca3af;
    font-size: 13px;
    font-style: italic;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 4px;
    min-height: 40px;
}
.evhs-cs-list li.evhs-cs-clear:hover { background: #fef2f2; color: #dc2626; }
.evhs-cs-list li.evhs-cs-empty { color: #9ca3af; font-style: italic; cursor: default; }
.evhs-cs-list li.evhs-cs-empty:hover { background: none; }

/* ── Search Button ── */
.evhs-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform .2s, box-shadow .2s, opacity .2s;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    margin-right: 2px;
    letter-spacing: .2px;
}
.evhs-search-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.evhs-search-btn:active { transform: translateY(0); }
.evhs-search-btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* ── Quick Links ── */
.evhs-quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
    animation: evhsFadeUp .6s .3s ease both;
    position: relative;
    z-index: 2;
}
.evhs-align-center .evhs-quick-links,
.evhs-text-center .evhs-quick-links { justify-content: center; }
.evhs-text-left  .evhs-quick-links  { justify-content: flex-start; }
.evhs-text-right .evhs-quick-links  { justify-content: flex-end; }

.evhs-ql-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, transform .2s, border-color .2s;
}
.evhs-ql-item:hover {
    background: #d51212;
    border-color: #d51212;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* ── Scroll Button ── */
.evhs-scroll-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    animation: evhsFadeUp .6s .4s ease both;
    position: relative;
    z-index: 2;
}
.evhs-scroll-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 12px;
    color: rgba(255,255,255,.7);
    transition: color .2s, transform .2s;
    gap: 2px;
}
.evhs-scroll-btn:hover { color: #fff; transform: translateY(3px); }
.evhs-scroll-btn svg { animation: evhsScrollBounce 1.6s ease-in-out infinite; }
.evhs-scroll-btn svg + svg { animation-delay: .2s; margin-top: -12px; opacity: .5; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .evhs-search-bar {
        flex-direction: column;
        border-radius: 16px;
        padding: 8px;
        gap: 4px;
        align-items: stretch;
    }
    .evhs-divider { display: none; }
    .evhs-cs-trigger {
        border: 1.5px solid #e5e7eb;
        border-radius: 10px;
        background: #f9fafb;
    }
    .evhs-cs-dropdown { min-width: 100%; }
    .evhs-custom-select:last-of-type .evhs-cs-dropdown { right: 0; left: 0; }
    .evhs-search-btn { width: 100%; justify-content: center; border-radius: 10px; margin: 0; }
}
