/* ==========================================================================
   Heating Consumption Calculator & Explanation Layout
   (koliko-elektrike-porabi-klima-za-ogrevanje)
   ========================================================================== */
.heating-calc-zone {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-banner {
  text-align: left;
  margin-bottom: 8px;
}

.calc-banner .calc-lead-title {
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.calc-banner .calc-lead-desc {
  font-size: 16px;
  color: #64748b;
  max-width: 800px;
  line-height: 1.55;
  margin: 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.calc-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 28px;
  box-shadow: var(--shadow-main, 0 10px 25px -5px rgba(0, 0, 0, 0.05));
  border: 1.5px solid #ece8df;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.calc-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #f1f5f9;
}

.calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
  align-self: flex-start;
}

.calc-badge.badge-amber {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.calc-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0;
}

.calc-card-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Calculator Inputs */
.calc-inputs-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc-input-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.calc-label-hint {
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
}

.calc-field-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.calc-input:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.calc-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.calc-preset-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calc-preset-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.calc-preset-btn.active {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #7dd3fc;
}

.calc-range-slider {
  width: 100%;
  accent-color: #0284c7;
  cursor: pointer;
  height: 6px;
  margin-top: 4px;
}

/* Calculator Results */
.calc-results-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  border-radius: 18px;
  padding: 18px;
  border: 1.5px solid #e2e8f0;
}

.calc-results-title {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 480px) {
  .calc-results-grid {
    grid-template-columns: 1fr;
  }
}

.calc-result-tile {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.18s ease;
}

.calc-result-tile.highlight-tile {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}

.calc-result-tile-header {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.highlight-tile .calc-result-tile-header {
  color: #166534;
}

.calc-result-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.calc-result-price {
  font-size: 20px;
  font-weight: 900;
  color: #15803d;
  letter-spacing: -0.02em;
}

.calc-result-kwh {
  font-size: 13.5px;
  font-weight: 700;
  color: #0369a1;
}

/* Comparison Savings Box */
.calc-savings-box {
  background: #fefce8;
  border: 1.5px solid #fde047;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.calc-savings-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.calc-savings-text {
  font-size: 13.5px;
  color: #713f12;
  line-height: 1.45;
}

.calc-savings-text strong {
  color: #854d0e;
  font-weight: 800;
}

/* Explanation Column Styling */
.explanation-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
}

.explanation-paragraphs p {
  margin: 0;
}

.explanation-example-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  border-radius: 0 14px 14px 0;
  padding: 16px 18px;
  margin: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #dcfce7;
  border-right: 1px solid #dcfce7;
  border-bottom: 1px solid #dcfce7;
}

.example-lead {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #166534;
}

.example-math {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.example-sub {
  font-size: 13.5px;
  color: #475569;
}

.formula-card {
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.formula-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.formula-expression {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.explanation-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.explanation-tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #475569;
  line-height: 1.45;
}

.explanation-tips-list li svg {
  width: 18px;
  height: 18px;
  color: #0284c7;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Full-Width Inverter Consumption Line Chart (Chart.js)
   ========================================================================== */
.hvac-chart-section {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 24px;
  border: 1.5px solid #ece8df;
  box-shadow: var(--shadow-main, 0 10px 25px -5px rgba(0, 0, 0, 0.05));
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hvac-header-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hvac-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 4px 12px;
  border-radius: 9999px;
  align-self: flex-start;
}

.hvac-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0284c7;
  animation: pulseHvacDot 2s infinite ease-in-out;
}

@keyframes pulseHvacDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hvac-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
}

.hvac-desc {
  font-size: 14.5px;
  color: #64748b;
  max-width: 860px;
  line-height: 1.55;
  margin: 0;
}

/* Parameters Info Box Grid */
.hvac-params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
}

.hvac-param-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hvac-param-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.hvac-param-val {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

/* Dejavniki porabe (pod grafom) */
.hvac-factors-header {
  padding-top: 24px;
  border-top: 1.5px solid #f1f5f9;
  margin-top: 6px;
}

.hvac-factors-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
}

