/* ============================================================
   Nomad Cost Calculator — Styles
   Namespace: .ncc-*
   Palette: Borderless Diaries (Coral · Petrol · Cream · Sand)
   ============================================================ */

/* ── CSS Variables ──────────────────────────────────────────────── */
.ncc-root {
  --ncc-coral:      var(--coral,    #C8553D);
  --ncc-petrol:     var(--ink,      #0E2A2E);
  --ncc-cream:      var(--bg-warm,  #F7F5F0);
  --ncc-sand:       var(--sand,     #E8D9BE);
  --ncc-white:      #FFFFFF;
  --ncc-ink-body:   var(--ink-body, #1F3335);
  --ncc-ink-muted:  var(--ink-muted,#637375);
  --ncc-border:     #DDD9D0;
  --ncc-radius:     10px;
  --ncc-radius-sm:  6px;
  --ncc-shadow:     0 2px 12px rgba(14,42,46,.08);
  --ncc-shadow-lg:  0 6px 32px rgba(14,42,46,.12);
  --ncc-font:       var(--ff-sans, 'Geist', system-ui, -apple-system, sans-serif);
  --ncc-mono:       var(--ff-mono, 'JetBrains Mono', 'Courier New', monospace);
  --ncc-trans:      0.18s ease;
}

/* ── Reset & Container ──────────────────────────────────────────── */
.ncc-root *, .ncc-root *::before, .ncc-root *::after { box-sizing: border-box; }
.ncc-root { font-family: var(--ncc-font); color: var(--ncc-ink-body); line-height: 1.5; }
.ncc-root a { color: var(--ncc-coral); text-decoration: none; }
.ncc-root button { font-family: var(--ncc-font); cursor: pointer; }

.ncc-calculator {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0 60px;
}

/* ── Progress ───────────────────────────────────────────────────── */
.ncc-progress {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  padding-top: 8px;
}

.ncc-prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ncc-prog-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ncc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ncc-ink-muted);
  background: var(--ncc-white);
  transition: background var(--ncc-trans), border-color var(--ncc-trans), color var(--ncc-trans);
}

.ncc-prog-step.is-active .ncc-prog-dot {
  background: var(--ncc-coral);
  border-color: var(--ncc-coral);
  color: var(--ncc-white);
}

.ncc-prog-step.is-done .ncc-prog-dot {
  background: var(--ncc-coral);
  border-color: var(--ncc-coral);
  color: var(--ncc-white);
}

.ncc-prog-label {
  font-size: 10px;
  font-family: var(--ncc-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ncc-ink-muted);
  white-space: nowrap;
}

.ncc-prog-step.is-active .ncc-prog-label,
.ncc-prog-step.is-done .ncc-prog-label {
  color: var(--ncc-coral);
}

.ncc-prog-line {
  flex: 1;
  height: 2px;
  background: var(--ncc-border);
  margin: 16px 10px 0;
  min-width: 48px;
  max-width: 120px;
  transition: background var(--ncc-trans);
}

.ncc-prog-line.is-done { background: var(--ncc-coral); }

/* ── Step Header ────────────────────────────────────────────────── */
.ncc-step-header { margin-bottom: 28px; }

.ncc-step-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: var(--ncc-petrol);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ncc-step-subtitle {
  font-size: 15px;
  color: var(--ncc-ink-muted);
  margin: 0;
}

/* ── Currency switcher (EN) ─────────────────────────────────────── */
.ncc-currency-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--ncc-cream);
  border: 1px solid var(--ncc-sand);
  border-radius: 10px;
}
.ncc-currency-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ncc-ink-muted);
}
.ncc-currency-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ncc-currency-btn {
  appearance: none;
  border: 1px solid var(--ncc-sand);
  background: #fff;
  color: var(--ncc-petrol);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  transition: border-color .15s, background .15s, color .15s;
}
.ncc-currency-btn:hover {
  border-color: var(--ncc-coral);
}
.ncc-currency-btn.is-active {
  background: var(--ncc-coral);
  border-color: var(--ncc-coral);
  color: #fff;
}
.ncc-currency-note {
  flex: 1 1 100%;
  font-size: 12px;
  color: var(--ncc-ink-muted);
}

