﻿/* =====================================================
   KIRIKKALE PORTAL — Shared Stylesheet
   ===================================================== */

/* ── Variables ──────────────────────────────────────── */
:root {
  --primary:       #D10024;
  --primary-dark:  #9A001D;
  --primary-light: #FFEBEF;
  --accent:        #FF6F00;
  --blue:          #D10024;
  --blue-light:    #FFEBEF;
  --green:         #2E7D32;
  --green-light:   #E8F5E9;
  --yellow:        #F57F17;
  --yellow-light:  #FFF8E1;
  --text-dark:     #1A1A2E;
  --text-mid:      #4A4A68;
  --text-soft:     #8888A4;
  --bg:            #F4F6FB;
  --card-bg:       #FFFFFF;
  --border:        #E8EAF0;
  --shadow:        0 4px 16px rgba(0,0,0,.10);
  --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
  --shadow-md:     0 6px 24px rgba(0,0,0,.10);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.14);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-full:   9999px;
  --header-h:      72px;
  --hdr-navy:      #001A33;
  --hdr-cta:       #E31E24;
  --hdr-line:      #E0E0E0;
  --font:          'Poppins', sans-serif;
  --transition:    .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Mobil alt menü + orta FAB için (masaüstünde 1024+ sıfırlanır) */
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; height: auto; }
.listing-card-img, .my-ad-img, .gallery-main, .gallery-thumb, .similar-card img, .fav-card img { max-width: 100%; object-fit: cover; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; background: none; }

/* ── Layout ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.section { padding: 24px 0; }
.section-head {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
}
.section-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  margin-left: auto;
}
.section-link:hover { text-decoration: underline; }

/* ── Header — tek satır: logo sol, menü, arama ikonu, |, giriş / CTA ── */

.header {
  position: sticky;
  top: 0; z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
}
/*
 * Mobil: üst bar sabit (app shell) — sticky bazen body overflow ile kırılır; fixed + main üst boşluk.
 * Çentik: env(safe-area-inset-top) + viewport-fit=cover (header.php).
 */
@media (max-width: 1023px) {
  /* Masaüstü orta menü — yalnız ≥1024px (≤1023 mobil/app; WebView ~980px dahil); çakışan stile karşı sıkı kapatma */
  .hdr-desk-nav {
    display: none !important;
  }
  .header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    padding-top: env(safe-area-inset-top, 0px);
    height: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }
  .header .header-inner.container {
    padding-left: 6px;
  }
  .header .hdr-left {
    margin-left: -4px;
  }
  .header .header-inner {
    height: var(--header-h);
    min-height: var(--header-h);
  }
  #main-content {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  }
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
/* logo.png geniş tuval + beyaz boşluk: çerçeve + object-fit cover ile marka büyütülür */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-shrink: 0;
  padding: 4px 6px 4px 2px;
  box-sizing: border-box;
}
/* Mobil: sabit yükseklik + dar üst sınır → vw kayması azalır; tablet/PC: sınırlı clamp */
.logo-frame {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 30px;
  width: min(188px, 44vw);
  max-height: calc(var(--header-h) - 16px);
  border-radius: 2px;
}
/* absolute + inset: üst öğede position yoksa (eski/parça CSS önbelleği) görsel viewport’a kaçabiliyordu */
.header .logo .logo-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  flex-shrink: 0;
}
@media (min-width: 600px) {
  .logo-frame {
    height: clamp(34px, 2vw + 26px, 40px);
    width: clamp(172px, 28vw, 280px);
  }
}
@media (min-width: 1024px) {
  :root {
    --header-h: 72px;
  }
  .header-inner {
    gap: 8px;
  }
  .logo-frame {
    height: 36px;
    width: min(210px, 15vw);
  }
  .search-input {
    padding: 8px 14px 8px 38px;
    font-size: .82rem;
  }
  .search-wrap i {
    left: 12px;
    font-size: .84rem;
  }
  .btn-login {
    padding: 4px 12px 4px 4px;
    font-size: .78rem;
  }
  .btn-login .hdr-av {
    width: 28px;
    height: 28px;
    font-size: .68rem;
  }
}

