/* Mulish (SIL OFL, licenca u assets/fonts/OFL.txt) je spremljen lokalno, ne na
   Googleu: bez toga aplikacija offline ostaje u nadomjesnom pismu, a svaki
   posjetitelj usput šalje zahtjev trećoj strani. Varijabilni font, jedna
   datoteka za sve težine; latin-ext nosi č, ć, š, ž, đ. */
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/mulish-latin-ext.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: "Mulish";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/mulish-latin.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;
}

/* ─────────────────────────────────────────────────────────────────────────
   Svjetlosni gradijent — bijela podloga, zore u boji, staklene plohe.

   --acc je jedina boja teme: navy Meridiane, ista na svih 15 lokacija.
   app.js je postavlja na <html> (ne na .app-shell) jer se custom property
   razrješava ondje gdje je deklarirana, a i fullscreen igra visi na <body>.
   --primary je zadržan kao ime jer ga koristi stotinjak pravila, ali sada
   pokazuje na --acc.

   Boja OPĆINE nije tema nego oznaka i živi samo ondje gdje govori u kojoj
   si općini: pribadače na mapi, legenda i traka na kartici lokacije.
   ───────────────────────────────────────────────────────────────────────── */
:root {
  --acc:          #002F67;   /* Pantone 294 iz brandbooka — tema aplikacije */
  --acc-2:        #4E7AAE;   /* svjetlija pratilja */

  /* Ostatak palete iz brandbooka. Crvena je naglasak, ne boja akcije:
     pojavljuje se u vezu i na sitnim brojkama, nigdje kao ploha. */
  --red:          #EF3A4E;   /* Pantone 1787 */
  --rose:         #F7A19A;   /* Pantone 3572 */
  --rose-soft:    #FBF0EE;   /* podloga aplikacije */
  --rose-tint:    #F6E9E6;   /* pločice, oznake, tipke u krugu */

  --primary:      var(--acc);
  --primary-dark: var(--acc);
  --primary-soft: color-mix(in srgb, var(--acc) 12%, transparent);
  --accent:       #C4452C;
  --accent-soft:  #FBEAEA;
  --gold:         #C09A3C;
  --gold-soft:    #FAF4E2;

  --bg:           #FFFFFF;
  --panel:        rgba(255, 255, 255, 0.78);
  --panel-edge:   rgba(255, 255, 255, 0.9);
  --panel-solid:  #FFFFFF;
  --ink:          #1C2233;
  --muted:        #707A93;
  --faint:        #98A1B5;
  --line:         #EAEDF4;

  --radius:       26px;
  --radius-sm:    18px;
  --shadow:       0 2px 6px rgba(28, 34, 51, 0.04), 0 18px 44px rgba(28, 34, 51, 0.08);
  --shadow-md:    0 22px 50px rgba(28, 34, 51, 0.14);
  --transition:   0.22s ease;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Mulish", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--rose-soft);   /* podloga oko okvira na širokom ekranu */
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: center;
  padding: 1rem;
}

h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.16;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }

.app-shell {
  position: relative;
  width: min(460px, 100%);
  height: min(920px, 96vh);
  background: var(--rose-soft);
  border: 0;
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(28, 34, 51, 0.24), 0 0 0 1px rgba(28, 34, 51, 0.06);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Zore u boji lokacije. Jedini element koji nosi --acc; sve ostalo su
   poluprozirne plohe kroz koje se one vide. */
.aura { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aura i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(12px);
  animation: auraFloat 11s ease-in-out infinite;
  transition: background 0.55s ease;
}
.aura i:nth-child(1) { top: 60px; left: -170px; width: 360px; height: 360px;
  background: radial-gradient(circle, color-mix(in srgb, var(--acc) 40%, transparent) 0%, transparent 70%); }
.aura i:nth-child(2) { top: 210px; right: -180px; width: 330px; height: 330px; animation-delay: -4s;
  background: radial-gradient(circle, color-mix(in srgb, var(--acc-2) 34%, transparent) 0%, transparent 68%); }
.aura i:nth-child(3) { top: 44%; left: -150px; width: 340px; height: 340px; animation-delay: -7s;
  background: radial-gradient(circle, color-mix(in srgb, var(--rose) 34%, transparent) 0%, transparent 68%); }
.aura i:nth-child(4) { bottom: -90px; right: -120px; width: 320px; height: 320px; animation-delay: -2s;
  background: radial-gradient(circle, color-mix(in srgb, var(--acc) 22%, transparent) 0%, transparent 68%); }
/* Zaglavlje mora stajati na čistoj bijeloj; zora počinje ispod njega. */
.aura::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  background: linear-gradient(to bottom, #FFFFFF 0%, #FFFFFF 42%, rgba(255, 255, 255, 0) 100%);
}
@keyframes auraFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -18px, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .aura i { animation: none; } }

