* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f0f2f1; color: #222; max-width: 480px; margin: 0 auto;
  min-height: 100vh; padding-bottom: env(safe-area-inset-bottom);
}
.yukleniyor { text-align: center; padding: 60px 20px; color: #888; font-size: 14px; }
.yukleniyor::before {
  content: ''; display: inline-block; width: 20px; height: 20px; margin-right: 8px;
  border: 3px solid #ddd; border-top-color: #1b5e20; border-radius: 50%;
  animation: zt-don .8s linear infinite; vertical-align: middle;
}
@keyframes zt-don { to { transform: rotate(360deg); } }

/* ---------- Başlık ---------- */
.baslik {
  background: #1b5e20; color: #fff; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.baslik .geri {
  background: none; border: none; color: #fff; font-size: 24px; cursor: pointer;
  min-width: 44px; min-height: 44px; margin-left: -8px; display: flex;
  align-items: center; justify-content: center;
}
.baslik .ad { flex: 1; font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.baslik .sag { font-size: 12px; opacity: .9; white-space: nowrap; }
.baslik .sag button { background: rgba(255,255,255,.15); border: none; color: #fff; border-radius: 8px; padding: 10px 14px; font-size: 13px; cursor: pointer; min-height: 40px; }

/* ---------- Kartlar ---------- */
.kart {
  background: #fff; border-radius: 12px; margin: 12px; padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.kart h2 { margin: 0 0 12px; font-size: 16px; color: #1b5e20; }
.kart h3 { margin: 0 0 8px; font-size: 14px; color: #444; }
.uyari { background: #fff8e1; border: 1px solid #ffe082; color: #8a6d00; border-radius: 10px; padding: 12px; margin: 12px; font-size: 13px; }
.hata { background: #ffebee; border: 1px solid #ef9a9a; color: #b71c1c; border-radius: 10px; padding: 12px; margin: 12px; font-size: 13px; }
.basarili { background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20; border-radius: 10px; padding: 12px; margin: 12px; font-size: 13px; }
.bilgi { background: #e3f2fd; border: 1px solid #90caf9; color: #0d47a1; border-radius: 10px; padding: 12px; margin: 12px; font-size: 13px; }

/* ---------- Form ---------- */
label.alan { display: block; margin-bottom: 12px; }
label.alan > span { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px; }
input[type=text], input[type=password], input[type=tel], input[type=number], textarea, select {
  width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 10px;
  font-size: 15px; background: #fafafa; color: #222; font-family: inherit;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid #66bb6a; border-color: #2e7d32; background: #fff; }

/* ---------- Butonlar ---------- */
.btn {
  display: block; width: 100%; padding: 14px; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer; text-align: center;
  background: #1b5e20; color: #fff; margin: 8px 0;
}
.btn:active { transform: scale(.98); }
.btn.ikincil { background: #e8e8e8; color: #333; }
.btn.tehlike { background: #c62828; color: #fff; }
.btn:disabled { opacity: .5; }
.btn.buton-yol { background: #2e7d32; margin: 10px 12px; }

/* ---------- Ana menü ---------- */
.menu-kart { display: block; background: #fff; border-radius: 12px; margin: 10px 12px; padding: 18px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.08); text-decoration: none; color: #222; }
.menu-kart .ikon { font-size: 22px; margin-right: 10px; }
.menu-kart .metin { font-size: 15px; font-weight: 600; }
.menu-kart .alt { font-size: 12px; color: #888; margin-top: 3px; }
.kullanici-satir { display: flex; align-items: center; gap: 8px; padding: 12px 16px; }
.kullanici-satir .daire {
  width: 38px; height: 38px; border-radius: 50%; background: #2e7d32; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.kullanici-satir .isim { font-weight: 600; font-size: 14px; }
.kullanici-satir .rol { font-size: 12px; color: #888; }
.alt-bilgi { text-align: center; font-size: 12px; color: #aaa; padding: 16px; }

/* ---------- Liste satırları ---------- */
.satir {
  display: block; background: #fff; border-radius: 12px; margin: 8px 12px; padding: 14px 34px 14px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08); text-decoration: none; color: #222;
  position: relative;
}
/* Tıklanabilirlik ipucu: sağda ok */
.satir::after {
  content: '›'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: #bbb; font-weight: 600;
}
.satir:active { background: #f5f5f5; }
.satir .ust { font-weight: 600; font-size: 15px; }
.satir .alt { font-size: 12px; color: #777; margin-top: 4px; line-height: 1.4; }
.satir .mesafe { float: right; font-size: 12px; color: #1b5e20; font-weight: 600; }
.satir .puan { color: #b8860b; font-size: 12px; }

/* Firma küçük fotoğrafı (nearby / arama / işletmelerim listeleri) */
.satir.foto-satir { display: flex; align-items: center; gap: 12px; }
.satir.foto-satir .mesafe { float: none; margin-left: auto; }
.satir.foto-satir .foto-icerik { flex: 1; min-width: 0; }
.foto-mini {
  width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  background: #eef2f1; border: 1px solid #e3e8e6;
}
.foto-yok { display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: #9aa5a0; }
.foto-detay {
  width: 84px; height: 84px; border-radius: 14px; object-fit: cover; display: block;
  margin: 0 0 10px 0; background: #eef2f1; border: 1px solid #e3e8e6;
}

/* ---------- Rozetler ---------- */
.rozet { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; margin: 1px 2px; }
.r-ilk_görüşme, .r-yeni { background: #e3f2fd; color: #0d47a1; }
.r-teklif, .r-sıcak { background: #fff3e0; color: #e65100; }
.r-takip { background: #ede7f6; color: #4a148c; }
.r-kapanış { background: #eceff1; color: #37474f; }
.r-soğuk { background: #e1f5fe; color: #01579b; }
.r-müşteri { background: #e8f5e9; color: #1b5e20; }
.r-kayitli { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.r-gorev { background: #fff8e1; color: #b26a00; border: 1px solid #ffe082; }
.r-uzak { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }

/* ---------- Chip (seçim kutuları) ---------- */
.chipler { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.chip {
  padding: 10px 16px; border-radius: 22px; border: 1.5px solid #ccc; background: #fafafa;
  font-size: 13px; cursor: pointer; user-select: none; color: #444;
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.chip.secili { background: #1b5e20; color: #fff; border-color: #1b5e20; }
.chip-grup > span { display: block; font-size: 13px; font-weight: 600; color: #444; margin: 8px 0 4px; }

/* ---------- Arama kutusu (Yakındaki İşletmeler) ---------- */
.arama-kutu { display: flex; gap: 8px; margin-bottom: 10px; }
.arama-kutu input[type=search] {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #ccc; border-radius: 10px;
  font-size: 15px; background: #fafafa; color: #222; font-family: inherit;
}
.arama-kutu input[type=search]:focus { outline: 2px solid #66bb6a; border-color: #2e7d32; background: #fff; }
.arama-kutu .btn { width: auto; padding: 10px 16px; margin: 0; flex-shrink: 0; }

/* ---------- Harita ---------- */
.harita { width: 100%; height: 220px; border: none; border-radius: 10px; background: #e5e3df; }

/* ---------- Detay ---------- */
.detay-satir { padding: 5px 0; font-size: 14px; }
.detay-satir .etiket { color: #777; font-size: 12px; display: block; }
.detay-satir .deger { font-weight: 600; }
.bolum { margin-top: 14px; }

/* ---------- Giriş ---------- */
.giris-kutu { padding: 40px 20px 20px; text-align: center; }
.giris-kutu .logo {
  width: 72px; height: 72px; border-radius: 18px; background: #1b5e20; color: #fff;
  font-size: 36px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
  box-shadow: 0 4px 12px rgba(27,94,32,.3);
}
.giris-kutu h1 { font-size: 20px; margin: 0 0 4px; }
.giris-kutu p { color: #888; font-size: 13px; margin: 0 0 24px; }