/* ── Selected city chip ─────────────────────────────────────────── */
.ncc-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ncc-petrol);
  background: var(--ncc-cream);
  border: 1px solid var(--ncc-sand);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

/* ── City Search ────────────────────────────────────────────────── */
.ncc-search-wrap {
  position: relative;
  margin-bottom: 32px;
}

.ncc-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ncc-ink-muted);
  pointer-events: none;
}

.ncc-search-input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  font-size: 15px;
  border: 2px solid var(--ncc-border);
  border-radius: var(--ncc-radius);
  background: var(--ncc-white);
  color: var(--ncc-ink-body);
  outline: none;
  transition: border-color var(--ncc-trans), box-shadow var(--ncc-trans);
  -webkit-appearance: none;
}

.ncc-search-input:focus {
  border-color: var(--ncc-coral);
  box-shadow: 0 0 0 3px rgba(200,85,61,.12);
}

.ncc-search-input::placeholder { color: var(--ncc-ink-muted); }

.ncc-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--ncc-white);
  border: 1px solid var(--ncc-border);
  border-radius: var(--ncc-radius);
  box-shadow: var(--ncc-shadow-lg);
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ncc-search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  background: none;
  border: none;
  text-align: left;
  color: var(--ncc-ink-body);
  transition: background var(--ncc-trans);
}

.ncc-search-result-item:hover { background: var(--ncc-cream); }

.ncc-search-result-country {
  margin-left: auto;
  font-size: 12px;
  color: var(--ncc-ink-muted);
}

.ncc-search-empty {
  padding: 16px;
  font-size: 14px;
  color: var(--ncc-ink-muted);
  margin: 0;
}

/* ── City Regions ───────────────────────────────────────────────── */
.ncc-regions { display: flex; flex-direction: column; gap: 28px; }

.ncc-region-label {
  font-family: var(--ncc-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ncc-ink-muted);
  margin: 0 0 12px;
}

.ncc-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.ncc-city-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 10px;
  background: var(--ncc-white);
  border: 2px solid var(--ncc-border);
  border-radius: var(--ncc-radius);
  cursor: pointer;
  transition: border-color var(--ncc-trans), box-shadow var(--ncc-trans), background var(--ncc-trans);
  text-align: center;
  min-height: 78px;
}

.ncc-city-card:hover {
  border-color: var(--ncc-coral);
  box-shadow: var(--ncc-shadow);
}

.ncc-city-card.ncc-selected {
  border-color: var(--ncc-coral);
  background: rgba(200,85,61,.06);
  box-shadow: 0 0 0 3px rgba(200,85,61,.15);
}

.ncc-city-flag { font-size: 22px; line-height: 1; }

.ncc-city-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ncc-petrol);
  line-height: 1.2;
}

.ncc-city-country {
  font-size: 11px;
  color: var(--ncc-ink-muted);
}

/* ── Lifestyle Groups ───────────────────────────────────────────── */
.ncc-lifestyle-groups { display: flex; flex-direction: column; gap: 28px; margin-bottom: 8px; }

.ncc-lifestyle-group {}

.ncc-lifestyle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ncc-petrol);
  margin-bottom: 12px;
}

.ncc-lifestyle-icon { font-size: 18px; }

.ncc-toggle-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ncc-toggle-option {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 12px;
  background: var(--ncc-white);
  border: 2px solid var(--ncc-border);
  border-radius: var(--ncc-radius);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--ncc-trans), background var(--ncc-trans);
}

.ncc-toggle-option:hover {
  border-color: var(--ncc-coral);
}

.ncc-toggle-option.ncc-selected {
  border-color: var(--ncc-coral);
  background: rgba(200,85,61,.06);
}

.ncc-toggle-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ncc-petrol);
  line-height: 1.2;
  display: block;
}

