/* 2eltraktor ortak bileşenler: açılır menü (.p3s-*) ve görsel yükleme alanı (.p3g-*) */

/* Kapalı açılır menü: sitenin form alanı, tek tip ok */
select.form-control:not([size]):not([multiple]) {-webkit-appearance:none;appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px;cursor:pointer;}
select.form-control:not([size]):not([multiple]):disabled {cursor:not-allowed;opacity:.7;}
select.f-in:not([size]):not([multiple]) {cursor:pointer;}
@media (max-width:767px) {
	select.form-control:not([size]):not([multiple]) {min-height:48px !important;font-size:16px;}
}

/* Açılır menü paneli */
.p3s-panel {position:fixed;z-index:1000001;display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 18px 44px -12px rgba(15,23,42,.32),0 4px 12px rgba(15,23,42,.08);font-family:Inter,ui-sans-serif,system-ui,"Segoe UI",Roboto,sans-serif;color:#0f172a;}
.p3s-panel *,.p3s-panel *:before,.p3s-panel *:after {box-sizing:border-box;}
.p3s-ust {display:none;}
.p3s-ara {flex:none;padding:8px 8px 6px;border-bottom:1px solid #f1f5f9;}
.p3s-ara input {display:block;width:100%;height:40px;padding:0 12px 0 36px;border:1px solid #e2e8f0;border-radius:10px;outline:0;background:#f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center;color:#0f172a;font-size:14px;}
.p3s-ara input:focus {border-color:#065f46;background-color:#fff;box-shadow:0 0 0 3px rgba(6,95,70,.14);}
.p3s-liste {flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:6px;outline:0;}
.p3s-sat {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 12px;border-radius:10px;font-size:14.5px;font-weight:500;line-height:1.3;cursor:pointer;-webkit-tap-highlight-color:transparent;user-select:none;}
.p3s-sat + .p3s-sat {margin-top:2px;}
.p3s-sat:hover,.p3s-sat.p3s-aktif {background:#f1f5f9;}
.p3s-sat.p3s-secili {background:#ecfdf5;color:#064e3b;font-weight:700;}
.p3s-sat.p3s-secili:after {content:"";flex:none;width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23064e3b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat center;}
.p3s-sat.p3s-secili.p3s-aktif,.p3s-sat.p3s-secili:hover {background:#d1fae5;}
.p3s-sat.p3s-pasif {color:#94a3b8;cursor:not-allowed;background:none;}
.p3s-grup {padding:12px 12px 4px;color:#64748b;font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;}
.p3s-yok {padding:18px 12px;color:#64748b;font-size:14px;text-align:center;}
.p3s-ortu {display:none;}

/* Telefon: alttan açılan liste, geniş dokunma satırları */
@media (max-width:767px) {
	html.p3s-kilit,html.p3s-kilit body {overflow:hidden;}
	.p3s-ortu {display:block;position:fixed;inset:0;z-index:1000000;background:rgba(15,23,42,.5);animation:p3s-sol .15s ease-out;}
	.p3s-panel {left:0;right:0;bottom:0;width:auto;max-height:80vh;max-height:80dvh;border:0;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom,0);animation:p3s-yuk .18s ease-out;}
	.p3s-ust {display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:6px 8px 6px 18px;border-bottom:1px solid #f1f5f9;}
	.p3s-ust b {min-width:0;overflow:hidden;color:#0f172a;font-size:16px;font-weight:700;text-overflow:ellipsis;white-space:nowrap;}
	.p3s-kapat {flex:none;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:12px;background:none;color:#475569;cursor:pointer;-webkit-tap-highlight-color:transparent;}
	.p3s-ara {padding:10px 12px;}
	.p3s-ara input {height:46px;font-size:16px;}
	.p3s-liste {padding:8px 10px 12px;}
	.p3s-sat {min-height:52px;padding:13px 14px;font-size:16px;}
	.p3s-sat + .p3s-sat {margin-top:4px;}
}
@keyframes p3s-sol {from {opacity:0;}}
@keyframes p3s-yuk {from {transform:translateY(30%);opacity:.4;}}
@media (prefers-reduced-motion:reduce) {.p3s-ortu,.p3s-panel {animation:none;}}

/* Görsel yükleme alanı: ilan fotoğraf alanının küçük hali */
.p3g,.p3g *,.p3g *:before,.p3g *:after {box-sizing:border-box;}
.p3g {position:relative;display:flex;align-items:center;gap:16px;margin:0 0 14px;padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;}
.p3g:last-child {margin-bottom:0;}
.p3g-kutu {position:relative;flex:none;display:block;width:104px;height:104px;margin:0 !important;overflow:hidden;border:2px dashed #cbd5e1;border-radius:12px;background:linear-gradient(180deg,#f8fafc,#fff);font-weight:400;cursor:pointer;transition:border-color .15s,background .15s;}
.p3g-kutu:hover {border-color:#065f46;background:#ecfdf5;}
.p3g.p3g-surukle .p3g-kutu {border-color:#065f46;background:#ecfdf5;box-shadow:0 0 0 3px rgba(6,95,70,.14);}
.p3g-resim {display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.p3g-resim[hidden] {display:none;}
.p3g-dolu .p3g-kutu {border-style:solid;border-color:#e2e8f0;}
.p3g-bos {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:100%;padding:4px;color:#065f46;font-size:12px;font-weight:700;line-height:1.2;text-align:center;}
.p3g-bos svg {display:block;}
.p3g-dolu .p3g-bos {display:none;}
.p3g-bilgi {flex:1 1 auto;min-width:0;}
.p3g-ad {display:block;color:#0f172a;font-size:14.5px;font-weight:700;line-height:1.3;}
.p3g-ipucu {display:block;margin-top:2px;color:#64748b;font-size:12.5px;line-height:1.4;}
.p3g-durum {margin-top:6px;color:#065f46;font-size:12.5px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;}
.p3g-durum:empty {display:none;}
.p3g-durum.p3g-hata {color:#b91c1c;}
.p3g-durum.p3g-uyari {color:#b45309;}
.p3g-dugmeler {display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.p3g-sec,.p3g-kaldir {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;margin:0 !important;padding:8px 14px;border:0;border-radius:10px;font-size:13.5px;font-weight:700;line-height:1.2;cursor:pointer;transition:background .15s,color .15s;}
.p3g-sec {background:#064e3b;color:#fff !important;}
.p3g-sec:hover {background:#065f46;}
.p3g-sec span,.p3g-sec svg {color:inherit;}
.p3g-kaldir {background:#f1f5f9;color:#334155;}
.p3g-kaldir:hover {background:#fee2e2;color:#b91c1c;}
.p3g-kaldir[hidden] {display:none;}
/* Dosya alanı görünmez ama odaklanabilir; üst banttaki düğmeler ve klavye onu kullanır */
.p3g-girdi {position:absolute !important;left:14px;top:14px;width:1px !important;height:1px !important;padding:0 !important;margin:0 !important;border:0 !important;opacity:0;overflow:hidden;}
.p3g-girdi:focus-visible ~ .p3g-bilgi .p3g-sec {outline:3px solid #facc15;outline-offset:2px;}
.p3g-sil {display:none !important;}
/* Kapak: gerçek kırpma oranına yakın, geniş ama alçak */
.p3g-kapak {flex-direction:column;align-items:stretch;gap:12px;}
.p3g-kapak .p3g-kutu {width:100%;height:auto;aspect-ratio:1140/200;min-height:84px;max-height:130px;}
.p3g-kapak .p3g-bos {flex-direction:row;gap:8px;}
@media (max-width:767px) {
	.p3g {gap:12px;padding:12px;}
	.p3g-sec,.p3g-kaldir {min-height:44px;flex:1 1 auto;}
	.p3g-kare .p3g-kutu {width:92px;height:92px;}
}