/* ── Masaüstü üst bar (≥1024px) – marka, menü, CTA ── */
.hdr-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}
@media (max-width: 1023px) {
  .hdr-left { gap: 0; }
}
@media (min-width: 1024px) {
  .header .logo {
    padding: 2px 4px 2px 0;
    max-width: none;
  }
}
/* Orta menü — flex ortada; taşma yatay kaydır (üst üste binme yok) */
.hdr-desk-nav {
  display: none;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  justify-content: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .hdr-desk-nav {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .hdr-desk-nav::-webkit-scrollbar {
    height: 5px;
  }
  .hdr-desk-nav::-webkit-scrollbar-track {
    background: transparent;
  }
  .hdr-desk-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 26, 51, 0.2);
    border-radius: 4px;
  }
  .header-inner { gap: 10px; min-height: 72px; height: auto; }
  .header { height: auto; min-height: 72px; }
  .header .header-inner.container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .header .hdr-left {
    margin-left: -4px;
  }
  .header .nav-actions {
    flex-shrink: 0;
    gap: 8px;
  }
  /* Arama, |, Giriş/hesap, CTA — aynı aralık (misafir + üye) */
  .hdr-desk-trailing {
    flex: 0 0 auto;
    flex-shrink: 0;
    gap: 6px 8px;
    position: relative;
    z-index: 2;
  }
}
/* Sarmalayıcı: arama + | + nav-actions + CTA */
.hdr-desk-trailing {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 0 1 auto;
}
@media (min-width: 1024px) {
  .hdr-desk-trailing {
    flex: 0 0 auto;
  }
}
.hdr-desk-nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  /* İki satıra düşerse satırlar bitişik kalmasın (üst üste binme) */
  row-gap: 6px;
  column-gap: 18px;
  gap: 6px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Masaüstü: tek satır, ortalanmış, misafir/üye aynı aralık */
