/* =============================================
   DURAK YÖNETİMİ SAYFASI — stops.css
   ============================================= */

.stops-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  height: calc(100vh - var(--header-h) - 100px);
}

/* Sol Panel */
.stops-left {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stops-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.stops-toolbar .form-control,
.stops-toolbar .form-select {
  flex: 1;
  min-width: 120px;
}

.stops-list-container {
  flex: 1;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.stop-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.12s;
}

.stop-list-item:last-child { border-bottom: none; }
.stop-list-item:hover { background: #f3f4f6; }
.stop-list-item.active { background: #eef2ff; border-left: 3px solid var(--primary); }

.stop-list-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stop-list-dot.verified { background: var(--green); }
.stop-list-dot.rejected { background: var(--red); }
.stop-list-dot.pending { background: var(--yellow); }

.stop-list-info {
  flex: 1;
  min-width: 0;
}

.stop-list-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stop-list-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.stop-list-badge {
  display: inline-flex;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(79,110,247,0.1);
  color: var(--primary);
}

.stops-footer {
  padding-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Sağ Panel — Harita */
.stops-right {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stops-map {
  flex: 1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 400px;
  background: #e5e7eb;
}

/* Durak Detay Paneli (harita üstünde float) */
.stop-detail-float {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 300px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  border: 1px solid var(--border);
  display: none;
}

.stop-detail-float.visible { display: block; }

.stop-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}

.stop-detail-header h6 { margin: 0; font-size: 14px; }

.stop-detail-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 2px;
}

.stop-detail-body { padding: 14px; }

.stop-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
}

.stop-detail-label { color: var(--text-muted); }
.stop-detail-value { font-weight: 600; color: var(--text); }

.stop-routes-list {
  margin-top: 8px;
  list-style: none;
  padding: 0;
}

.stop-routes-list li {
  padding: 4px 8px;
  font-size: 12px;
  background: #f3f4f6;
  border-radius: 4px;
  margin-bottom: 4px;
}

/* Durak Ekle Formu */
.stop-add-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
}

.stop-add-form h6 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .stops-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .stops-map { min-height: 350px; }
}
