/* ================================================
   BURGOS — PRAVILA (S3 tema)
   Ide uz style.css + s3-theme.css.
   ================================================ */

/* ── raspored: bocni meni + sadrzaj ── */
.pr-wrap {
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin: 0 auto;
  padding: 108px 48px 72px;
}

.pr-layout {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 44px;
  align-items: start;
}

/* ════════════════════════════════════════════════
   ZAGLAVLJE
   ════════════════════════════════════════════════ */
.pr-hero { text-align: center; margin-bottom: 44px; }
.pr-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(93,156,172,.25);
  border-radius: 99px;
  padding: 6px 18px;
  font-family: var(--fu);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(93,156,172,.8);
  background: rgba(93,156,172,.06);
  margin-bottom: 18px;
}
.pr-hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--s3-teal);
  box-shadow: 0 0 6px var(--s3-teal);
}
.pr-hero h1 {
  font-family: var(--fd);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--s3-grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.05;
  margin: 0;
}
.pr-hero-lead {
  margin: 16px auto 0;
  max-width: 620px;
  font-family: var(--fb);
  font-size: .92rem;
  line-height: 1.75;
  color: rgba(255,255,255,.4);
}
.pr-hero-meta {
  margin-top: 18px;
  font-family: var(--fu);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.22);
}

/* ════════════════════════════════════════════════
   BOCNI MENI
   ════════════════════════════════════════════════ */
.pr-nav {
  position: sticky;
  top: 88px;
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  padding-right: 4px;
}
.pr-nav::-webkit-scrollbar { width: 3px; }
.pr-nav::-webkit-scrollbar-thumb { background: rgba(93,156,172,.25); border-radius: 3px; }

.pr-nav-grupa {
  font-family: var(--fu);
  font-size: .62rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.22);
  padding: 0 12px 8px;
  margin-top: 22px;
}
.pr-nav-grupa:first-child { margin-top: 0; }

.pr-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  border-left: 2px solid transparent;
  font-family: var(--fu);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.42);
  text-decoration: none;
  transition: color .2s, background .2s, border-color .2s;
}
.pr-nav a svg { flex: 0 0 auto; opacity: .55; transition: opacity .2s; }
.pr-nav a span { flex: 1; min-width: 0; }
.pr-nav a b {
  font-family: var(--fb);
  font-size: .68rem; font-weight: 700;
  color: rgba(255,255,255,.2);
  transition: color .2s;
}
.pr-nav a:hover {
  color: rgba(255,255,255,.85);
  background: rgba(93,156,172,.05);
}
.pr-nav a:hover svg { opacity: .9; }
.pr-nav a.on {
  color: var(--s3-teal);
  background: rgba(93,156,172,.09);
  border-left-color: var(--s3-teal);
}
.pr-nav a.on svg { opacity: 1; }
.pr-nav a.on b { color: rgba(93,156,172,.65); }

/* ════════════════════════════════════════════════
   PRETRAGA
   ════════════════════════════════════════════════ */