@media (min-width: 1024px) {
  .hdr-desk-nav-list {
    flex-wrap: nowrap;
    row-gap: 0;
    justify-content: center;
    column-gap: clamp(5px, 0.5vw, 16px);
    gap: 0 clamp(5px, 0.5vw, 16px);
  }
}
.hdr-desk-a {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--hdr-navy);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
@media (min-width: 1024px) {
  .hdr-desk-a {
    font-size: clamp(0.73rem, 0.5rem + 0.4vw, 0.84rem);
  }
}
/* Masaüstü: üst barda sadece avatar (isim dropdown’da) — Giriş satırı ile aynı yükseklik hissi */
@media (min-width: 600px) {
  .header .hdr-prof-name {
    display: none !important;
  }
  .header .hdr-prof-btn {
    padding: 3px;
    border-radius: 50%;
    background: none;
    border: 2px solid var(--border);
    box-shadow: none;
  }
  .header .hdr-prof-btn .hdr-av {
    width: 32px;
    height: 32px;
  }
  .header .hdr-prof-btn:hover {
    border-color: var(--primary);
  }
}
.hdr-desk-a:hover {
  color: var(--primary);
}
.hdr-desk-a.is-active,
.hdr-desk-a[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
  border-bottom-color: var(--primary);
}
/* Arama: geniş alan 1023’e kadar; geniş masaüstünde sadece ikon */
@media (min-width: 1024px) {
  .header .search-wrap {
    display: none !important;
  }
}
.hdr-desk-search-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--hdr-line);
  background: #fff;
  color: var(--text-mid);
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.hdr-desk-search-btn:hover {
  background: #f8f8fb;
  color: var(--hdr-navy);
  border-color: #c8c8d8;
}
@media (min-width: 1024px) {
  .hdr-desk-search-btn { display: flex; }
}
/* Arama sonrası dikey çizgi; misafir + oturum aynı bant */
.hdr-desk-vsep {
  display: none;
  flex-shrink: 0;
  align-self: center;
  color: #c5c6d0;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1;
  padding: 0 2px 0 0;
  user-select: none;
}
@media (min-width: 1024px) {
  .hdr-desk-vsep { display: inline-block; }
}
@media (max-width: 1023px) {
  .hdr-desk-vsep { display: none !important; }
}
/* Masaüstü: İlan / İşletme + Giriş — misafir ve üye aynı boyut */
@media (min-width: 1024px) {
  .header .btn-hdr-ilan.kp-brand-cta {
    background: linear-gradient(132deg, #e53935 0%, #d81b60 48%, #5e35b1 78%, #1565c0 100%);
    font-weight: 700;
  }
  .header .btn-hdr-ilan.kp-brand-cta:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 20px rgba(94, 53, 177, 0.35);
  }
  .header .btn-hdr-ilan,
  .header .btn-hdr-isletme {
    padding: 8px 12px;
    font-size: 0.74rem;
    gap: 5px;
  }
  .header .btn-login.btn-login--outside {
    min-height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    font-size: 0.76rem;
  }
  .header .btn-login,
  a.btn-login {
    color: var(--hdr-navy);
    border-color: var(--hdr-line) !important;
    background: #fff !important;
    font-weight: 800;
    box-shadow: none;
  }
  .header .btn-login:hover { border-color: #c8c8d8 !important; color: var(--hdr-navy) !important; }
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: .9rem; font-weight: 800; color: var(--primary); }
.logo-text small  { font-size: .62rem; font-weight: 500; color: var(--text-soft); text-transform: uppercase; letter-spacing: 1px; }

.search-wrap {
  flex: 1;
  position: relative;
  max-width: 520px;
}
.search-wrap i {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: .9rem;
  pointer-events: none;
  transition: color var(--transition);
}
.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: .85rem;
  color: var(--text-dark);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input::placeholder { color: var(--text-soft); }
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(211,47,47,.1);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-hdr-ilan, .btn-hdr-isletme {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  outline: none;
  box-sizing: border-box;
  line-height: 1.2;
}
.btn-hdr-ilan {
  background: var(--primary);
  color: #fff;
}
.btn-hdr-ilan:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-hdr-ilan:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-hdr-isletme {
  background: #fff;
  color: var(--hdr-navy);
  border: 1.5px solid var(--hdr-line);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.btn-hdr-isletme:hover {
  border-color: var(--hdr-navy);
  color: var(--hdr-navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.btn-hdr-isletme:focus-visible { outline: 2px solid var(--hdr-navy); outline-offset: 2px; }

/* KP markası — Üst İlan Ver (desktop / tablet) */
.btn-hdr-ilan.kp-brand-cta {
  background: linear-gradient(132deg, #e53935 0%, #d81b60 48%, #5e35b1 78%, #1565c0 100%);
  color: #fff;
  border: none;
  box-shadow:
    0 4px 18px rgba(211, 47, 47, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-hdr-ilan.kp-brand-cta:hover {
  filter: brightness(1.06);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 6px 22px rgba(94, 53, 177, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-hdr-ilan.kp-brand-cta:focus-visible {
  outline: 2px solid #5e35b1;
  outline-offset: 2px;
}
.kp-brand-cta-badge {
  font-size: 0.58em;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.2);
  line-height: 1;
}

/* Mobil menü alt çubuğu — “İlan Ver” (misafir) */
.mobile-menu-footer .btn-post-m.kp-brand-cta {
  background: linear-gradient(132deg, #e53935 0%, #d81b60 48%, #5e35b1 78%, #1565c0 100%);
  border: none;
  color: #fff;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(211, 47, 47, 0.3);
}
.mobile-menu-footer .btn-post-m.kp-brand-cta:hover {
  filter: brightness(1.06);
}
@media (min-width: 600px) and (max-width: 1023px) {
  .header .btn-hdr-ilan, .header .btn-hdr-isletme { padding: 7px 10px; font-size: 0.7rem; gap: 4px; }
  .header .btn-hdr-ilan i, .header .btn-hdr-isletme i { font-size: 0.72em; }
}
.btn-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
}
.btn-icon:hover { background: var(--primary-light); color: var(--primary); }
.btn-login {
  padding: 5px 14px 5px 5px;
  border-radius: var(--radius-full);
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  color: var(--text-dark);
  font-size: .8rem;
  font-weight: 700;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: none;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  outline: none;
}
.btn-login:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.1); color: var(--text-dark); }
.btn-login:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-login .hdr-av {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  background: var(--primary); color: #fff;
  font-size: .72rem; font-weight: 800;
}
.btn-login .hdr-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn-post {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-post:hover { background: var(--primary-dark); transform: translateY(-1px); }
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
/* ── Global Mobile Menu – full-screen drawer ─── */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  z-index: 1100;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s;
  visibility: hidden;
  pointer-events: none;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
[data-theme="dark"] .mobile-menu { background: rgba(16,16,24,.90); }

/* Drag handle */
.mob-drag {
  width: 40px; height: 4px; border-radius: 2px;
  background: rgba(0,0,0,.15);
  margin: 10px auto 2px;
  flex-shrink: 0; cursor: pointer;
}
[data-theme="dark"] .mob-drag { background: rgba(255,255,255,.25); }

/* User greeting bar */
.mob-user-head {
  display: flex; flex-direction: column;
  padding: 0 18px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg,#1a237e,#283593);
  color: #fff; flex-shrink: 0;
}
.mob-user-av {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; overflow: hidden; flex-shrink: 0;
}
.mob-user-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mob-user-name { font-size: .88rem; font-weight: 700; }
.mob-user-tip  { font-size: .7rem; opacity: .8; margin-top: 1px; }

/* Nav sections */
.mob-nav-section { padding: 6px 0; border-bottom: 1px solid var(--border); }
.mob-nav-section:last-child { border-bottom: none; }
.mob-nav-label {
  display: block; font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-soft); padding: 8px 18px 4px;
}
.mobile-menu a {
  padding: 10px 18px;
  font-size: .88rem; font-weight: 500;
  color: var(--text-dark);
  display: flex; align-items: center; gap: 12px;
  transition: background var(--transition);
}
.mobile-menu a:hover { background: var(--bg); }
.mobile-menu a i { width: 18px; color: var(--primary); text-align: center; flex-shrink: 0; }
.mob-logout { color: var(--primary) !important; }
.mob-logout i { color: var(--primary) !important; }

/* Footer CTA (guest) */
.mobile-menu-footer {
  display: flex; gap: 10px;
  padding: 14px 18px; margin-top: auto; flex-shrink: 0;
}
.btn-login-m, .btn-post-m {
  flex: 1; padding: 11px; border-radius: var(--radius-full);
  font-family: var(--font); font-size: .85rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
}
.btn-login-m { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-post-m  { background: var(--primary); border: 2px solid var(--primary); color: #fff; }

/* ── Mobil menü — K+P “süper uygulama” teması (#mobileMenu.mobile-menu--kp) ── */
.mobile-menu.mobile-menu--kp {
  background: #0a0b1a;
  color: #e8e9f0;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  padding-top: env(safe-area-inset-top, 0);
  /* Drawer tam ekran: alt iç boşluk yalnız güvenli alan (+ alt sekme FAB için ayrı 80px yok — menü açıkken z-index ile üsttedir). */
  padding-bottom: env(safe-area-inset-bottom, 0);
  overflow: hidden;
  min-height: 0;
  height: 100%;
}
.mobile-menu.mobile-menu--kp a {
  color: #e8e9f0;
}
.mobile-menu.mobile-menu--kp a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mob-kp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 10px 14px 6px;
}
.mob-kp-toolbar-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: background 0.2s, transform 0.15s;
}
.mob-kp-toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.mob-kp-toolbar-btn:active {
  transform: scale(0.96);
}
.mob-kp-toolbar-btn--bell {
  position: relative;
}
.mob-kp-toolbar-dot {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff1744;
  box-shadow: 0 0 0 2px #0a0b1a;
}
.mob-kp-toolbar-placeholder {
  width: 42px;
  height: 42px;
}

.mob-kp-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px 12px;
  flex-shrink: 0;
}
.mob-kp-logo-ring {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #ff0055 0%, #5e35b1 45%, #1565c0 100%);
  box-shadow:
    0 0 22px rgba(255, 0, 85, 0.35),
    0 0 28px rgba(21, 101, 192, 0.25);
}
.mob-kp-logo-ring-img {
  width: 56px;
  height: 56px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #0f1020;
}
.mob-kp-greet-line1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.mob-kp-greet-line2 {
  margin: 4px 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.52);
}

.mob-kp-tagline {
  margin: 0;
  padding: 0 18px 4px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}
.mob-kp-tagline-city { color: rgba(255, 255, 255, 0.85); }
.mob-kp-tagline-gradient {
  background: linear-gradient(90deg, #00aaff 0%, #e040fb 55%, #ff4081 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.mob-kp-tagline-sub {
  margin: 0 0 8px;
  padding: 0 18px 12px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.mob-kp-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 14px 12px;
}

.mob-nav-section--kp {
  border-bottom: none;
  padding: 4px 0 10px;
}
.mob-nav-label--kp {
  color: rgba(255, 255, 255, 0.38) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.12em !important;
  padding: 10px 8px 6px !important;
}

.mobile-menu.mobile-menu--kp .mob-nav-kp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.mobile-menu.mobile-menu--kp .mob-nav-kp-row--accent .mob-nav-kp-label {
  color: #ff5252;
}
.mobile-menu.mobile-menu--kp .mob-nav-kp-row--cta .mob-nav-kp-label {
  color: rgba(255, 255, 255, 0.95);
}
.mobile-menu.mobile-menu--kp .mob-nav-kp-row--danger .mob-nav-kp-label {
  color: #ff8a80;
}

.mob-nav-kp-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
}
.mob-nav-qi-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mob-nav-kp-thumb--ico {
  background: linear-gradient(145deg, rgba(255, 0, 85, 0.2), rgba(21, 101, 192, 0.25));
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}
.mob-nav-kp-thumb--support.mob-nav-kp-thumb--ico {
  background: linear-gradient(145deg, rgba(57, 73, 171, 0.45), rgba(21, 101, 192, 0.35));
}
.mob-nav-kp-thumb--pulse {
  color: #ffb74d;
}
.mob-nav-kp-thumb--qi-fallback i {
  color: rgba(255, 255, 255, 0.88);
}
.mob-nav-kp-label {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.mob-nav-kp-badge {
  flex-shrink: 0;
  min-width: 1.25rem;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e53935, #b71c1c);
  color: #fff;
  text-align: center;
}
.mob-nav-kp-chev {
  flex-shrink: 0;
  font-size: 0.72rem;
  opacity: 0.45;
  margin-left: 4px;
  width: auto !important;
}

.mob-kp-support-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  margin: 8px 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mob-kp-support-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 170, 255, 0.12);
  color: #fff;
  font-size: 1rem;
}
.mob-kp-support-copy strong {
  display: block;
  font-size: 0.82rem;
  color: #fff;
}
.mob-kp-support-copy span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.52);
}
.mob-kp-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(135deg, #1565c0, #00aaff);
  color: #fff !important;
  border: none;
}
.mob-kp-support-btn i {
  font-size: 0.72em;
  opacity: 0.92;
}

.mobile-menu-footer--kp {
  margin-top: auto;
  flex-shrink: 0;
  padding: 12px 14px;
  padding-bottom: max(12px, calc(10px + env(safe-area-inset-bottom, 0px)));
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.btn-login-m--kp {
  background: transparent !important;
  border: 2px solid rgba(229, 57, 70, 0.85) !important;
  color: #fff !important;
  gap: 8px;
}
.btn-login-m--kp i {
  font-size: 0.88em;
  opacity: 0.9;
}

.kp-mob-post-gradient {
  flex: 1;
  min-height: 48px;
  padding: 8px 14px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: none !important;
  background: linear-gradient(132deg, #e53935 0%, #d81b60 48%, #5e35b1 78%, #1565c0 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(211, 47, 47, 0.35);
  border-radius: 999px !important;
}
.kp-mob-post-gradient__label {
  flex: 1;
  min-width: 0;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 380px) {
  .kp-mob-post-gradient__label {
    font-size: 0.88rem;
  }
}
.kp-mob-post-gradient__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.kp-mob-post-gradient__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kp-mob-post-gradient__arrow {
  font-size: 1rem;
  opacity: 0.95;
}

.mobile-menu.mobile-menu--kp .mobile-menu-footer .kp-mob-sepet-footer {
  border-radius: 999px;
  font-weight: 700;
}

/* ── Breadcrumb ─────────────────────────────────────── */
.breadcrumb {
  padding: 10px 0;
  font-size: .78rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-soft); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { font-size: .65rem; }
.breadcrumb .current { color: var(--text-dark); font-weight: 600; }

/* ── Page Hero (subpage) ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #E53935 100%);
  padding: 28px 0 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 800; margin-bottom: 6px; }
.page-hero p  { font-size: .85rem; opacity: .88; }
.page-hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.page-hero-stat { text-align: center; }
.page-hero-stat strong { display: block; font-size: 1.2rem; font-weight: 800; }
.page-hero-stat span  { font-size: .7rem; opacity: .8; }

/* ── Filter Bar ─────────────────────────────────────── */
.filter-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}
.filter-bar-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: default;
}
.filter-bar-title .filter-toggle-arrow {
  margin-left: auto;
  transition: transform .2s;
  display: none;
}
@media (max-width: 767px) {
  .filter-bar-title { cursor: pointer; }
  .filter-bar-title .filter-toggle-arrow { display: inline-flex; }
  .filter-bar.collapsed .filter-row { display: none; }
  .filter-bar.collapsed .filter-bar-title { margin-bottom: 0; }
  .filter-bar.collapsed .filter-toggle-arrow { transform: rotate(-90deg); }
}
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 120px;
}
.filter-group label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-soft);
}
.filter-select, .filter-input {
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .82rem;
  color: var(--text-dark);
  background: var(--bg);
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.filter-select:focus, .filter-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.btn-filter {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: .84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-filter:hover { background: var(--primary-dark); }
.btn-filter-outline {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}
.btn-filter-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ── Chip Filters ───────────────────────────────────── */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 12px 0;
}
.chips::-webkit-scrollbar { height: 0; }
.chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: #fff;
  font-family: var(--font);
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-mid);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.chip:hover  { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Results Bar ────────────────────────────────────── */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.results-count {
  font-size: .82rem;
  color: var(--text-soft);
}
.results-count strong { color: var(--text-dark); }
.sort-select {
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .78rem;
  color: var(--text-mid);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
}
.sort-select:focus { outline: none; border-color: var(--primary); }
.view-toggle {
  display: flex;
  gap: 4px;
}
.view-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  color: var(--text-soft);
  border: 1.5px solid var(--border);
  background: #fff;
  transition: all var(--transition);
}
.view-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Card Grid ──────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Galeri kartı resim alanı – sabit boyut, küçük önizleme */
.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg);
}
.card-img-wrap .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-img-wrap .card-img.shimmer {
  width: 100%;
  height: 100%;
  min-height: 140px;
}