/* Vez — motiv iz brandbooka: niz crtica u boji teme, svaka šesta crvena.
   Isti ritam nosi i ispuna putovnice. */
.vez, .app-header::after {
  background-image:
    repeating-linear-gradient(90deg, var(--red) 0 4px, transparent 4px 66px),
    repeating-linear-gradient(90deg, var(--acc) 0 4px, transparent 4px 11px);
}
.vez { height: 6px; }
.app-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
}

.app-header {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: transparent;
  border-bottom: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease, height 0.35s ease, padding 0.35s ease;
}

/* Zaglavlje je uvijek iste visine: skupljanje i širenje dok svira audio micalo je cijeli sadržaj. */

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.brand-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.brand-logo-placeholder {
  width: 52px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-placeholder span {
  color: #fff;
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  padding: 2px 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-project {
  font-family: inherit;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
  font-weight: 700;
  font-style: italic;
  color: var(--primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-organizer {
  font-size: 0.62rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-switch {
  display: flex;
  gap: 0.28rem;
  flex-shrink: 0;
}

/* Zatvoren prekazuje samo jezik na kojem si; ostali se pokažu na dodir.
   Tri pilule u zaglavlju trošile su prostor koji treba naslovu. */
.lang-switch:not(.open) .lang-btn:not(.active) { display: none; }
.lang-switch:not(.open) .lang-btn.active::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 0.4rem;
  vertical-align: 0.12em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0.65;
}

.lang-btn {
  border: 1px solid var(--panel-edge);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.app-content {
  position: relative;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.65rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Topla podloga iz brandbooka (25% ton roze); kartice na njoj ostaju
     bijele, pa se vide kao papir na stolu. */
  background: var(--rose-soft);
}

/* While the hero intro is showing, block scrolling entirely so no
   scrollbar sliver is visible on the right and the intro can't be
   swiped away before "Pokreni iskustvo" is pressed. */
.app-content.intro-active {
  overflow: hidden;
}

.section-card {
  scroll-margin-top: 0.65rem;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
  flex-shrink: 0;
}

.section {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.eyebrow {
  display: flex;
  width: fit-content;
  align-self: flex-start;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--rose-tint);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc);
}

.section h3 {
  font-size: 1.55rem;
  color: var(--ink);
}

/* Full-screen intro overlay — shown once on load, fills the content area
   below the header (so the language switcher stays reachable) until
   "Pokreni priču" dismisses it. */
.hero {
  position: absolute;
  inset: 0;
  z-index: 500;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transform: scale(1);
  filter: blur(0);
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1),
              visibility 0.6s cubic-bezier(.4,0,.2,1),
              transform 0.6s cubic-bezier(.4,0,.2,1),
              filter 0.6s cubic-bezier(.4,0,.2,1);
}

.hero.hero-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.15);
  filter: blur(6px);
}

.hero-content, .hero-passport {
  transition: transform 0.5s cubic-bezier(.4,0,.2,1) 0.05s,
              opacity 0.4s ease 0.05s;
}

.hero-dismissed .hero-content {
  transform: translateY(-16px);
  opacity: 0;
}

.hero-dismissed .hero-passport {
  transform: translateY(16px);
  opacity: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--primary) 0%, #060E1C 100%);
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 50% at 16% 4%, color-mix(in srgb, var(--acc) 52%, transparent) 0%, transparent 60%),
    radial-gradient(110% 46% at 92% 14%, rgba(192, 154, 60, 0.34) 0%, transparent 58%),
    linear-gradient(
      to bottom,
      rgba(10, 18, 34, 0.42) 0%,
      rgba(10, 18, 34, 0.28) 38%,
      rgba(10, 18, 34, 0.90) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  width: 100%;
  margin: 0;
  padding: 1.4rem 1.4rem 5.6rem;
  color: #fff;
  background: none;
  border: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.hero-content .cta-row {
  justify-content: stretch;
  width: 100%;
  margin-top: 1.1rem;
  margin-bottom: 0;
}
.hero-content .cta-row .btn { flex: 1; }
.hero-content .btn.primary {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(10, 18, 34, 0.4);
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.hero-content h2 {
  font-size: 2.6rem;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
}

.hero-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.88;
}

.hero-municipality {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.hero-passport {
  position: absolute;
  left: 50%;
  bottom: max(1.4rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1;
  width: calc(100% - 2.4rem);
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.hero-passport-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.hero-passport-bar {
  width: 100%;
  height: 12px;
  border-radius: 3px;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.34) 0 4px, transparent 4px 11px);
  overflow: hidden;
}

.hero-passport-fill {
  height: 100%;
  border-radius: 3px;
  background-image: repeating-linear-gradient(90deg, #fff 0 4px, transparent 4px 11px);
  transition: width 0.5s ease;
}

.hero-passport-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn.primary {
  background: var(--acc);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--acc) 26%, transparent);
}

.btn.primary:hover { filter: brightness(1.05); }

.btn.secondary {
  background: var(--panel);
  color: var(--acc);
  border-color: var(--panel-edge);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.btn.ghost {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

/* Full-bleed: cancels the .section's 1rem padding so the photo runs edge
   to edge, with the narration transport overlaid on top of it (glass bar)
   instead of taking its own separate block underneath. */
.gallery-wrap {
  position: relative;
  width: calc(100% + 2rem);
  margin: 0 -1rem;
}

.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 0;
}

.gallery::-webkit-scrollbar { display: none; }

.gallery-item {
  flex-shrink: 0;
  width: 100%;
  scroll-snap-align: start;
}

.gallery-item img {
  width: 100%;
  height: min(46vh, 420px);
  object-fit: cover;
  display: block;
}

/* ── Priča ────────────────────────────────────────────────────────────
   Fotografija se mijenja uz naraciju, pa ide preko cijele širine i ničim
   se ne zaklanja. Bijeli list s tekstom kreće ispod nje i preko nje se
   povlači dok se čita. Rečenicu koja se upravo čuje označava tekst sam,
   pa slici ne treba natpis. */
#sec-story {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
#sec-story #storyGallery { order: -1; }
#sec-story .gallery-wrap { width: 100%; margin: 0; }

#sec-story .section-head {
  position: relative;
  z-index: 1;
  margin-top: -26px;
  padding: 0.9rem 1rem 0;
  background: var(--panel-solid);
  border-radius: 26px 26px 0 0;
}
#sec-story .section-head::before {
  content: "";
  display: block;
  height: 6px;
  margin-bottom: 0.85rem;
  background-image:
    repeating-linear-gradient(90deg, var(--red) 0 4px, transparent 4px 66px),
    repeating-linear-gradient(90deg, var(--acc) 0 4px, transparent 4px 11px);
}
#sec-story #narrationArea {
  position: relative;
  z-index: 1;
  background: var(--panel-solid);
  padding: 0.9rem 1rem 1rem;
}
.narration-player { margin-bottom: 0.9rem; }

