@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@500;600;700&family=Inter:wght@400;500;600;700&family=Unbounded:wght@400;500;600;700&display=swap');

:root {
  /* color */
  --bg: #FFFFFF;
  --bg-subtle: #F4F6FA;
  --surface: #FFFFFF;
  --border: #E2E6ED;

  --ink-900: #101826;
  --ink-600: #4A5468;
  --ink-400: #8A93A6;
  --ink-on-brand: #FFFFFF;

  --brand-900: #0F2557;
  --brand-700: #1E3E8C;
  --brand-500: #2E5CE6;
  --brand-100: #E8EDFC;

  --accent-600: #E85D2C;
  --accent-500: #FF7A3D;
  --accent-100: #FFEEE4;

  --success-600: #1E8A5F;
  --error-600: #D6483A;

  /* type */
  --font-display: 'Golos Text', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --fs-h1: clamp(32px, 4vw, 52px);
  --fs-h2: clamp(26px, 3vw, 36px);
  --fs-h3: 22px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-micro: 12px;

  --lh-tight: 1.15;
  --lh-normal: 1.5;

  /* radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* spacing (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;

  /* shadow */
  --shadow-card: 0 1px 2px rgba(16, 24, 38, 0.04), 0 8px 24px rgba(16, 24, 38, 0.06);
  --shadow-card-hover: 0 4px 8px rgba(16, 24, 38, 0.06), 0 16px 32px rgba(16, 24, 38, 0.10);

  /* motion */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  margin: 0;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--ink-900);
  margin: 0;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { margin: 0; }
.text-secondary { color: var(--ink-600); }
.text-tertiary { color: var(--ink-400); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 48px;
  padding: 0 var(--sp-6);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body);
  border: none;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent-600); color: #fff; }
.btn-primary:hover { background: var(--accent-500); }
.btn-primary:focus-visible { outline: 3px solid var(--accent-100); outline-offset: 2px; }
.btn-primary:disabled { background: var(--border); color: var(--ink-400); cursor: not-allowed; }

.btn-secondary { background: var(--brand-100); color: var(--brand-900); }
.btn-secondary:hover { background: #DCE4FA; }

.btn-ghost { background: transparent; color: var(--brand-900); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--brand-500); }

/* cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: var(--sp-6);
  transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

/* section rhythm */
.section { padding: var(--sp-16) var(--sp-8); }
.section-subtle { background: var(--bg-subtle); }

/* signature: route-line — dashed waypoint connector with numbered dots */
.route-line {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-6);
}
.route-line::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 0;
  border-top: 2px dashed var(--brand-100);
  z-index: 0;
}
.route-dot {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--brand-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  flex-shrink: 0;
}

/* section divider — dashed waypoint, matches route-line signature */
.section-divider { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-4); }
.section-divider-track { position: relative; height: 0; border-top: 2px dashed var(--brand-100); }
.section-divider-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--accent-600);
  transform: translate(-50%, -50%);
}

/* vertical route stops (tour detail programme) */
.route-stops { display: flex; flex-direction: column; gap: 0; }
.route-stop { display: grid; grid-template-columns: 40px 1fr; gap: var(--sp-4); align-items: start; }
.route-stop-rail { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); align-self: stretch; }
.route-stop-line { flex: 1; width: 0; border-left: 2px dashed var(--brand-100); min-height: 24px; }
.route-stop:last-child .route-stop-line { display: none; }
.route-stop-body { padding-bottom: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-2); }
.route-stop:last-child .route-stop-body { padding-bottom: 0; }
.route-stop-label { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-500); }
.route-stop:last-child .route-dot { background: var(--accent-600); }

/* included / excluded comparison cards */
.compare-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); }
.compare-card-head { display: flex; align-items: center; gap: var(--sp-3); }
.compare-icon { width: 32px; height: 32px; border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.compare-icon--yes { background: rgba(30, 138, 95, 0.12); color: var(--success-600); }
.compare-icon--no { background: var(--bg-subtle); color: var(--ink-400); }
.compare-item { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-small); }
.compare-card--yes .compare-item { color: var(--ink-900); }
.compare-card--no .compare-item { color: var(--ink-600); }
.compare-item-icon { flex-shrink: 0; margin-top: 2px; }