/* 4x 1/4 Stolpci za dejavnike porabe (pod grafom) */
.hvac-phases-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 16px;
}

.phase-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phase-col-img-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
}

.phase-col-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.phase-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  box-sizing: border-box;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.phase-img-placeholder svg {
  width: 24px;
  height: 24px;
  stroke: #94a3b8;
}

.phase-col-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phase-col-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
}

.phase-col-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .hvac-phases-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .hvac-phases-cols {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Chart Canvas Container */
.hvac-chart-container {
  position: relative;
  width: 100%;
  height: 380px;
}

/* Summary Cards Row */
.hvac-summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  padding-top: 10px;
  border-top: 1.5px solid #f1f5f9;
}

.hvac-stat-card {
  background: #f8fafc;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hvac-stat-card.card-highlight {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}

.hvac-stat-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.card-highlight .hvac-stat-label {
  color: #166534;
}

.hvac-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.card-highlight .hvac-stat-value {
  color: #15803d;
}

.hvac-stat-sub {
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 680px) {
  .hvac-chart-section {
    padding: 22px 16px;
    border-radius: 18px;
    gap: 18px;
  }
  .hvac-title {
    font-size: 20px;
  }
  .hvac-factors-title {
    font-size: 19px;
  }
  .hvac-factors-header {
    padding-top: 18px;
  }
  .hvac-chart-container {
    height: 290px;
  }
  .hvac-params-grid {
    grid-template-columns: 1fr 1fr;
    padding: 12px 14px;
  }
}

@media (max-width: 440px) {
  .hvac-params-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   2-Col Efficiency Cards (1/2 + 1/2)
   ========================================================================== */
.efficiency-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

.efficiency-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 28px;
  box-shadow: var(--shadow-main, 0 10px 25px -5px rgba(0, 0, 0, 0.05));
  border: 1.5px solid #ece8df;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.efficiency-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #f1f5f9;
}

.efficiency-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.3;
}

.efficiency-card-text {
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 860px) {
  .efficiency-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .efficiency-card {
    padding: 24px 20px;
    border-radius: 18px;
  }
  .efficiency-card-title {
    font-size: 20px;
  }
}

/* ==========================================================================
   Heating Guide & Tips Sections (Elements with Image Placeholders)
   ========================================================================== */
.heating-feature-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-main, 0 10px 25px -5px rgba(0, 0, 0, 0.05));
  border: 1.5px solid #ece8df;
  display: block;
  width: 100%;
  margin-top: 24px;
  box-sizing: border-box;
}

.heating-feature-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.heating-feature-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

.heating-feature-text {
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

.heating-feature-img-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heating-feature-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.heating-tips-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 28px;
}

.heating-tips-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.heating-tips-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0;
}

.heating-tips-subtitle {
  font-size: 14.5px;
  color: #64748b;
  margin: 0;
}

.heating-tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.heating-tip-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-main, 0 10px 25px -5px rgba(0, 0, 0, 0.05));
  border: 1.5px solid #ece8df;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.heating-tip-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.08);
}

.heating-tip-img-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heating-tip-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.heating-tip-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.heating-tip-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
}

.heating-tip-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.heating-tip-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 3.5px solid #16a34a;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
  margin-top: auto;
}

/* ==========================================================================
   Electricity Pricing Grid (1/2 + 1/2 na dnu strani)
   ========================================================================== */
.electricity-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 28px;
}

.electricity-price-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-main, 0 10px 25px -5px rgba(0, 0, 0, 0.05));
  border: 1.5px solid #ece8df;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.electricity-price-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.08);
}

.electricity-price-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.electricity-price-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.electricity-price-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.electricity-price-title {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 0;
}

.electricity-price-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1100px) {
  .heating-tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .electricity-pricing-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .electricity-price-card {
    padding: 22px 18px;
    border-radius: 18px;
  }
}

@media (max-width: 1024px) {
  .heating-feature-card {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .heating-tips-grid {
    grid-template-columns: 1fr;
  }
  .heating-feature-title {
    font-size: 22px;
  }
  .heating-tips-title {
    font-size: 20px;
  }
}


