/* MK Gayrimenkul V6 - Modern UX katmanı
   Mevcut 3 temayı ve PHP/SQL yapısını değiştirmeden etkileşim, erişilebilirlik ve kart deneyimini geliştirir. */
:root{--modern-ring:0 0 0 3px rgba(45,108,223,.18);--modern-ease:cubic-bezier(.22,.61,.36,1)}
html{scroll-padding-top:90px}
body{overflow-x:hidden}
.skip-link{position:fixed;left:16px;top:10px;z-index:9999;transform:translateY(-150%);background:#111;color:#fff;padding:10px 14px;border-radius:10px;font-size:13px;font-weight:800;transition:transform .18s}
.skip-link:focus{transform:translateY(0)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none;box-shadow:var(--modern-ring)}
.site-header{transition:box-shadow .22s ease,background .22s ease,transform .22s ease}
.site-header.is-scrolled{box-shadow:0 10px 34px rgba(20,28,38,.12)}
.header-inner{position:relative}
.header-favorite{display:inline-flex;align-items:center;gap:7px;min-height:38px;border:1px solid rgba(255,255,255,.17);background:rgba(255,255,255,.08);color:#fff;border-radius:999px;padding:0 11px;cursor:pointer;font-weight:800;white-space:nowrap}
.header-favorite>span{font-size:19px;line-height:1}.header-favorite>em{font-style:normal;font-size:11px}.header-favorite>b{min-width:19px;height:19px;border-radius:999px;padding:0 5px;display:grid;place-items:center;background:var(--primary);color:#151515;font-size:9px}
body.theme2 .header-favorite{border-color:#dfe5ed;background:#f5f8fc;color:#1b2e44}body.theme2 .header-favorite>b{background:#2f6fed;color:#fff}
body.theme3 .header-favorite{border-color:rgba(255,255,255,.13);background:#23483c;color:#e8f1ed}body.theme3 .header-favorite>b{background:#35a879;color:#071a14}

/* Hero ve ana kartlarda çağdaş mikro etkileşimler */
.hero-search{transition:transform .25s var(--modern-ease),box-shadow .25s var(--modern-ease)}
.hero-search:focus-within{transform:translateY(-2px)}
.category-card,.listing-card,.project-card,.service-category-card{transition:transform .28s var(--modern-ease),box-shadow .28s var(--modern-ease),border-color .2s ease}
@media(hover:hover){.category-card:hover,.listing-card:hover,.project-card:hover,.service-category-card:hover{transform:translateY(-5px)}.listing-card:hover{box-shadow:0 18px 42px rgba(25,36,50,.13)}.listing-card:hover .listing-image img,.project-card:hover .project-image img,.service-category-card:hover>img{transform:scale(1.035)}}
.listing-image img,.project-image img,.service-category-card>img{transition:transform .45s var(--modern-ease)}
.listing-card{position:relative;isolation:isolate}
.listing-image{overflow:hidden}

/* Favori */
.favorite-btn{position:absolute;top:12px;right:12px;z-index:8;width:39px;height:39px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(20,25,31,.62);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#fff;cursor:pointer;box-shadow:0 5px 16px rgba(0,0,0,.18);transition:.2s}
.favorite-btn span{font-size:23px;line-height:1;transform:translateY(-1px)}
.favorite-btn:hover{transform:scale(1.06);background:#fff;color:#222}
.favorite-btn.is-favorite{background:#fff;color:#e24555;border-color:#fff}.favorite-btn.is-favorite span{font-size:0}.favorite-btn.is-favorite span:after{content:"♥";font-size:21px}
.detail-favorite-btn{margin-top:10px;align-self:flex-end;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--text);cursor:pointer;font-weight:800;font-size:11px;transition:.2s}
.detail-favorite-btn span{font-size:19px}.detail-favorite-btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(20,28,38,.08)}.detail-favorite-btn.is-favorite{color:#d83e50;border-color:#efb9c0;background:#fff7f8}.detail-favorite-btn.is-favorite span{font-size:0}.detail-favorite-btn.is-favorite span:after{content:"♥";font-size:18px}
body.theme3 .detail-favorite-btn{background:#eef4f1;border-color:#d4e3dc;color:#17372d}

/* Modern güven / özellik şeridi */
.modern-trust-strip{padding:17px 0;background:rgba(255,255,255,.76);border-top:1px solid rgba(110,125,140,.10);border-bottom:1px solid rgba(110,125,140,.12);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.modern-trust-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.trust-item{display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:14px;min-width:0}
.trust-item>span{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 13%,#fff);color:var(--text);font-size:11px;font-weight:900}
.trust-item>div{display:grid;min-width:0}.trust-item strong{font-size:12px}.trust-item small{font-size:9px;color:var(--muted);margin-top:2px;line-height:1.35}
body.theme2 .modern-trust-strip{background:#fff}body.theme2 .trust-item>span{background:#eef4ff;color:#2f6fed}
body.theme3 .modern-trust-strip{background:#142821;border-color:rgba(255,255,255,.06)}body.theme3 .trust-item{color:#fff}body.theme3 .trust-item small{color:#9fb5ad}body.theme3 .trust-item>span{background:#23483c;color:#7fe0b8}

/* Aktif filtre çipleri */
.active-filter-bar{display:flex;align-items:flex-start;gap:12px;margin:0 0 15px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:0 5px 18px rgba(20,28,38,.035)}
.active-filter-bar>strong{font-size:10px;white-space:nowrap;padding-top:7px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.active-filter-chips{display:flex;gap:7px;flex-wrap:wrap}
.active-filter-chips a{display:inline-flex;align-items:center;gap:7px;min-height:29px;padding:0 9px;border-radius:999px;background:#f1f4f7;color:#34404c;font-size:10px;font-weight:800;transition:.18s}
.active-filter-chips a b{font-size:16px;line-height:1;color:#7c8792}.active-filter-chips a:hover{background:#e7ecf1}.active-filter-chips .clear-all-chip{background:transparent;color:#b33a45;border:1px solid #efc9cd}
body.theme2 .active-filter-chips a:not(.clear-all-chip){background:#edf4ff;color:#285da8}
body.theme3 .active-filter-bar{background:#fffdf9;border-color:#dfdfd7}body.theme3 .active-filter-chips a:not(.clear-all-chip){background:#edf3ef;color:#285d4a}

/* Son incelenenler */
.recently-viewed-section{padding-top:50px;padding-bottom:26px}.recently-viewed-section[hidden]{display:none!important}.recent-clear{border:0;background:transparent;color:var(--muted);font-size:10px;font-weight:800;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.recent-listing-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.recent-listing-card{display:block;border:1px solid var(--line);border-radius:16px;background:var(--card);overflow:hidden;box-shadow:0 7px 22px rgba(20,28,38,.045);transition:.24s var(--modern-ease);min-width:0}.recent-listing-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(20,28,38,.1)}
.recent-listing-card>div:first-child{height:125px;overflow:hidden;background:#eef1f4}.recent-listing-card img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.recent-listing-card:hover img{transform:scale(1.04)}
.recent-listing-card .recent-body{padding:11px;display:grid;gap:5px}.recent-listing-card small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-listing-card strong{font-size:11px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:30px}.recent-listing-card b{font-size:13px;color:var(--primary-dark)}
body.theme3 .recent-listing-card{background:#fffdf9;border:0;border-radius:22px;box-shadow:0 14px 34px rgba(20,40,33,.07)}body.theme3 .recent-listing-card strong{font-family:Georgia,"Times New Roman",serif;font-size:13px}

/* Favori çekmecesi */
.favorite-drawer-backdrop{position:fixed;inset:0;z-index:600;background:rgba(8,12,18,.46);opacity:0;transition:opacity .22s;backdrop-filter:blur(2px)}
.favorite-drawer-backdrop.open{opacity:1}.favorite-drawer-backdrop[hidden]{display:none}
.favorite-drawer{position:fixed;right:0;top:0;bottom:0;z-index:610;width:min(430px,94vw);background:#fff;color:#202830;box-shadow:-24px 0 70px rgba(10,16,24,.2);transform:translateX(105%);transition:transform .28s var(--modern-ease);display:grid;grid-template-rows:auto 1fr auto}
.favorite-drawer.open{transform:translateX(0)}
.favorite-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:20px;border-bottom:1px solid #e8ecf0}.favorite-drawer-head>div{display:grid;gap:3px}.favorite-drawer-head small{font-size:9px;letter-spacing:.11em;color:#8a949e;font-weight:900}.favorite-drawer-head strong{font-size:21px}.favorite-drawer-head button{width:38px;height:38px;border:1px solid #e1e6eb;border-radius:11px;background:#fff;font-size:24px;cursor:pointer}.favorite-drawer-list{padding:14px;overflow:auto;display:grid;align-content:start;gap:10px}.favorite-empty{padding:45px 20px;text-align:center;color:#7d8792}.favorite-empty span{display:grid;width:55px;height:55px;place-items:center;margin:0 auto 10px;border-radius:50%;background:#f3f5f7;font-size:28px}.favorite-empty strong{display:block;color:#28323c;margin-bottom:5px}.favorite-empty small{font-size:10px;line-height:1.5}
.favorite-row{display:grid;grid-template-columns:92px minmax(0,1fr) 34px;gap:10px;align-items:center;border:1px solid #e4e8ec;border-radius:14px;padding:8px;background:#fff}.favorite-row>a:first-child{height:72px;border-radius:10px;overflow:hidden;background:#eef1f4}.favorite-row img{width:100%;height:100%;object-fit:cover}.favorite-row .fav-info{min-width:0;display:grid;gap:4px}.favorite-row .fav-info strong{font-size:11px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.favorite-row .fav-info b{font-size:12px}.favorite-row .fav-info small{font-size:9px;color:#7f8993}.favorite-row>button{width:32px;height:32px;border:0;border-radius:50%;background:#fff1f2;color:#c83749;font-size:17px;cursor:pointer}
.favorite-drawer-foot{padding:14px;border-top:1px solid #e8ecf0}.favorite-drawer-foot button{width:100%;min-height:42px;border:1px solid #e0e5ea;border-radius:11px;background:#f7f9fa;color:#5d6771;font-size:11px;font-weight:800;cursor:pointer}
body.favorites-open{overflow:hidden}

/* Yüzen hızlı aksiyonlar */
.floating-whatsapp{position:fixed;right:22px;bottom:24px;z-index:200;display:flex;align-items:center;gap:8px;min-height:48px;padding:0 14px 0 8px;border-radius:999px;background:#1fa968;color:#fff;box-shadow:0 12px 30px rgba(22,129,79,.28);font-size:11px;font-weight:900;transition:.2s}.floating-whatsapp span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.17);font-size:10px}.floating-whatsapp:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(22,129,79,.34)}
.back-to-top{position:fixed;right:24px;bottom:83px;z-index:190;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--text);box-shadow:0 9px 24px rgba(20,28,38,.13);cursor:pointer;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.back-to-top.visible{opacity:1;transform:none;pointer-events:auto}

/* Detay mobil aksiyon barı */
.mobile-detail-actions{display:none}
.seller-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.seller-actions a{grid-column:1/-1}

/* Görünürlük animasyonu: JS yoksa normal görünür, class JS tarafından sonradan eklenir */
.modern-reveal{opacity:0;transform:translateY(16px);transition:opacity .55s var(--modern-ease),transform .55s var(--modern-ease)}.modern-reveal.is-visible{opacity:1;transform:none}

@media(max-width:1120px){.recent-listing-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.modern-trust-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
  .header-favorite{margin-left:auto;margin-right:8px}.header-favorite em{display:none}.header-favorite{width:39px;padding:0;justify-content:center;position:relative}.header-favorite>b{position:absolute;right:-4px;top:-5px;min-width:17px;height:17px}
  .modern-trust-strip{padding:10px 0}.modern-trust-grid{display:flex;overflow:auto;gap:8px;padding-right:12px;scrollbar-width:none}.modern-trust-grid::-webkit-scrollbar{display:none}.trust-item{flex:0 0 240px;background:rgba(255,255,255,.65);border:1px solid rgba(110,125,140,.1)}body.theme3 .trust-item{background:#1c3d32;border-color:#285244}
  .active-filter-bar{display:block;padding:10px}.active-filter-bar>strong{display:block;margin-bottom:7px;padding:0}
  .recent-listing-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .floating-whatsapp{bottom:82px;right:14px}.back-to-top{bottom:137px;right:17px}
}
@media(max-width:700px){
  .recently-viewed-section{padding-top:34px}.recent-listing-grid{display:flex;overflow:auto;gap:10px;margin-right:-11px;padding-right:11px;scroll-snap-type:x proximity}.recent-listing-card{flex:0 0 72vw;max-width:290px;scroll-snap-align:start}.recent-listing-card>div:first-child{height:145px}
  .detail-favorite-btn{align-self:flex-start}
  .mobile-detail-actions{position:fixed;left:10px;right:10px;bottom:72px;z-index:260;display:flex;min-height:56px;padding:6px;border-radius:17px;background:rgba(22,28,34,.94);backdrop-filter:blur(14px);box-shadow:0 15px 40px rgba(0,0,0,.22)}
  .mobile-detail-actions>a,.mobile-detail-actions>button{flex:1;border:0;background:transparent;color:#fff;display:grid;place-items:center;align-content:center;gap:2px;border-radius:12px;cursor:pointer}.mobile-detail-actions>a+*,.mobile-detail-actions>button+*{border-left:1px solid rgba(255,255,255,.12)}.mobile-detail-actions span{font-size:16px}.mobile-detail-actions b{font-size:9px}.mobile-detail-actions .is-favorite{color:#ffb0b9}
  .floating-whatsapp{display:none}
  body:has(.mobile-detail-actions) .back-to-top{bottom:139px}
}
@media(max-width:520px){.modern-trust-grid{width:100%;margin:0;padding-left:11px}.trust-item{flex-basis:215px}.recent-listing-card{flex-basis:78vw}.favorite-drawer{width:100vw}.favorite-row{grid-template-columns:78px minmax(0,1fr) 32px}.favorite-row>a:first-child{height:64px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.modern-reveal{opacity:1;transform:none}}
/* Çakışma ve uyumluluk düzeltmeleri */
.trust-item>span{background:#f7f3dd;background:color-mix(in srgb,var(--primary) 13%,#fff)}
.tour-badge{right:58px!important}
body.theme3 .category-card.active.modern-reveal.is-visible{transform:translateY(-7px)}
@media(max-width:900px){.main-nav{z-index:20}.header-favorite{z-index:21}}