/* Glass transport bar overlaid on the bottom of the gallery photo — replaces
   the old separate boxed player so the image can run full-bleed. */
.narration-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

.narration-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--acc);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.narration-play:active { transform: scale(0.94); }
.narration-play:hover { filter: brightness(1.12); }

.narration-skip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--rose-tint);
  color: var(--acc);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--transition);
}

.narration-skip:hover { opacity: 0.75; }
.narration-skip:active { opacity: 0.75; }
.narration-skip svg { display: block; }

.narration-seek-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.narration-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  width: 2.2rem;
}

.narration-time:last-child { text-align: right; }

.narration-seek {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 12px;
  border-radius: 3px;
  background: transparent;
  background-image: repeating-linear-gradient(90deg, #E7D3CF 0 4px, transparent 4px 11px);
  outline: none;
  cursor: pointer;
}

.narration-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--acc);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 47, 103, 0.35);
  cursor: pointer;
}

.narration-seek::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--acc);
  cursor: pointer;
}

.narration-transcript {
  position: relative;
  /* Scales down further on short phone screens via dvh so it never eats
     too much vertical space. */
  max-height: min(210px, 26dvh);
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--faint);
}

.narration-transcript p {
  margin: 0 0 0.7rem;
}

.narration-transcript p:last-child {
  margin-bottom: 0;
}

