@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/outfit-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/outfit-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/outfit-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/outfit-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./fonts/outfit-latin-ext-800.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/outfit-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/outfit-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/outfit-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/outfit-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./fonts/outfit-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #343434;
  --muted: #64748b;
  --line: #e7e7e7;
  --bg: #ffffff;
  --white: #ffffff;
  --orange: #ed5b24;
  --yellow: #fdb714;
  --teal: #17aa9d;
  --blue: #009cfd;
  --cyan: #009cfd;
  --cyan-deep: #009cfd;
  --hot: #ed5b24;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  color-scheme: light;
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  overflow-x: clip;
  background:
    radial-gradient(ellipse at 50% -8%, color-mix(in srgb, var(--blue) 14%, white), transparent 42%),
    var(--bg);
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.92em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 5;
}
.skip:focus { top: 12px; }

.wrap { width: min(1180px, calc(100% - 28px)); max-width: 100%; margin-inline: auto; }
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.top-bar, .top-actions, .block-head, .control-row, .foot-row, .dialog-head, .sub-actions {
  display: flex;
  align-items: center;
}
.top-bar { height: 68px; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }
.logo img { width: 40px; height: 40px; display: block; }
.wordmark { font-size: 20px; letter-spacing: -0.045em; }
.wordmark .live { color: var(--blue); }
.top-actions { gap: 8px; flex: none; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
}
.btn-dark { background: var(--ink); color: white; }
.btn-cyan { background: var(--cyan-deep); color: white; padding-inline: 14px; }
.btn-line { background: white; border: 1px solid var(--line); color: var(--ink); }
.btn-icon { width: 42px; height: 42px; padding: 0; background: white; border: 1px solid var(--line); }
.btn-icon svg { width: 20px; height: 20px; }
.btn-hero { background: white; color: var(--ink); box-shadow: var(--shadow); margin-top: 14px; }
.btn:focus-visible, button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid rgba(2, 132, 199, 0.45);
  outline-offset: 2px;
}