/* ── Generic Listing Card ───────────────────────────── */
.listing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.listing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.listing-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg);
}
.listing-card-img-wrap img.listing-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.listing-card-img-wrap > div.listing-card-img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.listing-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.listing-badge.green  { background: var(--green); }
.listing-badge.blue   { background: var(--blue); }
.listing-badge.orange { background: var(--accent); }
.listing-fav {
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  color: var(--text-soft);
  cursor: pointer;
  border: none;
  transition: color var(--transition);
}
.listing-fav:hover { color: var(--primary); }
.listing-card-body { padding: 14px; }
.listing-card-body h3 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.listing-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.listing-price small { font-size: .68rem; font-weight: 500; color: var(--text-soft); margin-left: 4px; }
.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .74rem;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.listing-meta span { display: flex; align-items: center; gap: 4px; }
.listing-meta i { color: var(--primary); font-size: .65rem; }
.listing-actions { display: flex; gap: 8px; }
.btn-primary {
  flex: 1;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline-sm {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-mid);
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: border-color var(--transition), color var(--transition);
}
.btn-outline-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-whatsapp {
  flex: 1;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: #25D366;
  color: #fff;
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--transition);
}
.btn-whatsapp:hover { background: #1da851; }

/* ── Tags row inside card ───────────────────────────── */
.tag-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.tag {
  font-size: .65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
}
.tag.blue   { background: var(--blue-light);  color: var(--blue);  }
.tag.green  { background: var(--green-light); color: var(--green); }
.tag.orange { background: #FFF3E0;            color: #E65100;      }
.tag.grey   { background: var(--bg);          color: var(--text-mid); border: 1px solid var(--border); }

/* ── Rating ─────────────────────────────────────────── */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--yellow-light);
  border: 1px solid #FFE082;
  border-radius: var(--radius-full);
  padding: 3px 8px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--yellow);
}
.rating i { font-size: .7rem; }