.pr-search-wrap {
  position: sticky;
  top: 76px;
  z-index: 20;
  padding: 12px 0 16px;
  background: linear-gradient(180deg, #06060d 55%, rgba(6,6,13,0));
  margin-bottom: 8px;
}
.pr-search-box { position: relative; }
.pr-search-ico {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: rgba(93,156,172,.5);
  pointer-events: none;
}
.pr-search {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  color: #fff;
  font-family: var(--fb);
  font-size: .9rem;
  outline: none;
  cursor: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.pr-search::placeholder { color: rgba(255,255,255,.24); }
.pr-search:focus {
  border-color: var(--s3-teal);
  background: rgba(93,156,172,.06);
  box-shadow: 0 0 0 3px rgba(93,156,172,.1);
}
.pr-search-clear {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  display: none;
  align-items: center; justify-content: center;
  border: none; border-radius: 6px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.5);
  cursor: none;
}
.pr-search-clear.on { display: flex; }
.pr-search-clear:hover { background: rgba(93,156,172,.2); color: #fff; }

.pr-count {
  margin-top: 10px;
  font-family: var(--fu);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(93,156,172,.65);
}

/* ════════════════════════════════════════════════
   SEKCIJE
   ════════════════════════════════════════════════ */
.pr-sec { margin-bottom: 52px; scroll-margin-top: 150px; }
.pr-sec:last-child { margin-bottom: 0; }

.pr-sec-head {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(93,156,172,.16);
}
.pr-sec-ico {
  flex: 0 0 42px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: rgba(93,156,172,.09);
  border: 1px solid rgba(93,156,172,.18);
  color: var(--s3-teal);
}
.pr-sec-txt { flex: 1; min-width: 0; }
.pr-sec-title {
  font-family: var(--fu);
  font-size: 1.25rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}
.pr-sec-desc {
  margin-top: 5px;
  font-family: var(--fb);
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(255,255,255,.34);
}
.pr-sec-broj {
  flex: 0 0 auto;
  font-family: var(--fu);
  font-size: .64rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(93,156,172,.6);
  border: 1px solid rgba(93,156,172,.2);
  border-radius: 99px;
  padding: 4px 11px;
  white-space: nowrap;
  margin-top: 4px;
}

/* podnaslov unutar sekcije */
.pr-blok-naslov {
  font-family: var(--fu);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--s3-lila);
  margin: 26px 0 12px;
  padding-left: 2px;
}
.pr-blok:first-child .pr-blok-naslov { margin-top: 0; }

/* ════════════════════════════════════════════════
   PRAVILO
   ════════════════════════════════════════════════ */
.pr-rule {
  position: relative;
  display: flex;
  gap: 15px;
  padding: 15px 16px 15px 14px;
  border-radius: 11px;
  border-left: 2px solid transparent;
  scroll-margin-top: 150px;
  transition: background .2s, border-color .2s;
}
.pr-rule:hover {
  background: rgba(255,255,255,.022);
  border-left-color: rgba(93,156,172,.35);
}
.pr-rule:target,
.pr-rule.pr-hit {
  background: rgba(93,156,172,.07);
  border-left-color: var(--s3-teal);
}

.pr-rule-num {
  flex: 0 0 auto;
  min-width: 34px;
  height: 24px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(93,156,172,.1);
  border: 1px solid rgba(93,156,172,.18);
  font-family: var(--fb);
  font-size: .72rem; font-weight: 800;
  color: var(--s3-teal);
  font-variant-numeric: tabular-nums;
}
.pr-rule-body { flex: 1; min-width: 0; }
.pr-rule-title {
  font-family: var(--fu);
  font-size: .92rem; font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  margin-bottom: 5px;
}
.pr-rule-text {
  font-family: var(--fb);
  font-size: .87rem;
  line-height: 1.72;
  color: rgba(255,255,255,.46);
}

/* link na konkretno pravilo */
.pr-rule-link {
  position: absolute;
  top: 15px; right: 12px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: rgba(255,255,255,.2);
  text-decoration: none;
  opacity: 0;
  transition: opacity .2s, color .2s, background .2s;
}
.pr-rule:hover .pr-rule-link { opacity: 1; }
.pr-rule-link:hover { color: var(--s3-teal); background: rgba(93,156,172,.12); }
.pr-rule-link.pr-kopirano { opacity: 1; color: var(--s3-teal); }

/* pogodak u pretrazi */
.pr-mark {
  background: rgba(139,123,200,.28);
  color: #fff;
  border-radius: 3px;
  padding: 0 2px;
}

/* ── sekcija koja jos nije gotova ── */
.pr-soon {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px 24px;
  border: 1px dashed rgba(139,123,200,.28);
  border-radius: 12px;
  background: rgba(139,123,200,.04);
}
.pr-soon-ico { flex: 0 0 auto; color: var(--s3-lila); }
.pr-soon-txt {
  font-family: var(--fb);
  font-size: .86rem;
  line-height: 1.65;
  color: rgba(255,255,255,.38);
}
.pr-soon-txt b {
  display: block;
  font-family: var(--fu);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(139,123,200,.9);
  margin-bottom: 5px;
}

/* ── nema rezultata ── */
.pr-nista {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding: 70px 20px;
  text-align: center;
  font-family: var(--fb);
  font-size: .9rem;
  color: rgba(255,255,255,.3);
}
.pr-nista.on { display: flex; }
.pr-nista b { color: rgba(255,255,255,.6); }

/* ── nazad na vrh ── */
.pr-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 60;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(93,156,172,.25);
  background: rgba(6,6,13,.8);
  backdrop-filter: blur(10px);
  color: var(--s3-teal);
  cursor: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, background .2s;
}
.pr-top.on { opacity: 1; pointer-events: auto; transform: translateY(0); }
.pr-top:hover { background: rgba(93,156,172,.18); }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .pr-wrap { padding: 96px 24px 60px; }
  .pr-layout { grid-template-columns: 1fr; gap: 0; }

  /* meni postaje horizontalna traka koja skroluje */
  .pr-nav {
    position: sticky;
    top: 64px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 7px;
    padding: 12px 0;
    margin-bottom: 4px;
    background: rgba(6,6,13,.92);
    backdrop-filter: blur(10px);
    z-index: 25;
  }
  .pr-nav-grupa { display: none; }
  .pr-nav a {
    flex: 0 0 auto;
    border-left: none;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 99px;
    padding: 7px 14px;
    font-size: .74rem;
    white-space: nowrap;
  }
  .pr-nav a svg { display: none; }
  .pr-nav a b { display: none; }
  .pr-nav a.on {
    border-color: rgba(93,156,172,.5);
    background: rgba(93,156,172,.14);
  }
  .pr-search-wrap { top: 118px; }
}

