/* ── EV Hero Search — Public Styles v1.6.0 ──────────────────── */

/*
  Font: Tema fontunu devral — @import kaldırıldı.
  Tema hangi fontu kullanıyorsa o otomatik uygulanır.
  Sadece fallback olarak system-ui tanımlandı.
*/

.mmhs-hero-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow:hidden kaldırıldı — dropdown'ın kesilmesini önler */
    overflow: visible;
    box-sizing: border-box;
}

/* Arka plan görseli overflow:hidden gerektirdiği için pseudo-element ile sınırlandır */
.mmhs-hero-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: inherit;
    background-position: inherit;
    overflow: hidden;
    z-index: 0;
    border-radius: inherit;
}

.mmhs-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ── Hero inner ─────────────────────────────────────────────── */
.mmhs-hero-inner {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 920px;
    padding: 0 24px;
    overflow: visible;
}

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

/* ── Texts: temadan font devral ────────────────────────────── */
.mmhs-subtitle {
    font-family: inherit;
    font-weight: 500;
    letter-spacing: .4px;
    margin: 0 0 36px;
    opacity: .9;
    animation: evhsFadeUp .6s ease both;
}

.mmhs-title {
    font-family: inherit;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 50px;
    text-shadow: 0 2px 24px rgba(0,0,0,.3);
    animation: evhsFadeUp .6s .1s ease both;
}

/* ── Search bar ─────────────────────────────────────────────── */
.mmhs-search-bar {
    background: rgba(255,255,255,0.97);
    border-radius: 180px;
    display: flex;
    align-items: center;
    padding: 8px;
    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;
    position: relative;
    z-index: 20;
}

.mmhs-text-left  .mmhs-search-bar { margin-left: 0; }
.mmhs-text-right .mmhs-search-bar { margin-right: 0; }

.mmhs-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, #d1d5db, transparent);
    flex-shrink: 0;
    height: 32px;
    align-self: center;
}

/* ── Custom Select ──────────────────────────────────────────── */
.mmhs-custom-select {
    flex: 1;
    position: relative;
    min-width: 0;
}

.mmhs-cs-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px 13px 16px;
    cursor: pointer;
    border-radius: 12px;
    transition: background .18s;
    user-select: none;
    -webkit-user-select: none;
    justify-content: flex-start;
}

.mmhs-cs-trigger:hover {
    background: #f3f4f6;
}

.mmhs-cs-icon {
    display: none; /* v1.6.0 — ikonlar kaldırıldı */
}

.mmhs-cs-label {
    flex: 1;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: #1d2327;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .18s;
    text-align: left;
}

.mmhs-custom-select.has-value .mmhs-cs-label {
    color: #1d2327;
    font-weight: 600;
}

.mmhs-cs-arrow {
    display: flex;
    align-items: center;
    color: #9ca3af;
    flex-shrink: 0;
    transition: transform .22s cubic-bezier(.4,0,.2,1), color .18s;
}

.mmhs-custom-select.is-open .mmhs-cs-arrow {
    transform: rotate(180deg);
    color: #303037;
}

/* ── Dropdown panel ─────────────────────────────────────────── */
.mmhs-cs-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 36%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 230px;
    max-width: 260px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow:
        0 4px 6px -1px rgba(0,0,0,.07),
        0 10px 15px -3px rgba(0,0,0,.1),
        0 25px 50px -12px rgba(0,0,0,.2),
        0 0 0 1px rgba(0,0,0,.05);
    padding: 6px;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s cubic-bezier(.4,0,.2,1), transform .2s cubic-bezier(.4,0,.2,1);
}

.mmhs-custom-select.is-open .mmhs-cs-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

/* ── List ───────────────────────────────────────────────────── */
.mmhs-cs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

.mmhs-cs-list::-webkit-scrollbar { width: 4px; }
.mmhs-cs-list::-webkit-scrollbar-track { background: transparent; }
.mmhs-cs-list::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

.mmhs-cs-list li {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    color: #303037;
    cursor: pointer;
    min-height: 48px;
    transition: background .12s, color .12s;
}

.mmhs-cs-list li:hover {
    background: #f5f3ff;
    color: #4f46e5;
}

.mmhs-cs-list li.is-selected {
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}

.mmhs-cs-list li.is-selected::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4f46e5;
    margin-left: auto;
    flex-shrink: 0;
}

.mmhs-cs-list-placeholder {
    padding: 10px 14px;
    font-family: inherit;
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
    cursor: default;
}

.mmhs-cs-list li.mmhs-cs-clear {
    color: #9ca3af;
    font-style: italic;
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 2px;
    border-radius: 8px 8px 0 0;
    padding: 12px 16px;
    min-height: 44px;
}

.mmhs-cs-list li.mmhs-cs-clear:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* ── Search button ──────────────────────────────────────────── */
.mmhs-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 130px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: .3px;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    margin-right: 2px;
    background-color: #d51212 !important;
}

.mmhs-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.4);
}

.mmhs-search-btn:active { transform: translateY(0); }

/* ── Quick links ────────────────────────────────────────────── */
.mmhs-quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
    animation: evhsFadeUp .6s .3s ease both;
    position: relative;
    z-index: 1;
}

.mmhs-align-center .mmhs-quick-links,
.mmhs-text-center .mmhs-quick-links { justify-content: center; }
.mmhs-text-left  .mmhs-quick-links  { justify-content: flex-start; }
.mmhs-text-right .mmhs-quick-links  { justify-content: flex-end; }

.mmhs-ql-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 20px;
    background: rgba(255,255,255,.13);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,.28);
    border-radius: 50px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, transform .2s, border-color .2s;
}

.mmhs-ql-item:hover {
    background: #d51212;
    border-color: #d51212;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.mmhs-ql-arrow {
    display: none; /* v1.6.0 — ok ikon kaldırıldı */
}


/* ── Shake animation (hiçbir şey seçilmemişse) ─────────────── */
@keyframes evhsShake {
    0%, 100% { transform: translateX(0); }
    15%       { transform: translateX(-6px); }
    30%       { transform: translateX(6px); }
    45%       { transform: translateX(-4px); }
    60%       { transform: translateX(4px); }
    75%       { transform: translateX(-2px); }
    90%       { transform: translateX(2px); }
}
.mmhs-shake {
    animation: evhsShake 0.55s cubic-bezier(.36,.07,.19,.97) both;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes evhsFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .mmhs-title { font-size: clamp(28px, 7vw, 48px) !important; }

    .mmhs-search-bar {
        flex-direction: column;
        border-radius: 16px;
        padding: 10px;
        gap: 6px;
        align-items: stretch;
    }

    .mmhs-divider { display: none; }

    .mmhs-custom-select { width: 100%; }
    .mmhs-cs-trigger {
        border: 1.5px solid #e5e7eb;
        border-radius: 12px;
        background: #f9fafb;
    }

    .mmhs-cs-dropdown {
        left: 0;
        transform: translateX(0) translateY(-6px);
        min-width: 100%;
        max-width: 100%;
    }

    .mmhs-custom-select.is-open .mmhs-cs-dropdown {
        transform: translateX(0) translateY(0);
    }

    .mmhs-search-btn {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .mmhs-hero-inner { padding: 0 16px; }
    .mmhs-quick-links { gap: 8px; }
    .mmhs-ql-item { font-size: 13px; padding: 7px 14px; }
}
