/* =============================================================================
   Know.Travel — General Styles
   Themes, reset, loader, content components, images, lightbox
   Shared across all pages
   ============================================================================= */

/* =============================================================================
   THEME: DARK
   ============================================================================= */
[data-theme="dark"] {
  --bg-base: #08080d;
  --bg-surface: #0c0c14;
  --bg-card: #12121c;
  --bg-elevated: #181824;
  --bg-hover: #1e1e2c;
  --bg-input: #10101a;

  --border-subtle: rgba(255,255,255,0.04);
  --border-default: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --border-focus: #4fc3f7;

  --text-primary: #eaeaf0;
  --text-secondary: #9a9ab0;
  --text-tertiary: #5a5a70;
  --text-on-accent: #ffffff;

  --accent-blue: #4fc3f7;
  --accent-purple: #7c4dff;
  --accent-cyan: #00e5ff;
  --accent-pink: #f06292;
  --accent-orange: #ffab40;
  --accent-teal: #26a69a;

  --accent-blue-muted: rgba(79,195,247,0.12);
  --accent-purple-muted: rgba(124,77,255,0.12);
  --accent-pink-muted: rgba(240,98,146,0.12);
  --accent-orange-muted: rgba(255,171,64,0.12);
  --accent-teal-muted: rgba(38,166,154,0.12);

  --border-highlight: rgba(255,171,64,0.5);
  --border-highlight-strong: rgba(255,171,64,0.75);

  --gradient-progress: linear-gradient(90deg, #f06292, #7c4dff, #4fc3f7);
  --gradient-brand: linear-gradient(135deg, #4fc3f7, #7c4dff);
  --gradient-warm: linear-gradient(90deg, #f06292, #ffab40);

  --scrollbar-thumb: rgba(255,255,255,0.06);
  --scrollbar-thumb-hover: rgba(255,255,255,0.16);
  --scrollbar-track: transparent;

  --tint-orange-bg: rgba(255,171,64,0.06);
  --tint-orange-border: rgba(255,171,64,0.3);
  --tint-green-bg: rgba(102,187,106,0.06);
  --tint-green-border: rgba(102,187,106,0.3);
  --tint-pink-bg: rgba(240,98,146,0.06);
  --tint-pink-border: rgba(240,98,146,0.3);
  --tint-blue-bg: rgba(79,195,247,0.06);
  --tint-blue-border: rgba(79,195,247,0.25);
  --tint-purple-bg: rgba(124,77,255,0.06);
  --tint-purple-border: rgba(124,77,255,0.25);

  --status-success: #66bb6a;
  --status-warning: #ffa726;
  --status-error: #ef5350;
  --status-info: #42a5f5;
  --status-live: #f06292;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.6);

  --header-bg: #0a0a12;
  --header-border: #14141f;

  --logo-blue: #4fc3f7;
  --logo-purple: #7c4dff;
  --logo-cyan: #00e5ff;
  --logo-text: #e8e8ef;
  --logo-dot: #7c4dff;

  --aurora1: conic-gradient(from 0deg, rgba(79,195,247,0.1), rgba(124,77,255,0.08), rgba(0,229,255,0.04), transparent, rgba(79,195,247,0.1));
  --aurora2: conic-gradient(from 180deg, rgba(124,77,255,0.06), transparent, rgba(0,229,255,0.06), transparent, rgba(124,77,255,0.06));
  --logo-glow: drop-shadow(0 0 5px rgba(79,195,247,0.15)) drop-shadow(0 0 18px rgba(124,77,255,0.07));

  --route-line: rgba(240,98,146,0.45);
  --route-glow: rgba(240,98,146,0.25);
  --marker-lg: #4fc3f7;
  --marker-md: #42a5f5;
  --marker-sm: #ffab40;
  --marker-xs: #f06292;
}

/* =============================================================================
   THEME: LIGHT
   ============================================================================= */
[data-theme="light"] {
  --bg-base: #f8f8fb;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f0f0f5;
  --bg-hover: #eaeaf0;
  --bg-input: #f5f5f8;

  --border-subtle: rgba(0,0,0,0.04);
  --border-default: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);
  --border-focus: #1565c0;

  --text-primary: #1a1a2e;
  --text-secondary: #5a5a70;
  --text-tertiary: #9a9ab0;
  --text-on-accent: #ffffff;

  --accent-blue: #1565c0;
  --accent-purple: #5c3bbf;
  --accent-cyan: #0097a7;
  --accent-pink: #d81b60;
  --accent-orange: #e65100;
  --accent-teal: #00897b;

  --accent-blue-muted: rgba(21,101,192,0.08);
  --accent-purple-muted: rgba(92,59,191,0.08);
  --accent-pink-muted: rgba(216,27,96,0.08);
  --accent-orange-muted: rgba(230,81,0,0.08);
  --accent-teal-muted: rgba(0,137,123,0.08);

  --border-highlight: rgba(230,81,0,0.4);
  --border-highlight-strong: rgba(230,81,0,0.65);

  --gradient-progress: linear-gradient(90deg, #d81b60, #5c3bbf, #1565c0);
  --gradient-brand: linear-gradient(135deg, #1565c0, #5c3bbf);
  --gradient-warm: linear-gradient(90deg, #d81b60, #e65100);

  --scrollbar-thumb: rgba(0,0,0,0.06);
  --scrollbar-thumb-hover: rgba(0,0,0,0.16);
  --scrollbar-track: transparent;

  --tint-orange-bg: rgba(230,81,0,0.04);
  --tint-orange-border: rgba(230,81,0,0.25);
  --tint-green-bg: rgba(46,125,50,0.04);
  --tint-green-border: rgba(46,125,50,0.25);
  --tint-pink-bg: rgba(216,27,96,0.04);
  --tint-pink-border: rgba(216,27,96,0.22);
  --tint-blue-bg: rgba(21,101,192,0.04);
  --tint-blue-border: rgba(21,101,192,0.2);
  --tint-purple-bg: rgba(92,59,191,0.04);
  --tint-purple-border: rgba(92,59,191,0.2);

  --status-success: #2e7d32;
  --status-warning: #e65100;
  --status-error: #c62828;
  --status-info: #1565c0;
  --status-live: #d81b60;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);

  --header-bg: #ffffff;
  --header-border: #ebebf0;

  --logo-blue: #1565c0;
  --logo-purple: #5c3bbf;
  --logo-cyan: #0097a7;
  --logo-text: #1a1a2e;
  --logo-dot: #5c3bbf;

  --aurora1: conic-gradient(from 0deg, rgba(21,101,192,0.06), rgba(92,59,191,0.05), rgba(0,151,167,0.03), transparent, rgba(21,101,192,0.06));
  --aurora2: conic-gradient(from 180deg, rgba(92,59,191,0.04), transparent, rgba(0,151,167,0.04), transparent, rgba(92,59,191,0.04));
  --logo-glow: drop-shadow(0 0 5px rgba(21,101,192,0.12)) drop-shadow(0 0 16px rgba(92,59,191,0.05));

  --route-line: rgba(216,27,96,0.35);
  --route-glow: rgba(216,27,96,0.15);
  --marker-lg: #1565c0;
  --marker-md: #1976d2;
  --marker-sm: #e65100;
  --marker-xs: #d81b60;
}

/* =============================================================================
   THEME: SUNSET (Golden Hour)
   ============================================================================= */
[data-theme="sunset"] {
  --bg-base: #fef5ee;
  --bg-surface: #fff8f2;
  --bg-card: #fff8f4;
  --bg-elevated: #faeee4;
  --bg-hover: rgba(232,106,16,0.08);
  --bg-input: #fef0e4;

  --border-subtle: #f5e4d8;
  --border-default: #ecd0be;
  --border-strong: #e0bca8;
  --border-focus: #e86a10;

  --text-primary: #3a1e12;
  --text-secondary: #7a5040;
  --text-tertiary: #a88070;
  --text-on-accent: #ffffff;

  --accent-blue: #e86a10;
  --accent-purple: #c03888;
  --accent-cyan: #e88a20;
  --accent-pink: #e04070;
  --accent-orange: #d05800;
  --accent-teal: #b05a00;

  --accent-blue-muted: rgba(232,106,16,0.1);
  --accent-purple-muted: rgba(192,56,136,0.1);
  --accent-pink-muted: rgba(224,64,112,0.1);
  --accent-orange-muted: rgba(208,88,0,0.1);
  --accent-teal-muted: rgba(176,90,0,0.1);

  --border-highlight: rgba(232,106,16,0.4);
  --border-highlight-strong: rgba(232,106,16,0.65);

  --gradient-progress: linear-gradient(90deg, #e04070, #c03888, #e86a10);
  --gradient-brand: linear-gradient(135deg, #e86a10, #c03888);
  --gradient-warm: linear-gradient(90deg, #e04070, #d05800);

  --scrollbar-thumb: rgba(120,60,20,0.08);
  --scrollbar-thumb-hover: rgba(120,60,20,0.22);
  --scrollbar-track: transparent;

  --tint-orange-bg: rgba(232,106,16,0.06);
  --tint-orange-border: rgba(232,106,16,0.25);
  --tint-green-bg: rgba(120,140,40,0.06);
  --tint-green-border: rgba(120,140,40,0.25);
  --tint-pink-bg: rgba(224,64,112,0.06);
  --tint-pink-border: rgba(224,64,112,0.22);
  --tint-blue-bg: rgba(232,106,16,0.06);
  --tint-blue-border: rgba(232,106,16,0.2);
  --tint-purple-bg: rgba(192,56,136,0.06);
  --tint-purple-border: rgba(192,56,136,0.2);

  --status-success: #5a8a20;
  --status-warning: #d07000;
  --status-error: #c83030;
  --status-info: #c06010;
  --status-live: #e04070;

  --shadow-sm: 0 1px 3px rgba(100,40,0,0.06);
  --shadow-md: 0 4px 12px rgba(100,40,0,0.08);
  --shadow-lg: 0 8px 30px rgba(100,40,0,0.1);

  --header-bg: #fff6f0;
  --header-border: #f0d8c8;

  --logo-blue: #e86a10;
  --logo-purple: #c03888;
  --logo-cyan: #e88a20;
  --logo-text: #3a1e12;
  --logo-dot: #c03888;

  --aurora1: conic-gradient(from 0deg, rgba(232,106,16,0.06), rgba(192,56,136,0.05), rgba(232,138,32,0.03), transparent, rgba(232,106,16,0.06));
  --aurora2: conic-gradient(from 180deg, rgba(192,56,136,0.04), transparent, rgba(232,138,32,0.04), transparent, rgba(192,56,136,0.04));
  --logo-glow: drop-shadow(0 0 5px rgba(232,106,16,0.15)) drop-shadow(0 0 16px rgba(192,56,136,0.07));

  --route-line: rgba(224,64,112,0.35);
  --route-glow: rgba(224,64,112,0.15);
  --marker-lg: #e86a10;
  --marker-md: #d07800;
  --marker-sm: #d05800;
  --marker-xs: #e04070;
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  padding-top: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.35s, color 0.35s;
}

/* Ambient glow — sunset only */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(255,140,40,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(200,50,130,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s;
}

[data-theme="sunset"] body::before,
[data-theme="sunset"] body::after {
  opacity: 1;
}

a { color: inherit; text-decoration: none; }

/* Text selection — tropic (travel-themed teal-emerald) */
::selection { background: rgba(15,170,150,0.22); }
::-moz-selection { background: rgba(15,170,150,0.22); }

/* ============================================
   LAZY LOADING — Blur-up system (global)
   ============================================ */
.lazy-wrapper {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.lazy-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 1;
}

.lazy-wrapper img.loaded {
  opacity: 1;
}

/* Aspect ratio helpers */
.aspect-landscape { aspect-ratio: 4 / 3; }
.aspect-portrait { aspect-ratio: 3 / 4; }
.aspect-square { aspect-ratio: 1 / 1; }

/* ============================================
   THREE DOTS WAVE LOADER (global, brand colors)
   ============================================ */
.lazy-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 0;
  transition: opacity 0.3s;
}

.lazy-wrapper.loaded .lazy-loader {
  opacity: 0;
  pointer-events: none;
}

.lazy-loader span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: dotWave 1.2s ease-in-out infinite;
}

.lazy-loader span:nth-child(1) { animation-delay: 0s; }
.lazy-loader span:nth-child(2) { animation-delay: 0.15s; }
.lazy-loader span:nth-child(3) { animation-delay: 0.3s; }

/* Dots — dark */
[data-theme="dark"] .lazy-loader span:nth-child(1) { background: #4fc3f7; }
[data-theme="dark"] .lazy-loader span:nth-child(2) { background: #7c4dff; }
[data-theme="dark"] .lazy-loader span:nth-child(3) { background: #00e5ff; }

/* Dots — light */
[data-theme="light"] .lazy-loader span:nth-child(1) { background: #1565c0; }
[data-theme="light"] .lazy-loader span:nth-child(2) { background: #5c3bbf; }
[data-theme="light"] .lazy-loader span:nth-child(3) { background: #0097a7; }

/* Dots — sunset */
[data-theme="sunset"] .lazy-loader span:nth-child(1) { background: #f4845f; }
[data-theme="sunset"] .lazy-loader span:nth-child(2) { background: #f27059; }
[data-theme="sunset"] .lazy-loader span:nth-child(3) { background: #ffd166; }

@keyframes dotWave {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-8px); }
}

/* ============================================
   LIGHTBOX LOADER (global, larger dots on dark bg)
   ============================================ */
.lightbox-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 8px;
  align-items: center;
  transition: opacity 0.3s;
}

.lightbox-loader span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: dotWave 1.2s ease-in-out infinite;
}

.lightbox-loader span:nth-child(1) { background: #4fc3f7; animation-delay: 0s; }
.lightbox-loader span:nth-child(2) { background: #7c4dff; animation-delay: 0.15s; }
.lightbox-loader span:nth-child(3) { background: #00e5ff; animation-delay: 0.3s; }

.lightbox-loader.hidden {
  opacity: 0;
  pointer-events: none;
}
/* =============================================================================
   CONTENT COMPONENTS — reusable across all pages
   (info boxes, callout, kv-grid, table, badges, app-cards)
   ============================================================================= */

/* ============================================
   INFO BOXES — card with icon badge
   ============================================ */
.info-box {
  position: relative;
  border-radius: 12px;
  padding: 20px 20px 18px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.65;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  transition: background 0.35s, border-color 0.35s;
}

.info-box-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box-title .info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 12px;
  flex-shrink: 0;
}

/* Blue — tips, info */
.info-blue { border-color: color-mix(in srgb, var(--accent-blue) 25%, var(--border-default)); }
.info-blue .info-box-title { color: var(--accent-blue); }
.info-blue .info-icon { background: var(--tint-blue-bg); }

/* Green — success, verified */
.info-green { border-color: color-mix(in srgb, var(--status-success) 25%, var(--border-default)); }
.info-green .info-box-title { color: var(--status-success); }
.info-green .info-icon { background: var(--tint-green-bg); }

/* Orange — warning */
.info-orange { border-color: color-mix(in srgb, var(--accent-orange) 25%, var(--border-default)); }
.info-orange .info-box-title { color: var(--accent-orange); }
.info-orange .info-icon { background: var(--tint-orange-bg); }

/* Pink — important */
.info-pink { border-color: color-mix(in srgb, var(--accent-pink) 25%, var(--border-default)); }
.info-pink .info-box-title { color: var(--accent-pink); }
.info-pink .info-icon { background: var(--tint-pink-bg); }

/* Teal — neutral note */
.info-teal { border-color: color-mix(in srgb, var(--accent-teal) 25%, var(--border-default)); }
.info-teal .info-box-title { color: var(--accent-teal); }
.info-teal .info-icon { background: var(--tint-green-bg); }

.info-box p {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.info-box p:last-child { margin-bottom: 0; }

/* ============================================
   CALLOUT (quote / personal note)
   ============================================ */
.callout {
  padding: 20px 24px;
  border-radius: 10px;
  background: var(--tint-purple-bg);
  border-left: 3px solid var(--accent-purple);
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  font-style: italic;
  transition: background 0.35s;
}

/* Callout color variants */
.callout-blue { background: var(--tint-blue-bg); border-left-color: var(--accent-blue); }
.callout-green { background: var(--tint-green-bg); border-left-color: var(--status-success); }
.callout-orange { background: var(--tint-orange-bg); border-left-color: var(--accent-orange); }
.callout-pink { background: var(--tint-pink-bg); border-left-color: var(--accent-pink); }

/* Right border variant */
.callout-right { border-left: none; border-right: 3px solid var(--accent-purple); }
.callout-right.callout-blue { border-right-color: var(--accent-blue); }
.callout-right.callout-green { border-right-color: var(--status-success); }
.callout-right.callout-orange { border-right-color: var(--accent-orange); }
.callout-right.callout-pink { border-right-color: var(--accent-pink); }

/* ============================================
   KEY-VALUE GRID
   ============================================ */
.kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.kv-item {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  transition: background 0.35s, border-color 0.35s;
}

.kv-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.kv-value {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.kv-note {
  display: block;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ============================================
   TABLE
   ============================================ */
.article-table-wrap {
  border: 1px solid var(--border-default);
  border-radius: 10px;
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  transition: border-color 0.35s;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 10px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-default);
  transition: background 0.35s;
}

.article-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-default);
  color: var(--text-secondary);
  vertical-align: middle;
  transition: color 0.35s;
}

.article-table tbody tr:last-child td { border-bottom: none; }
.article-table tbody tr:hover { background: var(--bg-hover); }
.article-table .code { font-weight: 600; color: var(--accent-blue); font-size: 13px; }
.article-table .muted { color: var(--text-tertiary); }

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.b-green { background: var(--tint-green-bg); color: var(--status-success); }
.b-orange { background: var(--tint-orange-bg); color: var(--accent-orange); }

/* ============================================
   APP CARDS
   ============================================ */
.app-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.app-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.app-card:hover { border-color: var(--border-strong); }
.app-icon { font-size: 18px; }

/* ============================================
   LISTS — bullet, dash, numbered
   ============================================ */
.article ul,
.article ol {
  margin: 14px 0 20px;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.article ul li,
.article ol li {
  margin-bottom: 6px;
  padding-left: 4px;
}

.article ul li::marker {
  color: var(--accent-blue);
}

.article ol li::marker {
  color: var(--accent-blue);
  font-weight: 600;
}

.article li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Dash list — ul with dashes instead of bullets */
.dash-list {
  list-style: none;
  padding-left: 0 !important;
}

.dash-list li {
  padding-left: 20px !important;
  position: relative;
}

.dash-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section {
  margin: 28px 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-default);
  transition: border-color 0.35s;
}

.faq-item:first-child {
  border-top: 1px solid var(--border-default);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent-blue);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-tertiary);
  transition: transform 0.25s, background 0.2s, border-color 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 16px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   EXPERT COMMENT
   ============================================ */
.expert-comment {
  display: flex;
  gap: 16px;
  margin: 28px 0;
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  transition: background 0.35s, border-color 0.35s;
}

.expert-photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
}

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

.expert-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 10px;
}

.expert-sig {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.expert-name {
  font-weight: 600;
  color: var(--text-primary);
}

.expert-role {
  color: var(--text-tertiary);
}

/* ============================================
   NOTE CARDS — alternative to info-box
   Clean card style with top accent + floating tag
   ============================================ */
.note-card {
  position: relative;
  margin: 24px 0;
  padding: 22px 20px 18px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-top: 3px solid var(--text-tertiary);
  font-size: 15px;
  line-height: 1.65;
  transition: background 0.35s, border-color 0.35s;
}

.note-tag {
  position: absolute;
  top: -12px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  transition: background 0.35s, border-color 0.35s;
}

.note-card p {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.note-card p:last-child { margin-bottom: 0; }

/* Tip — blue */
.note-tip { border-top-color: var(--accent-blue); }
.note-tip .note-tag { color: var(--accent-blue); }

/* Warning — orange */
.note-warning { border-top-color: var(--accent-orange); }
.note-warning .note-tag { color: var(--accent-orange); }

/* Important — pink/red */
.note-important { border-top-color: var(--accent-pink); }
.note-important .note-tag { color: var(--accent-pink); }

/* Success — green */
.note-success { border-top-color: var(--status-success); }
.note-success .note-tag { color: var(--status-success); }

/* Neutral — teal */
.note-neutral { border-top-color: var(--accent-teal); }
.note-neutral .note-tag { color: var(--accent-teal); }

/* ============================================
   PROS / CONS — two columns
   ============================================ */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.pros-col, .cons-col {
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  padding: 18px 20px;
  transition: background 0.35s, border-color 0.35s;
}

.pros-cons-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pros-title { color: var(--status-success); }
.pros-title::before { content: '✓'; }
.cons-title { color: var(--accent-pink); }
.cons-title::before { content: '✗'; }

.pros-col ul, .cons-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.pros-col li, .cons-col li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-top: 1px solid var(--border-default);
}

.pros-col li:first-child, .cons-col li:first-child { border-top: none; }

.pros-col li::before {
  content: '+';
  position: absolute;
  left: 6px;
  font-weight: 700;
  color: var(--status-success);
}

.cons-col li::before {
  content: '−';
  position: absolute;
  left: 6px;
  font-weight: 700;
  color: var(--accent-pink);
}

/* ============================================
   CTA BUTTONS — minimal, modern
   ============================================ */
.cta-row {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, opacity 0.2s;
}

.cta-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* 1. Primary — outline blue, fills on hover */
.cta-primary {
  background: transparent;
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.cta-primary:hover {
  background: var(--accent-blue);
  color: #fff;
}

/* 2. Ghost — no border, subtle bg on hover */
.cta-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-secondary);
}
.cta-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: transparent;
}

/* 3. Pill — fully rounded */
.cta-pill {
  border-radius: 50px;
}

/* 4. Underline — text only, animated underline */
.cta-underline {
  border: none;
  background: none;
  padding: 8px 2px;
  color: var(--accent-blue);
  position: relative;
}
.cta-underline::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-blue);
  transition: width 0.3s;
}
.cta-underline:hover {
  border: none;
  color: var(--accent-blue);
}
.cta-underline:hover::after {
  width: 100%;
}

/* 5. Glass — frosted, semi-transparent */
.cta-glass {
  background: rgba(128,128,128,0.08);
  border-color: rgba(128,128,128,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cta-glass:hover {
  background: rgba(128,128,128,0.14);
  border-color: rgba(128,128,128,0.25);
  color: var(--text-primary);
}

/* 6. Accent colors */
.cta-green {
  border-color: var(--status-success);
  color: var(--status-success);
  background: transparent;
}
.cta-green:hover {
  background: var(--status-success);
  color: #fff;
  border-color: var(--status-success);
}

.cta-orange {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: transparent;
}
.cta-orange:hover {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
}

.cta-pink {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  background: transparent;
}
.cta-pink:hover {
  background: var(--accent-pink);
  color: #fff;
  border-color: var(--accent-pink);
}

/* 7. Minimal — just arrow, ultra clean */
.cta-minimal {
  border: none;
  background: none;
  padding: 8px 0;
  color: var(--text-secondary);
  font-weight: 400;
  gap: 6px;
}
.cta-minimal::after {
  content: '→';
  transition: transform 0.2s;
}
.cta-minimal:hover {
  color: var(--accent-blue);
  border: none;
}
.cta-minimal:hover::after {
  transform: translateX(4px);
}

/* 8. Tag — compact, small */
.cta-tag {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 6px;
}

/* 9. Solid dark — inverted */
.cta-dark {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-base);
}
.cta-dark:hover {
  opacity: 0.8;
  border-color: var(--text-primary);
  color: var(--bg-base);
}

/* 10. Wide — full width */
.cta-wide {
  display: flex;
  width: 100%;
  margin: 16px 0;
}

/* Inline link style */
.cta-inline {
  color: var(--accent-blue);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-blue-muted);
  transition: border-color 0.2s;
}
.cta-inline:hover {
  border-bottom-style: solid;
  border-bottom-color: var(--accent-blue);
}

/* ============================================
   VIDEO EMBED — responsive 16:9
   ============================================ */
.video-embed,
.map-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
}

.video-embed iframe,
.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
}

/* Loader — reuses Three Dots Wave animation from lazy-loader */
.embed-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 6px;
  z-index: 0;
}

.embed-loader span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.4;
  animation: dotWave 1.2s ease-in-out infinite;
}

.embed-loader span:nth-child(2) { animation-delay: 0.15s; }
.embed-loader span:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   MAP EMBED — border
   ============================================ */
.map-embed {
  border: 1px solid var(--border-default);
}

/* ============================================
   CHECKLIST — interactive checkboxes
   ============================================ */
.checklist {
  margin: 24px 0;
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  transition: background 0.35s, border-color 0.35s;
}

.checklist-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-default);
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.checklist-item:hover { color: var(--text-primary); }

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-item input:checked + span {
  text-decoration: line-through;
  opacity: 0.5;
}

/* ============================================
   TIMELINE — vertical steps
   ============================================ */
.timeline {
  margin: 24px 0;
  padding-left: 28px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border-default);
  transition: background 0.35s;
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 24px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -34px;
  top: 0;
  min-width: 24px;
  max-width: 60px;
  min-height: 24px;
  width: auto;
  height: auto;
  padding: 4px 6px;
  border-radius: 30px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  z-index: 1;
}

.timeline-content {
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  transition: background 0.35s, border-color 0.35s;
}

.timeline-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-subtitle {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   COMPARISON — side by side
   ============================================ */
.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  transition: background 0.35s, border-color 0.35s;
}

.comparison-col {
  min-width: 0;
}

.comparison-header {
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: #fff;
}

.comparison-a { background: var(--accent-blue); }
.comparison-b { background: var(--accent-purple); }

.comparison-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  background: var(--bg-card);
  border-left: 1px solid var(--border-default);
  border-right: 1px solid var(--border-default);
  transition: background 0.35s, border-color 0.35s;
}

.comparison-body {
  padding: 4px 0;
}

.comparison-row {
  padding: 10px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comparison-row:first-child { border-top: none; }

/* comparison-row compact */
.comparison-row-compact {
  padding: 6px 16px;
  gap: 0;
}

/* comparison header color variants */
.comparison-a-nature {
  background: linear-gradient(135deg, rgba(34,197,94,0.85), rgba(16,185,129,0.9));
  border-color: transparent;
}

.comparison-b-sea {
  background: linear-gradient(135deg, rgba(14,165,233,0.85), rgba(56,189,248,0.9));
  border-color: transparent;
}

.comparison-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ============================================
   RATING — score card with bars
   ============================================ */
.rating-card {
  margin: 24px 0;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  overflow: hidden;
  transition: background 0.35s, border-color 0.35s;
}

.rating-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--border-default);
}