@media (max-width: 560px) {
  .pr-wrap { padding: 88px 16px 52px; }
  .pr-sec-head { gap: 11px; }
  .pr-sec-ico { flex-basis: 36px; width: 36px; height: 36px; border-radius: 9px; }
  .pr-sec-title { font-size: 1.05rem; }
  .pr-sec-broj { display: none; }
  .pr-rule { padding: 13px 12px 13px 11px; gap: 11px; }
  .pr-rule-text { font-size: .84rem; }
  .pr-rule-link { display: none; }
  .pr-top { right: 16px; bottom: 16px; }
}

/* ════════════════════════════════════════════════
   TABELA (limiti po objektima)
   Celije su nowrap pa tabela na uskim ekranima
   skroluje unutar sebe umesto da gura stranicu.
   ════════════════════════════════════════════════ */
.pr-blok-napomena {
  font-family: var(--fb);
  font-size: .78rem;
  line-height: 1.6;
  color: rgba(255,255,255,.3);
  margin: -6px 0 14px;
  padding-left: 2px;
}

.pr-tabela-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
}
.pr-tabela {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-family: var(--fb);
  font-size: .84rem;
}
.pr-tabela thead th {
  position: sticky;
  top: 0;
  padding: 12px 15px;
  text-align: left;
  white-space: nowrap;
  font-family: var(--fu);
  font-size: .64rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(93,156,172,.75);
  background: #0b0b14;
  border-bottom: 1px solid rgba(93,156,172,.2);
}
.pr-tabela tbody td {
  padding: 12px 15px;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: rgba(255,255,255,.5);
}
.pr-tabela tbody tr:last-child td { border-bottom: none; }
.pr-tabela tbody tr:hover td { background: rgba(93,156,172,.035); }

.pr-tabela .pr-t-ime {
  font-family: var(--fu);
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
}
.pr-tabela .pr-t-da {
  color: var(--s3-teal);
  font-weight: 700;
}
.pr-tabela .pr-t-ne {
  color: rgba(255,255,255,.26);
}

@media (max-width: 560px) {
  .pr-tabela { font-size: .78rem; min-width: 560px; }
  .pr-tabela thead th, .pr-tabela tbody td { padding: 10px 11px; }
}

/* ════════════════════════════════════════════════
   MAPE TERITORIJA
   ════════════════════════════════════════════════ */
.pr-mape {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.pr-mapa {
  position: relative;
  margin: 0;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.022);
  cursor: none;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.pr-mapa:hover {
  border-color: rgba(93,156,172,.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(0,0,0,.45);
}
.pr-mapa img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform .35s ease;
}
.pr-mapa:hover img { transform: scale(1.04); }
.pr-mapa figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-family: var(--fu);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
  background: rgba(6,6,13,.5);
}
.pr-mapa figcaption svg {
  flex: 0 0 auto;
  color: rgba(93,156,172,.5);
  transition: color .22s;
}
.pr-mapa:hover figcaption svg { color: var(--s3-teal); }