.ncc-toggle-option.ncc-selected .ncc-toggle-label {
  color: var(--ncc-coral);
}

.ncc-toggle-desc {
  font-size: 11px;
  color: var(--ncc-ink-muted);
  line-height: 1.35;
  display: block;
}

/* ── Step Footer (buttons) ──────────────────────────────────────── */
.ncc-step-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ncc-border);
  flex-wrap: wrap;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.ncc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--ncc-font);
  border-radius: var(--ncc-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--ncc-trans), color var(--ncc-trans), border-color var(--ncc-trans), opacity var(--ncc-trans);
  white-space: nowrap;
  text-decoration: none;
}

.ncc-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.ncc-btn-primary {
  background: var(--ncc-coral);
  color: var(--ncc-white);
  border-color: var(--ncc-coral);
}
.ncc-btn-primary:hover:not(:disabled) {
  background: #b04835;
  border-color: #b04835;
  color: var(--ncc-white);
}

.ncc-btn-outline {
  background: transparent;
  color: var(--ncc-coral);
  border-color: var(--ncc-coral);
}
.ncc-btn-outline:hover:not(:disabled) {
  background: rgba(200,85,61,.08);
}

.ncc-btn-ghost {
  background: transparent;
  color: var(--ncc-ink-muted);
  border-color: var(--ncc-border);
}
.ncc-btn-ghost:hover:not(:disabled) {
  background: var(--ncc-cream);
  color: var(--ncc-ink-body);
}

/* ── Results ────────────────────────────────────────────────────── */
.ncc-results-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ncc-compare-mode {
  gap: 24px;
}

.ncc-results-block {
  background: var(--ncc-white);
  border: 1px solid var(--ncc-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ncc-shadow);
}

.ncc-results-city-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--ncc-border);
  background: var(--ncc-cream);
}

.ncc-results-flag { font-size: 28px; line-height: 1; }

.ncc-results-city-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--ncc-petrol);
  margin: 0;
  letter-spacing: -0.02em;
}

.ncc-results-city-country {
  font-size: 13px;
  color: var(--ncc-ink-muted);
}

.ncc-results-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 640px) {
  .ncc-results-layout { grid-template-columns: 1fr; }
}

.ncc-results-left {
  padding: 24px;
  border-right: 1px solid var(--ncc-border);
}

@media (max-width: 640px) {
  .ncc-results-left { border-right: none; border-bottom: 1px solid var(--ncc-border); }
}

.ncc-results-right { padding: 24px; }

/* ── Cost Table ─────────────────────────────────────────────────── */
.ncc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.ncc-table-row td {
  padding: 9px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--ncc-border);
}

.ncc-table-row:last-child td { border-bottom: none; }

.ncc-table-label { color: var(--ncc-ink-body); }

.ncc-table-value {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ncc-petrol);
  white-space: nowrap;
}

.ncc-table-total td {
  padding: 14px 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ncc-petrol);
  border-top: 2px solid var(--ncc-petrol);
}

.ncc-table-total td:last-child {
  text-align: right;
  color: var(--ncc-coral);
  font-size: 20px;
}

.ncc-total-period {
  font-size: 13px;
  font-weight: 400;
  color: var(--ncc-ink-muted);
}

.ncc-results-range {
  font-size: 13px;
  color: var(--ncc-ink-muted);
  margin-bottom: 10px;
}

.ncc-results-range strong { color: var(--ncc-ink-body); }

.ncc-results-meta {
  font-size: 11px;
  color: var(--ncc-ink-muted);
  font-family: var(--ncc-mono);
}

/* ── Context Card ───────────────────────────────────────────────── */
.ncc-context-card {
  background: var(--ncc-cream);
  border-radius: var(--ncc-radius);
  padding: 16px;
  margin-bottom: 16px;
}

.ncc-context-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ncc-ink-body);
  margin: 0;
}

