/* ==========================================================================
   Modern UI Stilleri - 3D Bina Karşılaştırma & Atık Yönetim Sistemi
   ========================================================================== */

/* ─────────────────────────────────────────────────────────────────────────
   Global Ayarlar
   ───────────────────────────────────────────────────────────────────────── */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #0a0e1a;
  color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────────────────
   Harita Container (Split Screen)
   ───────────────────────────────────────────────────────────────────────── */

#comparison-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────
   Panel Tasarım Sistemi - Modern Glassmorphism
   ───────────────────────────────────────────────────────────────────────── */

.panel {
  position: absolute;
  z-index: 10;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  padding: 20px;
  border-radius: 16px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  max-width: 380px;
  font-size: 14px;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
}

.panel:hover {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Panel Header */
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

.subtitle {
  font-size: 13px;
  font-weight: 400;
  color: rgba(241, 245, 249, 0.65);
  margin-top: 4px;
  line-height: 1.4;
}

/* Panel Toggle Button */
.panel-toggle-btn {
  border: none;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.panel-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.panel-toggle-btn:active {
  transform: scale(0.95);
}

/* Panel Body */
.panel-body-inner,
#panel-body {
  opacity: 1;
  max-height: 1000px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-body-inner.collapsed,
#panel-body.collapsed {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   Modern Kontrol Menüsü
   ───────────────────────────────────────────────────────────────────────── */

#control-menu-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
}

/* Menü Toggle Butonu */
.menu-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
  backdrop-filter: blur(12px);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(59, 130, 246, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.menu-toggle-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-toggle-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 12px 32px rgba(59, 130, 246, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.menu-toggle-btn:hover::before {
  opacity: 1;
}

.menu-toggle-btn:active {
  transform: translateY(0) scale(0.98);
}

.menu-icon {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Menü Overlay */
.control-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(8px);
  z-index: 99;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.control-menu-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Menü Container */
.control-menu {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.96) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Menü Header */
.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.menu-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.menu-title-icon {
  color: #3b82f6;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.4));
}

.menu-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.menu-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  transform: scale(1.1);
}

/* Menü İçeriği */
.menu-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.menu-content::-webkit-scrollbar {
  width: 8px;
}

.menu-content::-webkit-scrollbar-track {
  background: transparent;
}

.menu-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.menu-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Menü Bölümleri */
.menu-section {
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.2s ease;
}

.menu-section:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.12);
}

.menu-section-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-section-header:hover {
  background: rgba(59, 130, 246, 0.08);
}

.section-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-header-left svg {
  color: #3b82f6;
  flex-shrink: 0;
}

.chevron {
  color: #94a3b8;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.menu-section-header[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

/* Bölüm İçeriği */
.menu-section-content {
  padding: 0 18px 18px;
  max-height: 2000px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-section-content.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.section-subtitle {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 12px;
}

.section-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 20px 0;
}

/* Form Elemanları - Menü İçinde */
.map-selector {
  margin-bottom: 16px;
}

.map-selector-label {
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.radio-group {
  display: flex;
  gap: 8px;
}

.radio-group.vertical {
  flex-direction: column;
}

.radio-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-option:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(59, 130, 246, 0.3);
}

.radio-option input[type="radio"] {
  accent-color: #3b82f6;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.radio-option input[type="radio"]:checked + span {
  color: #ffffff;
  font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
}

.radio-option span {
  font-size: 14px;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

/* Toggle Grubu */
.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-option:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.12);
}

.toggle-option input[type="checkbox"] {
  accent-color: #3b82f6;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.toggle-option span {
  font-size: 14px;
  color: #cbd5e1;
  font-weight: 500;
}

/* Form Grupları */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  color: #f1f5f9;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.form-input {
  margin-bottom: 8px;
}

.form-input:focus,
.form-select:focus {
  border-color: #3b82f6;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Buton Grupları */
.button-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.menu-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.menu-btn.full-width {
  width: 100%;
}

.menu-btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.menu-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.menu-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.menu-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.menu-btn:active {
  transform: translateY(0);
}

.menu-btn svg {
  flex-shrink: 0;
}

/* Timeline - Menü İçinde */
.timeline-container {
  margin-bottom: 16px;
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.timeline-label {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

.timeline-info {
  font-size: 12px;
  color: #cbd5e1;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  margin-top: 8px;
}

/* Info Box */
.info-box {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 16px;
  min-height: 20px;
}

.info-content {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
}

.info-content h2,
.info-content h3 {
  margin: 8px 0;
  font-size: 14px;
  color: #f8fafc;
}

.info-content ul {
  padding-left: 18px;
  margin: 6px 0 10px;
  color: #cbd5e1;
  line-height: 1.6;
}

.info-btn-group {
  flex-direction: column;
}

/* Download panel */
.download-summary {
  display: grid;
  gap: 10px;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
}

.download-pair {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.download-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a7f3d0;
}

.download-value {
  font-weight: 700;
  color: #ecfeff;
  text-align: right;
}

.download-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #dbeafe;
  font-size: 11px;
  min-width: 80px;
  text-align: center;
}

/* Filtre Grid */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-option:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.12);
}

