/* OnStage UI — Meetup-inspired look per docs/пример.png */

/* The hidden attribute must always win, even over display:flex on the same
   element (author styles beat the UA [hidden] rule otherwise — this is why
   the cookie banner once refused to disappear). */
[hidden] { display: none !important; }

:root {
  --accent: #e32b64;
  --accent-dark: #c2185b;
  --ink: #212129;
  --ink-2: #4a4a55;
  --muted: #6f7287;
  --line: #e6e6eb;
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.05);
  --shadow-hover: 0 2px 4px rgba(0,0,0,.08), 0 12px 24px rgba(0,0,0,.09);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 64px;
}
.logo { display: flex; align-items: baseline; gap: 2px; flex-shrink: 0; }
.logo-mark { color: var(--accent); font-size: 22px; }
.logo-word { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; color: var(--accent); }

.search-bar {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg);
  padding: 4px 4px 4px 16px;
  flex: 0 1 520px;
  transition: box-shadow .15s;
}
.search-bar:focus-within { box-shadow: 0 0 0 2px rgba(227,43,100,.25); }
.search-field { position: relative; display: flex; align-items: center; }
.search-field--q { flex: 1 1 60%; }
.search-field--city { flex: 0 1 130px; }
.search-field input {
  border: 0; outline: 0; width: 100%;
  font: inherit; font-size: 15px; color: var(--ink);
  background: transparent; padding: 6px 8px 6px 0;
}
.search-divider { width: 1px; height: 24px; background: var(--line); margin: 0 10px; flex-shrink: 0; }
.search-btn {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 999px;
  border: 0; cursor: pointer;
  background: var(--ink); color: #fff;
  flex-shrink: 0;
}
.search-btn:hover { background: #000; }

.suggest-panel {
  position: absolute; top: calc(100% + 12px); left: -16px; right: -40px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  max-height: 380px; overflow-y: auto; z-index: 60;
}
.suggest-item { display: block; padding: 10px 16px; font-size: 15px; }
.suggest-item:hover, .suggest-item:focus { background: var(--bg-soft); }
.suggest-item small { color: var(--muted); display: block; }

.header-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; flex-shrink: 0; }
.header-link { font-size: 14px; font-weight: 500; }
.header-link--muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; font-weight: 600; font-size: 14px;
  padding: 9px 18px; cursor: pointer; border: 0;
  transition: background .15s, box-shadow .15s;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--cta {
  background: var(--accent); color: #fff;
  width: 100%; padding: 14px 20px; font-size: 16px;
}
.btn--cta:hover { background: var(--accent-dark); }
.btn--outline { border: 1.5px solid var(--ink); background: transparent; width: 100%; }

