:root {
  --bg: #070a12;
  --bg2: #0b1020;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.14);
  --neon1: #7c3aed; /* violet */
  --neon2: #22d3ee; /* cyan */
  --neon3: #a3e635; /* lime */
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(124, 58, 237, 0.25), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(34, 211, 238, 0.22), transparent 60%),
    radial-gradient(900px 500px at 50% 100%, rgba(163, 230, 53, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.95rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--line);
  z-index: 1000;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 18, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: env(safe-area-inset-top, 0px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.6), rgba(34, 211, 238, 0.55));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.navbtn {
  display: none;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.navbtn__bars {
  width: 18px;
  height: 12px;
  display: inline-block;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 2px;
  background-repeat: no-repeat;
  opacity: 0.9;
}

.navbtn__label {
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 4.5rem 0 2.25rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.2rem;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  width: fit-content;
}

/* Status pill (hero) */
.pill--status {
  gap: 0.85rem;
}

.pill__primary {
  font-weight: 700;
}

.pill--status .pill__meta {
  white-space: nowrap;
}

.pill__sep {
  opacity: 0.65;
}

.pill__meta {
  color: var(--muted);
  font-weight: 600;
}

/* Paški most (obavijest) */
.bridge-notice {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 0.4rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  width: fit-content;
  max-width: 100%;
}

/* Ton "pilla" prema stanju (da je upozorenje odmah vidljivo i bez otvaranja poruke) */
.bridge-notice--closed {
  border-color: rgba(255, 80, 110, 0.38);
  background: rgba(255, 80, 110, 0.10);
  box-shadow: 0 0 0 1px rgba(255, 80, 110, 0.10);
}

.bridge-notice--restricted {
  border-color: rgba(255, 195, 80, 0.38);
  background: rgba(255, 195, 80, 0.10);
  box-shadow: 0 0 0 1px rgba(255, 195, 80, 0.10);
}

.bridge-notice--open {
  border-color: rgba(40, 200, 110, 0.28);
  background: rgba(40, 200, 110, 0.06);
}

.bridge-notice--unknown {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}


.bridge-wrap {
  display: inline-block;
  max-width: 100%;
}

.bridge-notice__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
}

.bridge-notice__toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.32);
  outline-offset: 4px;
}

.bridge-pop {
  margin-top: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 12, 18, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.88);
  max-width: min(520px, 100%);
}

/* "Boje opasnosti" za upozorenje Paškog mosta */
.bridge-pop--closed {
  border-color: rgba(255, 80, 110, 0.35);
  background: rgba(40, 10, 18, 0.75);
}

.bridge-pop--restricted {
  border-color: rgba(255, 195, 80, 0.35);
  background: rgba(40, 28, 10, 0.75);
}

.bridge-pop--open {
  border-color: rgba(40, 200, 110, 0.32);
  background: rgba(10, 28, 18, 0.70);
}

.bridge-pop--unknown {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(10, 12, 18, 0.70);
}

.bridge-pop__title {
  font-weight: 800;
}

.bridge-pop__meta {
  margin-top: 0.25rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95em;
}

.bridge-notice__label {
  font-weight: 700;
}

.bridge-notice__link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Link kao "pill" (bolji tap-area na mobitelu) */
.bridge-notice__link--pill {
  display: inline-flex;
  align-items: center;
  padding: 0.33rem 0.6rem;
  border-radius: 999px;
  /* Malo "boje" da se HAK razlikuje kao link, ali da i dalje paše u UI */
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.55),
    rgba(34, 211, 238, 0.35)
  );
  min-height: 34px;
}

.bridge-notice__link--pill:hover,
.bridge-notice__link--pill:focus-visible {
  filter: brightness(1.05);
  outline: none;
}

.bridge-notice__link--pill:active {
  transform: scale(0.98);
}

/* Minimalni indikator statusa (puni krug) */
.bridge-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.bridge-dot--unknown {
  background: rgba(255, 255, 255, 0.35);
}

.bridge-dot--open {
  background: rgba(40, 200, 110, 0.95);
  box-shadow: 0 0 0 1px rgba(40, 200, 110, 0.35);
}

.bridge-dot--restricted {
  background: rgba(255, 195, 80, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 195, 80, 0.4);
}

.bridge-dot--closed {
  background: rgba(255, 80, 110, 0.98);
  box-shadow: 0 0 0 1px rgba(255, 80, 110, 0.4);
  animation: bridgePulse 1.6s ease-out infinite;
}