/* ── Pagination ─────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}
@media (max-width: 1023px) {
  .pagination {
    margin-bottom: 20px;
    padding-bottom: 4px;
  }
}
.page-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover  { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.dots   { border: none; background: none; cursor: default; }

/* ── Empty State ────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-soft);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { font-size: 1rem; font-weight: 700; color: var(--text-mid); margin-bottom: 8px; }
.empty-state p  { font-size: .84rem; }

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.8);
  padding: 40px 0 24px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-brand .logo-icon { background: rgba(255,255,255,.15); }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text small  { color: rgba(255,255,255,.5); }
.footer-brand-logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 2px;
}
.footer-brand-logo-img {
  display: block;
  height: clamp(48px, 5vw, 64px);
  width: auto;
  max-width: min(240px, 100%);
  object-fit: contain;
  object-position: left center;
}
.footer-brand p { margin-top: 12px; font-size: .8rem; line-height: 1.7; color: rgba(255,255,255,.55); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.social-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  transition: background var(--transition), color var(--transition);
}
.social-btn:hover { background: var(--primary); color: #fff; }
.footer-col h2 {
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li a i { font-size: .62rem; color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.footer-bottom p { font-size: .74rem; color: rgba(255,255,255,.4); }
.made-with { font-size: .74rem; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 4px; }
.made-with i { color: var(--primary); }

/* ── Bottom Nav ─────────────────────────────────────── */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  font-size: .6rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  gap: 3px;
  transition: color var(--transition);
  font-family: var(--font);
}
.bottom-nav-item i { font-size: 1.1rem; }
.bottom-nav-item.active { color: var(--primary); }