.narration-sentence {
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  border-radius: 4px;
  padding: 0 2px;
}

.narration-sentence.active {
  color: var(--acc);
  background: transparent;
  box-shadow: none;
  font-weight: 800;
}

.quiz-progress {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.quiz-question {
  margin-bottom: 1rem;
}

.quiz-question-text {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quiz-option {
  backdrop-filter: blur(14px);
  text-align: left;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--panel-edge);
  box-shadow: var(--shadow);
  background: var(--panel);
  color: var(--ink);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.quiz-option.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.quiz-option.correct {
  border-color: #2E6B3E;
  background: #E7F3EA;
  color: #1E4B2A;
  font-weight: 700;
}

.quiz-option.incorrect {
  border-color: #A83250;
  background: #FBEAEE;
  color: #7A2138;
  font-weight: 700;
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-audio {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.quiz-audio-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.quiz-audio-play:active { transform: scale(0.94); }
.quiz-audio-play:hover { background: var(--primary-dark); }

.quiz-audio-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.quiz-explanation {
  margin-top: 0.4rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.5;
}

.continue-cta {
  display: block;
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.continue-cta:hover { background: var(--primary-dark); }
.continue-cta:active { transform: scale(0.98); }

.quiz-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.quiz-score {
  font-weight: 700;
  color: var(--primary);
}

.panorama-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.panorama-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: grab;
  touch-action: none;
  background: #0A1628;
  border: 1px solid var(--line);
}

.panorama-wrap:active { cursor: grabbing; }

.panorama-inner {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}

.panorama-img {
  height: 240px;
  width: auto;
  max-width: none;
  display: block;
  user-select: none;
  pointer-events: none;
}

.panorama-placeholder {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--acc) 7%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}

.panorama-placeholder span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

.panorama-tour-preview {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0A1628;
}

.panorama-tour-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panorama-tour-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,14,28,0.75) 0%, rgba(6,14,28,0) 45%);
}

.panorama-tour-preview .btn {
  position: absolute;
  left: 50%;
  bottom: 0.8rem;
  transform: translateX(-50%);
  z-index: 1;
  white-space: nowrap;
}

.panorama-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
}

.panorama-tour-close {
  /* Izlaz iz 360° prikaza na mjestu gdje je bio logo (gore lijevo); info prozor ture ima svoj X gore desno. */
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 6px);
  left: 10px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy, #1B3764);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
  cursor: pointer;
}

.panorama-tour-overlay iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0A1628;
  border: 1px solid var(--line);
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--acc) 7%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
}

.video-placeholder-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
}

.video-placeholder-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 16px solid rgba(255,255,255,0.6);
  margin-left: 3px;
}

.video-placeholder span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

.ar-preview {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  max-height: 200px;
}

.ar-preview-placeholder {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--acc) 7%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px dashed rgba(27, 55, 100, 0.25);
}

.ar-preview-placeholder span {
  font-size: 0.78rem;
  color: var(--primary);
  opacity: 0.6;
  font-style: italic;
}

.ar-character-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
/* Kartica AR lika: roza pločica iz brandbooka, predmet na bijeloj podlozi, crveni redni
   broj kao naglasak (kao na karticama igara) i kratki vez prije gumba. */
.ar-character-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 0;
  border-radius: 22px;
  padding: 0.65rem 0.65rem 0.75rem;
  background: var(--rose-tint);
}
.ar-character-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 0.5rem;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.ar-character-card img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
/* Redni broj i ime u istom redu: manje visine kartice. */
.ar-character-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.3rem;
}
.ar-character-no {
  flex: none;
  font-size: 1rem;
  font-weight: 900;
  color: var(--red);
}
.ar-character-name {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  text-align: left;
}
.ar-character-vez { height: 4px; margin: 0.25rem 0 0.35rem; }

