/* ═══════════════════════════════════════════════════
   Арзан билеттер — Infographic-matched redesign v3
   Palette pulled from route infographic cards:
   - Header/dark: #1a3c5e (navy from infographic header)
   - Accent: #3a9fd8 (sky blue from infographic border/badge)
   - Green accent: #4caf50 (visa-free badge)
   - Orange accent: #e8883c (seasonal price, warnings)
   - Body bg: #f4f7fa (light blue-gray, matches infographic bg)
   - Card bg: #ffffff
   Font: Plus Jakarta Sans (headings) + Inter (body)
   ═══════════════════════════════════════════════════ */

:root {
  --bg1: #e8edf3;
  --bg2: #dfe5ed;
  --bg-card: #ffffff;
  --ink: #1a2a3a;
  --muted: #5a6d7e;
  --subtle: #8fa3b5;
  --border: rgba(26, 60, 94, .18);
  --border-hover: rgba(26, 60, 94, .28);
  --shadow: none;
  --shadow2: none;
  --shadow-hover: none;
  --accent: #3a9fd8;
  --accent-hover: #2b80b3;
  --accent-soft: rgba(58, 159, 216, .08);
  --accent-text: #1a5c8a;
  --green: #4caf50;
  --green-soft: rgba(76, 175, 80, .08);
  --green-text: #2e7d32;
  --orange: #e8883c;
  --orange-soft: rgba(232, 136, 60, .08);
  --orange-text: #b35a1a;
  --header-bg: #1a3c5e;
  --header-ink: #f0f6fc;
  --header-muted: rgba(240, 246, 252, .55);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: .15s ease;
}

/* ── Global ── */
html {
  background: var(--bg1);
  background-attachment: fixed;
  overflow-x: clip;
}

.sky::before {
  display: none !important;
}

.wrap {
  padding-top: 0;
  max-width: 1080px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border-top: 3px solid var(--accent);
  overflow-x: clip;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

h1 { font-size: 26px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }

.brand-title,
header .brand .brand-title,
header .brand-link .brand-title {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: var(--ink) !important;
}

/* Header bottom border — simple, no pseudo-element bleed */
header {
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 20px 0 16px;
  position: relative;
}

/* pseudo-elements — safe full-bleed for desktop */
header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: #ffffff;
  z-index: -1;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: var(--border);
}
  z-index: -1;
}

header .sub {
  color: var(--muted);
}

/* ── Main navigation ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--bg2);
}

/* Stack nav + lang vertically on right side */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Language switcher (borderless) ── */
.lang {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  gap: 2px;
}

.lang-btn {
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  letter-spacing: 0;
  color: var(--subtle);
  border: none;
  transition: color var(--transition), background var(--transition);
}

.lang-btn.is-active,
.lang-btn[aria-current="true"] {
  background: var(--bg2);
  border-color: transparent;
  box-shadow: none;
  color: var(--ink);
}

.lang-btn:hover {
  background: var(--bg2);
  border-color: transparent;
  color: var(--ink);
}

.lang-sep {
  color: var(--border-hover);
  font-weight: 400;
}

/* Logo hidden — text-only branding */
.logo {
  display: none !important;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 20px;
}

.card p,
.card ul,
.note,
.list,
.faq .a {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ── Links — sky blue accent ── */
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.contact a,
.breadcrumbs a,
.route-right .list a,
.dest-links .all a {
  color: var(--accent);
}

.contact a:hover,
.breadcrumbs a:hover,
.route-right .list a:hover {
  color: var(--accent-hover);
}

.skip-link:focus { color: var(--accent); }

/* ── Destination links ── */
.dest-links a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow2);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 450;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.dest-links a:hover {
  border-color: rgba(58, 159, 216, .25);
  box-shadow: none;
  background: var(--accent-soft);
}

/* Clean SVG plane icon — kill emoji */
.dest-links a::before {
  content: "" !important;
  width: 14px !important;
  height: 14px !important;
  margin-right: 8px !important;
  background: none !important;
  background-color: var(--subtle) !important;
  -webkit-mask-image: var(--plane-mask) !important;
  -webkit-mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  -webkit-mask-size: contain !important;
  mask-image: var(--plane-mask) !important;
  mask-repeat: no-repeat !important;
  mask-position: center !important;
  mask-size: contain !important;
  opacity: .5 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  transition: background-color var(--transition), opacity var(--transition) !important;
}

.dest-links a:hover::before {
  background: none !important;
  background-color: var(--accent) !important;
  opacity: .8 !important;
}

.dest-links a::after {
  color: var(--subtle) !important;
  opacity: .4 !important;
}

.dest-links a:hover::after {
  color: var(--accent) !important;
  opacity: .7 !important;
}

.dest-links .all a {
  color: var(--accent);
  font-weight: 600;
}

/* ── Kill ALL emoji ::before ── */
.grid > section:first-child > h1::before,
.grid > aside > h2:first-child::before,
.grid > aside > h2:nth-of-type(2)::before,
#about > h2:first-child::before,
h2#faq::before,
h2[id="faq"]::before,
.popular-card > h2:first-child::before,
.route-left > h1::before,
.route-seo h2[id*="faq" i]::before,
.route-seo h3[id*="faq" i]::before,
.destinations h1::before,
.destinations .card > h2:first-child::before,
.tips-title::before,
.hint::before {
  content: none !important;
  display: none !important;
}