/*
 * Orta FAB — yalnızca marka PNG (assets/img/kp-fab-logo.png), metin/FA + yok.
 * panel.php .bnav ile aynı.
 */
@media (max-width: 1023px) {
  .bottom-nav,
  .bnav {
    align-items: flex-end;
  }

  /* Orta slot: yüksenen FAB kapısı — boyut HER sayfada aynı */
  .bottom-nav a.bottom-nav-item--fab.kp-brand-fab,
  .bnav a.bn-add-btn {
    position: relative;
    top: -12px;
    width: 58px;
    min-height: auto;
    height: auto;
    flex: 0 0 58px;
    margin: 0 -2px;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: transparent !important;
    text-decoration: none;
  }

  .bottom-nav .kp-fab-surface,
  .bnav .kp-fab-surface {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    box-sizing: border-box;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 3px solid #fff;
    box-shadow:
      0 10px 26px rgba(0, 0, 0, 0.14),
      0 4px 14px rgba(211, 47, 47, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .bottom-nav .kp-fab-img,
  .bnav .kp-fab-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
  }

  .bottom-nav .bottom-nav-item--fab.kp-brand-fab.active {
    opacity: 1;
  }

  .bnav a.bn-add-btn:hover .kp-fab-surface,
  .bottom-nav a.bottom-nav-item--fab.kp-brand-fab:hover .kp-fab-surface {
    transform: translateY(-1px);
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.16),
      0 6px 16px rgba(211, 47, 47, 0.26);
  }

  .bottom-nav a.bottom-nav-item--fab.kp-brand-fab:focus-visible,
  .bnav a.bn-add-btn:focus-visible {
    outline: none;
  }
  .bottom-nav a.bottom-nav-item--fab.kp-brand-fab:focus-visible .kp-fab-surface,
  .bnav a.bn-add-btn:focus-visible .kp-fab-surface {
    outline: 3px solid rgba(211, 47, 47, 0.55);
    outline-offset: 3px;
  }

  body.page-home .bottom-nav {
    background: #fff;
    border-top: 1px solid #ebebf0;
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    padding-top: 0;
  }
  body.page-home .bottom-nav .bottom-nav-item {
    min-height: 52px;
    padding-bottom: 6px;
  }
  body.page-home .bottom-nav .bottom-nav-item.active {
    color: var(--primary);
  }
  body.page-home .bottom-nav .bottom-nav-item.active i {
    color: var(--primary);
  }
}