.filter-option input[type="checkbox"] {
  accent-color: #3b82f6;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.filter-option span {
  font-size: 13px;
  color: #cbd5e1;
}

/* Filtre Chart Wrapper */
.filter-chart-wrapper {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-chart-header {
  margin-bottom: 12px;
}

.chart-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.chart-hint {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}

/* ─────────────────────────────────────────────────────────────────────────
   Form Elemanları
   ───────────────────────────────────────────────────────────────────────── */

.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 16px 0 8px 0;
  color: #94a3b8;
}

.divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 16px 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  gap: 6px;
}

label {
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
}

/* Select & Input */
.select,
.input,
.search-input {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 14px;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.3);
  color: #f1f5f9;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.select:hover,
.input:hover,
.search-input:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
}

.select:focus,
.input:focus,
.search-input:focus {
  border-color: #3b82f6;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

#building-select {
  background: rgba(30, 41, 59, 0.7);
}

#building-select + .search-input {
  margin-top: 8px;
}

/* Buttons */
.btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  margin-top: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.info {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
}

/* ─────────────────────────────────────────────────────────────────────────
   Timeline (Zaman Çizelgesi)
   ───────────────────────────────────────────────────────────────────────── */

.timeline-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 8px;
}

.timeline-header .right {
  text-align: right;
}

.timeline-bar {
  position: relative;
  height: 32px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}

.timeline-dot {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
  opacity: 0.9;
}

.timeline-sliders {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.timeline-sliders input[type='range'] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  appearance: none;
}

.timeline-sliders input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
  transition: all 0.2s ease;
}

.timeline-sliders input[type='range']::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.6);
}

.timeline-sliders input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
  transition: all 0.2s ease;
}

.timeline-selected-label {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

/* ─────────────────────────────────────────────────────────────────────────
   Bina Bilgi Panelleri (Yan Sütunlar)
   ───────────────────────────────────────────────────────────────────────── */

.building-info-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28vw;
  max-width: 450px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.94) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  padding: 24px 20px;
  font-size: 13px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 9;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  overflow: hidden;
}

.building-info-panel.side-left {
  left: 0;
  border-radius: 0 16px 16px 0;
}

.building-info-panel.side-right {
  right: 0;
  border-radius: 16px 0 0 16px;
}

.bi-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bi-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.bi-subtitle {
  font-size: 13px;
  color: rgba(241, 245, 249, 0.65);
  margin-top: 4px;
}

.bi-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

/* Görsel Grid */
.bi-image-wrapper {
  flex: 0 0 auto;
  max-height: 40%;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(90px, 1fr);
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bi-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.bi-image-wrapper img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* İstatistikler */
.bi-stats {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.bi-stats::-webkit-scrollbar {
  width: 6px;
}

.bi-stats::-webkit-scrollbar-track {
  background: transparent;
}

.bi-stats::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.bi-stats::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.bi-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.bi-stat-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.bi-stat-label {
  color: #cbd5e1;
  font-weight: 500;
}

.bi-stat-value {
  color: #f1f5f9;
  font-weight: 600;
  text-align: right;
}

/* ─────────────────────────────────────────────────────────────────────────
   Tam Ekran Görsel Karşılaştırma Overlay
   ───────────────────────────────────────────────────────────────────────── */

.image-compare-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.96);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  color: #f1f5f9;
  pointer-events: auto;
}

.ico-message {
  font-size: 13px;
  padding: 16px 24px;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ico-sides {
  flex: 1;
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ico-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.ico-left {
  border-right: 2px solid rgba(255, 255, 255, 0.12);
}

.ico-side img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: grab;
  user-select: none;
  transition: transform 0.2s ease;
}

.ico-side img:active {
  cursor: grabbing;
}

/* Navigation */
.ico-nav {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.8);
}

.ico-arrow {
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: all 0.2s ease;
}

.ico-arrow:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
  transform: scale(1.05);
}

.ico-counter {
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

/* ─────────────────────────────────────────────────────────────────────────
   Kuzey Göstergesi (Pusula)
   ───────────────────────────────────────────────────────────────────────── */

#north-indicator {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  pointer-events: none;
}

