/* Kodlayan: Serhan Şahin | MSF Yazılım */
/* =========================================================
   NUPEL — MOBİL DENEYİM (yalnızca ≤768px)
   Masaüstü tasarımdan bağımsız uygulama hissi
   ========================================================= */

/* Masaüstünde mobil bileşenler hiç görünmez */
.m-tabbar, .m-sheet, .m-hero-search, .m-recent, .m-lbar, .m-dgal, .m-actionbar { display: none; }
.filters > .m-grab, .m-hsearch { display: none; }

/* ---------- Sayfa geçişleri (sağdan sola kayarak) ---------- */
@media (max-width: 768px) {
  @view-transition { navigation: auto; }
  .header { view-transition-name: m-header; }
  .m-tabbar { view-transition-name: m-tabbar; }
  .m-actionbar { view-transition-name: m-actionbar; }
  ::view-transition-old(root) { animation: m-out .38s cubic-bezier(.4, 0, .2, 1) both; }
  ::view-transition-new(root) { animation: m-in .42s cubic-bezier(.22, 1, .36, 1) both; }
  html:active-view-transition-type(geri)::view-transition-old(root) { animation-name: m-out-back; }
  html:active-view-transition-type(geri)::view-transition-new(root) { animation-name: m-in-back; }
}
@keyframes m-out { to { transform: translateX(-28%); opacity: .4; } }
@keyframes m-in { from { transform: translateX(100%); } }
@keyframes m-out-back { to { transform: translateX(100%); } }
@keyframes m-in-back { from { transform: translateX(-28%); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

@media (max-width: 768px) {
  :root { --radius: 20px; --mh: 64px; --tab: 68px; }
  html { -webkit-tap-highlight-color: transparent; }
  body { overscroll-behavior-y: none; }
  html.m-lock, html.m-lock body { overflow: hidden; }
  input, select, textarea { font-size: 16px !important; }            /* iOS yakınlaştırmasını önler */
  a, button { touch-action: manipulation; }
  .btn:active, .m-chip:active, .m-fchip:active, .m-tabbar a:active, .m-tabbar button:active { transform: scale(.96); }
  /* Yatay kaydırılan alanlar: yalnızca sağa-sola hareket, yukarı-aşağı oynamaz */
  .m-gal, .m-dgal-track, .m-snap, .m-hscroll, .m-quick, .m-lbar-row, .active-filters {
    overflow-y: hidden !important; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
  }
  .m-gal img, .m-dgal-track img { display: block; -webkit-user-drag: none; user-select: none; }
  .container { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 26px; gap: 14px; }
  .section-head h2 { font-size: 34px; }
  .section-head p { font-size: 15px; }
  .eyebrow { font-size: 11px; }

  /* Masaüstüne ait öğeleri gizle */
  body:has(.m-actionbar) .wa-float, .demo-ribbon, .btn-wa-head, #themeBtn, .scroll-hint, .ih-skip, .ih-scroll { display: none !important; }

  /* ---------- Header: kompakt uygulama çubuğu ---------- */
  .header { padding: 10px 0 !important; padding-top: calc(10px + env(safe-area-inset-top)) !important; }
  .header .lockup { --lk-h: 28px; --lk-n: 15px; }
  .header.scrolled .lockup, .header.solid .lockup { --lk-h: 26px; --lk-n: 14px; }
  .header .lk-tag { display: none; }                                  /* küçük boyda okunmayan alt yazı gizli */
  .header .lk-name { letter-spacing: .5em; padding-left: .5em; }
  /* Logo mobilde her sayfada solda görünür (sol taraf boş kalmaz) */
  .header.on-hero:not(.scrolled) .logo, body:has(.m-dgal) .header:not(.scrolled) .logo { opacity: 1 !important; pointer-events: auto !important; }
  body:has(.ih:not(.phase2)) .header .logo { opacity: 0 !important; }   /* intro oynarken büyük logo sahnede */
  body:has(.m-dgal) .header:not(.scrolled) .on-light { opacity: 0; }
  body:has(.m-dgal) .header:not(.scrolled) .on-dark { opacity: 1; }
  body:has(.m-dgal) .header:not(.scrolled) .lk-name { background-image: linear-gradient(90deg, #c99a5e, #e6c18a 50%, #f5d3a0); }
  .nav { gap: 12px; }
  .nav-actions { gap: 8px; }
  .header .icon-btn { width: 42px; height: 42px; }
  .m-hsearch { display: grid !important; }
  .header:not(.scrolled):not(.solid) .m-hsearch, .header:not(.scrolled):not(.solid) #menuBtn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(10px); }
  .nav-links { display: none !important; }

  /* ---------- Alt sekme çubuğu ---------- */
  .m-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 120;
    height: var(--tab); padding: 0 6px 8px; border-radius: 24px;
    background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid var(--line); box-shadow: 0 18px 40px -14px rgba(8, 11, 19, .35); transition: transform .45s var(--ease);
  }
  .m-tabbar > a, .m-tabbar > button { position: relative; display: grid; justify-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--muted); padding-top: 10px; transition: color .25s, transform .2s; }
  .m-tabbar svg { width: 23px; height: 23px; }
  .m-tabbar .on { color: var(--ink); }
  .m-tabbar .on::before { content: ""; position: absolute; top: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
  .m-tabbar .m-tab-wa { color: #1fae55; }
  .m-fab { align-self: center; justify-self: center; width: 58px; height: 58px; border-radius: 20px !important; padding: 0 !important; display: grid !important; place-items: center; background: var(--gold); color: var(--on-accent) !important; box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--gold) 90%, transparent); transform: translateY(-14px); }
  .m-fab svg { width: 26px; height: 26px; }
  .m-badge { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-style: normal; display: grid; place-items: center; }
  .m-badge[hidden] { display: none; }
  .wa-float { right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 56px; height: 56px; }
  .wa-float .wa-tip { display: none; }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .5s var(--ease), opacity .3s, visibility .3s; z-index: 300; }
  .toast.show { opacity: 1; visibility: visible; }

  /* ---------- Alt çekmece ---------- */
  .m-sheet { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; }
  .m-sheet-bg { position: absolute; inset: 0; background: rgba(8, 11, 19, .5); opacity: 0; transition: opacity .35s; backdrop-filter: blur(2px); }
  .m-sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column;
    background: var(--surface); border-radius: 26px 26px 0 0; transform: translateY(105%); transition: transform .45s var(--ease); padding-bottom: env(safe-area-inset-bottom);
  }
  .m-sheet.open { pointer-events: auto; }
  .m-sheet.open .m-sheet-bg { opacity: 1; }
  .m-sheet.open .m-sheet-panel { transform: none; }
  .m-sheet.full .m-sheet-panel { max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .m-grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 10px auto 2px; flex-shrink: 0; }
  .m-sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px 12px; }
  .m-sheet-head strong { font-family: var(--font-display); font-size: 26px; font-weight: 400; letter-spacing: -.02em; }
  .m-x { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
  .m-x svg { width: 18px; height: 18px; }
  .m-sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 20px 24px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
  .m-sheet-head, .m-grab { touch-action: none; flex-shrink: 0; }
  .m-sheet-foot { display: flex; gap: 10px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
  .m-sheet-foot .btn { flex: 1; padding: 16px; }
  .m-sheet-foot .btn.dis { opacity: .5; pointer-events: none; }
  .m-clear { font-weight: 700; font-size: 15px; padding: 15px 18px; border-radius: 16px; background: var(--bg); border: 1.5px solid var(--line); text-decoration: none; }

  .m-lbl { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
  .m-seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border-radius: 16px; padding: 4px; }
  .m-seg button { padding: 13px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: .25s; }
  .m-seg button.on { background: var(--surface); box-shadow: 0 2px 10px rgba(13, 19, 33, .08); }
  .m-chipgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .m-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
  .m-chip { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14.5px; text-align: left; transition: .2s; }
  .m-chip small { font-size: 12px; color: var(--muted); font-weight: 700; }
  .m-chip.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold-deep); }
  .m-chip.on small { color: inherit; }
  :root[data-theme="dark"] .m-chip.on { color: var(--gold-2); }

  /* Favoriler */
  .m-mini { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .m-mini-img { width: 84px; height: 68px; border-radius: 14px; overflow: hidden; background: var(--bg); }
  .m-mini-img img { width: 100%; height: 100%; object-fit: cover; }
  .m-mini-t { display: grid; gap: 2px; min-width: 0; }
  .m-mini-t b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-mini-t span { font-size: 12.5px; color: var(--muted); }
  .m-mini-t strong { font-family: var(--font-display); font-weight: 500; color: var(--gold-deep); }
  .m-mini-a { display: grid; gap: 6px; }
  .m-mini-a > * { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); }
  .m-mini-a svg { width: 18px; height: 18px; }
  .m-wa-ic { background: #25d366 !important; color: #fff; }
  .m-empty { text-align: center; padding: 30px 10px 20px; display: grid; justify-items: center; gap: 8px; }
  .m-empty > svg { width: 46px; height: 46px; color: var(--gold); }
  .m-empty b { font-size: 18px; }
  .m-empty p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }

  /* Menü */
  .m-menu-brand { display: flex; justify-content: center; padding: 6px 0 22px; }
  .m-menu-brand .lockup { --lk-h: 56px; --lk-n: 26px; }
  .m-menu-links { display: grid; border-top: 1px solid var(--line); }
  .m-menu-links a { display: flex; align-items: center; gap: 14px; padding: 17px 4px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; }
  .m-menu-links a svg { width: 22px; height: 22px; color: var(--gold); }
  .m-menu-links a svg:last-child { margin-left: auto; width: 18px; color: var(--muted); }
  .m-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 14px; }
  .m-contact a { display: grid; justify-items: center; gap: 6px; padding: 16px 6px; border-radius: 18px; background: var(--bg); font-weight: 700; font-size: 13px; }
  .m-contact a svg { width: 24px; height: 24px; color: var(--gold-deep); }
  .m-contact a.wa { background: #25d366; color: #fff; }
  .m-contact a.wa svg { color: #fff; }
  .m-menu-info { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); padding: 6px 2px; }
  .m-menu-info svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
  .m-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 4px; border-top: 1px solid var(--line); margin-top: 12px; font-weight: 700; font-size: 15px; }
  .m-row[hidden] { display: none; }
  .m-row svg { width: 20px; height: 20px; color: var(--gold); }
  .m-row svg:last-child { margin-left: auto; color: var(--muted); }
  .m-switch { margin-left: auto; width: 46px; height: 28px; border-radius: 20px; background: var(--line); position: relative; transition: .3s; }
  .m-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: .3s var(--ease); }
  .m-row.on .m-switch { background: var(--gold); }
  .m-row.on .m-switch::after { transform: translateX(18px); }
  .m-socials { justify-content: center; margin: 18px 0 10px; }
  .m-credit { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 8px; }

  /* ---------- Ana sayfa: logo intro ---------- */
  .ih { padding: 96px 16px 40px; min-height: 100svh; }
  .ih-glow.g1 { width: 120vw; height: 120vw; }
  .ih-glow.g2 { width: 90vw; height: 90vw; }
  .ih-lines { background-size: 70px 100%; }
  .ih { --ih-icon: 128px; --ih-name: 50px; }
  .ih.phase2 { --ih-icon: 92px; --ih-name: 36px; }
  .ih.phase2 .ih-content { margin-top: 22px; }
  .ih-content { grid-template-columns: minmax(0, 1fr); max-width: 100%; }
  .ih-line { margin-bottom: 20px; }
  .ih-badge { font-size: 12px; margin-bottom: 12px; }
  .ih-content h1 { font-size: 36px; }
  .ih-sub { font-size: 15.5px; margin: 12px auto 22px; }
  .ih-btns { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ih-btns .btn { padding: 15px 10px; font-size: 14px; }
  .ih .search-box { display: none; }
  .m-hero-search { display: block; width: 100%; margin-top: 18px; }
  .m-pill { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 14px 14px 18px; border-radius: 20px; background: #fff; color: #0d1321; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
  .m-pill > svg { width: 22px; height: 22px; color: var(--gold-deep); flex-shrink: 0; }
  .m-pill span { flex: 1; display: grid; }
  .m-pill b { font-size: 15.5px; }
  .m-pill small { font-size: 12.5px; color: #8a93a6; }
  .m-pill i { width: 40px; height: 40px; border-radius: 12px; background: #f4f1ea; display: grid; place-items: center; }
  .m-pill i svg { width: 18px; height: 18px; }
  .m-quick { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 0; padding: 2px 16px; scrollbar-width: none; }
  .m-quick::-webkit-scrollbar { display: none; }
  .m-quick a { flex-shrink: 0; padding: 9px 14px; border-radius: 100px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; backdrop-filter: blur(8px); }
  .m-quick a small { opacity: .6; margin-left: 3px; }
  .ih.light .m-quick a { color: var(--ink); background: rgba(13, 19, 33, .05); border-color: var(--line); }
  .ih .hero-stats { gap: 0; margin-top: 26px; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .ih .hero-stats div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
  .ih .hero-stats div strong { font-size: 26px; }
  .ih .hero-stats div span { font-size: 11.5px; }
  .marquee { padding: 16px 0; }
  .marquee-track span { font-size: 22px; gap: 40px; }
  .marquee-track { gap: 40px; }

  /* ---------- Kaydırmalı vitrinler (yatay, mıknatıslı) ---------- */
  /* Her kart ekranın tam ortasına oturur (tek kart olsa da) */
  .m-snap {
    --w: 84vw; position: relative; display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px !important;
    margin: 0 -16px; padding: 4px calc((100vw - var(--w)) / 2) 14px; scroll-padding-inline: calc((100vw - var(--w)) / 2);
    scrollbar-width: none; grid-auto-rows: auto !important;
  }
  .m-snap::-webkit-scrollbar { display: none; }
  .m-snap > * { scroll-snap-align: center; scroll-snap-stop: always; flex: 0 0 var(--w) !important; width: var(--w); }
  .m-snap.m-single { justify-content: center; }
  .bento.m-snap { --w: 80vw; }
  .bento.m-snap > .bento-item { height: 300px; grid-column: auto !important; grid-row: auto !important; }
  .agents.m-snap { --w: 68vw; }
  /* Döngü göstergesi: aktif nokta dolarak bir sonrakine geçer */
  .m-loopdots { display: flex; justify-content: center; gap: 6px; margin: 2px 0 6px; }
  .m-loopdots i { position: relative; width: 7px; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; transition: width .4s var(--ease); }
  .m-loopdots i.on { width: 28px; }
  .m-loopdots i.on b { position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: m-fill 3.6s linear forwards; }
  .m-hold + .m-loopdots i.on b { animation: none; transform: none; }
  @keyframes m-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .why .m-loopdots i { background: rgba(255, 255, 255, .2); }
  .bento-item:nth-child(1) .bento-info h3, .bento-info h3 { font-size: 28px; }
  .agents.m-snap > .agent { flex: 0 0 62%; }
  .agent-social { opacity: 1; transform: none; }
  .agent img { filter: none; }

  /* Son baktıklarınız */
  .m-recent { display: block; padding: 8px 0 20px; }
  .m-sec-t { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .m-sec-t b { font-family: var(--font-display); font-weight: 400; font-size: 24px; }
  .m-sec-t a { font-size: 14px; font-weight: 700; color: var(--gold-deep); }
  .m-hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .m-hscroll::-webkit-scrollbar { display: none; }
  .m-rc { flex: 0 0 150px; scroll-snap-align: start; display: grid; gap: 4px; }
  .m-rc img { width: 150px; height: 110px; object-fit: cover; border-radius: 16px; }
  .m-rc b { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .m-rc span { font-size: 12px; color: var(--muted); }

  /* ---------- Kart ---------- */
  .card { border-radius: 22px; }
  .card:hover { transform: none; }
  .card-media { margin: 8px 8px 0; border-radius: 16px; aspect-ratio: 4 / 3.1; }
  .m-gal { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .m-gal::-webkit-scrollbar { display: none; }
  .m-gal img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
  .m-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
  .m-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: .3s; }
  .m-dots i.on { width: 18px; background: #fff; }
  .card-photos { display: none !important; }
  .fav { top: 18px !important; right: 18px !important; width: 42px; height: 42px; }
  .card-body { padding: 16px 16px 16px; }
  .card-title { font-size: 17.5px; margin: 4px 0 12px; }
  .card-specs { font-size: 13.5px; padding: 12px 0; }
  .btn-wa-card { height: 42px; padding: 0 12px; font-size: 14px; }
  .card-go { width: 42px; height: 42px; }

  /* Bölgeler */
  .regions.single .region.main { padding: 26px 20px; }
  .region.main h3 { font-size: 46px; }
  .regions.single .region.main .region-list { grid-template-columns: 1fr 1fr; }
  .region-list a { padding: 13px 12px; font-size: 14px; }

  /* Neden biz / yorumlar / CTA */
  .why { margin: 0; border-radius: 30px; padding: 64px 0; }
  .why-img { aspect-ratio: 4 / 3.4; }
  .feature { padding: 18px; gap: 14px; }
  .feature:hover { transform: none; }
  .counters { margin-top: 44px; padding-top: 34px; gap: 26px 12px; }
  .testi-card { padding: 26px 22px; border-radius: 24px; }
  .testi-card .quote { font-size: 90px; height: 36px; }
  .testi-text { font-size: 19px; min-height: 120px; }
  .cta { padding: 44px 20px; gap: 26px; }
  .cta h2 { font-size: 34px; }
  .cta-form { padding: 18px; }

  /* Footer: akordeon */
  .footer { padding: 54px 0 30px; margin-top: 70px; }
  .footer-top { gap: 0; }
  .footer-about { text-align: center; padding-bottom: 26px; }
  .footer-about p { margin: 16px auto 20px; }
  .footer-about .socials { justify-content: center; }
  .footer-top > div:not(.footer-about) { border-top: 1px solid var(--line); }
  .footer-top > div:not(.footer-about) > h5 { margin: 0; padding: 18px 2px; display: flex; justify-content: space-between; cursor: pointer; }
  .footer-top > div:not(.footer-about) > h5::after { content: "+"; font-size: 20px; line-height: 1; transition: transform .3s; }
  .footer-top > div:not(.footer-about) > :not(h5) { display: none; }
  .footer-top > div.m-open > :not(h5) { display: grid; }
  .footer-top > div.m-open > .newsletter { display: flex; }
  .footer-top > div.m-open > .g-badge { display: inline-flex; }
  .footer-top > div.m-open > h5::after { transform: rotate(45deg); }
  .footer-top > div.m-open { padding-bottom: 18px; }
  .footer-big { margin: 40px 0 20px; }
  .footer-bottom { justify-content: center; text-align: center; flex-direction: column; gap: 6px; font-size: 12.5px; }

  /* ---------- İlan listesi ---------- */
  .page-hero { padding: calc(86px + env(safe-area-inset-top)) 0 14px !important; }
  .page-hero .breadcrumb { font-size: 12.5px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .result-loc { font-size: 32px !important; }
  .m-lbar { display: block; position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 60; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 8px 0 10px; margin-bottom: 8px; }
  .m-lbar-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
  .m-lbar-row::-webkit-scrollbar { display: none; }
  .m-fchip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 100px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
  .m-fchip svg { width: 16px; height: 16px; }
  .m-fchip small { color: var(--muted); font-weight: 700; }
  .m-fchip.main { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .m-fchip.main i { font-style: normal; min-width: 20px; height: 20px; border-radius: 10px; background: var(--gold); color: var(--on-accent); display: grid; place-items: center; font-size: 11px; padding: 0 5px; }
  .m-fchip.on { background: color-mix(in srgb, var(--gold) 16%, var(--surface)); border-color: var(--gold); color: var(--gold-deep); }
  :root[data-theme="dark"] .m-fchip.on { color: var(--gold-2); }
  .toolbar { margin-bottom: 14px; }
  .toolbar > div:last-child { display: none !important; }
  .active-filters { margin-bottom: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .active-filters::-webkit-scrollbar { display: none; }
  .af { flex-shrink: 0; }
  .grid-cards, .grid-cards.cols-2 { grid-template-columns: 1fr; gap: 18px; }

  /* Filtreler: alt çekmece */
  .filters {
    position: fixed !important; inset: auto 0 0 0 !important; width: 100% !important; max-height: 90dvh; border-radius: 26px 26px 0 0 !important;
    transform: translateY(105%) !important; transition: transform .45s var(--ease) !important; z-index: 210 !important; padding: 0 20px calc(90px + env(safe-area-inset-bottom)) !important; overflow-y: auto;
  }
  .filters.open { transform: none !important; box-shadow: 0 0 0 100vmax rgba(8, 11, 19, .5) !important; }
  .filters > .m-grab { display: block; position: sticky; top: 0; margin: 0 -20px; padding: 10px 0 2px; background: var(--surface); width: auto; height: auto; }
  .filters > .m-grab::after { content: ""; display: block; width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto; }
  .filters-head { position: sticky; top: 17px; background: var(--surface); z-index: 2; padding: 8px 0 12px; margin-bottom: 4px !important; }
  .filters-head strong { font-family: var(--font-display); font-weight: 400; font-size: 26px !important; }
  #fApply { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: auto !important; padding: 17px !important; border-radius: 18px; z-index: 3; display: flex !important; box-shadow: 0 12px 30px -10px rgba(8, 11, 19, .5); }
  .filters:not(.open) #fApply { display: none !important; }
  .m-sortlist { display: grid; }
  .m-sortlist button { display: flex; justify-content: space-between; align-items: center; padding: 17px 4px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 16px; text-align: left; }
  .m-sortlist button.on { color: var(--gold-deep); }
  .m-sortlist svg { width: 22px; height: 22px; color: var(--green); }

  /* ---------- İlan detayı ---------- */
  .page:has(.m-dgal) .page-hero, body:has(.m-dgal) .page-hero { display: none; }
  body:has(.m-dgal) .header:not(.scrolled) { background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
  body:has(.m-dgal) .header:not(.scrolled) .logo { opacity: 0; pointer-events: none; }
  body:has(.m-dgal) .header:not(.scrolled) .icon-btn { color: #fff; background: rgba(13, 19, 33, .35); backdrop-filter: blur(10px); border-color: transparent; }
  .gallery { display: none !important; }
  .m-dgal { display: block; position: relative; height: 62vh; max-height: 560px; background: #0d1321; }
  .m-dgal-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .m-dgal-track::-webkit-scrollbar { display: none; }
  .m-dgal-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
  .m-dgal::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 11, 19, .45), transparent 28%, transparent 70%, rgba(8, 11, 19, .5)); }
  .m-fbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #0d1321; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
  .m-fbtn svg { width: 19px; height: 19px; }
  .m-fbtn.on { color: var(--red); }
  .m-fbtn.on svg { fill: currentColor; }
  .m-fbtn.back { position: absolute; z-index: 2; left: 16px; bottom: 18px; }
  .m-fbtn.back svg { transform: scaleX(-1); }
  .m-ftop { position: absolute; z-index: 2; right: 16px; bottom: 18px; display: flex; gap: 8px; }
  .m-count { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 100px; background: rgba(13, 19, 33, .6); color: #fff; font-size: 13px; backdrop-filter: blur(8px); }
  #detail { position: relative; margin-top: -22px; background: var(--bg); border-radius: 26px 26px 0 0; padding-top: 22px; z-index: 3; }
  .detail-layout { margin-top: 0; gap: 0; }
  .detail-head h1 { font-size: 30px; }
  .detail-price { text-align: left; font-size: 30px; }
  .spec-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
  .spec { padding: 16px; }
  .block { padding: 26px 0; }
  .amenities { grid-template-columns: 1fr 1fr; gap: 10px; font-size: 14px; }
  .gmap { height: 280px; }
  .map-actions .btn { flex: 1; padding: 13px; font-size: 14px; }
  .side-card { box-shadow: none; border: 1px solid var(--line); margin-top: 10px; }
  .side-card > .btn-wa, .side-card > .btn-dark { display: none; }           /* sabit çubukta var */
  .m-actionbar {
    display: flex; align-items: center; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 120;
    padding: 10px 10px 10px 18px; border-radius: 24px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid var(--line); box-shadow: 0 18px 40px -14px rgba(8, 11, 19, .4);
  }
  .m-ab-price { flex: 1; min-width: 0; display: grid; }
  .m-ab-price small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
  .m-ab-price b { font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-ab-price b small { font-family: var(--font); font-size: 11px; }
  .m-ab-price b.sm, .m-ab-price .price-hidden { font-family: var(--font); font-size: 12.5px; font-weight: 700; color: var(--ink-soft); white-space: normal; line-height: 1.3; }
  .m-ab-call { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: var(--bg); flex-shrink: 0; }
  .m-ab-call svg { width: 21px; height: 21px; }
  .m-ab-wa { height: 50px; padding: 0 14px; border-radius: 16px; display: flex; align-items: center; gap: 8px; background: #25d366; color: #fff; font-weight: 800; font-size: 15px; flex-shrink: 0; }
  .m-ab-wa svg { width: 21px; height: 21px; }
  .lightbox { padding: 0; }
  .lightbox img { border-radius: 0; max-height: 100dvh; }
  .lb-prev, .lb-next { bottom: 30px; top: auto; }
  .lb-close { top: calc(20px + env(safe-area-inset-top)); right: 16px; }
}

/* =========================================================
   Revizyon: derli toplu ilan kartları, detay tipografisi,
   kaydırma odak efekti, paylaşım çekmecesi
   ========================================================= */
@media (max-width: 768px) {
  /* Galeri butonları içerik kartının üstünde kalsın (tam tıklanabilir) */
  .m-fbtn.back, .m-ftop { bottom: 40px; z-index: 5; }
  .m-count { bottom: 48px; z-index: 5; }
  #detail { z-index: 3; }

  /* Yatay şeritte odak: ortadaki kart tam, kenardakiler hafif geride */
  .m-ab-offer { background: color-mix(in srgb, var(--gold) 16%, var(--surface)) !important; color: var(--gold-deep) !important; border: 1.5px solid var(--gold); font-size: 20px; font-weight: 800; }
  .m-ab-gold { background: var(--gold) !important; color: var(--on-accent) !important; }
  .m-row[data-talep] { border-top: 0; margin-top: 0; border-bottom: 1px solid var(--line); }
  .card .btn-similar { padding: 14px 12px; }
  .m-favrow { margin-top: 0; border-top: 0; border-bottom: 1px solid var(--line); font-size: 18px; padding: 17px 4px; }
  .m-favrow svg:first-child { width: 22px; height: 22px; }
  .m-favrow .m-badge { position: static; margin-left: 4px; }
  .m-snap > *, .m-hscroll > * { transition: transform .45s var(--ease), opacity .45s; transform: scale(.94); opacity: .75; }
  .m-snap > .m-act, .m-hscroll > .m-act { transform: none; opacity: 1; }
  .m-snap > .reveal, .m-snap > .reveal.in { transition: transform .45s var(--ease), opacity .45s; }

  /* ---------- İlan kartı: derli toplu ---------- */
  .card-body { padding: 14px 16px 16px; gap: 0; }
  .card-loc { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-deep); }
  :root[data-theme="dark"] .card-loc { color: var(--gold); }
  .card-loc svg { width: 13px; height: 13px; }
  .card-title { font-size: 17px; line-height: 1.32; margin: 6px 0 12px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.64em; }
  .card-specs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .card-specs span { justify-content: center; gap: 6px; padding: 10px 4px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
  .card-specs span + span { border-left: 1px solid var(--line); }
  .card-specs svg { width: 15px; height: 15px; color: var(--gold); }
  .card-foot { padding-top: 14px; gap: 10px; }
  .price { font-size: 22px; }
  .price-hidden { font-size: 12.5px; }
  .tag { font-size: 11px; padding: 5px 10px; }

  /* ---------- İlan detayı: derli toplu metin ---------- */
  .detail-head { display: grid; gap: 6px; }
  .detail-head > div:first-child > div:first-child { gap: 6px !important; }
  .detail-head .tag { font-size: 11px; }
  .detail-head h1 { font-size: 26px; line-height: 1.18; margin: 10px 0 6px; }
  .detail-head .card-loc { font-size: 12.5px; }
  .detail-price { font-size: 28px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .detail-price small { display: inline; font-size: 12px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 18px 0 6px; }
  .spec { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; }
  .spec svg { grid-row: span 2; width: 22px; height: 22px; margin: 0; }
  .spec span { font-size: 11.5px; line-height: 1.2; }
  .spec strong { font-size: 15px; line-height: 1.2; }
  .block { padding: 22px 0; }
  .block h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 800; }
  .block p { font-size: 15px; line-height: 1.7; }
  .amenities { display: flex; flex-wrap: wrap; gap: 8px; }
  .amenities div { padding: 8px 12px; border-radius: 100px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; gap: 6px; }
  .amenities svg { width: 15px; height: 15px; }
  .info-table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
  .info-table div { padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--line); }
  .info-table div:last-child { border-bottom: 0; }
  .info-table div:nth-child(even) { background: color-mix(in srgb, var(--bg) 60%, transparent); }
  .side-card { padding: 20px; border-radius: 20px; }
  .side-card .share { display: none; }                         /* paylaşım galeride */

  /* ---------- Paylaşım çekmecesi ---------- */
  .m-share { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 4px; }
  .m-share > * { display: grid; justify-items: center; gap: 8px; padding: 16px 6px; border-radius: 18px; background: var(--bg); font-size: 12.5px; font-weight: 700; }
  .m-share svg { width: 26px; height: 26px; padding: 0; }
  .m-share .s-wa svg { color: #25d366; } .m-share .s-tg svg { color: #229ed9; } .m-share .s-fb svg { color: #1877f2; }
  .m-share .s-sms svg, .m-share .s-copy svg { color: var(--gold-deep); }
  .m-share-url { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-size: 12px; color: var(--muted); word-break: break-all; }

  /* Bölüm girişleri mobilde sağdan kayarak gelir */
  .m-snap > .reveal { opacity: .75; transform: scale(.94); }           /* şerit kartları kaydırmadan bağımsız: odak efekti yeterli */
  .m-snap > .reveal.m-act { opacity: 1; transform: none; }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .m-sheet-panel, .m-tabbar, .filters { transition-duration: .01s !important; }
}

/* Koyu footer — telefon (akordeon çizgileri ve renkler koyu zemine göre) */
@media (max-width: 768px) {
  .footer { margin-top: 70px; padding: 50px 0 0; }
  .footer-top { padding-bottom: 20px; }
  .footer-top > div:not(.footer-about) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .footer-top > div:not(.footer-about) > h5 { color: #f3efe6; }
  .footer-bottom { padding: 18px 0 calc(22px + env(safe-area-inset-bottom)); }
}

/* Footer (telefon): logo bloğu ortada, sütunlar akordeon; yasal sayfa */
@media (max-width: 768px) {
  .footer-about .newsletter { margin: 18px auto 0; max-width: 360px; }
  .yasal-wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-bottom: 50px; }
  .yasal-menu { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 0 16px 4px; }
  .yasal-menu::-webkit-scrollbar { display: none; }
  .yasal-menu a { flex: none; white-space: nowrap; border: 1px solid var(--line); border-radius: 99px; padding: 9px 14px; }
  .yasal-metin { padding: 22px 18px; }
}

/* =========================================================
   MOBİL DÜZENLEME v3 — sakin hareket, derli toplu bölümler, profesyonel footer
   ========================================================= */
@media (max-width: 768px) {
  /* 1) Hareket: resimler ve kartlar artık yukarı-aşağı kaymaz, yalnızca yumuşakça belirir */
  .reveal { transform: none !important; transition: opacity .6s ease !important; }
  .m-snap > .reveal, .m-snap > .reveal.in, .m-snap > .reveal.m-act { transform: none !important; opacity: 1; transition: opacity .35s ease !important; }
  .m-snap > .reveal:not(.m-act) { opacity: .7; }
  .card-media img, .card:hover .card-media img { transform: none !important; }
  .card:hover { transform: none; }
  .rx-imgs img, .rx-imgs img.on { transform: none !important; transition: opacity .8s ease; }
  .rx-stage.swap .rx-info > *, .rx-stage.swap .rx-card { animation: rxFade .5s ease both !important; }
  @keyframes rxFade { from { opacity: 0; } to { opacity: 1; } }
  .hw-card, .hw-card:nth-child(even) { animation: none !important; transform: none !important; }

  /* 2) Bölüm aralıkları biraz daha sıkı, sayfa daha kısa */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 26px; }

  /* 3) Vitrin filtreleri tek satır, yana kayar */
  #homePills, .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 4px; }
  #homePills::-webkit-scrollbar, .pills::-webkit-scrollbar { display: none; }
  .pills .pill { flex: none; }

  /* 4) İlçe sahnesi: fotoğraf görünsün (son ilan kartı telefonda gizli) */
  .rx-card { display: none; }
  .rx-stage { height: 400px; }

  /* 5) Neden Nupel: daha kısa logo alanı, sıkı özellik kartları */
  .why { padding: 52px 0; }
  .why-logo { min-height: 0; padding: 46px 18px 128px; }
  .wa-p { font-size: 15px; line-height: 1.7; }
  .wa-feat .feature { padding: 16px; gap: 14px; }
  .counters { margin-top: 36px; padding-top: 28px; }

  /* 6) Footer: tek sütun, tam genişlik açılır satırlar, hızlı iletişim */
  .footer { margin-top: 48px; padding: 44px 0 0; border-radius: 28px 28px 0 0; }
  .footer-top { display: block; padding-bottom: 8px; }
  .footer-about { text-align: center; padding: 0 0 26px; }
  .footer-about .footer-logo { display: inline-block; }
  .footer .lockup { --lk-h: 46px; --lk-n: 22px; }
  .footer-about p { margin: 14px auto 18px; max-width: 320px; font-size: 14px; }
  .footer-about .socials { justify-content: center; }
  .footer-about .newsletter { margin: 18px auto 0; max-width: 100%; }
  .footer .footer-top > .f-col { border-top: 1px solid rgba(255, 255, 255, .09); }
  .footer .footer-top > .f-col:last-child { border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .footer .footer-top > .f-col > h5 { margin: 0; padding: 17px 2px; border: 0; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; color: var(--gold-2); cursor: pointer; }
  .footer .footer-top > .f-col > h5::after { content: ""; width: 9px; height: 9px; border-right: 1.6px solid var(--gold-2); border-bottom: 1.6px solid var(--gold-2); transform: rotate(45deg) translateY(-3px); transition: transform .3s; font-size: 0; }
  .footer .footer-top > .f-col.m-open > h5::after { transform: rotate(-135deg) translateY(-2px); }
  .footer .footer-top > .f-col > :not(h5) { display: none; }
  .footer .footer-top > .f-col.m-open > ul { display: grid; gap: 4px; padding: 0 2px 16px; }
  .footer .footer-top > .f-col.m-open > .g-badge { display: inline-flex; margin-bottom: 16px; }
  .footer .footer-top > .f-col ul a, .footer .footer-top > .f-col .contact-list span { font-size: 14.5px; display: block; padding: 7px 0; }
  .footer .footer-top > .f-col .contact-list li { grid-template-columns: 18px 1fr; align-items: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 0 calc(96px + env(safe-area-inset-bottom)); font-size: 12px; }
}