/* Restoran detay: alt şerit Sepet rozeti */
.kp-sepet-badge-nav {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #D32F2F;
  color: #fff;
  font-size: .55rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
}
.kp-sepet-nav-ic { line-height: 0; }

/* Mobil menü çekmecesi: Sepet adedi */
.mob-nav-section a .kp-drawer-sepet-badge,
.mobile-menu-footer .kp-drawer-sepet-badge {
  margin-left: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}
.mobile-menu-footer .kp-mob-sepet-footer {
  position: relative;
}
.kp-mob-drawer-sepet-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.kp-mob-drawer-sepet-link .kp-drawer-sepet-badge {
  margin-left: auto;
}

/* ── Utility ─────────────────────────────────────────── */
.text-primary  { color: var(--primary); }
.text-green    { color: var(--green); }
.text-blue     { color: var(--blue); }
.text-soft     { color: var(--text-soft); }
.fw-700        { font-weight: 700; }
.fw-600        { font-weight: 600; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.gap-8         { gap: 8px; }

/* ── Shimmer / skeleton ─────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
}

/* ── Responsive ─────────────────────────────────────── */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-login { display: flex; }
  .filter-row { flex-wrap: nowrap; }
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  #main-content { padding-top: 0 !important; }
  .bottom-nav { display: none; }
  .hamburger  { display: none; }
  .btn-login  { display: flex; }
  .card-grid  { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .section { padding: 32px 0; }
}
@media (min-width: 1100px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================
   THEME SYSTEM
   ===================================================== */

/* ── Dark Theme ──────────────────────────────────── */
[data-theme="dark"] {
  --primary:       #EF5350;
  --primary-dark:  #C62828;
  --primary-light: #2D0A0A;
  --accent:        #FFB300;
  --blue:          #42A5F5;
  --blue-light:    #0D1F3C;
  --green:         #66BB6A;
  --green-light:   #0D2B0D;
  --yellow:        #FFB300;
  --yellow-light:  #2B1E00;
  --text-dark:     #F0F0FF;
  --text-mid:      #A8A8C8;
  --text-soft:     #6868A0;
  --bg:            #0F0F1A;
  --card-bg:       #1A1A2E;
  --border:        #2A2A44;
  --shadow:        0 4px 16px rgba(0,0,0,.5);
  --shadow-sm:     0 2px 8px rgba(0,0,0,.4);
  --shadow-md:     0 6px 24px rgba(0,0,0,.5);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.6);
}

/* ── Blue / Corporate Theme ──────────────────────── */
[data-theme="blue"] {
  --primary:       #D10024;
  --primary-dark:  #9A001D;
  --primary-light: #FFEBEF;
  --accent:        #C2185A;
  --bg:            #FFFBFC;
  --border:        #F5D0D8;
}

/* ── Green / Nature Theme ────────────────────────── */
[data-theme="green"] {
  --primary:       #2E7D32;
  --primary-dark:  #1B5E20;
  --primary-light: #E8F5E9;
  --accent:        #558B2F;
  --bg:            #F1F8F2;
  --border:        #D8EED9;
}

/* ── Dark: shimmer adapt ─────────────────────────── */
[data-theme="dark"] .shimmer {
  background: linear-gradient(90deg, #1e1e32 25%, #252540 50%, #1e1e32 75%);
  background-size: 400px 100%;
}

/* ── Dark: image overlays ────────────────────────── */
[data-theme="dark"] img { opacity: .92; }

/* ── Theme transition ────────────────────────────── */
html { transition: background-color .3s ease, color .3s ease; }
body,
.card, .listing-card, .esnaf-card, .event-card, .pharmacy-card,
header, .footer, .bottom-nav, .modal-box {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}

/* =====================================================
   THEME SWITCHER WIDGET
   ===================================================== */
.theme-switcher {
  position: fixed;
  bottom: 80px;
  right: 14px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
  font-family: var(--font);
}
.theme-toggle-btn:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(0,0,0,.3); }

.theme-palette {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px) scale(.96);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.theme-palette.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.theme-palette-label {
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-soft);
  text-align: center;
  padding: 0 4px 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1.5px solid transparent;
  background: none;
  font-family: var(--font);
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.theme-btn:hover { background: var(--bg); color: var(--text-dark); }
.theme-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.theme-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(0,0,0,.1);
}

