/* Seçim bileşeni (aramalı açılır liste) · site ve panel ortak. Renkler --sc-* değişkenlerinden; yoksa varsayılan. */
.secim { position: relative; min-width: 0; font-weight: 500; }
.secim-yerel { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.secim-dugme { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: var(--sc-yukseklik, 3.25rem); padding: 0 .875rem 0 1rem; background: var(--sc-zemin, #fff); border: 1.5px solid var(--sc-cizgi, #c9d0d8); border-radius: var(--sc-kose, .625rem); color: var(--sc-metin, #101418); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
.secim-dugme:hover:not(:disabled) { border-color: var(--sc-cizgi-koyu, #8d98a5); }
.secim-dugme:focus-visible, .secim.acik .secim-dugme { outline: 0; border-color: var(--sc-vurgu, #101418); box-shadow: 0 0 0 4px var(--sc-halka, rgba(16, 20, 24, .12)); }
.secim-dugme:disabled { background: var(--sc-pasif, #f4f6f8); color: var(--sc-soluk, #5b6570); cursor: not-allowed; }
.secim-dugme svg { flex: none; color: var(--sc-soluk, #5b6570); transition: transform .22s cubic-bezier(.22, 1, .36, 1); }
.secim.acik .secim-dugme svg { transform: rotate(180deg); }
.secim-deger { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secim-yer { color: var(--sc-soluk, #5b6570); }
.secim-yerel[aria-invalid="true"] + .secim .secim-dugme { border-color: var(--sc-hata, #c8102e); }

.secim-panel { position: absolute; z-index: 70; left: 0; right: 0; top: calc(100% + .375rem); display: flex; flex-direction: column; max-height: 20rem; background: var(--sc-zemin, #fff); border: 1px solid var(--sc-cizgi, #c9d0d8); border-radius: .75rem; box-shadow: 0 1.25rem 3rem rgba(16, 20, 24, .18), 0 .25rem .75rem rgba(16, 20, 24, .08); overflow: hidden; transform-origin: top center; animation: secim-ac .18s cubic-bezier(.22, 1, .36, 1); }
.secim-panel[hidden] { display: none; }
.secim.yukari .secim-panel { top: auto; bottom: calc(100% + .375rem); transform-origin: bottom center; }
@keyframes secim-ac { from { opacity: 0; transform: translateY(-.375rem) scale(.98); } }
.secim-bas { display: none; }
.secim-ara { display: flex; align-items: center; gap: .5rem; padding: 0 .875rem; border-bottom: 1px solid var(--sc-cizgi-acik, #e3e7ec); color: var(--sc-soluk, #5b6570); }
.secim-ara[hidden] { display: none; }
.secim .secim-ara input { flex: 1; width: auto; min-width: 0; min-height: 2.875rem; padding: 0; border: 0 !important; border-radius: 0; outline: 0; box-shadow: none !important; background: none; font: inherit; font-size: 1rem; font-weight: 400; color: var(--sc-metin, #101418); }
.secim-panel ul { margin: 0; padding: .375rem; list-style: none; overflow-y: auto; overscroll-behavior: contain; outline: 0; }
.secim-panel li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.75rem; padding: .5rem .75rem; border-radius: .5rem; cursor: pointer; color: var(--sc-metin, #101418); }
.secim-panel li[hidden] { display: none; }
.secim-panel li svg { flex: none; opacity: 0; color: var(--sc-secili, #c8102e); }
.secim-panel li.etkin { background: var(--sc-etkin, #f1f3f6); }
.secim-panel li[aria-selected="true"] { font-weight: 700; }
.secim-panel li[aria-selected="true"] svg { opacity: 1; }
.secim-bos { margin: 0; padding: 1.25rem; text-align: center; color: var(--sc-soluk, #5b6570); }

/* Telefonda alt sayfa: başlıklı, perde ile */
@media (max-width: 559px) {
  .secim-panel { position: fixed; inset: 0; z-index: 90; max-height: none; border: 0; border-radius: 0; background: rgba(16, 20, 24, .55); box-shadow: none; justify-content: flex-end; animation: secim-perde .2s ease; }
  .secim-panel > * { background: var(--sc-zemin, #fff); }
  .secim-bas { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem .5rem 1.25rem; border-radius: 1.25rem 1.25rem 0 0; font-size: 1.0625rem; animation: secim-sayfa .28s cubic-bezier(.22, 1, .36, 1); }
  .secim-kapat { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--sc-etkin, #f1f3f6); color: inherit; }
  .secim-ara { margin: 0; padding: .25rem 1.25rem; animation: secim-sayfa .28s cubic-bezier(.22, 1, .36, 1); }
  .secim .secim-ara input { min-height: 3.25rem; }
  .secim-panel ul { max-height: 52vh; min-height: 30vh; padding: .5rem .75rem calc(.75rem + env(safe-area-inset-bottom)); animation: secim-sayfa .28s cubic-bezier(.22, 1, .36, 1); }
  .secim-panel li { min-height: 3.125rem; }
  .secim-bos { animation: secim-sayfa .28s cubic-bezier(.22, 1, .36, 1); }
  @keyframes secim-perde { from { background: rgba(16, 20, 24, 0); } }
  @keyframes secim-sayfa { from { transform: translateY(40vh); } }
}
@media (prefers-reduced-motion: reduce) { .secim-panel, .secim-panel > * { animation: none !important; } .secim-dugme svg { transition: none; } }