/* filters layout: always a full-width bar on top, results below */
.filters-layout { display: flex; flex-direction: column; gap: var(--sp-6); }
.filters-layout .filters-aside { width: 100%; max-width: none; position: static; padding: var(--sp-5) var(--sp-6) !important; }
.filters-layout .filters-aside .filters-grid-3 { display: grid; grid-template-columns: minmax(180px, 220px) 1fr 1fr; align-items: start; gap: var(--sp-6); }
@media (max-width: 720px) {
  .filters-layout .filters-aside .filters-grid-3 { grid-template-columns: 1fr; }
}

.filter-pill { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: var(--fs-small); color: var(--ink-900); cursor: pointer; user-select: none; transition: border-color .15s, background .15s, color .15s; }
.filter-pill input { display: none; }
.filter-pill:hover { border-color: var(--brand-500); }
.filter-pill:has(input:checked) { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }

/* inputs */
.field {
  height: 48px;
  padding: 0 var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink-900);
  background: var(--surface);
}
.field:focus-visible { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
.field::placeholder { color: var(--ink-400); }
.field.error { border-color: var(--error-600); }

/* badge / tag */
.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  background: var(--brand-100);
  color: var(--brand-900);
}

/* site header — three-zone grid: logo / nav / cta */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--brand-900); color: var(--ink-on-brand); }
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-6);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-6);
}
.header-logo { display: inline-flex; align-items: center; gap: var(--sp-3); justify-self: start; text-decoration: none; }
.header-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.header-logo-eyebrow { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; color: #A8BEEF; }
.logo-word { font-family: 'Unbounded', var(--font-display), sans-serif; font-weight: 600; font-size: 21px; letter-spacing: -0.035em; color: #fff; }

.head-nav { display: flex; align-items: center; gap: 22px; justify-self: center; }
.head-nav a { font-family: var(--font-display); font-weight: 500; font-size: 14px; color: #fff; text-decoration: none; white-space: nowrap; transition: color var(--dur-base) var(--ease-standard); }
.head-nav a:hover { color: var(--accent-500); }
.head-nav a[aria-current="page"] { color: #fff; }
.head-nav a:not([aria-current="page"]) { color: #E4EAF8; }

.head-cta {
  justify-self: end;
  height: 48px;
  padding: 0 var(--sp-6);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-body);
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast) var(--ease-standard), background var(--dur-base) var(--ease-standard);
}
.head-cta:active { transform: scale(0.98); }
.head-cta:focus-visible { outline: 3px solid var(--accent-100); outline-offset: 2px; }

.burger-checkbox { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.header-burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: transparent; border: none; color: #fff; cursor: pointer; justify-self: end; }
.header-burger-panel { display: none; position: fixed; inset: 76px 0 0 0; background: var(--brand-900); z-index: 19; padding: var(--sp-6); flex-direction: column; gap: var(--sp-6); }
.burger-checkbox:checked ~ .header-burger-panel { display: flex; }
.header-burger-panel a { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: #fff; text-decoration: none; }

@media (max-width: 980px) {
  .head-nav { gap: 14px !important; }
  .head-nav a { font-size: 13px !important; }
  .logo-word { font-size: 19px !important; }
}
@media (max-width: 800px) {
  .head-nav { display: none !important; }
  .header-burger { display: flex !important; flex: none; }
  .site-header-inner { display: flex !important; align-items: center; gap: var(--sp-3); padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .head-cta { height: 44px !important; padding: 0 var(--sp-4) !important; font-size: var(--fs-small) !important; white-space: nowrap; flex: none; margin-left: auto; }
  .header-logo { min-width: 0; flex: none; gap: var(--sp-2); overflow: hidden; }
  .header-logo-text { display: none; }
}
@media (max-width: 480px) {
  .site-header-inner { gap: var(--sp-2); }
  .header-logo-eyebrow { display: none; }
  .logo-word { font-size: 16px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .head-cta { padding: 0 var(--sp-3) !important; font-size: 13px !important; }
}
@media (max-width: 380px) {
  .logo-word { font-size: 14px !important; }
  .head-cta { padding: 0 10px !important; font-size: 12px !important; }
  .header-burger { width: 36px !important; height: 36px !important; flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .head-nav a, .head-cta { transition: none; }
  .head-cta:active { transform: none; }
}
.badge-accent { background: var(--accent-100); color: var(--accent-600); }
