/* media — görsel türevleri, galeri görüntüleyici, video, ilan verme (fotoğraf sıralama, video, fiyat önerisi), ilan detay ekleri. Sahibi: Agent 6 */

/* <picture> sarmalayıcısı kart/slayt düzenini bozmasın (App.picture) */
.ph > picture, .ls-slide > picture, .po-th > picture, .gl-th > picture, .md-slide > picture { display: contents; }
img[data-full] { background: transparent; }

/* ---------- ilan detay: karusel ---------- */
.ls-slide.md-vslide { background: #000; position: relative; }
.md-vslide video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.md-vbadge { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; background: rgba(22,24,29,.72); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 10px; pointer-events: none; }
.md-vbadge svg { width: 14px; height: 14px; }
.md-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; z-index: 2; pointer-events: none; }
.md-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.12); transition: width .2s, background .2s; }
.md-dots i.on { width: 16px; background: #fff; }
.md-dots i.v { background: rgba(255,255,255,.55); }
@media (prefers-reduced-motion: reduce) { .md-dots i { transition: none; } }

/* ---------- ilan detay: ekler ---------- */
.md-sec { display: flex; flex-direction: column; gap: 10px; }
.md-store { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--soft); font-weight: 800; font-size: 14px; color: var(--ink); text-decoration: none; margin-top: 8px; }
.md-store .grow { flex: 1; min-width: 0; }
.md-tip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px dashed var(--line); font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.4; text-decoration: none; }
.md-tip svg { flex-shrink: 0; color: var(--sea, #1C8C7A); }
.md-tip b { color: var(--ink); }
.md-sharebtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--soft); font-weight: 800; font-size: 13px; }

/* ---------- galeri: tam ekran kaydırmalı görüntüleyici ---------- */
.gl.md-gl { touch-action: pan-x pan-y; }
.md-track { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.md-track::-webkit-scrollbar { display: none; }
.md-track.zoomed { overflow: hidden; touch-action: none; }
.md-slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.md-slide img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: 50% 50%; will-change: transform; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; transition: transform .22s ease; cursor: zoom-in; }
.md-slide img.nt { transition: none; }
.md-slide.z img { cursor: grab; }
.md-slide video { max-width: 100%; max-height: 100%; width: 100%; background: #000; }
.md-slide .gl-ph { width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.md-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(255,255,255,.14); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 10px; pointer-events: none; transition: opacity .4s; white-space: nowrap; }
.md-hint.off { opacity: 0; }
.gl-th.md-vth { position: relative; background: #111; }
.gl-th.md-vth .md-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0,0,0,.35); }
@media (prefers-reduced-motion: reduce) { .md-slide img { transition: none; } }

/* ---------- ilan ver: fotoğraflar ---------- */
.po-acts.md-acts5 { grid-template-columns: repeat(5, 1fr); }
.po-th { touch-action: manipulation; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.po-th img { pointer-events: none; -webkit-user-drag: none; }
.po-th.md-dragging { opacity: .28; }
.po-th.md-drop { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent); }
.md-ghost { position: fixed; z-index: 90; pointer-events: none; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.28); transform: scale(1.06); opacity: .95; }
.md-ghost img { width: 100%; height: 100%; object-fit: cover; display: block; }
.md-dragmode .po-photos { cursor: grabbing; }
.po-th .md-st { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.45); }
[data-theme="dark"] .po-th .md-st { background: rgba(0,0,0,.4); }
.po-th .md-st.err { background: rgba(200,40,40,.28); color: #fff; }
.po-th .md-st.err span { width: 28px; height: 28px; border-radius: 14px; background: var(--err, #C8372D); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.md-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(22,24,29,.18); border-top-color: var(--brand); animation: md-spin .8s linear infinite; }
@keyframes md-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .md-spin { animation-duration: 2.4s; } }
.md-uperr { font-size: 12.5px; font-weight: 700; color: var(--err); margin: 0; }

/* ---------- ilan ver: video ---------- */
.md-vbox { display: flex; flex-direction: column; gap: 8px; }
.md-vadd { position: relative; min-height: 64px; border-radius: 14px; border: 2px dashed var(--line); background: var(--card); display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; font-weight: 800; font-size: 14px; color: var(--brand-dd, var(--ink)); }
.md-vadd .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--peach, #FFE6D6); color: var(--peach-t, #A2410E); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.md-vadd small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.md-vadd input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.md-vadd:focus-within { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }
.md-vprev { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16/10; }
.md-vprev video { width: 100%; height: 100%; object-fit: contain; display: block; }
.md-vprev .md-vbadge { top: 10px; bottom: auto; }
.md-vprev .md-vst { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 800; font-size: 13px; }
.md-vrow { display: flex; gap: 8px; }
.md-vrow .btn { flex: 1; height: 44px; font-size: 14px; }

/* ---------- ilan ver: fiyat önerisi ---------- */
.md-hintbox { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--sea, #1C8C7A) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--sea, #1C8C7A) 25%, transparent); font-size: 14px; font-weight: 600; line-height: 1.45; }
.md-hintbox svg { flex-shrink: 0; margin-top: 1px; color: var(--sea, #1C8C7A); }
.md-hintbox b { font-weight: 800; }
.md-hintbox small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.md-hintbar { display: block; position: relative; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--sea, #1C8C7A) 25%, transparent); margin: 8px 0 2px; }
.md-hintbar i { position: absolute; top: -3px; width: 12px; height: 12px; border-radius: 6px; background: var(--ink); border: 2px solid var(--card); transform: translateX(-50%); }
.md-hintbar i.med { background: var(--sea, #1C8C7A); }
.md-warn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--sun, #F2B33D) 18%, var(--card)); font-size: 13.5px; font-weight: 700; line-height: 1.45; }
.md-warn svg { flex-shrink: 0; margin-top: 1px; }
.md-warn[hidden] { display: none; }

/* ---------- ilan ver: dinamik kategori alanları ---------- */
.md-unit { display: flex; align-items: center; gap: 8px; }
.md-unit .inp { flex: 1; min-width: 0; }
.md-unit em { font-style: normal; font-weight: 800; color: var(--muted); font-size: 14px; }
.md-hintbox > .grow { display: block; flex: 1; min-width: 0; }
