/*
 * MyShishapedia - nargila barovi u BiH: karta BiH (stubovi svjetla), stranice gradova (poster, tabovi,
 * lista, mapa). Učitava se samo na tim stranicama (build.mjs PAGE_STYLES).
 * Lokal sa dogovorom "gori" (narandžasti sjaj); ostali lokali su mirni.
 */
.bx, .ct { --b-amber: #f2a33c; --b-ember: #d9643f; --b-glow: rgba(242, 163, 60, 0.6); --b-line: rgba(244, 235, 223, 0.12); --b-card: #1f1a17; --b-card2: #282320; }
.bx .crumbs, .ct .crumbs { padding-inline: 0; margin-bottom: 6px; }

/* ---------- Karta BiH ---------- */
.bx-hero { padding-top: calc(var(--header-h) + env(safe-area-inset-top) + clamp(16px, 4vh, 40px)); position: relative; z-index: 2; }
.bx-title { margin: 0.25em 0 0.2em; font: 800 clamp(2.6rem, 1.4rem + 6vw, 5.6rem)/0.95 var(--font-display); letter-spacing: -0.025em; }
.bx-title em { font-style: normal; background: linear-gradient(180deg, #ffe2b0, var(--b-amber) 60%, var(--b-ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bx-lead { margin: 0; color: var(--c-muted); max-width: 34ch; font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem); }

.bx-stage { position: relative; margin-top: clamp(-90px, -10vw, -24px); overflow: hidden; }
.bx-stage::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 58% 62%, rgba(110, 50, 18, 0.55), transparent 70%); pointer-events: none; }
.bh-map { position: relative; width: 100%; max-width: 860px; margin: 0 auto; aspect-ratio: 390 / 380; }
.bh-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.bh-lead { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.bh-lead path { stroke: #ffcf8a; stroke-opacity: 0.45; stroke-width: 0.8; stroke-dasharray: 2 3; fill: none; }

.bh-pill {
  position: absolute; z-index: 3; transform: translate(-50%, 0); display: flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 6px; border-radius: 12px; white-space: nowrap; text-decoration: none; color: var(--c-text);
  background: rgba(24, 17, 13, 0.74); border: 1px solid rgba(255, 207, 138, 0.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 800 clamp(11px, 1.6vw, 14px)/1 var(--font-body);
  transition: transform 0.25s var(--ease-out), background-color 0.25s, border-color 0.25s;
}
.bh-pill b { font: 800 clamp(12px, 1.8vw, 15px)/1 var(--font-display); min-width: 24px; height: 22px; padding: 0 5px; display: grid; place-items: center; border-radius: 7px; background: rgba(242, 163, 60, 0.18); color: var(--b-amber); }
.bh-pill.is-top { background: rgba(244, 235, 223, 0.94); color: #140f0c; border-color: #fff; }
.bh-pill.is-top b { background: #140f0c; }
.bh-pill:hover, .bh-pill:focus-visible, .bh-pill.is-hl { transform: translate(-50%, -3px); border-color: var(--b-amber); }

.bh-sp { opacity: 0; }
.bh-map.is-dim .bh-beam:not(.is-hl) { opacity: 0.35; }
.bh-beam { transition: opacity 0.35s; }

.bx-body { position: relative; z-index: 2; padding-bottom: clamp(24px, 5vw, 48px); max-width: 760px; }
.bx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: 20px; overflow: hidden; background: rgba(255, 207, 138, 0.18); border: 1px solid rgba(255, 207, 138, 0.18); margin-top: clamp(-40px, -4vw, 10px); }
.bx-stats div { background: rgba(18, 13, 10, 0.86); padding: 12px 12px 11px; }
.bx-stats b { display: block; font: 800 clamp(1.4rem, 1.1rem + 1.4vw, 2rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.bx-stats span { font-size: 0.72rem; color: var(--c-muted); font-weight: 700; }
.bx-stats .is-hot b { color: var(--b-amber); }

.bx-near {
  width: 100%; margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border: 0; border-radius: 999px;
  background: #f4ebdf; color: #140f0c; text-align: left; cursor: pointer; font: inherit;
  box-shadow: 0 18px 50px -14px rgba(242, 163, 60, 0.7); transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.bx-near:hover { transform: translateY(-2px); }
.bx-near:active { transform: scale(0.99); }
.bx-near b { display: block; font: 800 1.05rem var(--font-display); }
.bx-near small { display: block; font-size: 0.75rem; color: #6f665d; font-weight: 700; }
.bx-near i { margin-left: auto; flex: none; width: 46px; height: 46px; border-radius: 50%; background: #140f0c; display: grid; place-items: center; }
.bx-near i::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--b-amber); box-shadow: 0 0 0 5px rgba(242, 163, 60, 0.25), 0 0 14px var(--b-amber); }
.bx-near.is-busy i::after { animation: bx-ping 1.2s ease-out infinite; }
.bx-near-res { margin: 10px 4px 0; font-size: 0.9rem; color: var(--c-muted); }
.bx-near-res a { color: var(--b-amber); font-weight: 700; }

.bx-sec { margin-top: clamp(24px, 4vw, 36px); }
.bx-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; font: 700 0.72rem var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: #8d847a; }
.bx-h--sm { margin-top: 22px; }
.bx-sec .bx-lead { font-size: 0.88rem; margin-bottom: 4px; }
.bx-city { margin: 18px 0 2px; font: 700 1.1rem var(--font-display); }
.bx-city small { font: 700 0.75rem var(--font-body); color: var(--c-muted); margin-left: 6px; }

.bc-rows { list-style: none; margin: 0; padding: 0; }
.bc-row { display: flex; align-items: center; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--b-line); color: var(--c-text); text-decoration: none; transition: padding 0.2s var(--ease-out); }
.bc-row:hover, .bc-row:focus-visible, .bc-row.is-hl { padding-left: 8px; }
.bc-row__bar { width: 4px; height: 32px; border-radius: 9px; background: #2e2723; display: flex; align-items: flex-end; overflow: hidden; flex: none; }
.bc-row__bar i { display: block; width: 100%; border-radius: 9px; background: linear-gradient(0deg, #fff1d6, var(--b-amber)); box-shadow: 0 0 8px var(--b-glow); }
.bc-row b { font: 700 1.15rem var(--font-display); }
.bc-row__n { margin-left: auto; font-size: 0.82rem; color: var(--c-muted); font-weight: 700; }
.bc-row .icon { width: 18px; height: 18px; color: var(--b-amber); flex: none; }

/* ---------- Poster grada ---------- */
.ct { position: relative; }
.cp { position: relative; height: clamp(340px, 50vh, 420px); overflow: hidden; pointer-events: none; }
.cp svg { position: absolute; left: 50%; bottom: 0; width: 100%; height: 100%; transform: translateX(-50%); }
.cp-smoke { opacity: 0.95; }
.cp-glow { mix-blend-mode: screen; }
.cp-w { display: none; }
@media (min-width: 900px) {
  .cp { height: clamp(460px, 30vw, 620px); }
  .cp-m { display: none; }
  .cp-w { display: block; }
  .cp-w .cp-smoke { opacity: 0.8; }
}

.ct-body { position: relative; z-index: 2; margin-top: -40px; max-width: 860px; padding-bottom: clamp(24px, 5vw, 48px); }
.ct-crumbs { margin-bottom: 4px; }
.ct-tabs { display: flex; align-items: flex-end; gap: 20px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; border-bottom: 1px solid var(--b-line); padding-bottom: 0; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.ct-tabs::-webkit-scrollbar { display: none; }
.ct-tabs a { font: 800 1.05rem/1 var(--font-display); color: #6f665d; text-decoration: none; padding: 0 0 12px; flex: none; transition: color 0.2s; }
.ct-tabs a:hover { color: var(--c-text); }
.ct-tabs sup, .ct-cur sup { font: 800 0.62rem var(--font-body); margin-left: 2px; color: #8d847a; vertical-align: 1.1em; }
.ct-cur { position: relative; flex: none; margin: 0; padding: 0 0 12px; font: 800 clamp(1.9rem, 1.4rem + 2.4vw, 2.6rem)/1 var(--font-display); letter-spacing: -0.01em; }
.ct-cur sup { color: var(--b-amber); font-size: 0.75rem; }
.ct-cur::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 9px; background: linear-gradient(90deg, var(--b-amber), var(--b-ember)); box-shadow: 0 0 12px var(--b-glow); }
.ct-tabs .ct-all { font: 700 0.8rem/1 var(--font-body); color: var(--c-muted); padding-bottom: 14px; }
.ct-lead { margin: 12px 0 0; color: var(--c-muted); font-size: 0.9rem; }

.ct-ctl { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ct-chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--b-line); background: rgba(31, 26, 23, 0.6); color: var(--c-muted); font: 800 0.8rem var(--font-body); cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.ct-chip .icon { width: 14px; height: 14px; }
.ct-chip[aria-pressed='true'] { background: rgba(242, 163, 60, 0.14); border-color: rgba(242, 163, 60, 0.5); color: #ffd59a; }
.ct-chip.is-busy .icon { animation: bx-spin 1s linear infinite; }
.ct-seg { margin-left: auto; display: flex; padding: 3px; border-radius: 999px; background: var(--b-card); border: 1px solid var(--b-line); }
.ct-seg button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border: 0; border-radius: 999px; background: none; color: var(--c-muted); font: 800 0.78rem var(--font-body); cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.ct-seg button .icon { width: 14px; height: 14px; }
.ct-seg button.is-on { background: var(--c-text); color: #140f0c; }

.ct-view { margin-top: 16px; }
.ct-view.is-in { animation: ct-in 0.35s var(--ease-out) both; }

/* istaknut lokal (sa dogovorom) */
.bf-list { display: grid; gap: 10px; }
.bf { border-radius: 26px; padding: 1px; background: linear-gradient(140deg, rgba(255, 207, 138, 0.75), rgba(242, 163, 60, 0.15) 40%, rgba(217, 100, 63, 0.5)); box-shadow: 0 30px 60px -30px rgba(242, 120, 40, 0.6); }
.bf__in { border-radius: 25px; padding: 16px; background: radial-gradient(120% 90% at 0% 0%, #3b2412 0%, #1d1512 55%, #171210 100%); }
.bf__head { display: flex; align-items: center; gap: 13px; }
.bf__t { min-width: 0; }
.bf__t h3 { margin: 0; font: 800 1.3rem/1.1 var(--font-display); }
.bf__t p { margin: 3px 0 0; font-size: 0.8rem; color: var(--c-muted); }
.bf-tag { display: inline-block; margin-right: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(242, 163, 60, 0.18); color: var(--b-amber); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; vertical-align: 1px; }
.bf__st { margin-left: auto; align-self: flex-start; display: flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 800; color: #ffd59a; white-space: nowrap; }
.bf__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.bf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; border-radius: 999px; background: rgba(244, 235, 223, 0.07); font-size: 0.75rem; font-weight: 700; }
.bf-chip i { width: 16px; height: 16px; border-radius: 50%; }
.bf-chip--more { padding: 6px 10px; color: var(--c-muted); }
.bf__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--b-line); }
.bf__foot small { font-size: 0.75rem; color: var(--c-muted); }
.bf__go { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 800; color: var(--b-amber); text-decoration: none; white-space: nowrap; }
.bf__go i { width: 32px; height: 32px; border-radius: 50%; background: var(--b-amber); display: grid; place-items: center; color: #16100a; transition: transform 0.2s var(--ease-out); }
.bf__go i .icon { width: 16px; height: 16px; }
.bf__go:hover i { transform: translateX(3px); }

.bc-coal { width: 54px; height: 54px; border-radius: 16px; flex: none; display: grid; place-items: center; font: 800 1.6rem var(--font-display); color: #2a0f04; background: linear-gradient(135deg, #ffe1a8, var(--b-amber) 45%, #c4521c); box-shadow: 0 0 26px rgba(255, 138, 42, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.bc-led { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff1d6, var(--b-amber) 55%, #a0441c); box-shadow: 0 0 10px 2px var(--b-glow); animation: bc-breathe 2.6s ease-in-out infinite; }
.bc-led--off { background: #2a221c; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8); animation: none; }

/* lista lokala */
.bl-list { list-style: none; margin: 0; padding: 0; }
.bl { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--b-line); transition: background-color 0.4s; }
.bl.is-flash { background: rgba(242, 163, 60, 0.08); }
.bl-n { width: 44px; flex: none; text-align: center; overflow: hidden; }
.bl-n b { display: block; font: 800 1.05rem/1 var(--font-display); color: #8d847a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-n b.is-long { font-size: 0.82rem; letter-spacing: -0.02em; }
.bl-n small { display: block; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; color: var(--c-muted); margin-top: 3px; }
.bl.has-dist .bl-n b { color: var(--c-text); }
.bl-t { min-width: 0; flex: 1; }
.bl-t h3 { margin: 0; font: 700 0.98rem/1.25 var(--font-body); }
.bl-t p { margin: 2px 0 0; font-size: 0.78rem; color: var(--c-muted); overflow-wrap: anywhere; }
.bl-nopin { opacity: 0.75; }
.bl-act { display: flex; align-items: center; gap: 6px; flex: none; }
.bl-ext { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--b-line); display: grid; place-items: center; color: var(--c-text); background: none; cursor: pointer; padding: 0; }
.bl-ext .icon { width: 17px; height: 17px; }
.bl-ext:hover { border-color: rgba(242, 163, 60, 0.5); color: var(--b-amber); }
.bl-go { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 12px; background: rgba(242, 163, 60, 0.12); border: 1px solid rgba(242, 163, 60, 0.35); color: #ffd59a; font-size: 0.78rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.bl-go .icon { width: 15px; height: 15px; }
.bl-go:hover { background: rgba(242, 163, 60, 0.22); }
@media (max-width: 420px) { .bl-go span { display: none; } .bl-go { width: 38px; padding: 0; justify-content: center; } }

/* mapa */
.ct-map__box { position: relative; height: min(62vh, 460px); min-height: 320px; border-radius: 24px; overflow: hidden; border: 1px solid var(--b-line); background: #17110e; isolation: isolate; }
.ct-map__box .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.8) contrast(0.78) saturate(0.3) sepia(0.35); opacity: 0.9; }
.ct-map__box .leaflet-container { background: #17110e; font: inherit; }
.ct-map__box .leaflet-control-attribution { background: rgba(20, 15, 12, 0.75); color: #8d847a; font-size: 10px; border-radius: 8px 0 0 0; }
.ct-map__box .leaflet-control-attribution a { color: #b4aa9e; }
.ct-map__box .leaflet-control-zoom { border: 1px solid var(--b-line) !important; border-radius: 12px; overflow: hidden; }
.ct-map__box .leaflet-control-zoom a { width: 36px; height: 34px; line-height: 34px; background: rgba(20, 15, 12, 0.88); color: var(--c-text); border-color: var(--b-line); }
.ct-map__box .leaflet-control-zoom a:hover { background: #2a221c; color: var(--b-amber); }
.ct-map__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c-muted); font-size: 0.85rem; }

.bm-pin { position: relative; }
.bm-dot { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff6e8; border: 2.5px solid #140f0c; box-shadow: 0 0 0 5px rgba(255, 246, 232, 0.22), 0 2px 10px rgba(0, 0, 0, 0.6); transform: scale(0); animation: bm-pop 0.45s var(--ease-out) forwards; animation-delay: var(--d, 0s); transition: transform 0.2s; }
.bm-pin.is-sel .bm-dot { box-shadow: 0 0 0 8px rgba(242, 163, 60, 0.4), 0 0 18px rgba(242, 163, 60, 0.8); background: var(--b-amber); }
.bm-coal { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 10px; display: grid; place-items: center; font: 800 18px var(--font-display); color: #2a0f04; background: linear-gradient(135deg, #ffe1a8, var(--b-amber) 45%, #c4521c); border: 1px solid rgba(255, 230, 192, 0.7); transform: rotate(-6deg) scale(0); animation: bm-coal 0.6s var(--ease-out) forwards, bc-glow 2.6s ease-in-out infinite; animation-delay: var(--d, 0s), calc(var(--d, 0s) + 0.6s); }
.bm-you { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #8fc6ff; border: 2.5px solid #fff; box-shadow: 0 0 0 10px rgba(143, 198, 255, 0.18); }
.bm-you::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #8fc6ff; animation: bm-radar 2s ease-out infinite; }
.bm-map-dim .bm-pin:not(.is-sel) .bm-dot { opacity: 0.7; }
.bm-pin.is-sel .bm-dot { transform: scale(1.25); }

.ct-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 2px 0; font-size: 0.72rem; font-weight: 700; color: var(--c-muted); }
.ct-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.ct-legend .lg-lit { background: var(--b-amber); box-shadow: 0 0 8px var(--b-amber); border-radius: 3px; }
.ct-legend .lg-bar { background: #f4ebdf; }
.ct-legend .lg-you { background: #8fc6ff; }

.ct-card { margin-top: 12px; padding: 14px; border-radius: 22px; background: var(--b-card); border: 1px solid var(--b-line); display: flex; align-items: center; gap: 12px; animation: ct-up 0.4s var(--ease-out) both; }
.ct-card.is-lit { border-color: rgba(242, 163, 60, 0.5); background: radial-gradient(120% 90% at 0% 0%, #3b2412, #1d1512 60%); }
.ct-card__t { min-width: 0; flex: 1; }
.ct-card__t b { display: block; font: 800 1.05rem/1.2 var(--font-display); }
.ct-card__t small { font-size: 0.78rem; color: var(--c-muted); }
.ct-card__x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--b-line); background: none; color: var(--c-muted); cursor: pointer; flex: none; display: grid; place-items: center; }
.ct-card__x .icon { width: 14px; height: 14px; }

/* vlasnici, fali lokal, izvor */
.bo { margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; border: 1px dashed rgba(242, 163, 60, 0.4); font-size: 0.85rem; color: var(--c-muted); }
.bo .bc-led { margin-top: 5px; }
.bo p { margin: 0; }
.bo b { color: var(--c-text); }
.bo__links { display: flex; gap: 14px; margin-top: 6px !important; flex-wrap: wrap; }
.bo > div, .bo p:first-of-type { flex: 1; }
.bo { flex-wrap: wrap; }
.bo__links { flex-basis: 100%; padding-left: 22px; }
.bo a { color: var(--b-amber); font-weight: 700; text-decoration: none; }
.bo a:hover { text-decoration: underline; }
.bm-miss { margin: 14px 2px 0; font-size: 0.82rem; color: var(--c-muted); }
.bm-miss a { color: var(--c-text); font-weight: 700; }
.bm-osm { margin: 10px 2px 0; font-size: 0.7rem; color: #6f665d; }
.bx .faq, .ct .faq { padding-top: 8px; }

/* ---------- Animacije ---------- */
@keyframes bx-ping { 0% { box-shadow: 0 0 0 0 rgba(242, 163, 60, 0.6), 0 0 14px var(--b-amber); } 100% { box-shadow: 0 0 0 16px rgba(242, 163, 60, 0), 0 0 14px var(--b-amber); } }
@keyframes bx-spin { to { transform: rotate(360deg); } }
@keyframes bc-breathe { 50% { box-shadow: 0 0 16px 4px var(--b-glow); } }
@keyframes bc-glow { 0%, 100% { box-shadow: 0 0 16px rgba(255, 138, 42, 0.55); } 50% { box-shadow: 0 0 30px rgba(255, 138, 42, 0.9); } }
@keyframes bm-pop { to { transform: scale(1); } }
@keyframes bm-coal { to { transform: rotate(-6deg) scale(1); } }
@keyframes bm-radar { from { transform: scale(1); opacity: 0.9; } to { transform: scale(4); opacity: 0; } }
@keyframes ct-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes ct-up { from { opacity: 0; transform: translateY(12px); } }

/* karta BiH: ploča izroni, linije se pale, stubovi rastu, iskre se dižu (samo kad je JS spreman) */
@keyframes bh-plate { from { opacity: 0; transform: translateY(24px); } }
@keyframes bh-lv { from { opacity: 0; } }
@keyframes bh-rise { from { transform: scaleY(0); } }
@keyframes bh-pool { from { opacity: 0; transform: scale(0.3); } }
@keyframes bh-pill { from { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes bh-spark { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 0.9; } 100% { opacity: 0; transform: translateY(-46px); } }
@keyframes bh-flicker { 0%, 100% { opacity: 1; } 45% { opacity: 0.86; } 70% { opacity: 0.95; } }
@keyframes cp-drift { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-7px); } }
@keyframes cp-ember { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.bh-plate, .bh-rise, .bh-pool { transform-box: fill-box; }
.bh-rise { transform-origin: 50% 100%; }
.bh-pool { transform-origin: 50% 50%; }
html.js .bh-map.is-play .bh-plate { animation: bh-plate 0.9s var(--ease-out) both; }
html.js .bh-map.is-play .bh-lv { animation: bh-lv 0.6s ease both; animation-delay: calc(0.25s + var(--i) * 0.04s); }
html.js .bh-map.is-play .bh-rise { animation: bh-rise 0.9s var(--ease-out) both, bh-flicker 3.2s ease-in-out infinite; animation-delay: var(--d), calc(var(--d) + 0.9s); }
html.js .bh-map.is-play .bh-pool { animation: bh-pool 0.7s var(--ease-out) both; animation-delay: var(--d); }
html.js .bh-map.is-play .bh-pill { animation: bh-pill 0.5s var(--ease-out) both; animation-delay: var(--d); }
html.js .bh-map.is-live .bh-sp { animation: bh-spark var(--u) linear infinite; animation-delay: var(--s); }
html.js .bh-map.is-paused .bh-sp, html.js .bh-map.is-paused .bh-rise { animation-play-state: paused; }
html.js .cp-smoke { animation: cp-drift 9s ease-in-out infinite; }
.cp-ember { animation: cp-ember 2.8s ease-in-out infinite; animation-delay: var(--d); }

@media (prefers-reduced-motion: reduce) {
  html.js .bh-map .bh-plate, html.js .bh-map .bh-lv, html.js .bh-map .bh-rise, html.js .bh-map .bh-pool, html.js .bh-map .bh-pill,
  html.js .bh-map .bh-sp, html.js .cp-smoke, .cp-ember, .bc-led, .bm-coal, .bm-dot, .bm-you::after, .ct-view.is-in, .ct-card { animation: none !important; }
  .bm-dot, .bm-coal { transform: none; }
  .bm-coal { transform: rotate(-6deg); }
}

@media (min-width: 760px) {
  .bx-body { padding-inline: 0; }
  .bx-stage { margin-top: -120px; }
  .ct-body { margin-top: -70px; }
}
@media (min-width: 900px) { .ct-body { margin-top: -28px; } }

/* ---------- Vrh stranice lounge-a (lokal sa dogovorom) ---------- */
.lp-hero { position: relative; text-align: center; padding: 26px 0 6px; --b-amber: #f2a33c; --b-glow: rgba(242, 163, 60, 0.6); --b-line: rgba(244, 235, 223, 0.12); }
.lp-hero::before { content: ''; position: absolute; left: 50%; top: -20px; width: min(520px, 120%); height: 340px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 120, 40, 0.28), transparent); pointer-events: none; z-index: -1; }
.lp-coal { position: relative; display: block; width: 96px; height: 96px; margin: 0 auto; }
.lp-coal::before { content: ''; position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 42, 0.5), transparent 65%); animation: bc-breathe2 3s ease-in-out infinite; }
.lp-coal b { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 28px; font: 800 48px var(--font-display); color: #2a0f04; background: linear-gradient(140deg, #ffe8bb, #f6ad48 40%, #d75a1c 80%, #a8380e); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -6px 14px rgba(120, 30, 0, 0.45), 0 18px 40px -10px rgba(255, 110, 30, 0.7); transform: rotate(-6deg); }
.lp-badge { display: inline-flex; align-items: center; gap: 7px; margin: 22px 0 0; padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(244, 235, 223, 0.08); border: 1px solid rgba(244, 235, 223, 0.16); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.lp-badge i { width: 17px; height: 17px; border-radius: 50%; background: var(--b-amber); color: #140f0c; display: grid; place-items: center; }
.lp-badge i .icon { width: 11px; height: 11px; stroke-width: 3; }
.lp-name { margin: 10px 0 0; font: 800 clamp(2.6rem, 2rem + 4vw, 4rem)/1 var(--font-display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.lp-sub { margin: 6px 0 0; font-size: 0.88rem; color: var(--c-muted); }
.lp-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 18px auto 0; max-width: 480px; border-radius: 20px; background: rgba(28, 23, 20, 0.75); border: 1px solid var(--b-line); }
.lp-stats div { padding: 12px 8px; }
.lp-stats div + div { border-left: 1px solid var(--b-line); }
.lp-stats b { display: flex; justify-content: center; align-items: center; gap: 7px; font: 800 1rem/1.15 var(--font-display); }
.lp-stats span { display: block; margin-top: 4px; font-size: 0.68rem; color: var(--c-muted); font-weight: 700; }
.lp-acts { display: flex; gap: 8px; justify-content: center; margin: 14px auto 0; max-width: 480px; }
.lp-act { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--b-line); color: var(--c-text); text-decoration: none; font: 800 0.88rem var(--font-display); }
.lp-act .icon { width: 17px; height: 17px; }
.lp-act--go { flex: 1.6; background: linear-gradient(135deg, #ffcf7a, var(--b-amber) 50%, #e07a2a); color: #16100a; border-color: transparent; box-shadow: 0 10px 26px -10px rgba(242, 163, 60, 0.9); }
.lp-act--ic { flex: none; width: 46px; padding: 0; }
@keyframes bc-breathe2 { 50% { opacity: 0.6; transform: scale(0.94); } }
@media (prefers-reduced-motion: reduce) { .lp-coal::before { animation: none; } }
.lp-stats__txt b { font-size: 0.82rem; }
.ct-card .bl-go { width: auto; padding: 0 14px; }

/* dorada: FAQ uvijek vidljiv, link "Svi gradovi" u redu ispod tabova, natpis na podu */
.bx [data-reveal], .ct [data-reveal] { opacity: 1; transform: none; }
.ct-lead .ct-all { color: var(--b-amber); font-weight: 700; text-decoration: none; white-space: nowrap; }
.ct-lead .ct-all:hover { text-decoration: underline; }
.ct-tabs { padding-right: 24px; }
html.js .bh-map.is-play .bh-words { animation: bh-lv 1.4s ease both; animation-delay: 0.6s; }
@media (prefers-reduced-motion: reduce) { html.js .bh-map .bh-words { animation: none !important; } }

/* ---------- Uranjanje u stub: karta BiH -> stranica grada (vidi dive() u js/bars.js) ---------- */
:root { --dive-glow: radial-gradient(circle at 50% 54%, #fff7ea 0, #ffd697 16%, #f2a33c 38%, #b8521d 70%, #3a1608 100%); }
.bh-beam.is-link { cursor: pointer; }
html.is-diving .site-header,
html.is-diving .bx-hero,
html.is-diving .bx-body,
html.is-diving .bh-pill,
html.is-diving .bh-lead,
html.is-diving .bh-words,
html.is-diving .bh-beam:not(.is-dive) { opacity: 0 !important; transition: opacity 0.35s ease; }
html.is-diving #main { will-change: transform; }
.dive { position: fixed; inset: 0; z-index: 400; overflow: hidden; pointer-events: auto; }
.dive__beam {
  position: absolute; top: -10%; left: 0; width: 40px; margin-left: -20px; height: 120%; opacity: 0;
  background: linear-gradient(90deg, rgba(242, 163, 60, 0), rgba(242, 163, 60, 0.55) 22%, #fff3dc 50%, rgba(242, 163, 60, 0.55) 78%, rgba(242, 163, 60, 0));
  filter: blur(1.5px);
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent 92%); mask-image: linear-gradient(to top, #000 40%, transparent 92%);
}
.dive__st {
  position: absolute; top: 0; width: 2px; height: var(--l); border-radius: 2px; opacity: 0;
  background: linear-gradient(rgba(255, 226, 176, 0), #fff1d6);
  animation: dive-st 0.42s var(--d) cubic-bezier(0.4, 0, 1, 1) both;
}
.dive__base { position: absolute; left: 0; top: 0; width: 120px; height: 46px; margin: -23px 0 0 -60px; opacity: 0; border-radius: 50%; background: radial-gradient(closest-side, #fffaf0, #ffe3ad 40%, rgba(242, 163, 60, 0.75) 70%, rgba(242, 163, 60, 0)); }
.dive__glow { position: absolute; inset: 0; opacity: 0; background: var(--dive-glow); }
.dive.is-hold .dive__glow { animation: dive-hold 1.6s ease-in-out infinite alternate; }
@keyframes dive-st { 0% { opacity: 0; transform: translateY(105vh); } 30% { opacity: 0.9; } 100% { opacity: 0; transform: translateY(-35vh); } }
@keyframes dive-hold { to { transform: scale(1.06); filter: brightness(0.9); } }

/* Stranica grada: izlazak iz istog svjetla (klasa dive-in dolazi iz HEAD_SCRIPT prije prvog crtanja) */
.ct-dive { display: none; }
html.dive-in .ct-dive {
  display: block; position: fixed; inset: 0; z-index: 400; pointer-events: none; background: var(--dive-glow);
  animation: ct-dive-out 0.85s cubic-bezier(0.3, 0, 0.2, 1) 0.05s both;
}
html.dive-in .cp { transform-origin: 50% 75%; animation: ct-emerge 1.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
html.dive-in .ct-body { animation: ct-rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
html.dive-in .site-header { animation: ct-fade 0.5s ease 0.55s both; }
@keyframes ct-dive-out { 60% { opacity: 0.35; } to { opacity: 0; transform: translateY(-8vh) scale(1.35); } }
@keyframes ct-emerge { from { transform: translateY(40px) scale(1.25); } }
@keyframes ct-rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes ct-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html.dive-in .ct-dive { display: none; }
  html.dive-in .cp, html.dive-in .ct-body, html.dive-in .site-header { animation: none; }
}
