/* ==========================================================================
   AANKOOPKOSTEN SPANJE CALCULATOR - STIJLBLAD (100% PURE VANILLA CSS)
   Professioneel, modern, responsief en geoptimaliseerd voor desktop & mobiel
   ========================================================================== */

:root {
  /* Spaans Mediterraan Kleurenpalet */
  --color-primary: #b84518;        /* Terracotta / Spaans warm rood */
  --color-primary-hover: #9a3412;  /* Diep terracotta */
  --color-primary-subtle: #ffedd5; /* Zacht warm accent */
  --color-primary-ring: rgba(184, 69, 24, 0.2);

  --color-navy: #0f172a;           /* Diep nachtblauw voor headers */
  --color-navy-card: #1e293b;      /* Slate marine */
  
  --color-gold: #d97706;          /* Spaans zon goud */
  --color-gold-subtle: #fef3c7;
  
  --color-green: #059669;         /* Positief / besparing groen */
  --color-green-subtle: #d1fae5;
  
  --color-red: #dc2626;           /* Belastingen / attentie */
  --color-red-subtle: #fee2e2;

  --bg-page: #f8fafc;             /* Zachte neutrale achtergrond */
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #e2e8f0;

  --border-card: #e2e8f0;
  --border-focus: #b84518;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-white: #ffffff;

  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Basis Reset & Box-Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Print Only Helper (Normaal verborgen) */
.print-only {
  display: none;
}

/* ==========================================================================
   HEADER & NAVIGATIE
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-flag {
  display: flex;
  flex-direction: column;
  width: 28px;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.brand-flag .flag-red {
  background-color: #aa151b;
  height: 25%;
}

.brand-flag .flag-yellow {
  background-color: #f1bf00;
  height: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.btn-header:hover {
  background: var(--bg-hover);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-header-primary {
  background: var(--color-primary);
  color: var(--text-white);
  border-color: var(--color-primary);
}

.btn-header-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--text-white);
}

/* ==========================================================================
   HERO SPOTLIGHT
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-card);
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: inline-block;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.highlight-price {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: #fed7aa;
  text-underline-offset: 4px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 1.75rem;
}

.presets-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.presets-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.presets-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.preset-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  min-width: 90px;
}

.preset-btn small {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 1px;
}

.preset-btn:hover {
  border-color: var(--color-primary);
  background: #fffaf5;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.preset-btn.active {
  background: var(--color-primary);
  color: var(--text-white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(184, 69, 24, 0.3);
}

.preset-btn.active small {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   HOOFDINDELING (GRID: INVOER LINKS, RESULTATEN RECHTS)
   ========================================================================== */
.main-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
  width: 100%;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* ==========================================================================
   KOLOM LINKS: INVOERPARAMETERS
   ========================================================================== */
.inputs-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.25rem;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
}

.panel-helper {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-green);
  background: var(--color-green-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.form-card:focus-within {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy);
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.currency-tag,
.tax-badge,
.property-tag,
.pill-recommended,
.pill-info,
.pill-neutral {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
}

.currency-tag {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.tax-badge {
  background: #fee2e2;
  color: #991b1b;
}

.property-tag {
  background: #e0e7ff;
  color: #3730a3;
}

.pill-recommended {
  background: #dcfce7;
  color: #166534;
}

.pill-info {
  background: #f1f5f9;
  color: #475569;
}

.pill-neutral {
  background: #f1f5f9;
  color: var(--text-muted);
}

/* Prijs Input & Slider */
.price-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.price-prefix {
  position: absolute;
  left: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

.price-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-sans);
  color: var(--color-navy);
  background: #fafafa;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.price-input:focus {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-ring);
}

.slider-wrapper {
  margin-top: 1rem;
}

.price-slider {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 500;
}

/* Styled Select */
.select-wrapper {
  position: relative;
}

.styled-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
  background: #fafafa;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.styled-select:focus {
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--color-primary-ring);
}

.field-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.5rem;
}

/* Radio Cards (Woningtype) */
.radio-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  padding: 0.85rem;
  background: #fafafa;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.radio-card.active {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-ring);
}

.radio-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.radio-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.radio-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  display: inline-block;
  flex-shrink: 0;
  position: relative;
}

.radio-card.active .radio-indicator {
  border-color: var(--color-primary);
}

.radio-card.active .radio-indicator::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.radio-content strong {
  font-size: 0.9375rem;
  color: var(--color-navy);
}

.radio-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Option Toggle List (Advocaat, Makelaar) */
.option-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #fafafa;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.option-row:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.option-row input[type="radio"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.option-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.option-details strong {
  font-size: 0.875rem;
  color: var(--color-navy);
}

.option-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.text-danger {
  color: #dc2626 !important;
}

.text-success {
  color: #059669 !important;
}

.option-price-preview {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
}

.option-fixed-input {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.4rem;
}