.ar-character-btn {
  width: 100%;
  padding: 0.5rem 0.6rem;
  font-size: 0.78rem;
  justify-content: center;
}

.map-container {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 21px;
  overflow: hidden;
  border: 0;
  outline: 6px solid var(--panel);
  outline-offset: 0;
  box-shadow: var(--shadow);
  z-index: 0;
  transition: height 0.35s ease;
}

/* Karta se povećava u normalnom toku stranice, bez position:fixed. */
.map-container.map-expanded {
  height: 65vh;
}

.map-fullscreen-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 1000;   /* iznad Leafletovih slojeva (do 800) */
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  -webkit-tap-highlight-color: transparent;
}

.map-fullscreen-btn:hover { background: #f2f2f2; }

.locations-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.location-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-sm);
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.location-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(27, 55, 100, 0.1);
}

.location-card.current {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.location-card { border-color: var(--panel-edge) !important; }
.location-dot {
  width: 8px;
  height: 38px;
  border-radius: 999px;
  flex-shrink: 0;
  filter: saturate(1.05);
}

.location-card-info {
  flex: 1;
  min-width: 0;
}

.location-card-name {
  font-family: inherit;
  letter-spacing: -0.02em;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-card-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.05rem;
}

.location-card-distance {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.location-card-current-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  flex-shrink: 0;
}

.navigate-btn {
  padding: 0.42rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
  background: color-mix(in srgb, var(--acc) 10%, transparent);
  color: var(--acc);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.navigate-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Legenda općina: boja pribadače = općina, ne pojedina lokacija. */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}
.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  box-shadow: var(--shadow);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
.map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 50% 2px;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

.map-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.app-footer {
  position: relative;
  z-index: 1010;
  background: transparent;
  border-top: 0;
  padding: 0.2rem 0.65rem calc(0.65rem + env(safe-area-inset-bottom));
  overflow: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, height 0.4s ease, padding 0.4s ease;
}

/* Hidden during the full-screen hero intro so visitors can't skip ahead
   to other tabs before starting the story. Height/padding/border are
   collapsed too — the app-shell grid row is "auto", so otherwise it would
   still reserve the footer's normal height and leave a blank white strip
   behind the hero overlay. */
.app-footer.intro-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  padding: 0;
  border-top-width: 0;
}

.tabbar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.2rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.tab {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
  font-weight: 700;
  padding: 0.5rem 0.18rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
}

.tab-icon {
  font-size: 1rem;
  line-height: 1;
}

.tab.active {
  background: var(--acc);
  color: #fff;
  border-color: transparent;
}

.tab:hover:not(.active) {
  background: color-mix(in srgb, var(--acc) 8%, transparent);
  color: var(--ink);
}

.index-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.index-hero-bg {
  position: absolute;
  inset: 0;
  background-color: #C8D4E4;
  background-image: url("assets/locations/01-stara-kapela/photo/hero.jpg");
  background-size: cover;
  background-position: center;
}
/* Veo ide na ::before jer ::after već nosi uzorak veza i dolazi kasnije u
   datoteci — dva ::after pravila na istom elementu poništavaju se. */
.index-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 60% at 14% 6%, color-mix(in srgb, var(--acc) 48%, transparent) 0%, transparent 62%),
    linear-gradient(to top, rgba(10, 18, 34, 0.92) 0%, rgba(10, 18, 34, 0.68) 32%,
      rgba(10, 18, 34, 0.22) 66%, transparent 100%);
}

.index-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Motiv iz brandbooka: razasuti trokuti iz znaka, ne izmišljeni rombi. */
  background: url("assets/graphics/meridiana-trokuti.svg") center / 260px 260px repeat;
  opacity: 0.1;
}

.index-hero-content {
  position: relative;
  z-index: 1;
  padding: 1.4rem;
  color: #fff;
  width: 100%;
}
.index-hero-content .eyebrow {
  padding: 0;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.82) !important;
}

.index-hero-content h2 {
  font-size: 2.1rem;
  color: #fff;
  font-style: normal;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 0.35rem;
}

.index-hero-content .tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

.project-desc-section {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-desc-section p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}