/* Mobilde tema widget'ı sheet içinde gösterilir */
@media (max-width: 1023px) {
  .theme-switcher { display: none; }
}
@media (min-width: 1024px) {
  .theme-switcher { bottom: 24px; }
}

/* ── Toast Notifications ─────────────────────────── */
.kp-toast-wrap {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}
.kp-toast {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: toastIn .25s cubic-bezier(.4,0,.2,1) both;
  max-width: 340px;
  text-align: center;
  transition: opacity .3s;
}
.kp-toast.success { background: #2E7D32; color: #fff; }
.kp-toast.error   { background: #C62828; color: #fff; }
.kp-toast.info    { background: #D10024; color: #fff; }
.kp-toast.warning { background: #E65100; color: #fff; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@media (min-width: 1024px) {
  .kp-toast-wrap { bottom: 32px; }
}

/* ── Ana sayfa (masaüstü): başlık bandı referans görsel — kart gölgesi yok, sade çizgi ── */
@media (min-width: 1024px) {
  body.page-home .header {
    box-shadow: none;
    border-bottom: 1px solid #e9ebf3;
    background: #ffffff;
  }
  body.page-home .hdr-desk-nav-list {
    column-gap: clamp(12px, 1.6vw, 26px);
  }
  body.page-home .hdr-desk-a {
    font-weight: 500;
    font-size: 0.813rem;
    padding: 6px 0 14px;
    letter-spacing: 0.02em;
    color: #1f2433;
    border-bottom-width: 2px;
  }
  body.page-home .hdr-desk-a:hover {
    color: #c62828;
  }
  body.page-home .hdr-desk-a.is-active,
  body.page-home .hdr-desk-a[aria-current="page"] {
    font-weight: 700;
    color: var(--hdr-cta);
    border-bottom-color: var(--hdr-cta);
  }
  body.page-home .hdr-desk-search-btn {
    border: 1px solid transparent;
    background: rgba(31, 36, 51, 0.05);
    color: #3d4156;
  }
  body.page-home .hdr-desk-search-btn:hover {
    background: rgba(31, 36, 51, 0.09);
    color: var(--hdr-navy);
  }
  body.page-home .hdr-desk-vsep {
    color: #dfe2ec;
    font-weight: 200;
  }
  body.page-home .btn-login.btn-login--outside {
    border: none !important;
    background: transparent !important;
    font-weight: 600;
    padding: 0 8px !important;
    box-shadow: none !important;
  }
  body.page-home .btn-login.btn-login--outside:hover {
    color: var(--primary) !important;
    text-decoration: none;
    background: transparent !important;
  }
  body.page-home .btn-hdr-ilan.kp-brand-cta {
    box-shadow:
      0 4px 16px rgba(211, 47, 47, 0.3),
      0 2px 6px rgba(94, 53, 177, 0.2);
  }
  body.page-home .btn-hdr-isletme {
    border-color: #1a1f2e;
    box-shadow: none;
    color: #1a1f2e;
    font-weight: 700;
  }
  body.page-home .btn-hdr-isletme:hover {
    background: #fafbfc;
    border-color: #1a1f2e;
  }
}