/* ── uvecan prikaz ── */
.pr-lb {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.pr-lb.on { display: flex; }
.pr-lb-bg {
  position: absolute;
  inset: 0;
  background: rgba(4,4,9,.9);
  backdrop-filter: blur(6px);
}
.pr-lb-box {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  width: 100%;
  border: 1px solid rgba(93,156,172,.18);
  border-radius: 14px;
  overflow: hidden;
  background: #0b0b14;
  box-shadow: 0 40px 100px rgba(0,0,0,.8);
}
.pr-lb-box img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #06060d;
}
.pr-lb-ime {
  padding: 13px 18px;
  border-top: 1px solid rgba(93,156,172,.15);
  font-family: var(--fu);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  background: var(--s3-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pr-lb-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: rgba(6,6,13,.75);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.6);
  cursor: none;
  transition: color .2s, border-color .2s, background .2s;
}
.pr-lb-close:hover {
  color: #fff;
  border-color: rgba(93,156,172,.5);
  background: rgba(93,156,172,.18);
}

@media (max-width: 560px) {
  .pr-mape { grid-template-columns: 1fr; }
  .pr-lb { padding: 16px 12px; }
}

/* ══ ISKACUCI PROZOR "NOVO PRAVILO" ═══════════════════════ */
.np-sloj {
  position: fixed; inset: 0;
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .24s ease;
}
.np-sloj.on { opacity: 1; }
.np-sloj[hidden] { display: none; }

.np-zastor {
  position: absolute; inset: 0;
  background: rgba(4,4,10,.78);
  backdrop-filter: blur(6px);
}

.np-box {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  border: 1px solid rgba(93,156,172,.22);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at top left, rgba(93,156,172,.09), transparent 62%),
    #0c0c16;
  box-shadow: 0 30px 80px rgba(0,0,0,.65);
  padding: 30px 32px 26px;
  transform: translateY(14px) scale(.985);
  transition: transform .28s cubic-bezier(.2,.8,.3,1);
}
.np-sloj.on .np-box { transform: none; }

.np-znacka {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(93,156,172,.35);
  border-radius: 99px;
  padding: 5px 15px;
  font-family: var(--fu);
  font-size: .66rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  color: #7FC4D6;
  background: rgba(93,156,172,.1);
}
.np-tacka {
  width: 6px; height: 6px; border-radius: 50%;
  background: #5D9CAC;
  box-shadow: 0 0 8px rgba(93,156,172,.9);
  animation: np-puls 2s ease-in-out infinite;
}
@keyframes np-puls { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.np-nad {
  margin: 18px 0 6px;
  font-family: var(--fu);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(179,166,224,.85);
}
.np-naslov {
  margin: 0 0 18px;
  font-family: var(--fd);
  font-size: clamp(1.5rem, 5vw, 2.05rem);
  letter-spacing: .04em;
  line-height: 1.15;
  color: #fff;
}

.np-stavke {
  margin: 0; padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255,255,255,.07);
}
.np-stavke li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-family: var(--fb);
  font-size: .87rem;
  line-height: 1.65;
  color: rgba(255,255,255,.62);
}
.np-stavke li::before {
  content: '';
  position: absolute;
  left: 2px; top: 19px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: rgba(93,156,172,.75);
}

.np-dugmad {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 22px;
}
.np-btn {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: var(--fu);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  cursor: none;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
}
.np-btn-go {
  background: linear-gradient(135deg, #5D9CAC 0%, #8B7BC8 100%);
  color: #0d0d14;
  border: 1px solid transparent;
}
.np-btn-go:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(93,156,172,.28);
}
.np-btn-x {
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.66);
}
.np-btn-x:hover {
  border-color: rgba(93,156,172,.45);
  color: #7FC4D6;
  background: rgba(93,156,172,.08);
}

/* vise linkova: linkovi u prvom redu, "Zatvori" preko cele sirine ispod */
.np-dugmad.np-vise .np-btn-go { flex: 1 1 0; min-width: 0; }
.np-dugmad.np-vise .np-btn-x  { order: 2; flex-basis: 100%; }

@media (max-width: 520px) {
  .np-box { padding: 24px 20px 20px; border-radius: 14px; }
  .np-dugmad { flex-direction: column; }
}