.index-locations-section {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.index-nearest-section {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.index-nearest-section p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.index-nearest-section .btn {
  align-self: flex-start;
}

.nearest-cta-status {
  font-size: 0.8rem;
  color: var(--primary) !important;
  min-height: 1em;
}

.municipality-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.municipality-accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  overflow: hidden;
}

.municipality-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0.9rem;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.municipality-name {
  flex: 1;
  font-family: inherit;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.municipality-count {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.municipality-chevron {
  color: var(--muted);
  font-size: 0.85rem;
  transition: transform var(--transition);
}

.municipality-accordion.open .municipality-chevron {
  transform: rotate(180deg);
}

.municipality-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition);
}

.municipality-accordion.open .municipality-panel {
  grid-template-rows: 1fr;
}

.municipality-panel > .location-cards-grid {
  overflow: hidden;
  min-height: 0;
  padding: 0 0.75rem 0.85rem;
}

.location-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.index-location-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-sm);
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.index-location-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 22px rgba(27, 55, 100, 0.10);
  transform: translateY(-1px);
}

.index-card-color-bar {
  height: 6px;
  width: 100%;
  flex-shrink: 0;
}

.index-card-body {
  padding: 0.7rem 0.75rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.index-card-eyebrow {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.12rem;
  color: var(--acc);
}

.index-card-name {
  font-family: inherit;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.12rem;
}

.index-card-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}


.index-card-arrow {
  display: none;
}