.hero {
  position: relative;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 10%, white) 0%, transparent 70%);
  padding: 18px 0 8px;
  overflow: hidden;
}
.hero-layout { display: grid; gap: 18px; align-items: start; min-width: 0; }
.hero-layout > * { min-width: 0; }
.hero-copy { position: relative; z-index: 1; text-align: center; max-width: 100%; }
.hero-note {
  margin: 0;
  padding: 16px 18px 8px;
  text-align: left;
  background: white;
  border: 1px solid color-mix(in srgb, var(--blue) 24%, white);
  border-radius: 20px;
}
.hero-note h2 { margin: 0 0 10px; font-size: 1.2rem; letter-spacing: -0.03em; line-height: 1.25; }
.hero-note p { margin: 0 0 8px; color: #334155; line-height: 1.45; }
.hero-note ul { margin: 0 0 10px; padding-left: 18px; }
.hero-note li { margin: 0 0 8px; line-height: 1.4; }
.hero-tools { margin-top: 8px; text-align: center; }
.eyebrow { margin: 0 0 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; color: var(--orange); }
h1 { margin: 0; font-size: clamp(42px, 8vw, 76px); line-height: 0.92; letter-spacing: -0.055em; font-weight: 800; }
.lede { margin: 14px auto 0; max-width: 460px; color: #334155; font-size: 16px; }
.search {
  margin: 22px auto 0;
  width: min(640px, 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.search svg { width: 20px; height: 20px; color: #64748b; flex: none; }
.search input {
  border: 0;
  flex: 1;
  min-width: 0;
  height: 42px;
  background: transparent;
  outline: none;
}
.search .btn { flex: none; }
.search input::-webkit-search-cancel-button { appearance: none; }
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin-top: 16px; max-width: 100%; }
.quick button {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 600;
  padding: 4px 2px;
}
.quick button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--hot); }

.controls { margin-top: 8px; }
.cities { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.cities button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}
.cities button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.menu-list button[aria-pressed="true"] { color: var(--blue); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.filters label { display: flex; flex-direction: column; gap: 4px; min-width: min(100%, 210px); text-align: left; }
.filters span { font-size: 12px; font-weight: 700; color: var(--muted); padding-left: 12px; }
.filters select {
  appearance: none;
  background: white url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%230f172a' stroke-width='1.8' stroke-linecap='round'/></svg>") right 12px center no-repeat;
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 44px;
  padding: 0 36px 0 14px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}
.control-row { justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 4px; color: var(--muted); font-size: 14px; }
.check { display: flex; align-items: center; gap: 8px; }
.text-btn { border: 0; background: transparent; color: var(--cyan-deep); font-weight: 700; padding: 0; }

.block { margin-top: 28px; }
.block-head { justify-content: space-between; gap: 12px; margin-bottom: 14px; }
h2 { margin: 0; font-size: 26px; letter-spacing: -0.04em; }
.circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  display: grid;
  place-items: center;
}
.circle svg { width: 18px; height: 18px; }
.view-toggle { display: flex; background: white; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.view-toggle button { border: 0; background: transparent; border-radius: 999px; padding: 8px 12px; color: var(--muted); font-weight: 700; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: white; }

.block { max-width: 100%; min-width: 0; }
.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 72%);
  gap: 14px;
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-x: contain;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.card { min-width: 0; scroll-snap-align: start; }
.card.is-target .media { outline: 3px solid var(--cyan-deep); outline-offset: 2px; }
.media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #343434;
  color: var(--yellow);
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.motif { position: absolute; inset: 0; }
.badge, .free-badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
}
.badge { left: 8px; max-width: calc(100% - 86px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.free-badge { right: 8px; color: #c2410c; }
.cal {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: white;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  display: grid;
  place-items: center;
}
.cal svg { width: 18px; height: 18px; }
.cal-menu {
  position: fixed;
  z-index: 30;
  display: grid;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 16px));
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 16px 40px rgba(52, 52, 52, 0.16);
}
.cal-menu a,
.cal-menu button {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #343434;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.cal-menu a:hover,
.cal-menu a:focus-visible,
.cal-menu button:hover,
.cal-menu button:focus-visible {
  background: #fff1ea;
  color: var(--orange);
  outline: none;
}
.card h3 {
  margin: 10px 0 0;
  font-size: 15px;
  letter-spacing: -0.03em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.when, .where { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.where { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.day { margin: 0 0 22px; }
.day h3 {
  margin: 8px 0 12px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-transform: none;
  color: var(--orange);
}
.day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.day li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  background: white;
  border: 1px solid color-mix(in srgb, var(--blue) 22%, white);
  border-radius: 16px;
  padding: 12px 14px;
  align-items: start;
}
.event-side {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.day time { font-weight: 800; font-size: 14px; }
.day p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.day .badge, .day .free-badge, .day .cal { position: static; max-width: none; overflow: visible; }
.day-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #f3f3f3;
  color: #343434;
}
.row-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.list-cal {
  display: inline-flex;
  width: auto;
  height: auto;
  margin-top: 0;
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: none;
  border: 1px solid var(--line);
  background: white;
  color: #343434;
  font-weight: 700;
}

.empty, .status { color: var(--muted); }
.empty { background: white; border-radius: 16px; padding: 22px; }
.status[hidden] { display: none; }

.foot { margin-top: 48px; padding: 28px 0 40px; color: var(--muted); }
.foot-row { justify-content: space-between; gap: 12px; align-items: flex-start; }
.foot p { margin: 0; max-width: 640px; }

dialog {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: white;
  width: min(560px, calc(100vw - 24px));
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}
dialog::backdrop { background: rgba(15, 23, 42, 0.48); }
dialog form { padding: 22px; }
.dialog-head { justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.dialog-head h2 { font-size: 28px; }
.dialog-copy, .fine { color: #475569; }
.url-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  height: 44px;
  padding: 0 12px;
  background: var(--bg);
}
.sub-actions { flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.sub-actions .btn { flex: 1 1 180px; }
.qr-panel { display: grid; grid-template-columns: 148px 1fr; gap: 14px; align-items: center; background: var(--bg); border-radius: 18px; padding: 12px; }
.qr-panel svg { width: 148px; height: 148px; display: block; background: white; border-radius: 12px; }
#menu {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(380px, 100vw);
  border-radius: 0;
}
#menu h3 { margin: 18px 0 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.menu-list { display: grid; gap: 4px; }
.menu-list button { text-align: left; border: 0; background: transparent; padding: 8px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.menu-cta { width: 100%; margin: 8px 0; }
.noscript { padding: 16px; }

.cat-glazba { color: var(--blue); background: #343434; }
.cat-djeca { color: var(--yellow); background: #343434; }
.cat-predstava { color: var(--teal); background: #343434; }
.cat-gastro { color: var(--orange); background: #343434; }
.cat-kultura { color: var(--teal); background: #343434; }
.cat-sport-i-rekreacija { color: var(--blue); background: #343434; }
.cat-tradicionalno { color: var(--orange); background: #343434; }
.cal { color: #343434; }
.motif svg { width: 58%; height: 58%; position: absolute; left: 21%; top: 21%; }

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
  .scroller { grid-auto-columns: 210px; }
  .day li { grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; }
  .event-side { grid-column: auto; flex-wrap: nowrap; }
}
@media (min-width: 900px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr); gap: 36px; align-items: center; }
  .hero-copy { text-align: left; }
  .lede { margin-left: 0; margin-right: 0; }
}
@media (min-width: 1100px) {
  .hero { padding: 28px 0 12px; }
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
  .wrap { width: min(1240px, calc(100% - 80px)); }
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .wide { display: none; }
  .wordmark { font-size: 17px; }
  .logo img { width: 34px; height: 34px; }
  .top-bar { height: 60px; }
  .foot-row, .control-row { flex-direction: column; align-items: flex-start; }
  .qr-panel { grid-template-columns: 1fr; }
  .sub-actions .btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