/* ── Affiliate Cards ────────────────────────────────────────────── */
.ncc-affiliate-cards { display: flex; flex-direction: column; gap: 10px; }

.ncc-affiliate-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ncc-border);
  border-radius: var(--ncc-radius);
  background: var(--ncc-white);
  color: var(--ncc-ink-body);
  text-decoration: none;
  transition: border-color var(--ncc-trans), box-shadow var(--ncc-trans);
}

.ncc-affiliate-card:hover {
  border-color: var(--ncc-coral);
  box-shadow: var(--ncc-shadow);
  color: var(--ncc-ink-body);
}

.ncc-affiliate-icon { font-size: 20px; flex-shrink: 0; }

.ncc-affiliate-body { flex: 1; min-width: 0; }

.ncc-affiliate-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ncc-petrol);
  line-height: 1.3;
  display: block;
}

.ncc-affiliate-sub {
  font-size: 11.5px;
  color: var(--ncc-ink-muted);
  display: block;
  margin-top: 2px;
}

.ncc-affiliate-arrow {
  color: var(--ncc-coral);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Results Actions ────────────────────────────────────────────── */
.ncc-results-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ── Newsletter CTA ─────────────────────────────────────────────── */
.ncc-newsletter-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--ncc-petrol);
  border-radius: 14px;
  padding: 24px 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.ncc-nl-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ncc-nl-text strong {
  font-size: 15px;
  color: var(--ncc-white);
  font-weight: 700;
}

.ncc-nl-text span {
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

.ncc-newsletter-cta .ncc-btn-primary {
  background: var(--ncc-coral);
  border-color: var(--ncc-coral);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Compare mode: side by side on desktop ──────────────────────── */
@media (min-width: 900px) {
  .ncc-compare-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ── Scrollbar (inside search results) ─────────────────────────── */
.ncc-search-results::-webkit-scrollbar { width: 6px; }
.ncc-search-results::-webkit-scrollbar-track { background: transparent; }
.ncc-search-results::-webkit-scrollbar-thumb { background: var(--ncc-border); border-radius: 3px; }

/* ── Mobile adjustments ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .ncc-city-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
  .ncc-toggle-group { grid-template-columns: 1fr; }
  .ncc-toggle-option { flex-direction: row; align-items: center; gap: 10px; }
  .ncc-toggle-desc { display: none; }
  .ncc-results-actions { justify-content: stretch; }
  .ncc-results-actions .ncc-btn { flex: 1; justify-content: center; }
  .ncc-newsletter-cta { flex-direction: column; text-align: center; }
  .ncc-newsletter-cta .ncc-btn-primary { width: 100%; justify-content: center; }
  .ncc-prog-line { min-width: 28px; }
  .ncc-prog-label { display: none; }
}

/* ── Loading skeleton (for transitions) ────────────────────────── */
.ncc-fade-in {
  animation: nccFadeIn .22s ease both;
}

@keyframes nccFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   FULL-PAGE LAYOUT  (.ncc-page-*)
   Styles für das page-nomad-calculator.php Template.
   Nutzen die Theme-Klassen article-hero / article-deck etc.
   ═══════════════════════════════════════════════════════════════ */

/* Leichter Cream-Hintergrund auf der Calculator-Seite */
.ncc-page-main {
  background: var(--bg-warm, #F7F5F0);
  min-height: 60vh;
}

/* Tool-Eyebrow im Hero: Coral statt grau */
.ncc-tool-hero .article-eyebrow {
  color: var(--coral, #C8553D);
  border-color: var(--coral, #C8553D);
}

/* Calculator-Body: Container wie die übrigen Seiten-Wrappers */
.ncc-page-body {
  max-width: 1184px;
  margin: 0 auto;
  padding: 40px 48px 80px;
}

@media (max-width: 768px) {
  .ncc-page-body {
    padding: 28px 20px 60px;
  }
}

/* Innerhalb der Seite braucht der Calculator keinen eigenen Padding */
.ncc-page-body .ncc-calculator {
  padding-bottom: 0;
}