/* ---------- Page head & filters ---------- */
.page-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin: 28px 0 8px;
}
.page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.reset-link { color: #3b6dd6; font-weight: 600; font-size: 15px; }

.filter-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 4px;
}
.filter-pill {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 14px; font-weight: 500;
  background: var(--bg); color: var(--ink-2);
  transition: border-color .15s, background .15s;
}
.filter-pill:hover { border-color: var(--ink-2); }
.filter-pill--active { background: #7b53c1; border-color: #7b53c1; color: #fff; }
.filter-spacer { flex: 1; }

/* ---------- Category chips ---------- */
.chip-row-wrap { position: relative; margin: 12px 0 8px; }
.chip-row {
  display: flex; gap: 28px; overflow-x: auto;
  padding: 8px 2px 10px;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 76px; flex-shrink: 0;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  padding-bottom: 8px; margin-bottom: -11px;
  border-bottom: 2px solid transparent;
}
.chip:hover { color: var(--ink); }
.chip--active { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.chip-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--bg-soft); font-size: 21px;
}
.chip--active .chip-icon { background: #fde8ef; }

/* ---------- Sections & grid ---------- */
.section { margin: 30px 0 40px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 22px; font-weight: 700; }
.section-more { color: #3b6dd6; font-weight: 600; font-size: 15px; }
.section-sub { font-size: 18px; margin: 24px 0 10px; }

.result-count { color: var(--muted); font-size: 14px; margin: 14px 0 12px; }

.grid {
  display: grid; gap: 24px 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ---------- Event card ---------- */
.card { min-width: 0; }
.card-link { display: block; }
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
}
.card-link:hover .card-media { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media-fallback { display: grid; place-items: center; height: 100%; font-size: 40px; }
.card-price {
  position: absolute; top: 10px; left: 10px;
  background: #fff; color: var(--ink);
  border-radius: 999px; padding: 4px 10px;
  font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow);
}
.card-body { padding: 10px 2px 0; }
.card-title {
  font-size: 16px; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-date { color: var(--ink-2); font-size: 14px; margin: 6px 0 2px; font-weight: 500; }
.card-venue { color: var(--muted); font-size: 14px; margin: 0; }
.card-meta { color: var(--muted); font-size: 13px; margin: 4px 0 0; }

.badge {
  display: inline-block; border-radius: 4px; padding: 1px 7px;
  font-size: 12px; font-weight: 700; margin-left: 6px;
}
.badge--canceled { background: #fdecea; color: #c0392b; }

/* ---------- Pills / cloud ---------- */
.pill-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; font-weight: 500;
}
.pill:hover { border-color: var(--ink-2); }
.pill-count { color: var(--muted); font-weight: 400; }

/* ---------- Event detail ---------- */
.breadcrumbs {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 13.5px; color: var(--muted); margin: 18px 0 4px;
}
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

.event-layout {
  display: grid; gap: 32px;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-top: 12px;
}
.event-hero {
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft); box-shadow: var(--shadow);
}
.event-hero img { width: 100%; height: 100%; object-fit: cover; }
.event-hero-fallback { display: grid; place-items: center; height: 100%; font-size: 72px; }
.event-title { font-size: 30px; font-weight: 800; margin: 20px 0 4px; letter-spacing: -0.5px; }
.event-genre { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.event-info { color: var(--ink-2); font-size: 15px; }
.event-note { color: var(--muted); font-size: 14px; }
.lineup-item {
  display: inline-block; margin: 4px 8px 4px 0;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  font-size: 14px; font-weight: 500;
}
.lineup-item:hover { border-color: var(--ink-2); }

.event-side { position: sticky; top: 84px; align-self: start; }
.ticket-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.ticket-date strong { display: block; font-size: 17px; }
.ticket-date span { color: var(--muted); font-size: 14px; }
.ticket-venue a { font-weight: 600; display: block; }
.ticket-venue a:hover { text-decoration: underline; }
.ticket-venue span { color: var(--muted); font-size: 14px; }
.ticket-price { font-size: 15px; }
.ticket-price strong { font-size: 20px; }
.price-note { display: block; color: var(--muted); font-size: 12.5px; }
.cta-note { color: var(--muted); font-size: 12px; margin: 0; text-align: center; }
.past-note { color: var(--muted); font-size: 14px; margin: 0; }

.alert { border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; font-size: 15px; }
.alert--danger { background: #fdecea; color: #b03227; }
.alert--warning { background: #fef5e7; color: #9a6a10; }
.alert a { font-weight: 600; text-decoration: underline; }

/* ---------- Tour list (attraction page) ---------- */
.tour-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tour-row {
  display: grid; gap: 12px; align-items: center;
  grid-template-columns: 170px minmax(0, 1fr) 130px 90px;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.tour-row:hover { background: var(--bg-soft); }
.tour-date { font-weight: 700; }
.tour-venue { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour-price { color: var(--muted); font-size: 14px; }
.tour-cta { color: var(--accent); font-weight: 700; text-align: right; }

/* ---------- Misc ---------- */
.empty-state {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 48px 24px; text-align: center; color: var(--muted);
}
.empty-state a { color: #3b6dd6; font-weight: 600; }
.venue-address { color: var(--muted); margin: 0 0 6px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 32px 0; }
.page-btn {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px;
  font-weight: 600; font-size: 14px;
}
.page-btn:hover { border-color: var(--ink-2); }
.page-info { color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 48px;
  padding: 28px 0 36px; background: var(--bg-soft);
}
.disclosure { color: var(--muted); font-size: 13px; max-width: 760px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0; font-size: 14px; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { color: var(--muted); font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .event-layout { grid-template-columns: 1fr; }
  .ticket-box { position: static; }
  .tour-row { grid-template-columns: 120px minmax(0, 1fr) 80px; }
  .tour-price { display: none; }
}
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 10px; }
  .search-bar { order: 3; flex-basis: 100%; }
  .header-nav .btn { display: none; }
  .page-head h1 { font-size: 24px; }
  .event-title { font-size: 24px; }
}

/* ---------- Landing pages (phase 2) ---------- */
.landing-intro { max-width: 760px; color: var(--ink-2); font-size: 15px; margin: 8px 0 4px; }
.faq-section { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 12px 4px; }
.faq-item summary { font-weight: 600; cursor: pointer; }
.faq-item p { color: var(--ink-2); font-size: 15px; margin: 8px 0 0; }
.price-context { font-size: 13px; color: var(--muted); background: var(--bg-soft); border-radius: 8px; padding: 8px 12px; }
.price-context--good { color: #1a7f4b; background: #e8f6ee; font-weight: 600; }
.alert-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-top: 16px; }
.alert-box-title { font-weight: 700; margin: 0 0 4px; }
.alert-box-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.alert-form { display: flex; gap: 8px; }
.alert-input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 14px; min-width: 0; }
.alert-input:focus { outline: 2px solid rgba(227,43,100,.35); border-color: var(--accent); }
.alert-input--error { border-color: #c0392b; }
.alert-box-note { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.alert-box-done { color: #1a7f4b; font-weight: 600; margin: 0; }
.offer-list { border-top: 1px solid var(--line); padding-top: 10px; }
.offer-list-title { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.offer-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; font-weight: 500; }
.offer-row:hover { color: var(--accent); }
.offer-resale { color: var(--muted); font-size: 12px; font-style: normal; }

/* Sticky CTA bar — mobile-only experiment variant */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; align-items: center; gap: 12px;
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.sticky-cta-info { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.sticky-cta-info span { color: var(--muted); font-size: 12.5px; }
.sticky-cta-btn { width: auto; flex-shrink: 0; margin-left: auto; padding: 11px 22px; }
@media (max-width: 720px) { .sticky-cta { display: flex; } }

/* Cookie notice */
.cookie-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 16px;
  max-width: 720px; margin: 0 auto;
  background: var(--ink); color: #d9dbe4;
  border-radius: 12px; padding: 14px 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  font-size: 13.5px;
}
.cookie-notice p { margin: 0; }
.cookie-notice a { color: #fff; text-decoration: underline; }
.cookie-notice .btn { flex-shrink: 0; background: #fff; color: var(--ink); }

/* §3.6 tour insight blocks (attraction page) */
.insight-card { display: block; border: 1px solid var(--border, #e5e2dc); border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; max-width: 560px; text-decoration: none; color: inherit; }
.insight-card--best { border-color: #1a7f4e; background: #f2faf6; }
.insight-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #1a7f4e; margin: 0 0 6px; }
.insight-card:not(.insight-card--best) .insight-label { color: #6f6c66; }
.insight-main { display: block; font-weight: 600; }
.insight-sub { display: block; font-size: 13px; color: #1a7f4e; margin-top: 2px; }
.insight-markets { list-style: none; margin: 0; padding: 0; }
.insight-markets li { padding: 4px 0; }
.insight-delta--cheaper { color: #1a7f4e; font-weight: 600; }
.insight-delta--pricier { color: #a33; }
.insight-note { font-size: 12px; color: #6f6c66; margin: 8px 0 0; }

/* Country/market switcher in the header search bar */
.market-switch {
  border: 0; background: transparent; font: inherit; font-weight: 600;
  padding: 0 10px; cursor: pointer; color: var(--ink); max-width: 130px;
}
.market-switch:focus { outline: none; }
@media (max-width: 720px) { .market-switch { max-width: 92px; padding: 0 4px; } }

/* Approximate viewer-currency reference next to the real market price */
.price-approx { color: var(--muted); font-weight: 500; font-size: .86em; white-space: nowrap; cursor: help; }