.mini-number-input {
  width: 80px;
  border: none;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
  outline: none;
}

/* Hypotheek Switch & Subpanel */
.toggle-switch-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.switch-control {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  border-radius: 26px;
  transition: 0.25s;
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch-control input:checked + .switch-slider {
  background-color: var(--color-primary);
}

.switch-control input:checked + .switch-slider::before {
  transform: translateX(22px);
}

.switch-text strong {
  font-size: 0.9375rem;
  color: var(--color-navy);
  display: block;
}

.switch-text p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.mortgage-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-card);
  animation: fadeIn 0.2s ease-in-out;
}

.mortgage-info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.mortgage-info-box svg {
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 2px;
}

.mortgage-info-box p {
  font-size: 0.8125rem;
  color: #15803d;
  line-height: 1.45;
}

.grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.subfield-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.input-with-suffix,
.input-with-prefix {
  display: flex;
  align-items: center;
  background: #fafafa;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.75rem;
  gap: 0.4rem;
}

.sub-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy);
  outline: none;
}

.input-suffix,
.input-prefix {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.subfield-note {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-subtle);
  margin-top: 0.25rem;
}

/* Advanced details accordion */
.advanced-details {
  border-radius: var(--radius-md);
}

.advanced-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
}

.advanced-summary:hover {
  color: var(--color-navy);
}

.summary-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-amount {
  font-weight: 700;
  color: var(--color-navy);
  background: var(--bg-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}

.advanced-body {
  padding-top: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-card);
}

.advanced-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.adv-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.adv-item label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-navy);
}

.adv-item small {
  font-size: 0.6875rem;
  color: var(--text-subtle);
}

.adv-item input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ==========================================================================
   KOLOM RECHTS: ZEER EENVOUDIGE EN DUIDELIJKE UITKOMST
   ========================================================================== */
.results-col {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.main-summary-card {
  background: var(--bg-card);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.main-summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #b84518 0%, #f59e0b 50%, #059669 100%);
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-card);
}

.badge-results {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.region-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e3a8a;
  background: #dbeafe;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* Formule Optelsom Box */
.calculation-breakdown-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.calc-row:hover {
  background: #f8fafc;
}

.base-price-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.base-price-row .calc-label-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy);
}

.base-price-row .calc-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy);
}

.calc-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.calc-label-with-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-label-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
}

.calc-label-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calc-rate-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #fee2e2;
  color: #991b1b;
}

.badge-gray {
  background: #e2e8f0;
  color: #334155;
}

.calc-val-wrap {
  text-align: right;
}

.calc-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  font-family: var(--font-sans);
}

.calc-tax {
  color: #b91c1c;
}

.calc-operator {
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: #94a3b8;
  line-height: 1;
  margin: -0.1rem 0;
}

.calc-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0.5rem 0;
}

.calc-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #cbd5e1;
}

.divider-equal {
  position: relative;
  background: var(--bg-card);
  padding: 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-muted);
}

/* UITKOMST 1: TOTALE AANKOOPKOSTEN */
.total-costs-row {
  background: #fff7ed;
  border: 1.5px solid #ffedd5;
  padding: 0.85rem 1rem;
  margin-top: 0.25rem;
}

.total-costs-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.total-costs-pct {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #c2410c;
}

.total-costs-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-sans);
}

/* UITKOMST 2: GRAND TOTAL ALLES-IN */
.grand-total-banner {
  margin-top: 1rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.grand-total-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.grand-title {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #f8fafc;
}

.grand-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
}

.grand-total-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fef08a; /* Licht zacht goud voor uitstraling */
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}

/* Hypotheek Result Card */
.mortgage-cash-card {
  margin-top: 1.25rem;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 1rem;
  animation: fadeIn 0.2s ease-in-out;
}

.mortgage-cash-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.mortgage-cash-header .icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #bbf7d0;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mortgage-cash-header strong {
  font-size: 0.875rem;
  color: #14532d;
  display: block;
}

.mortgage-cash-header p {
  font-size: 0.75rem;
  color: #166534;
}

.mortgage-cash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
  border-top: 1px dashed #bbf7d0;
  border-bottom: 1px dashed #bbf7d0;
}

.m-cash-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.m-label {
  font-size: 0.6875rem;
  color: #166534;
}

.m-val {
  font-size: 0.875rem;
  color: #14532d;
}

.m-cash-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
  padding: 0.25rem 0;
}

.m-cash-total span {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #14532d;
}

.m-cash-total strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: #15803d;
}

/* Visuele Verdeling Balk */
.breakdown-chart-wrap {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-card);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.chart-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy);
}

.chart-pct-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cost-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #e2e8f0;
}

.bar-seg {
  height: 100%;
  transition: width 0.3s ease;
}