.north-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.85) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.north-icon {
  position: absolute;
  top: 8px;
  color: #3b82f6;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.5));
  transition: transform 0.3s ease;
}

.north-label {
  position: absolute;
  bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}

/* Koordinat arama (Bilgi sekmesi) */
.coord-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.coord-search-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-top: -2px;
}

.coord-search-message {
  margin-top: 4px;
  font-size: 12px;
}

.coord-search-message:empty {
  display: none;
}

.coord-search-message.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fecdd3;
}

.coord-search-message.success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #bbf7d0;
}

.coord-marker {
  width: 24px;
  height: 24px;
  pointer-events: none;
  position: relative;
}

.coord-marker__pulse,
.coord-marker__dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.coord-marker__pulse {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(56, 189, 248, 0) 70%);
  animation: coord-pulse 1.6s ease-out infinite;
  transform-origin: center;
}

.coord-marker__dot {
  width: 12px;
  height: 12px;
  background: #38bdf8;
  border: 2px solid #f472b6;
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.6);
  top: 6px;
  left: 6px;
}

@keyframes coord-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Koordinat popup (sag tik) */
.mapboxgl-popup.coord-popup .mapboxgl-popup-content {
  background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
  border: 1px solid rgba(94, 234, 212, 0.4);
  color: #e2e8f0;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(15, 23, 42, 0.6);
}

.mapboxgl-popup.coord-popup .mapboxgl-popup-tip {
  border-top-color: #0f172a;
  border-bottom-color: #0f172a;
}

.coord-popup__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.coord-popup__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.coord-popup__label {
  color: #a5b4fc;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.coord-popup__value {
  color: #f8fafc;
  font-weight: 600;
}

/* Parsel popup */
.mapboxgl-popup-content .parcel-popup__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0f172a;
}

.mapboxgl-popup-content .parcel-popup__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  padding: 4px 0;
  border-top: 1px solid #e2e8f0;
  color: #334155;
}

.mapboxgl-popup-content .parcel-popup__row:first-of-type {
  border-top: none;
}

.mapboxgl-popup-content .parcel-popup__row strong {
  color: #111827;
}

/* ─────────────────────────────────────────────────────────────────────────
   Katman Filtreleri
   ───────────────────────────────────────────────────────────────────────── */

.panel-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-section h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 12px;
}

.filter-row {
  margin-bottom: 8px;
  font-size: 14px;
}

.filter-row label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.filter-row label:hover {
  background: rgba(255, 255, 255, 0.05);
}

.filter-row input[type='checkbox'] {
  accent-color: #3b82f6;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

/* Grafik Container */
.filter-chart-container {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-chart-header {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  margin-bottom: 12px;
}

.filter-chart-header span {
  font-weight: 600;
  color: #f1f5f9;
}

.filter-chart-header small {
  color: #94a3b8;
  margin-top: 4px;
}

/* Bina Listesi */
.filter-buildings-list {
  margin-top: 12px;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.filter-buildings-list::-webkit-scrollbar {
  width: 6px;
}

.filter-buildings-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.filter-buildings-list.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0;
  overflow: hidden;
}

.filter-building-item {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.filter-building-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateX(4px);
}

.filter-building-item span.name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f1f5f9;
}

.filter-building-item span.units {
  color: #94a3b8;
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────────────
   Modern İstatistik Analiz Paneli
   ───────────────────────────────────────────────────────────────────────── */

#stat-pie-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  width: 900px;
  max-width: 95vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.96) 100%);
  backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 12px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Panel Header */
#stat-pie-panel .panel-header {
  padding: 28px 32px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.15) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

#stat-pie-panel .title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

#stat-pie-panel .subtitle {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

#stat-pie-panel .subtitle::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.9);
  }
}

#stat-pie-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#stat-pie-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  transform: scale(1.08) rotate(90deg);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

#stat-pie-close:active {
  transform: scale(0.95) rotate(90deg);
}

/* Panel Body */
#stat-pie-panel .panel-body-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.4) transparent;
}

#stat-pie-panel .panel-body-inner::-webkit-scrollbar {
  width: 10px;
}

#stat-pie-panel .panel-body-inner::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

#stat-pie-panel .panel-body-inner::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.5), rgba(37, 99, 235, 0.5));
  border-radius: 5px;
  border: 2px solid rgba(15, 23, 42, 0.5);
}

#stat-pie-panel .panel-body-inner::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.7), rgba(37, 99, 235, 0.7));
}

