/* ============================================================
   katki-modal.css — sitenin minimal estetiğiyle uyumlu
   ============================================================ */

/* ── Overlay ─────────────────────────────────────────────── */
#katki-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#katki-overlay.aktif { display: flex; }

/* ── Modal kutusu ────────────────────────────────────────── */
#katki-modal {
  background: #fff;
  border-radius: 4px;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  animation: km-ac 0.18s ease-out;
}

@keyframes km-ac {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Başlık ──────────────────────────────────────────────── */
#katki-modal .km-baslik {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

#katki-modal .km-baslik h2 {
  font-family: 'Teko', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #111;
  margin: 0;
  text-transform: uppercase;
}

#katki-modal .km-kapat {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #999;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.15s;
}
#katki-modal .km-kapat:hover { color: #111; }

/* ── İçerik ──────────────────────────────────────────────── */
#katki-modal .km-icerik { padding: 18px 22px 22px; }

/* ── Açıklama metni ──────────────────────────────────────── */
.km-aciklama {
  font-size: 12.5px;
  color: #777;
  margin: 0 0 16px;
  line-height: 1.5;
}

/* ── Tür seçimi ──────────────────────────────────────────── */
.km-tur-liste {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.km-tur-sat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  cursor: pointer;
  background: #fff;
  text-align: left;
  transition: border-color 0.12s, background 0.12s;
  width: 100%;
}
.km-tur-sat:hover { border-color: #bbb; background: #fafafa; }
.km-tur-sat.secili { border-color: #f03010; background: #fef8f7; }
.km-tur-sat.secili .kts-no { background: #f03010; color: #fff; border-color: #f03010; }

.kts-no {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #aaa;
  flex-shrink: 0;
  transition: all 0.12s;
}

.kts-baslik {
  font-family: 'Teko', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #111;
  text-transform: uppercase;
  display: block;
}

.kts-aciklama {
  font-size: 11.5px;
  color: #888;
  margin-top: 1px;
  line-height: 1.3;
  display: block;
}

/* ── Adım 2 tür etiketi ──────────────────────────────────── */
.km-adim-etiket {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #f03010;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

/* ── Form alanları ───────────────────────────────────────── */
.km-alan { margin-bottom: 14px; }

.km-alan label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #888;
  margin-bottom: 5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.km-alan select,
.km-alan input,
.km-alan textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  color: #111;
  background: #fff;
  transition: border-color 0.12s;
  box-sizing: border-box;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.km-alan select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 28px;
}

.km-alan select:focus,
.km-alan input:focus,
.km-alan textarea:focus { outline: none; border-color: #f03010; }

.km-alan textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.km-alan .km-yardim { font-size: 11px; color: #aaa; margin-top: 4px; }
.km-alan select:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Butonlar ────────────────────────────────────────────── */
.km-buton-grup { display: flex; gap: 8px; margin-top: 20px; }

.km-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 3px;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.12s;
  text-transform: uppercase;
}
.km-btn:active { opacity: 0.8; }

.km-btn-geri { background: #f4f4f4; color: #555; }
.km-btn-geri:hover { background: #eaeaea; }

.km-btn-ileri { flex: 1; background: #111; color: #fff; }
.km-btn-ileri:hover { opacity: 0.85; }
.km-btn-ileri:disabled { opacity: 0.3; cursor: not-allowed; }

.km-btn-gonder { flex: 1; background: #f03010; color: #fff; }
.km-btn-gonder:hover { opacity: 0.88; }
.km-btn-gonder:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Hata mesajı ─────────────────────────────────────────── */
.km-hata-mesaj {
  font-size: 12px;
  color: #c0392b;
  background: #fef6f5;
  border: 1px solid #f5c6cb;
  border-radius: 3px;
  padding: 8px 12px;
  margin-bottom: 14px;
  display: none;
}
.km-hata-mesaj.goster { display: block; }

/* ── Başarı ──────────────────────────────────────────────── */
.km-basari { padding: 8px 0 4px; }

.km-basari h3 {
  font-family: 'Teko', sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 8px;
}

.km-basari p { font-size: 13px; color: #666; line-height: 1.6; margin: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  #katki-modal {
    max-height: calc(96vh - 56px);
    border-radius: 4px 4px 0 0;
    align-self: flex-end;
    margin-bottom: 56px;
  }
  #katki-overlay { align-items: flex-end; padding: 0; }
}

/* ── Buton grubu wrapper (margin-left:auto sorunu için) ──── */
#katki-info-grup {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;   /* e-info-btn'deki auto margin'i buraya taşı */
}
#katki-info-grup .e-info-btn {
  margin-left: 0 !important;
}

/* ── Mini harita ─────────────────────────────────────────── */
#katki-mini-harita {
  width: 100%;
  height: 200px;
  border-radius: 3px;
  border: 1px solid #ddd;
  cursor: crosshair;
  margin-bottom: 6px;
}

.km-koord-display {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  color: #888;
  padding: 5px 8px;
  background: #f7f7f7;
  border-radius: 3px;
  border: 1px solid #e8e8e8;
}

.km-koord-display:not(:empty) { color: #f03010; }

.km-yardim-inline {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #aaa;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* ── Görsel seçim grid (hata bildirimi) ──────────────────── */
.km-gorsel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 2px;
}

.km-gorsel-thumb {
  padding: 0;
  border: 2px solid #e0e0e0;
  border-radius: 3px;
  cursor: pointer;
  background: #f7f7f7;
  overflow: hidden;
  aspect-ratio: 3/2;
  transition: border-color 0.12s;
}

.km-gorsel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.km-gorsel-thumb:hover { border-color: #bbb; }
.km-gorsel-thumb.secili { border-color: #f03010; }

/* ── "Diğer" mekan input animasyonu ─────────────────────── */
.km-diger-alan {
  animation: km-ac 0.15s ease-out;
}