.seg-tax { background: #dc2626; }
.seg-lawyer { background: #d97706; }
.seg-notary { background: #2563eb; }
.seg-registry { background: #0d9488; }
.seg-other { background: #64748b; }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 0.65rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-tax { background: #dc2626; }
.dot-lawyer { background: #d97706; }
.dot-notary { background: #2563eb; }
.dot-registry { background: #0d9488; }
.dot-other { background: #64748b; }

/* Knoppen onder samenvatting */
.results-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.btn-action:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-action-copy {
  background: #f8fafc;
}

.btn-action-share {
  background: #f8fafc;
}

.btn-action-print {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #7e22ce;
}

.btn-action-print:hover {
  background: #f3e8ff;
}

/* Tips Kaart */
.tips-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.tips-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tips-icon {
  font-size: 1.2rem;
}

.tips-header h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy);
}

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tips-list li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
  position: relative;
  padding-left: 1.1rem;
}

.tips-list li::before {
  content: "•";
  position: absolute;
  left: 0.2rem;
  color: var(--color-primary);
  font-weight: bold;
}

/* ==========================================================================
   SECTIES (VERGELIJKING, STAPPENPLAN, FAQ)
   ========================================================================== */
.section-container {
  padding: 4rem 1.25rem;
  border-top: 1px solid var(--border-card);
}

.section-container.bg-subtle {
  background-color: var(--bg-subtle);
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.max-w-4xl {
  max-width: 860px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.section-header-center {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.35rem;
}

.section-heading {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.compare-badge {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e3a8a;
  background: #dbeafe;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Regio Vergelijkingstabel */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.compare-table th {
  background: #f8fafc;
  padding: 0.85rem 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  border-bottom: 1px solid var(--border-card);
  white-space: nowrap;
}

.compare-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
  vertical-align: middle;
}

.compare-table tr:hover {
  background-color: #fffaf5;
}

.compare-table tr.highlight-selected {
  background-color: #fff7ed;
  font-weight: 600;
}

.compare-table tr.highlight-selected td:first-child {
  border-left: 4px solid var(--color-primary);
}

.region-cell-title {
  font-weight: 700;
  color: var(--color-navy);
}

.region-cell-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.badge-pct {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-pct-low { background: #dcfce7; color: #166534; }
.badge-pct-med { background: #fef3c7; color: #92400e; }
.badge-pct-high { background: #fee2e2; color: #991b1b; }

.total-strong {
  font-weight: 800;
  color: var(--color-primary);
}

/* Stappenplan Timeline */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.timeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.85rem;
}

.timeline-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.timeline-step p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Veelgestelde Vragen (FAQ Accordion) */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: #cbd5e1;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.35rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid #f1f5f9;
}

.faq-answer p {
  margin-top: 0.75rem;
}

.faq-answer strong {
  color: var(--color-navy);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1e293b;
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 520px;
}

.footer-nav-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #64748b;
  margin-top: 1.5rem;
}

/* ==========================================================================
   TOAST NOTIFICATIE
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-navy);
  color: var(--text-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Animatie Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVITEIT (MOBIELE APPARATEN & TABLETS)
   ========================================================================== */
@media (max-width: 992px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .results-col {
    position: static;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .header-nav {
    display: none; /* Mobiel menu vereenvoudigen */
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
  }

  .radio-toggle-group {
    grid-template-columns: 1fr;
  }

  .grid-two-cols {
    grid-template-columns: 1fr;
  }

  .grand-total-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .grand-total-amount {
    font-size: 1.6rem;
  }

  .results-actions {
    grid-template-columns: 1fr;
  }

  .presets-pills {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    width: 100%;
  }

  .preset-btn {
    flex-shrink: 0;
  }
}

/* ==========================================================================
   PRINT / PDF RAPPORT STYLING (@media print)
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }

  .site-header,
  .hero-section,
  .inputs-col,
  .results-actions,
  .tips-card,
  #stappenplan,
  #faq,
  .site-footer,
  .toast {
    display: none !important;
  }

  .print-only {
    display: block !important;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000000;
  }

  .print-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .print-title {
    font-size: 18pt;
    font-weight: 800;
    color: #000000;
  }

  .print-subtitle {
    font-size: 11pt;
    color: #444444;
  }

  .print-date {
    font-size: 9pt;
    color: #666666;
  }

  .main-wrapper {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .calculator-grid {
    display: block !important;
  }

  .results-col {
    position: static !important;
  }

  .main-summary-card {
    border: 1px solid #000000 !important;
    box-shadow: none !important;
    padding: 15px !important;
  }

  .grand-total-banner {
    background: #f1f5f9 !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
  }

  .grand-title, .grand-subtitle, .grand-total-amount {
    color: #000000 !important;
  }

  .section-container {
    page-break-before: always;
    padding: 20px 0 !important;
  }

  .compare-table th {
    background: #eeeeee !important;
    color: #000000 !important;
  }
}