/* Chart Wrapper */
.stat-pie-chart-wrap {
  width: 100%;
  position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  box-shadow:
    inset 0 2px 12px rgba(0, 0, 0, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-pie-chart-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

#stat-pie-chart {
  max-width: 100%;
  max-height: 500px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

#stat-pie-chart:hover {
  filter: drop-shadow(0 6px 24px rgba(59, 130, 246, 0.2));
}

/* Chart Info Bar */
.stat-pie-hint {
  margin-top: 24px;
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.stat-pie-hint::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.1) 50%,
    transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.stat-pie-hint svg {
  width: 20px;
  height: 20px;
  color: #3b82f6;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.stat-pie-hint span {
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────────────────────────────────────
   İstatistik Barları
   ───────────────────────────────────────────────────────────────────────── */

.stat-row {
  margin-bottom: 12px;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.stat-label,
.stat-value {
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
}

.stat-bar {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-bar:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scaleX(1.01);
}

.stat-bar-fill {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.stat-bar-value-label {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  margin-left: -18px;
}

/* Tarih Değişim Barı */
.stat-date-track {
  position: relative;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 8px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-date-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 0.3s ease;
}

.stat-date-marker {
  position: absolute;
  top: -4px;
  width: 12px;
  height: 20px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
  border: 2px solid #10b981;
}

.stat-date-range {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
}

.stat-date-value {
  font-size: 12px;
  color: #f1f5f9;
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────────────
   Utility Classes
   ───────────────────────────────────────────────────────────────────────── */

.hidden {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   Responsive Design
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 1280px) {
  .building-info-panel {
    width: 32vw;
    max-width: 400px;
  }

  #stat-pie-panel {
    width: 90vw;
    max-height: 80vh;
  }
}

@media (max-width: 768px) {
  .panel {
    max-width: 90vw;
    padding: 16px;
  }

  .building-info-panel {
    width: 85vw;
    max-width: none;
  }

  .title {
    font-size: 14px;
  }

  .subtitle {
    font-size: 12px;
  }

  /* Mobil Menü Ayarları */
  .control-menu {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .control-menu-overlay {
    padding: 0;
  }

  .menu-content {
    padding: 12px;
  }

  .menu-section-header {
    padding: 14px 16px;
    font-size: 14px;
  }

  .menu-section-content {
    padding: 0 16px 16px;
  }

  .button-group {
    flex-direction: column;
  }

  .menu-btn {
    width: 100%;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  /* Stat Chart Panel Mobil */
  #stat-pie-panel {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  #stat-pie-panel .panel-header {
    padding: 20px 16px;
  }

  #stat-pie-panel .title {
    font-size: 20px;
  }

  #stat-pie-panel .panel-body-inner {
    padding: 20px 16px;
  }

  .stat-pie-chart-wrap {
    padding: 20px;
  }

  #stat-pie-chart {
    max-height: 400px;
  }

  .stat-pie-hint {
    flex-direction: column;
    text-align: center;
  }
}

/* Kirilgan grup paneli */
.fragile-btn {
  margin-top: 6px;
  padding: 2px 8px;
  flex: 0 0 auto;
  min-height: 0;
  width: auto;
  align-self: flex-end;
  font-size: 11px;
  line-height: 1.1;
}

.fragile-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 1080px; /* // panel genişliği: 600-700px arası deneyebilirsin */
  width: min(920px, 94vw);
  z-index: 40;
  pointer-events: auto;
}

.fragile-panel .panel-body-inner {
  max-height: 70vh; /* // panel yüksekliği: fazla uzuyorsa burayı 60-75vh arası ayarlayabilirsin */
  overflow: auto;
}

/* Hover'da yerinin oynamamasý için panel hover override */
.fragile-panel.panel:hover {
  transform: translate(-50%, -50%);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.fragile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* // kart genişliği: 200-240px arası yaparak eni artırabilirsin */
  gap: 16px; /* // kartlar arası boşluk: 12-20px arası ayarlayabilirsin */
  grid-auto-rows: 1fr; /* // kart yüksekliklerini eşitlemek için */
}

.fragile-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fragile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0b1020;
  background: linear-gradient(135deg, #fcd34d 0%, #fb923c 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  font-size: 12px;
}

.fragile-icon.icon-female { background: linear-gradient(135deg, #f9a8d4, #f472b6); }
.fragile-icon.icon-disabled { background: linear-gradient(135deg, #93c5fd, #60a5fa); }
.fragile-icon.icon-sehit { background: linear-gradient(135deg, #fca5a5, #f87171); }
.fragile-icon.icon-dul { background: linear-gradient(135deg, #c4b5fd, #a78bfa); }

.fragile-icon::after {
  content: attr(data-label);
}

.fragile-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.fragile-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.fragile-total {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
}
