/* ===================================================================
   Blue Collection — Road Show
   Fonts (self-hosted Inter — no third-party requests, GDPR-friendly)
=================================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter/inter-latin-wght-normal.woff2') format('woff2-variations'),
       url('../fonts/inter/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter/inter-latin-ext-wght-normal.woff2') format('woff2-variations'),
       url('../fonts/inter/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===================================================================
   Blue Collection — Road Show
   Design tokens
=================================================================== */
:root {
  --bg: #eef1f6;
  --card: #ffffff;
  --ink: #0f1729;
  --muted: #5b6472;
  --muted-2: #8890a0;
  --border: #e3e7ef;
  --border-soft: #edf0f5;

  --blue-50: #eaf3ff;
  --blue-100: #d9ebff;
  --blue-500: #1c8bff;
  --blue-600: #0b6efb;
  --blue-700: #0d4fc4;
  --blue-900: #0a2c66;

  --amber-bg: #fdf1d8;
  --amber-ink: #92600c;
  --green-bg: #e1f6ea;
  --green-ink: #0f7a45;
  --purple-bg: #efe6fb;
  --purple-ink: #6a2fc9;
  --rose-bg: #fde6ee;
  --rose-ink: #b3245f;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(15, 23, 41, 0.04), 0 12px 24px -16px rgba(15, 23, 41, 0.12);
  --shadow-modal: 0 24px 60px -20px rgba(10, 20, 50, 0.35);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; }
