/* ========================
   WARSAW GUIDE — style.css
   ======================== */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #111827;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);

  /* Sector colours */
  --nw-color: #3B6D11;
  --nw-bg: #EAF3DE;
  --ne-color: #185FA5;
  --ne-bg: #E6F1FB;
  --se-color: #993C1D;
  --se-bg: #FAECE7;
  --sw-color: #854F0B;
  --sw-bg: #FAEEDA;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ---- TOP NAV ---- */
.topnav {
  position: sticky; top: 0; z-index: 200;
  background: var(--accent);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 52px;
}
.topnav__logo {
  font-family: Georgia, serif;
  color: #fff; font-size: 1rem; text-decoration: none;
  letter-spacing: .04em; font-weight: 700;
}
.topnav__links { display: flex; gap: 1.5rem; }
.topnav__links a {
  color: #c9beb0; text-decoration: none; font-family: sans-serif;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: color .2s;
}
.topnav__links a:hover { color: #fff; }

/* ---- HERO ---- */
.hero {
  background: var(--accent);
  color: #fff;
  padding: 5rem 2rem 4rem;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.hero__inner { max-width: 640px; }
.eyebrow {
  display: inline-block; font-family: sans-serif;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #aaa; margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05; margin-bottom: 1rem;
}
.hero h1 em { font-style: italic; color: #C8962E; }
.hero p { color: #beb09a; font-size: 1.05rem; max-width: 52ch; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-block; text-decoration: none;
  border: 1px solid #444; border-radius: 999px;
  padding: 10px 20px; font-family: sans-serif; font-size: .9rem;
  color: #fff; transition: background .2s, border-color .2s;
}
.button:hover { background: #2a2a2a; border-color: #666; }
.button--primary { background: #C8962E; border-color: #C8962E; color: #1a1208; }
.button--primary:hover { background: #e0a830; border-color: #e0a830; }
.hero__badge {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 1.5rem 2rem; min-width: 110px;
  align-self: center;
}
.badge-num { font-size: 3rem; font-weight: 700; line-height: 1; color: #C8962E; }
.badge-label { font-family: sans-serif; font-size: .75rem; color: #999; margin-top: 4px; text-transform: uppercase; letter-spacing: .1em; }

/* ---- MAP SECTION ---- */
.map-section {
  padding: 4rem 2rem;
  max-width: 1000px; margin: 0 auto;
}
.map-section__header { text-align: center; margin-bottom: 2.5rem; }
.map-section__header h2 { font-size: 1.8rem; margin-bottom: .5rem; }
.map-section__header p { color: var(--muted); font-family: sans-serif; font-size: .95rem; }

.map-wrapper {
  display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap;
  justify-content: center;
}
.warsaw-map {
  width: 100%; max-width: 480px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.1));
  border-radius: 20px;
}
.sector-rect {
  cursor: pointer;
  transition: opacity .2s, filter .2s;
}
.sector-rect:hover { opacity: 1 !important; filter: brightness(1.05); }

.map-legend {
  display: flex; flex-direction: column; gap: .8rem;
  padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px;
  min-width: 200px; align-self: center;
  box-shadow: var(--shadow);
}
.legend-item {
  display: flex; align-items: center; gap: .6rem;
  font-family: sans-serif; font-size: .85rem; color: var(--text);
}
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* ---- SECTORS GRID ---- */
.sectors-section {
  padding: 4rem 2rem;
  max-width: 1000px; margin: 0 auto;
}
.section-header { margin-bottom: 2rem; }
.section-header h2 { font-size: 1.8rem; margin-bottom: .4rem; }
.section-header p { color: var(--muted); font-family: sans-serif; font-size: .95rem; }

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.sector-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}
.sector-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.sector-card--nw { border-top: 4px solid var(--nw-color); }
.sector-card--ne { border-top: 4px solid var(--ne-color); }
.sector-card--se { border-top: 4px solid var(--se-color); }
.sector-card--sw { border-top: 4px solid var(--sw-color); }

.sector-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.sector-card__icon { font-size: 1.8rem; }
.sector-badge {
  font-family: sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; padding: .25rem .6rem; border-radius: 999px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--border);
}
.sector-badge--soon { color: #854F0B; background: #FAEEDA; border-color: #f0c070; }

.sector-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.sector-card p { font-family: sans-serif; font-size: .88rem; color: var(--muted); line-height: 1.6; flex: 1; }
.sector-card__tags { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1rem 0 .75rem; }
.tag {
  font-family: sans-serif; font-size: .72rem; font-weight: 600;
  padding: .2rem .55rem; border-radius: 999px;
  background: #f3f4f6; color: var(--text); border: 1px solid var(--border);
}
.tag--muted { color: var(--muted); }
.sector-card__cta { font-family: sans-serif; font-size: .85rem; font-weight: 700; color: var(--accent); margin-top: auto; }
.sector-card--nw .sector-card__cta { color: var(--nw-color); }
.sector-card--ne .sector-card__cta { color: var(--ne-color); }
.sector-card--se .sector-card__cta { color: var(--se-color); }

/* ---- ABOUT ---- */
.about-section { padding: 4rem 2rem; background: var(--accent); color: #fff; }
.about-inner { max-width: 700px; margin: 0 auto; }
.about-inner h2 { font-size: 1.8rem; color: #C8962E; margin-bottom: 1.25rem; }
.about-inner p { font-family: sans-serif; font-size: .95rem; color: #beb09a; line-height: 1.8; margin-bottom: 1rem; }
.about-inner strong { color: #fff; }

/* ---- FOOTER ---- */
.site-footer {
  text-align: center; padding: 1.5rem; background: #0d1117;
  font-family: sans-serif; font-size: .8rem; color: #555;
}

/* ---- SECTOR PAGE STYLES ---- */
.page { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 2rem 0 4rem; }

.sector-hero {
  background: var(--accent); color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem; margin-bottom: 2rem;
}
.sector-hero .eyebrow { color: #888; }
.sector-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: .5rem 0 1rem; }
.sector-hero h1 em { font-style: italic; color: #C8962E; }
.sector-hero p { font-family: sans-serif; font-size: .95rem; color: #beb09a; max-width: 60ch; margin-bottom: 1.5rem; }
.chip {
  display: inline-block; font-family: sans-serif; font-size: .8rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
  padding: .4rem 1rem; color: #C8962E;
}

.layout { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: start; }
.sidebar, .content { display: grid; gap: 1.5rem; }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem;
}
.panel h2 { font-size: 1.1rem; margin-bottom: .75rem; }
.panel p { font-family: sans-serif; font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* Sector nav sidebar */
.sector-nav { display: grid; gap: .75rem; }
.sector-link {
  display: block; padding: 1rem 1.25rem;
  border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: inherit; background: #fff;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.sector-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); border-color: #bbb; }
.sector-link strong { display: block; font-size: .95rem; margin-bottom: .2rem; }
.sector-link span { font-family: sans-serif; font-size: .82rem; color: var(--muted); }
.sector-link.active { border-color: var(--accent); background: #f3f4f6; }

/* Map placeholder */
.map-placeholder {
  min-height: 200px; border: 2px dashed #d1d5db;
  border-radius: 14px; display: grid; place-items: center;
  text-align: center; padding: 1.5rem;
  color: var(--muted); font-family: sans-serif; font-size: .88rem;
}
.map-placeholder strong { display: block; margin-bottom: .4rem; color: var(--text); }

/* Route cards grid */
.routes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }

/* Route card */
.route-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
}
.route-card__header {
  padding: 1.25rem 1.5rem 1rem;
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid var(--border);
}
.route-card__header h3 { font-size: 1.05rem; max-width: 75%; line-height: 1.3; }
.route-num {
  font-family: sans-serif; font-size: .75rem; font-weight: 700;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: .2rem .65rem; color: var(--muted); flex-shrink: 0;
}
.route-card__meta {
  display: flex; gap: 1rem; padding: .75rem 1.5rem;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.meta-item { font-family: sans-serif; font-size: .8rem; color: var(--muted); }
.meta-item strong { color: var(--text); }
.route-card__body { padding: 1rem 1.5rem; flex: 1; }
.route-card__body p { font-family: sans-serif; font-size: .88rem; color: var(--muted); line-height: 1.65; }
.route-card__stops { margin-top: 1rem; }
.route-card__stops h4 { font-family: sans-serif; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .6rem; }
.stop-list { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.stop-list li {
  font-family: sans-serif; font-size: .83rem; color: var(--text);
  padding-left: 1.2rem; position: relative;
}
.stop-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--muted); font-size: .75rem;
}
.route-card__footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
.route-link {
  display: inline-block; font-family: sans-serif; font-size: .85rem; font-weight: 700;
  text-decoration: none; color: var(--accent);
  padding: .5rem 1.25rem; border: 1.5px solid var(--accent); border-radius: 999px;
  transition: background .2s, color .2s;
}
.route-link:hover { background: var(--accent); color: #fff; }

.footer-note {
  text-align: center; color: var(--muted);
  font-family: sans-serif; font-size: .85rem; margin-top: 2rem;
}

/* ---- FULL ROUTE PAGE ---- */
.route-page { width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: 2rem 0 5rem; }
.route-hero {
  background: var(--accent); color: #fff;
  border-radius: var(--radius); padding: 2.5rem; margin-bottom: 2rem;
}
.route-hero .eyebrow { color: #888; }
.route-hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin: .5rem 0 1rem; }
.route-hero h1 em { color: #C8962E; font-style: italic; }
.route-meta-bar {
  display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1rem;
}
.route-meta-bar .meta-pill {
  font-family: sans-serif; font-size: .8rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; padding: .3rem .9rem; color: #d0c8be;
}
.route-meta-bar .meta-pill strong { color: #fff; }

.route-body { display: flex; flex-direction: column; gap: 1.5rem; }
.route-stop {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem 1.75rem;
  border-left: 4px solid #c8962e; box-shadow: var(--shadow);
}
.route-stop h2 { font-size: 1.15rem; margin-bottom: .75rem; color: var(--accent); }
.route-stop p {
  font-family: sans-serif; font-size: .9rem; color: var(--muted);
  line-height: 1.75; margin-bottom: .75rem;
}
.route-stop p:last-child { margin-bottom: 0; }
.route-stop ul {
  font-family: sans-serif; font-size: .88rem; color: var(--muted);
  padding-left: 1.4rem; line-height: 1.8; margin: .5rem 0;
}
.route-stop .map-link {
  display: inline-block; margin-top: .75rem; font-family: sans-serif;
  font-size: .8rem; font-weight: 700; color: #185FA5; text-decoration: none;
  border: 1px solid #185FA5; padding: .3rem .8rem; border-radius: 999px;
  transition: background .2s, color .2s;
}
.route-stop .map-link:hover { background: #185FA5; color: #fff; }

/* Map embeds */
.map-embed {
  margin-top: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
}
.map-embed iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}
.map-embed-caption {
  font-family: sans-serif; font-size: .75rem; color: var(--muted);
  padding: .4rem .75rem; background: #f9fafb;
  border-top: 1px solid var(--border); line-height: 1.4;
}

/* Route overview map (full width) */
.route-overview-map {
  margin-bottom: 2rem;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow); line-height: 0;
}
.route-overview-map iframe {
  width: 100%; height: 380px; border: none; display: block;
}
.route-overview-map .map-embed-caption {
  border-top: 1px solid var(--border);
  font-family: sans-serif; font-size: .78rem; color: var(--muted);
  padding: .5rem .85rem; background: #f9fafb;
}

.back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: sans-serif; font-size: .85rem; font-weight: 700;
  color: var(--muted); text-decoration: none; margin-bottom: 1.5rem;
  transition: color .2s;
}
.back-link:hover { color: var(--accent); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .content { order: 1; }
}
@media (max-width: 600px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .map-section, .sectors-section { padding: 2.5rem 1.25rem; }
  .topnav__links { display: none; }
  .hero__badge { display: none; }
}