.index-map-section {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.index-map-container {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: height 0.35s ease;
}

.index-map-container.map-expanded {
  height: 65vh;
}

.karta-iw {
  font-family: inherit;
  width: 230px;
  padding-bottom: 0.3rem;
}

.karta-iw-header {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.karta-iw-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.3rem;
}

.karta-iw-name {
  font-family: inherit;
  letter-spacing: -0.02em;
  font-size: 1rem;
  font-weight: 700;
  color: #141C2E;
  line-height: 1.25;
}

.karta-iw-sub {
  font-size: 0.82rem;
  color: #5A6278;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

/* Uvlaka samo ondje gdje ispred naslova stoji točkica općine. */
.karta-iw-header + .karta-iw-sub { padding-left: 1.15rem; }

.karta-iw-here {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1B3764;
  background: #EDF1F9;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}

.karta-iw-btns {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Leaflet boji sve poveznice u kontejneru svojom plavom (`.leaflet-container a`),
   pa boje gumba u okviru moraju izričito pobijediti. */
.karta-iw-btns .navigate-btn,
.karta-iw-btns .navigate-btn:visited {
  color: var(--primary) !important;
  border-color: rgba(27, 55, 100, 0.35) !important;
  background: var(--primary-soft) !important;
  text-decoration: none !important;
}

.karta-iw-btns .navigate-btn:hover {
  color: #fff !important;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.karta-iw-btn,
.leaflet-container a.karta-iw-btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--acc);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.karta-iw-btn.secondary,
.leaflet-container a.karta-iw-btn.secondary {
  background: var(--rose-tint);
  color: var(--acc);
}

/* ── Legacy map popup (kept for compatibility) ─────────────────────────── */
.map-popup-name {
  font-family: inherit;
  letter-spacing: -0.02em;
  font-size: 0.92rem;
  font-weight: 700;
  color: #141C2E;
  margin-bottom: 0.2rem;
}

.map-popup-sub {
  font-size: 0.72rem;
  color: #5A6278;
  margin-bottom: 0.5rem;
}

.map-popup-link {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: #1B3764;
  border-radius: 4px;
  padding: 0.25rem 0.7rem;
  text-decoration: none;
}

@media (max-width: 520px) {
  body {
    padding: 0;
    background: var(--bg);
  }

  /* Okvir je prikovan uz zaslon (fixed), a stranica sama se ne može pomaknuti.
     Prije je visina bila 100dvh: kad se traka preglednika uvuče ili izvuče, dvh se
     promijeni, dokument postane viši od zaslona, preglednik ga pomakne, traka se
     opet mijenja... pa je ekran na učitavanju treperio gore-dolje. */
  html, body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .app-shell {
    position: fixed;
    inset: 0;
    width: 100%;
    height: auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Broj verzije: samo da se na mobitelu vidi gleda li se zadnja objava. */
/* Logo potpore (HTZ) na početnoj i na kraju lokacije: diskretna kartica, logo se samo skalira. */
.supporter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 1rem 1rem;
  text-align: center;
}
.supporter-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.supporter-logo {
  display: block;
  width: min(150px, 46%);
  height: auto;
}

.app-version {
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
  padding: 0.4rem 1rem 1rem;
}
.app-version:empty { display: none; }


/* ── Karta (Leaflet) ───────────────────────────────────────────────────── */

/* Standardni OSM stil je šaren (šume zelene, ceste žute); filtar ga smiruje da
   ne tuče s toplom podlogom aplikacije. Pribadače nisu pločice pa ostaju
   u punoj boji. */
.leaflet-tile {
  filter: saturate(0.4) brightness(1.05) contrast(0.94) sepia(0.1);
}

.leaflet-container { font-family: inherit; background: var(--rose-tint); }

.karta-pin { background: none; border: 0; }
.karta-pin svg { display: block; filter: drop-shadow(0 3px 5px rgba(0, 47, 103, 0.35)); }
.karta-pin-aktivna svg { filter: drop-shadow(0 4px 8px rgba(0, 47, 103, 0.5)); }

.karta-gumb {
  background: var(--acc);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 47, 103, 0.3);
}
/* Leafletovo pravilo za margine kontrola ima veću specifičnost, pa se prebija ovako;
   desni razmak ostavlja mjesto tipki za povećanje karte. */
.leaflet-top.leaflet-right .karta-gumb { margin: 0.6rem 3.3rem 0 0; }
.karta-gumb:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }

.leaflet-container .leaflet-control-zoom a { color: var(--acc); }

.karta-okvir .leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 0.2rem 0.15rem;
}
.karta-okvir .leaflet-popup-content { margin: 0.7rem 0.85rem; width: auto !important; }
.karta-okvir .karta-iw { width: 220px; padding-bottom: 0; }

.leaflet-control-attribution {
  background: rgba(251, 240, 238, 0.85);
  font-size: 9.5px;
  color: var(--muted);
}
.leaflet-container .leaflet-control-attribution a { color: var(--muted); }


/* ── Rad bez signala (offline.js) ──────────────────────────────────────── */
.offline-section,
.offline-kartica {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.offline-section[hidden] { display: none; }

.offline-opis {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.offline-redovi { display: flex; flex-direction: column; gap: 0.6rem; }

.offline-red {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--rose-tint);
}

.offline-red-ime {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--ink);
}
.offline-red-ime span { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

.offline-akcija { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.8rem; }
.offline-gumb { align-self: flex-start; }
.offline-gumb[disabled] { opacity: 0.75; cursor: progress; }

.offline-ok { font-weight: 800; font-size: 0.85rem; color: var(--acc); }

.offline-ukloni {
  background: none;
  border: none;
  padding: 0.2rem 0;
  font: inherit;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

.offline-traka { height: 6px; border-radius: 3px; background: var(--rose-tint); overflow: hidden; }
.offline-red .offline-traka { background: #fff; }
.offline-traka i { display: block; height: 100%; background: var(--acc); transition: width 0.2s ease; }

.offline-greska { margin: 0; font-size: 0.82rem; color: var(--accent); }


/* Tipka za glazbu (♪): mali krug uz tipke za reprodukciju, zdesno u istom redu.
   Isključena je prigušena i precrtana. */
.narration-transport { position: relative; }
.narration-music {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--rose-tint);
  color: var(--acc);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.narration-music[aria-pressed="false"] { color: var(--muted); opacity: 0.7; }
.narration-music[aria-pressed="false"]::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  top: 50%;
  height: 2px;
  background: currentColor;
  transform: rotate(-45deg);
}
.narration-music:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }

/* Sadržaj se nikad ne smije pomaknuti sam od sebe: preglednik ne smije "sidriti" scroll uz elemente koji se mijenjaju. */
.app-content, .narration-transcript { overflow-anchor: none; }


/* ── Bakine priče (price.js) ───────────────────────────────────────────── */
.price-intro { margin: 0 0 0.3rem; font-size: 0.92rem; line-height: 1.5; color: var(--muted); }
.price-credit { margin: 0 0 0.9rem; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--acc); }
.price-note { margin: 0 0 0.8rem; font-size: 0.82rem; color: var(--muted); }
.price-all { width: 100%; justify-content: center; margin-bottom: 0.4rem; }
.price-all span { opacity: 0.8; font-weight: 600; }
.price-chap { display: flex; align-items: baseline; justify-content: space-between; margin: 1.2rem 0 0.55rem; }
.price-chap h4 { margin: 0; font-size: 1.1rem; font-weight: 900; color: var(--ink); }
.price-chap span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); }
.price-list { display: flex; flex-direction: column; gap: 0.8rem; }