button { font-family: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------
   Header
--------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(238, 241, 246, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand__mark {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  display: inline-block;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.header-me {
  font-size: 13px;
  color: var(--muted);
  display: none;
}
.header-me a { color: var(--blue-600); font-weight: 600; text-decoration: none; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-decoration: none;
}
.lang-switch:hover { border-color: var(--muted-2); color: var(--ink); }

/* ---------------------------------------------------------------
   Buttons / pills / badges
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(28, 139, 255, 0.6);
}
.btn--primary:hover { background: var(--blue-600); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--muted-2); }

.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--danger { background: #fff; color: #b91c1c; border-color: #fbd3d3; }
.btn--danger:hover { background: #fef2f2; }
.btn[disabled] { opacity: 0.55; cursor: default; }

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--blue-100);
  color: var(--blue-700);
}
.pill-badge__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500);
}

.tag {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f1f4f9;
  color: var(--muted);
}

.tag--warn { background: var(--amber-bg); color: var(--amber-ink); }

.tag--topic-amber { background: var(--amber-bg); color: var(--amber-ink); }
.tag--topic-green { background: var(--green-bg); color: var(--green-ink); }
.tag--topic-blue { background: var(--blue-100); color: var(--blue-700); }
.tag--topic-purple { background: var(--purple-bg); color: var(--purple-ink); }
.tag--topic-rose { background: var(--rose-bg); color: var(--rose-ink); }

.bar--amber { background: linear-gradient(90deg, #f6b93b, #f7d38a); }
.bar--green { background: linear-gradient(90deg, #2ecc71, #7be3a8); }
.bar--blue { background: linear-gradient(90deg, #1c8bff, #7fc0ff); }
.bar--purple { background: linear-gradient(90deg, #8b5cf6, #c4a8fb); }
.bar--rose { background: linear-gradient(90deg, #ec4899, #f5a9cd); }

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero { padding: 72px 0 48px; }

.hero__title {
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 22px 0 20px;
}
.hero__title span { display: block; }
.hero__title .accent { color: var(--blue-600); }

.hero__desc {
  max-width: 560px;
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 32px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero__stats {
  display: flex;
  gap: 56px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  flex-wrap: wrap;
}
.stat__num { font-size: 34px; font-weight: 800; color: var(--blue-600); line-height: 1; }
.stat__label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin-top: 6px; }

/* ---------------------------------------------------------------
   Intro card
--------------------------------------------------------------- */
.intro-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 44px;
  margin-bottom: 88px;
}
.intro-card p { margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.intro-card p:last-child { margin-bottom: 0; color: var(--ink); font-weight: 700; }
.intro-card strong { color: var(--ink); }

/* ---------------------------------------------------------------
   Section headers
--------------------------------------------------------------- */
.section { padding: 20px 0 72px; scroll-margin-top: 96px; }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 10px;
}
.section__head h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.section__note { max-width: 340px; color: var(--muted); font-size: 15px; margin: 0; }

/* ---------------------------------------------------------------
   City cards
--------------------------------------------------------------- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.city-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.city-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.city-card__country {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.city-card__country b { color: var(--muted); margin-right: 6px; }

.city-card__name { font-size: 26px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.01em; }
.city-card__date { color: var(--blue-600); font-weight: 600; font-size: 14px; margin-bottom: 18px; }

.block-list { display: flex; flex-direction: column; gap: 10px; }

.block-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: #f7f9fc;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.block-row:hover { background: #eef4ff; border-color: var(--blue-100); }

.block-row__label { font-weight: 700; font-size: 14.5px; }
.block-row__time { color: var(--muted-2); font-size: 13px; margin-top: 2px; }

.block-row__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.block-row__count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.block-row__arrow { color: var(--blue-500); font-size: 17px; }

/* ---------------------------------------------------------------
   Open days
--------------------------------------------------------------- */
.date-tabs { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 4px; gap: 4px; }
.date-tab {
  border: none;
  background: transparent;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.date-tab.is-active { background: var(--blue-500); color: #fff; }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.topic-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.topic-card__bar { height: 5px; }
.topic-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.topic-card__name { font-size: 21px; font-weight: 800; margin: 4px 0 0; }
.topic-card__date { color: var(--muted-2); font-size: 13px; }

.slot-list { display: flex; flex-direction: column; gap: 9px; }
.slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-soft);
  background: #f7f9fc;
  border-radius: var(--radius-md);
  padding: 12px 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.slot-row:hover { background: #eef4ff; border-color: var(--blue-100); }
.slot-row[data-hidden="1"] { display: none; }

/* ---------------------------------------------------------------
   Modal
--------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 41, 0.5);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 20px;
  overflow-y: auto;
  z-index: 100;
}
.modal-overlay.is-open { display: flex; }

.modal {
  background: #fff;
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  position: relative;
}
.modal__bar { height: 6px; background: linear-gradient(90deg, var(--blue-500), var(--blue-700)); }
.modal__body { padding: 30px 32px 32px; }

.modal__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.modal__close:hover { background: #f7f9fc; }

.modal__eyebrow { color: var(--blue-600); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }
.modal__title { font-size: 22px; font-weight: 800; margin: 0 0 4px; padding-right: 40px; }
.modal__subtitle { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }

.modal__warning {
  background: var(--amber-bg);
  color: var(--amber-ink);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 20px;
  display: none;
}
.modal__warning.is-visible { display: block; }
.modal__warning strong { font-weight: 800; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fbfcfe;
}
.field input:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; border-color: transparent; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-error { color: #b91c1c; font-size: 12.5px; margin-top: 6px; }

.consent { font-size: 12px; color: var(--muted-2); margin-top: 14px; line-height: 1.5; text-align: center; }

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.5;
  cursor: pointer;
}
.field-checkbox input { margin-top: 3px; flex-shrink: 0; }

.identity-card {
  background: #f7f9fc;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.identity-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.identity-info { flex: 1; min-width: 0; }
.identity-name { font-weight: 700; font-size: 14.5px; }
.identity-email { color: var(--muted); font-size: 13px; }
.identity-card a { font-size: 12.5px; color: var(--blue-600); font-weight: 700; text-decoration: none; flex-shrink: 0; }

.modal__success { display: none; text-align: center; padding: 8px 0 4px; }
.modal__success.is-visible { display: block; }
.modal__success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--green-bg); color: var(--green-ink);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 26px;
}
.modal__success p { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }

/* ---------------------------------------------------------------
   Toast
--------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  max-width: 90vw;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ---------------------------------------------------------------
   Manage bookings page
--------------------------------------------------------------- */
.manage-hero { padding: 56px 0 24px; }
.manage-hero h1 { font-size: 34px; font-weight: 800; margin: 14px 0 8px; letter-spacing: -0.01em; }
.manage-hero p { color: var(--muted); font-size: 16px; margin: 0; }

.booking-list { display: flex; flex-direction: column; gap: 14px; margin: 32px 0 56px; }

.booking-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.booking-card.is-cancelled { opacity: 0.55; }
.booking-card__title { font-weight: 800; font-size: 17px; margin: 0 0 4px; }
.booking-card__meta { color: var(--muted); font-size: 14px; }
.booking-card__status { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.booking-card__status--active { color: var(--green-ink); }
.booking-card__status--cancelled { color: #b91c1c; }

.empty-state {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

.messages { list-style: none; padding: 0; margin: 24px 0 0; }
.messages li {
  background: var(--green-bg); color: var(--green-ink);
  border-radius: var(--radius-md); padding: 12px 18px; font-size: 14px; font-weight: 600;
}

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}

/* ---------------------------------------------------------------
   Empty page (no active edition)
--------------------------------------------------------------- */
.no-edition { padding: 120px 24px; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 980px) {
  .city-grid, .topic-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .hero { padding: 44px 0 32px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 32px; }
  .intro-card { padding: 28px 24px; margin-bottom: 56px; }
  .city-grid, .topic-grid { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .booking-card { flex-direction: column; align-items: flex-start; }
}
