/* ikszNet – budapesti tömegközlekedési adatbázis
   Egyedi design rendszer, szándékosan eltérő az iksznet.hu jelenlegi
   magazin-arculatától: sötét navy fejléc/lábléc, borostyán (amber) akcentus,
   BKK-vonalszínek a jelvényeken, kártyás elrendezés. */

:root {
  --navy: #0b1220;
  --navy-2: #121b2e;
  --navy-3: #1c2841;
  --accent: #ff7a1a;
  --accent-dark: #d9600a;
  --ink: #16202f;
  --muted: #5b6b82;
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --border: #e3e8ef;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0.2em 0 0.3em; }
h2 { font-size: 1.4rem; margin: 1.6em 0 0.6em; }
h3 { font-size: 1.05rem; margin: 0 0 0.6em; }

p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* ---- Header ---- */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; opacity: 0.9; }
.logo-text .accent { color: var(--accent); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 10px 14px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: var(--navy-3);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--navy);
  color: #a9b6c9;
  margin-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding: 48px 20px 24px;
}
.footer-col h3 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #a9b6c9; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: #8393aa; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid var(--navy-3);
  padding: 18px 20px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: #6c7c93; max-width: 62ch; }
.footer-bottom a { color: #8393aa; }
.legal-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
}
.legal-links a { color: #a9b6c9; }
.legal-links a:hover { color: #fff; }

/* ---- Oldal-bevezető (nincs külön "hero" sáv) ----
   Szándékosan nincs itt sem háttérszín, sem külön szekció-keret: a
   tartalom (morzsamenü + cím + rövid leírás) közvetlenül a fejléc/menü
   alatt, a normál (világos) lapháttéren kezdődik. Ez két okból fontos:
   1) nincs felesleges görgetendő, díszítő sáv a cím előtt;
   2) nincs egy nagy, "üresnek" ható blokk, amit a Google Auto ads
      elfoglalhatna a fejléc alatt. */

.page-intro {
  padding: 28px 0 4px;
}
.page-intro h1 { margin-top: 0.15em; }
.page-intro .lede { margin-bottom: 0; }

.intro-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.intro-title-row h1 { margin: 0; }

/* ---- Breadcrumbs (világos hátteren) ---- */

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  font-size: 0.85rem;
}
.breadcrumbs li,
.breadcrumbs li a { color: var(--muted); }
.breadcrumbs li a:hover { color: var(--navy); }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #c1c9d4;
}

/* ---- Cards / grids ---- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0 48px;
}

.card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: inherit;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.card-title {
  display: block;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.card-desc {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.line-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
}
.line-badge-lg {
  min-width: 64px;
  height: 64px;
  font-size: 1.3rem;
  border-radius: 14px;
  margin-bottom: 14px;
}
.kerulet-badge { background: var(--accent); color: #fff; }

.cat-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

/* ---- Detail layout ---- */

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 20px 64px;
}
.detail-main h2:first-child { margin-top: 0; }

.stop-list {
  columns: 2;
  column-gap: 32px;
  padding-left: 22px;
  margin: 0 0 1.4em;
}
.stop-list li { break-inside: avoid; margin-bottom: 6px; }
.stop-list-unordered { list-style: disc; }

.note {
  font-size: 0.9rem;
  color: var(--muted);
  background: #eef1f6;
  border-radius: 10px;
  padding: 12px 16px;
}

.faq-list { margin: 1em 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: var(--card-bg);
}
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--navy);
}
.faq-item p { margin: 10px 0 0; color: var(--muted); }

.side-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.side-box-cta { background: var(--navy); color: #cbd5e1; }
.side-box-cta h3 { color: #fff; }
.side-box-cta p { font-size: 0.9rem; }

.stat-list { margin: 0; }
.stat-list dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin-top: 10px; }
.stat-list dt:first-child { margin-top: 0; }
.stat-list dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); }

.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li {
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.fact-list li:last-child { border-bottom: none; }
.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  margin-top: 6px;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }

/* ---- Homepage sections ---- */

.highlight-section, .about-section, .legal-page { padding: 8px 0 48px; }
.legal-page p { max-width: 62ch; }
.highlight-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 16px 0;
}
.highlight-list li a {
  display: inline-block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
.highlight-list li a:hover { border-color: var(--accent); text-decoration: none; }
.about-section p { max-width: 72ch; color: var(--muted); }

.error-page { padding: 64px 0; text-align: center; }
.error-page .highlight-list { justify-content: center; }

/* ---- Ads slot ---- */
.ads-slot { margin: 32px 0; text-align: center; }

/* ---- Responsive ---- */

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; padding: 28px 20px 48px; }
  .detail-side { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stop-list { columns: 1; }
}

@media (max-width: 720px) {
  /* A mobil menü SZÁNDÉKOSAN a normál dokumentumfolyamban van (nem
     absolute/fixed): nyitáskor lejjebb tolja a tartalmat, nem lebeg fölötte.
     Ok: az oldalon Google hirdetés-iframe-ek futnak, amik közel maximális
     z-indexszel renderelődnek - egy lebegő menüt bármikor eltakarhatnak, és
     ez CSS-ből nem javítható (a hirdetés eltakarása ráadásul AdSense-
     szabályzatba is ütközne). Ha a menü nem fed át semmit, nincs mit
     eltakarni rajta - ez a megoldás hirdetéstől függetlenül működik. */
  .header-inner {
    flex-wrap: wrap;
    height: auto;
  }
  .logo { height: 64px; }
  .nav-toggle { display: flex; height: 64px; }

  .main-nav {
    flex: 0 0 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open {
    max-height: 70vh;
    overflow-y: auto;
  }
  .main-nav ul { flex-direction: column; padding: 4px 0 12px; gap: 2px; }
  .main-nav a { padding: 12px 14px; }
  .footer-inner { grid-template-columns: 1fr; }
}