/* ── Hint ── */
.hint {
  color: var(--muted);
  font-size: 12.5px;
}

.micro {
  color: var(--subtle);
}

/* ── Tips carousel ── */
.tips {
  background: var(--bg2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border);
  box-shadow: none;
  border-radius: var(--radius-sm);
}

.tips-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}

.tips-title {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.tips-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: none;
  border-radius: var(--radius-xs);
  padding: 5px 9px;
  font-size: 11px;
  color: var(--muted);
  transition: all var(--transition);
}

.tips-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
  box-shadow: none;
  color: var(--ink);
}

/* ── FAQ ── */
.faq li {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.faq .q {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.faq .q::before {
  content: none;
}

/* ── Route pages — SEO content ── */
.route-seo > h2 {
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}

.route-seo > h3 {
  padding-left: 14px;
  border-left: 2px solid rgba(58, 159, 216, .3);
  border-radius: 0;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}

.route-seo h2[id*="faq" i],
.route-seo h3[id*="faq" i] {
  border-left: none;
  padding-left: 0;
}

.route-seo details {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.route-seo summary {
  color: var(--muted);
  font-weight: 600;
  transition: color var(--transition), background var(--transition);
}

.route-seo summary:hover {
  background: rgba(255, 255, 255, .5);
  color: var(--ink);
}

.route-seo summary:focus-visible {
  outline-color: rgba(58, 159, 216, .4);
}

.route-seo details p {
  color: var(--muted);
}

/* ── Map banner — light, in-page style ── */
.map-banner {
  background: var(--accent-soft);
  border: 1px solid rgba(58, 159, 216, .18);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 14px 18px;
  position: relative;
  overflow: visible;
  transition: border-color var(--transition), background var(--transition);
}

.map-banner::before,
.map-banner::after {
  content: none !important;
  display: none !important;
}

.map-banner:hover {
  border-color: rgba(58, 159, 216, .3);
  background: rgba(58, 159, 216, .1);
  box-shadow: none;
  transform: none;
}

.map-banner-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.map-banner-arrow {
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
  opacity: .7;
}

.map-banner:hover .map-banner-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* ── Route page boxes ── */
.route-box {
  background: var(--bg2);
  border-radius: var(--radius-sm);
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  color: var(--subtle);
  font-size: 12px;
}

.breadcrumbs a {
  color: var(--accent);
}

/* ── Footer ── */
footer {
  color: var(--subtle);
}

.footer-links a {
  color: var(--muted);
  border-bottom-color: rgba(26, 60, 94, .15);
  transition: color var(--transition), border-color var(--transition);
}

.footer-links a:hover {
  color: var(--ink);
  border-bottom-color: rgba(26, 60, 94, .3);
}

/* ── Hub cards ── */
.hub-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow2) !important;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition) !important;
}

.hub-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: rgba(58, 159, 216, .2) !important;
}

.hub-card-title {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em !important;
}

.hub-card-sub {
  color: var(--muted) !important;
}

.hub-card-count {
  background: var(--accent-soft) !important;
  color: var(--accent-text) !important;
}

.hub-card-arrow {
  color: var(--subtle) !important;
}

.hub-card:hover .hub-card-arrow {
  color: var(--accent) !important;
}

.hub-card-soon .hub-card-count {
  background: rgba(26, 60, 94, .04) !important;
  color: var(--subtle) !important;
}

/* ── Destinations index ── */
.destinations .card {
  border-radius: var(--radius);
}

/* ── Hover states ── */

/* ── Mobile ── */
@media (max-width: 640px) {
  .card {
    padding: 16px;
    border-radius: 10px;
  }

  header {
    padding: 16px 0 8px;
  }

  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    font-size: 12.5px;
    padding: 5px 8px;
  }

  .dest-links a {
    border-radius: var(--radius-xs);
  }

  /* Search: ensure input is full-width and results are usable */
  .route-search-input {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 12px;
  }

  .route-search-results {
    position: relative;
    box-shadow: none;
    border-radius: var(--radius-xs);
    max-height: 220px;
  }

  .route-search-item {
    padding: 12px;
    font-size: 14px;
  }

  h1 { font-size: 22px; }
  h2 { font-size: 19px; }
}

@media (max-width: 420px) {
  h1 { font-size: 20px; }
}

/* ── Route search ── */
#route-search {
  position: relative;
}

.route-search-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}

.route-search-input::placeholder {
  color: var(--subtle);
}

.route-search-input:focus {
  border-color: var(--accent);
}

.route-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(15, 29, 46, .12);
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.route-search-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 40px;
  flex-shrink: 0;
}

.route-search-item:last-child {
  border-bottom: none;
}

.route-search-item:hover,
.route-search-item.is-active {
  background: var(--accent-soft);
}

.route-search-item::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background-color: var(--subtle);
  opacity: .5;
  -webkit-mask-image: var(--plane-mask);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--plane-mask);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.route-search-item:hover::before,
.route-search-item.is-active::before {
  background-color: var(--accent);
  opacity: .8;
}

.route-search-empty {
  padding: 14px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.route-search-empty a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.route-search-empty a:hover {
  text-decoration: underline;
}

/* ── Print ── */
@media print {
  html { background: #fff; }
  header { background: transparent; color: #000; border: none; }
  .sky::before, .tips-controls, .lang { display: none !important; }
}
