/* ═══════════════════════════════════════════════════════════════
   FORECAST TAB — Proiecție Prețuri Rezidențiale
   Tema light, consistentă cu piata dashboard
   ═══════════════════════════════════════════════════════════════ */

.fc-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 0 24px;
  font-family: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Header ─────────────────────────────────────────────────── */

.fc-header { margin-bottom: 20px; }

.fc-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.fc-header h2 .fc-badge {
  font-size: 10px;
  font-weight: 600;
  color: #8b95a5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.fc-header-sub {
  font-size: 12px;
  color: #5a6577;
  margin: 0;
  line-height: 1.5;
}

/* ── City selector ──────────────────────────────────────────── */

.fc-cities {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.fc-city-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #e2e5ea;
  background: transparent;
  color: #5a6577;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.fc-city-btn:hover {
  border-color: #4a6fa5;
  color: #4a6fa5;
}
.fc-city-btn.active {
  border-color: #4a6fa5;
  background: rgba(74,111,165,0.08);
  color: #4a6fa5;
}

/* ── Layout ─────────────────────────────────────────────────── */

.fc-layout {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.fc-left {
  flex: 1 1 280px;
  min-width: 260px;
}
.fc-right {
  flex: 1 1 440px;
  min-width: 340px;
}

/* ── Card ───────────────────────────────────────────────────── */

.fc-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e5ea;
  padding: 16px;
  margin-bottom: 16px;
}

.fc-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #8b95a5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

/* ── Presets ─────────────────────────────────────────────────── */

.fc-presets-row {
  display: flex;
  gap: 8px;
}

.fc-preset-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid #e2e5ea;
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  font-family: inherit;
}
.fc-preset-btn:hover {
  border-color: #4a6fa5;
}
.fc-preset-btn.active {
  border-color: #4a6fa5;
  background: rgba(74,111,165,0.06);
}

.fc-preset-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
}
.fc-preset-btn.active .fc-preset-name {
  color: #4a6fa5;
}
.fc-preset-desc {
  font-size: 10px;
  color: #8b95a5;
  margin-top: 2px;
}
.fc-preset-price {
  font-size: 11px;
  font-weight: 600;
  color: #4a6fa5;
  margin-top: 4px;
}

/* ── Sliders ────────────────────────────────────────────────── */

.fc-slider-group { margin-bottom: 16px; }
.fc-slider-group:last-child { margin-bottom: 0; }

.fc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.fc-slider-label {
  font-size: 12px;
  color: #5a6577;
  font-weight: 500;
}
.fc-slider-value {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a2e;
  font-variant-numeric: tabular-nums;
}

.fc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: #e2e5ea;
  outline: none;
  cursor: pointer;
}
.fc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4a6fa5;
  cursor: pointer;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.fc-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4a6fa5;
  cursor: pointer;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.fc-slider::-moz-range-track {
  height: 5px;
  border-radius: 3px;
  background: transparent;
}

.fc-slider-note {
  font-size: 10px;
  color: #8b95a5;
  margin-top: 4px;
}

/* ── Summary card ───────────────────────────────────────────── */

.fc-summary-card {
  background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 100%);
  border-color: #d0d7e0;
}

.fc-summary-price {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a2e;
  font-variant-numeric: tabular-nums;
}
.fc-summary-change {
  font-size: 14px;
  font-weight: 700;
  margin-left: 10px;
  font-variant-numeric: tabular-nums;
}
.fc-summary-change.up { color: #2d8a56; }
.fc-summary-change.down { color: #c0503e; }

.fc-summary-vs {
  font-size: 11px;
  color: #8b95a5;
  margin-top: 4px;
}

.fc-summary-details {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}
.fc-summary-detail-label {
  font-size: 10px;
  color: #8b95a5;
}
.fc-summary-detail-value {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #5a6577;
}

/* ── Table ──────────────────────────────────────────────────── */

.fc-table-card { padding: 0; overflow: hidden; }

.fc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.fc-table thead th {
  padding: 9px 10px;
  text-align: right;
  color: #8b95a5;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e2e5ea;
  background: #f5f7fa;
}
.fc-table thead th:first-child { text-align: left; }

.fc-table tbody td {
  padding: 7px 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid #f0f2f5;
}
.fc-table tbody td:first-child {
  text-align: left;
  color: #1a1a2e;
  font-weight: 500;
}
.fc-table tbody tr:last-child td { border-bottom: none; }

.fc-table .fc-price-up { font-weight: 700; color: #2d8a56; }
.fc-table .fc-price-down { font-weight: 700; color: #c0503e; }
.fc-table .fc-interval { color: #8b95a5; font-size: 11px; }
.fc-table .fc-sal { color: #5a6577; }

/* ── Chart card ─────────────────────────────────────────────── */

.fc-chart-card { padding: 16px 8px 8px 0; }

.fc-chart-title {
  font-size: 13px;
  font-weight: 600;
  color: #5a6577;
  padding-left: 16px;
  margin-bottom: 8px;
}
.fc-chart-wrap {
  position: relative;
  height: 380px;
}

/* ── Legend ──────────────────────────────────────────────────── */

.fc-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 10px 0 4px;
}
.fc-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fc-legend-line {
  width: 20px;
  height: 3px;
  border-radius: 2px;
}
.fc-legend-band {
  width: 20px;
  height: 10px;
  border-radius: 2px;
  background: rgba(74,111,165,0.12);
}
.fc-legend-text {
  font-size: 11px;
  color: #5a6577;
}

/* ── Methodology ────────────────────────────────────────────── */

.fc-methodology {
  font-size: 11px;
  color: #8b95a5;
  line-height: 1.7;
}
.fc-methodology strong {
  color: #5a6577;
}

/* ── Disclaimer ─────────────────────────────────────────────── */

.fc-disclaimer-card {
  margin-top: 12px;
  padding: 12px 14px;
  background: #faf8f0;
  border-radius: 8px;
  border: 1px solid #e8e2cc;
}
.fc-disclaimer-title {
  font-size: 11px;
  color: #a58d4e;
  font-weight: 600;
  margin-bottom: 4px;
}
.fc-disclaimer-text {
  font-size: 11px;
  color: #8a7d5e;
  line-height: 1.6;
}
.fc-disclaimer-text strong {
  color: #6b6040;
}

/* ── Loading ────────────────────────────────────────────────── */

.fc-loading {
  text-align: center;
  padding: 60px 20px;
  color: #8b95a5;
  font-size: 14px;
}
.fc-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e5ea;
  border-top-color: #4a6fa5;
  border-radius: 50%;
  animation: fc-spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes fc-spin {
  to { transform: rotate(360deg); }
}

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

@media (max-width: 680px) {
  .fc-layout { flex-direction: column; }
  .fc-left, .fc-right { min-width: 0; flex-basis: auto; }
  .fc-chart-wrap { height: 300px; }
  
  .fc-cities {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .fc-cities::-webkit-scrollbar { display: none; }
  .fc-city-btn { white-space: nowrap; flex-shrink: 0; }
  
  .fc-presets-row { flex-direction: column; gap: 6px; }
  .fc-summary-price { font-size: 26px; }
  .fc-summary-details { flex-direction: column; gap: 8px; }
  
  .fc-table { font-size: 11px; }
  .fc-table thead th, .fc-table tbody td { padding: 6px 8px; }
  
  .fc-legend { flex-wrap: wrap; gap: 12px; }
}