.price-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 0.8rem;
  align-items: stretch;
  width: 100%;
  padding: 0.55rem;
  border: 0;
  border-radius: 22px;
  background: var(--rose-tint);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.price-card img { width: 118px; height: 100%; min-height: 92px; object-fit: cover; border-radius: 16px; display: block; }
.price-card-body { display: flex; flex-direction: column; justify-content: center; gap: 0.2rem; min-width: 0; padding-right: 0.3rem; }
.price-no { font-size: 0.95rem; font-weight: 900; color: var(--red); }
.price-no small { margin-left: 0.4rem; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.price-t { font-size: 1rem; font-weight: 800; line-height: 1.2; color: var(--ink); }
.price-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.15rem; font-size: 0.78rem; font-weight: 700; color: var(--acc); font-variant-numeric: tabular-nums; }
.price-play { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--acc); color: #fff; align-items: center; justify-content: center; font-size: 0.7rem; }
.price-card.done .price-play { background: #fff; color: var(--acc); box-shadow: inset 0 0 0 2px var(--acc); }
.price-card:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }

/* Otvorena priča: preko cijelog ekrana, u širini aplikacije kao i igre. */
.price-overlay {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(20, 28, 46, 0.55);
  animation: priceIn 0.22s ease;
}
@keyframes priceIn { from { opacity: 0; } to { opacity: 1; } }
.price-sheet {
  display: flex; flex-direction: column;
  width: min(460px, 100%);
  height: min(920px, calc(100dvh - 2rem));
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(28, 34, 51, 0.3);
}
@media (max-width: 500px) { .price-overlay { padding: 0; } .price-sheet { height: 100%; border-radius: 0; } }
.price-hero { position: relative; flex: none; aspect-ratio: 3 / 2; background: #1c1f26; overflow: hidden; }
.price-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.price-x, .price-pos {
  position: absolute; top: 0.8rem;
  background: rgba(0, 47, 103, 0.84); color: #fff; border: 0; font-family: inherit;
}
.price-x { left: 0.8rem; width: 40px; height: 40px; border-radius: 50%; font-size: 1.05rem; cursor: pointer; }
.price-pos { right: 0.8rem; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.76rem; font-weight: 800; }
.price-main {
  position: relative; flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  margin-top: -1.2rem; padding: 0 1.1rem 0.9rem;
  border-radius: 26px 26px 0 0; background: #fff;
}
.price-main .vez { flex: none; margin: 0.75rem 0 0.8rem; }
.price-chip { align-self: flex-start; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--rose-tint); color: var(--acc); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.price-h { margin: 0.4rem 0 0; font-size: 1.45rem; font-weight: 900; line-height: 1.15; color: var(--ink); }
.price-sub { margin: 0.2rem 0 0; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.price-probni { margin-top: 0.4rem; padding: 0.35rem 0.7rem; border-radius: 10px; background: var(--rose-tint); color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.price-transport { position: relative; margin-top: 0.5rem; }
.price-tr { flex: 1; min-height: 0; max-height: none; margin-top: 0.6rem; }
.price-dots { flex: none; display: flex; justify-content: center; gap: 0.35rem; margin-top: 0.6rem; }
.price-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rose-tint); }
.price-dots i.on { background: var(--acc); }
.price-dots i.here { background: var(--red); transform: scale(1.3); }
.price-nav { flex: none; display: flex; gap: 0.6rem; margin-top: 0.7rem; }
.price-nav .btn { flex: 1; justify-content: center; }
.price-nav .btn[disabled] { opacity: 0.4; cursor: default; }
@media (prefers-reduced-motion: reduce) { .price-overlay { animation: none; } }