@keyframes bridgePulse {
  0% {
    box-shadow: 0 0 0 1px rgba(255, 80, 110, 0.45), 0 0 0 0 rgba(255, 80, 110, 0.4);
  }
  70% {
    box-shadow: 0 0 0 1px rgba(255, 80, 110, 0.35), 0 0 0 10px rgba(255, 80, 110, 0);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(255, 80, 110, 0.25), 0 0 0 12px rgba(255, 80, 110, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bridge-dot--closed {
    animation: none;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.badge--unknown {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.badge--open {
  border-color: rgba(40, 200, 110, 0.45);
  background: rgba(40, 200, 110, 0.12);
}

.badge--closed {
  border-color: rgba(255, 80, 110, 0.5);
  background: rgba(255, 80, 110, 0.14);
}

.badge--restricted {
  border-color: rgba(255, 195, 80, 0.55);
  background: rgba(255, 195, 80, 0.14);
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  line-height: 1.05;
  margin: 0.9rem 0 0.9rem;
}

.lead {
  font-size: 1.12rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.4rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-forecast {
  margin: 1.25rem 0 0.75rem;
}

.quicklinks {
  /* Brzi skokovi su namijenjeni primarno mobilnim uređajima.
     Na većim ekranima već postoji navigacija u zaglavlju. */
  display: none !important;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.3rem;
  position: static;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.chip:hover,
.chip:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}



.quicklinks .chip:first-child {
  border: none;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(34, 211, 238, 0.85));
  box-shadow: 0 14px 38px rgba(34, 211, 238, 0.12), 0 14px 38px rgba(124, 58, 237, 0.12);
  color: rgba(255, 255, 255, 0.96);
}

.quicklinks .chip:first-child:hover,
.quicklinks .chip:first-child:focus-visible {
  background: linear-gradient(135deg, rgba(124, 58, 237, 1), rgba(34, 211, 238, 0.95));
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.btn--primary {
  border: none;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(34, 211, 238, 0.85));
  box-shadow: 0 14px 38px rgba(34, 211, 238, 0.12), 0 14px 38px rgba(124, 58, 237, 0.12);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  filter: brightness(1.05);
}

.btn--ghost {
  background: rgba(0, 0, 0, 0.08);
}

/* Compact button (used in small panels / mobile) */
.btn--sm {
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.btn--sm {
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

/* iOS "Add to Home Screen" sheet + network toast */
.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end center;
  pointer-events: auto;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  isolation: isolate;
}

/* Odvojeni backdrop sloj (iOS/Safari: backdrop-filter ne smije biti na containeru s gumbima) */
.overlay__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  /* iOS/Safari: backdrop-filter layer zna presresti tapove. */
  pointer-events: none;
}

/* Platform filter: JS postavlja data-platform. Ako JS ne radi, oba bloka ostaju vidljiva (bolje nego prazan sheet). */
.overlay[data-platform="ios"] #installAndroid { display: none; }
.overlay[data-platform="android"] #installIOS { display: none; }


.sheet {
  width: min(680px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(16, 20, 38, 0.94), rgba(10, 12, 22, 0.94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  padding: 1.25rem 1.15rem 1.15rem;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Kontrast za tekst unutar install sheeta */
.overlay .sheet,
.overlay .sheet h2 {
  color: rgba(255, 255, 255, 0.96);
}

.overlay .sheet .muted {
  color: rgba(255, 255, 255, 0.86);
}

.overlay .sheet .small.muted {
  color: rgba(255, 255, 255, 0.75);
}

.overlay .sheet__steps {
  margin: 1.15rem 0 1.25rem;
  padding-left: 1.25rem;
}

.overlay .sheet__steps li {
  margin-bottom: 0.6rem;
  font-size: 1.02rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}



.sheet h2 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.sheet__steps {
  margin: 0.75rem 0 0.95rem;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
}

.sheet__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 130;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.toast--actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.toast__btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, background 120ms ease;
}

.toast__btn:hover { filter: brightness(1.06); }

.toast__btn:active { transform: translateY(1px); }

.toast__btn:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.45);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .sheet {
    border-radius: 18px;
  }
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.stat {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.stat__k {
  font-size: 0.9rem;
  color: var(--muted);
}

.stat__v {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.hero__media .glass {
  border-radius: var(--radius2);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.hero__media img {
  border-radius: calc(var(--radius2) - 10px);
}

.hero-card {
  display: grid;
  gap: 0.85rem;
}

.hero-card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-card__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

/* Sections */
.section {
  padding: 3.2rem 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section__head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.section__head h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin: 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

/* Forecast / maps */
.prog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.prog-actions {
  margin: 0.85rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.links--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.links--compact .linkcard {
  padding: 0.9rem 0.9rem;
}

/* Cards */
.cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-rows: auto 1fr;
}

.card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card__body {
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
}

.card__body h3 {
  margin: 0;
  font-size: 1.1rem;
}

/* Embed */
.embed {
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.15);
  box-shadow: var(--shadow);
}

.embed iframe {
  width: 100%;
  height: min(70vh, 520px);
  border: 0;
  display: block;
}

/* Link cards */
.links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.linkcard {
  padding: 1.05rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.linkcard::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(400px 120px at 20% 20%, rgba(34, 211, 238, 0.22), transparent 55%),
    radial-gradient(380px 120px at 80% 60%, rgba(124, 58, 237, 0.2), transparent 55%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.linkcard:hover::before,
.linkcard:focus-visible::before {
  opacity: 1;
}

.linkcard > * {
  position: relative;
}

.linkcard__title {
  display: block;
  font-weight: 700;
}

.linkcard__meta {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact */
.contact {
  grid-template-columns: 1.2fr 0.8fr;
}

.panel {
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
}

.panel h3 {
  margin: 0 0 0.6rem;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.55rem;
}

/* Footer */
.footer {
  padding: 1.4rem 0 1.8rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
}

/* Responsive */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .brand {
    width: 100%;
  }
  .hero {
    padding-top: 3.5rem;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .links {
    grid-template-columns: 1fr;
  }
  .prog-grid {
    grid-template-columns: 1fr;
  }
  .links--compact {
    grid-template-columns: 1fr;
  }
  .quicklinks {
    display: flex !important;
  }
  .navbtn {
    display: none;
  }
  .nav {
    position: static;
    inset: auto;
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0 0 0.25rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar {
    height: 0;
  }
  .nav a {
    padding: 0.55rem 0.85rem;
    white-space: nowrap;
    font-size: 1rem;
  }

  .pill--status {
    width: fit-content;
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 0.4rem 0.65rem;
  }
  .pill--status .pill__primary {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .pill--status .pill__meta {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    min-width: 0;
    flex: 1 1 auto;
    display: block;
  }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .linkcard::before {
    transition: none;
  }
}

/* ------------------------------
   UPOZORENJA (Pag)
   ------------------------------ */
.section--alerts .section__head{ margin-bottom: 1rem; }

.alerts{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.alert{
  grid-column: span 12;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.alert__inner{
  padding: 1rem 1.05rem;
}

.alert__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .5rem;
}

.alert__title{
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.alert__meta{
  display:flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items:center;
  color: rgba(255,255,255,.78);
  font-size: .9rem;
}

.alert__desc{ color: rgba(255,255,255,.86); line-height: 1.45; }

.alert__link{
  display: inline-flex;
  align-items:center;
  gap: .45rem;
  margin-top: .75rem;
  padding: .45rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  text-decoration: none;
}

.alert__link:hover,
.alert__link:focus-visible{ filter: brightness(1.06); outline:none; }

.alert__tone{
  height: 4px;
  width: 100%;
}

.alert--red .alert__tone{ background: linear-gradient(90deg, rgba(255,80,110,.95), rgba(255,140,80,.65)); }
.alert--yellow .alert__tone{ background: linear-gradient(90deg, rgba(255,195,80,.95), rgba(255,240,140,.55)); }
.alert--green .alert__tone{ background: linear-gradient(90deg, rgba(40,200,110,.9), rgba(34,211,238,.45)); }
.alert--info .alert__tone{ background: linear-gradient(90deg, rgba(124,58,237,.75), rgba(34,211,238,.45)); }

@media (min-width: 820px){
  .alert{ grid-column: span 6; }
}

@media (min-width: 1100px){
  .alert{ grid-column: span 4; }
}


/* Zaključaj scroll dok je otvoren modal/sheet */
body.modal-open {
  overflow: hidden;
}



/* iOS: brži tap na gumbovima */
#installClose {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}


.overlay[hidden] { display: none !important; }

.overlay {
  background: transparent !important;
  z-index: 2200 !important;
  isolation: isolate;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.overlay__bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: none !important; /* najvažnije za iOS */
}

.sheet {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  text-align: center;
}

.sheet p { text-align: center; }

.sheet__steps{
  display: inline-block;
  text-align: left;
  margin: 1.15rem auto 1.25rem;
  padding-left: 1.25rem;
  max-width: 42ch;
}

.sheet__steps li{
  margin: 0.45rem 0;
  font-size: 1.03rem;
  line-height: 1.45;
}

.sheet__actions{
  justify-content: center;
  margin-top: 1.25rem;
}

.sheet__actions .btn{
  min-width: 132px;
}

/* -------------------------------------------------------------------------- */
/* Mjerenja (Ecowitt) - tabs + embed preview                                   */
/* -------------------------------------------------------------------------- */

.panel--embed{
  padding: 1rem;
}

.tabs{
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  margin-bottom: .85rem;
}

.tab{
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  padding: .55rem .85rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.tab[aria-selected="true"]{
  background: rgba(99,102,241,.28);
  border-color: rgba(99,102,241,.55);
  color: #fff;
}

.tab--link{
  margin-left: auto;
  font-weight: 600;
  opacity: .9;
}

.tabpanes{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
}

.embed--ecowitt iframe{
  width: 100%;
  height: min(74vh, 860px);
  min-height: 560px;
  border: 0;
  border-radius: 18px;
  background: rgba(0,0,0,.25);
}

@media (max-width: 720px){
  .tab--link{ width: 100%; text-align: center; margin-left: 0; }
  .embed--ecowitt iframe{ min-height: 520px; height: 68vh; }
}

.mjerenja-note{
  margin-top: .75rem;
  text-align: center;
}