.rating-score {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rating-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.rating-verdict {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.rating-bars {
  padding: 16px 20px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.rating-bar-label {
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 120px;
  flex-shrink: 0;
}

.rating-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--border-default);
  overflow: hidden;
  transition: background 0.35s;
}

.rating-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent-blue);
  transition: width 0.6s ease;
}

.rating-bar-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 28px;
  text-align: right;
}

/* =============================================================================
   IMAGE LAYOUTS — figure, solo, paired
   ============================================================================= */

/* Figure wrapper */
.article-figure {
  margin: 24px 0;
  position: relative;
}

.article-figure figcaption {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: -10px;
  padding: 0;
  line-height: 1.5;
}

.article-figure--video figcaption,
.article-figure:has(.video-embed) figcaption,
.article-figure:has(.map-embed) figcaption,
.article-figure:has(.ktv-wrap) figcaption {
  margin-top: 8px;
}

.article-figure figcaption a {
  color: var(--text-tertiary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Solo image — full width of content */
.article-img-solo {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

/* Paired images — 2 side by side, equal height */
.article-img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.article-img-row .article-figure {
  margin: 0;
}

.article-img-pair {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

/* Force equal height for paired images */
.article-img-row .lazy-wrapper {
  aspect-ratio: 4 / 3;
}

/* Inherit border-radius so lazy-wrapper doesn't block parent's overflow:hidden clipping */
/* No forced aspect-ratio for solo images — natural image height, no cropping */
.article-figure .article-img-solo .lazy-wrapper,
.article-figure .article-img-solo .lazy-wrapper.aspect-landscape,
.article-figure .article-img-solo .lazy-wrapper.aspect-portrait,
.article-figure .article-img-solo .lazy-wrapper.aspect-square {
  border-radius: inherit;
  aspect-ratio: unset;
  min-height: 80px; /* blur preview visible during load */
}

/* WordPress wraps <img> in <p> inside WYSIWYG -- fix height chain */
.article-figure .lazy-wrapper > p {
  margin: 0;
  padding: 0;
  line-height: 0;
  height: 100%;
  display: block;
}

/* =============================================================================
   INLINE VIDEO — autoplay GIF-style with pause toggle and dot loader
   Self-contained block; HTML in articles uses class .ktv-* (no inline styles)
   ============================================================================= */

.ktv-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
}

.ktv-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ktv-wrap.loaded .ktv-video {
  opacity: 1;
}

/* Loader inside video block — same dot wave style as image lazy loader */
.ktv-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 1;
  transition: opacity 0.3s;
  pointer-events: none;
}

.ktv-wrap.loaded .ktv-loader {
  opacity: 0;
}

.ktv-loader span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: dotWave 1.2s ease-in-out infinite;
}

.ktv-loader span:nth-child(1) { animation-delay: 0s; }
.ktv-loader span:nth-child(2) { animation-delay: 0.15s; }
.ktv-loader span:nth-child(3) { animation-delay: 0.3s; }

[data-theme="dark"] .ktv-loader span:nth-child(1) { background: #4fc3f7; }
[data-theme="dark"] .ktv-loader span:nth-child(2) { background: #7c4dff; }
[data-theme="dark"] .ktv-loader span:nth-child(3) { background: #00e5ff; }

[data-theme="light"] .ktv-loader span:nth-child(1) { background: #1565c0; }
[data-theme="light"] .ktv-loader span:nth-child(2) { background: #5c3bbf; }
[data-theme="light"] .ktv-loader span:nth-child(3) { background: #0097a7; }

[data-theme="sunset"] .ktv-loader span:nth-child(1) { background: #f4845f; }
[data-theme="sunset"] .ktv-loader span:nth-child(2) { background: #f27059; }
[data-theme="sunset"] .ktv-loader span:nth-child(3) { background: #ffd166; }

.ktv-toggle {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-on-accent);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
  z-index: 2;
}

.ktv-toggle:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
  opacity: 1;
}

.ktv-toggle:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  opacity: 1;
}

/* Reduced motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
  .ktv-toggle {
    transition: none;
  }
}

/* Zoom icon hint on hover */
.article-img-solo::after,
.article-img-pair::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.45);
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  pointer-events: none;
  z-index: 2;
}

.article-img-solo:hover::after,
.article-img-pair:hover::after {
  opacity: 1;
}

/* =============================================================================
   LIGHTBOX MODAL
   ============================================================================= */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  cursor: zoom-out;
  transition: opacity 0.3s;
  z-index: 1;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  text-align: center;
  max-width: 600px;
  padding: 8px 16px;
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
}

/* Nav arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* =============================================================================
   RESPONSIVE — Content components
   ============================================================================= */
@media (max-width: 640px) {
  .kv-grid {
    grid-template-columns: 1fr;
  }

  .article-img-row {
    grid-template-columns: 1fr;
  }

  .expert-comment {
    flex-direction: column;
    gap: 12px;
  }

  .expert-photo {
    width: 40px;
    height: 40px;
  }

  .faq-question {
    font-size: 15px;
    padding: 14px 0;
  }

  .pros-cons {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

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

  .comparison-vs {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
    padding: 6px 0;
  }

  .timeline {
    padding-left: 22px;
  }

  .timeline-item {
    padding-left: 18px;
  }

  .timeline-marker {
    left: -28px;
    min-width: 20px;
    max-width: 54px;
    min-height: 20px;
    font-size: 11px;
  }

  .timeline::before {
    left: 9px;
  }

  .rating-bar-label {
    min-width: 90px;
    font-size: 12px;
  }
}
/* =============================================================================
   Breadcrumb — universal, aligned with header logo
   Desktop: parent-padding(24) + 4 = 28px = logo position
   Mobile ≤768: parent-padding(16) − 4 = 12px = logo position
   ============================================================================= */
.ap-breadcrumb { font-size: 13px; color: var(--text-tertiary); text-align: left; padding: 0 0 20px 4px; }
.ap-breadcrumb a { color: var(--accent-blue); text-decoration: none; }
.ap-breadcrumb a:hover { text-decoration: underline; }
.ap-breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

@media (max-width: 768px) {
  .ap-breadcrumb { padding-left: 0; margin-left: -4px; }
}

/* =============================================================================
   Custom Scrollbar — minimal, themed
   ============================================================================= */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 6px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  border: 3px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

.comparison-header-muted {
  background: var(--bg-elevated);
  border-color: var(--border-default);
  color: var(--text-primary) !important;
}



/* =============================================================================
   WordPress Admin Bar Override (KT redesign pages)
   html:root specificity (0,1,1) beats WP admin-bar html (0,0,1) even with !important
   ============================================================================= */
html:root {
  margin-top: 0 !important;
}
#wpadminbar {
  display: none !important;
}

.mega-overlay { z-index: 10000 !important; }
.mega-panel   { z-index: 10001 !important; }


.mega-panel img.emoji,
.mega-overlay img.emoji {
    width: 1em !important;
    height: 1em !important;
    max-width: none !important;
}



/* Header */
.site-header img.emoji,
header img.emoji {
    width: 1em !important;
    height: 1em !important;
    max-width: none !important;
}

/* Footer */
.site-footer img.emoji,
footer img.emoji {
    width: 1.1em !important;
    height: 1.1em !important;
    max-width: none !important;
    vertical-align: -0.15em;
    display: inline !important;
}

/* =============================================================================
   IATA / ICAO USAGE GRID — two-column comparison cards (blue vs green)
   Used in IATA/ICAO codes article to compare where each code is used
   ============================================================================= */

.kt-custom-usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.kt-custom-usage-card {
  border-radius: 10px;
  padding: 16px;
  font-size: 0.95em;
}

.kt-custom-usage-card.iata-card {
  background: #eef6ff;
  border: 1px solid #b6d4f5;
}

.kt-custom-usage-card.icao-card {
  background: #f0faf2;
  border: 1px solid #a8dab5;
}

.kt-custom-usage-card .kt-card-title {
  font-weight: 700;
  font-size: 1.05em;
  margin-bottom: 8px;
}

.kt-custom-usage-card.iata-card .kt-card-title { color: #1a6bbf; }
.kt-custom-usage-card.icao-card .kt-card-title { color: #1e7e3a; }

.kt-custom-usage-card ul {
  margin: 0;
  padding-left: 18px;
}

.kt-custom-usage-card ul li {
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .kt-custom-usage-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
   RELATED ARTICLE CARD — clickable teaser linking to a related article
   Card itself handles layout, background and click. Theme handles link styling.
   ============================================================================= */

.kt-related-article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, #fff5e6 0%, #ffe8d4 100%);
  border: 1px solid #f0c896;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kt-related-article:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.kt-related-article .kt-related-body {
  min-width: 0;
}

.kt-related-article .kt-related-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8em;
  font-weight: 700;
  color: #c97316;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  line-height: 1;
}

.kt-related-article .kt-related-icon {
  font-size: 18px;
  line-height: 1;
}

/* Title gets a bigger size to clearly indicate it is the article title */
.kt-related-article .kt-related-title {
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.kt-related-article .kt-related-desc {
  font-size: 0.92em;
  color: #555;
  line-height: 1.5;
}

.kt-related-article .kt-related-arrow {
  font-size: 28px;
  color: #c97316;
  flex-shrink: 0;
  line-height: 1;
  font-weight: 300;
}

@media (max-width: 600px) {
  .kt-related-article {
    grid-template-columns: 1fr;
  }
  .kt-related-article .kt-related-arrow {
    display: none;
  }
}