/* ============================================================
   İşletme Kayıt ve Harita Sistemi — Genel Tasarım Dili
   Palet: koyu çam yeşili (güven/tarım) + hasat altını (gıda) vurgusu
   ============================================================ */
:root {
  --koyu: #123328;
  --orta: #1F5C46;
  --acik-yesil: #E8F2ED;
  --altin: #C9962C;
  --altin-acik: #F4E6C8;
  --zemin: #F5F6F3;
  --kart: #FFFFFF;
  --metin: #1C2321;
  --gri: #64706A;
  --cizgi: #E3E7E3;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font-body);
  color: var(--metin);
  background: var(--zemin);
  overflow: hidden;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--koyu);
  color: #fff;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.site-header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  background: var(--altin);
  color: var(--koyu);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.brand-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.brand-sub { font-size: .78rem; color: #B8CFC4; }
.btn-admin {
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .85rem;
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: .15s;
  white-space: nowrap;
}
.btn-admin:hover { background: var(--altin); border-color: var(--altin); color: var(--koyu); }

/* ---------- App Shell ---------- */
.app-shell {
  display: flex;
  height: calc(100vh - 68px);
}

.side-panel {
  width: 380px;
  flex-shrink: 0;
  background: var(--kart);
  border-right: 1px solid var(--cizgi);
  display: flex;
  flex-direction: column;
  padding: 18px;
  z-index: 900;
}

.search-box {
  position: relative;
  margin-bottom: 12px;
}
.search-box i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gri);
}
.search-box input {
  width: 100%;
  border: 1.5px solid var(--cizgi);
  border-radius: 999px;
  padding: 11px 16px 11px 40px;
  font-size: .92rem;
  outline: none;
  transition: .15s;
  background: var(--zemin);
}
.search-box input:focus { border-color: var(--orta); background: #fff; box-shadow: 0 0 0 3px var(--acik-yesil); }

.filter-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.filter-row .form-select { border-radius: 999px; font-size: .82rem; border-color: var(--cizgi); }
.sonuc-sayisi { font-size: .78rem; color: var(--gri); white-space: nowrap; }

.result-list { flex: 1; overflow-y: auto; margin: 0 -18px; padding: 0 18px; }
.result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--cizgi);
  cursor: pointer;
  transition: .12s;
  border-radius: 10px;
}
.result-item:hover { background: var(--acik-yesil); }
.result-item-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--koyu); color: var(--altin-acik);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.result-item-body { flex: 1; min-width: 0; }
.result-item-title { font-weight: 600; font-size: .89rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-item-sub { font-size: .76rem; color: var(--gri); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-item-arrow { color: var(--cizgi); }

/* ---------- Map ---------- */
.map-area { flex: 1; position: relative; }
#harita { width: 100%; height: 100%; }

.ozel-marker {
  background: var(--koyu);
  color: var(--altin-acik);
  width: 34px; height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  border: 2px solid #fff;
}
.ozel-marker i { transform: rotate(45deg); font-size: 1rem; }

.popup-ic { font-family: var(--font-body); }

.mobile-list-toggle {
  position: absolute;
  bottom: 24px; left: 16px;
  z-index: 800;
  background: var(--koyu);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: .85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.detay-tablo th { width: 42%; color: var(--gri); font-weight: 500; font-size: .82rem; vertical-align: top; }
.detay-tablo td { font-size: .87rem; }

.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
  background: rgba(18,51,40,.25) !important;
}
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background: var(--koyu) !important;
  color: #fff !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .side-panel {
    position: fixed;
    top: 68px; left: 0; bottom: 0;
    width: 88%;
    max-width: 380px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
  }
  .side-panel.open { transform: translateX(0); }
  .brand-sub { display: none; }
}
