/* eGrađanin — Grad Bijeljina portal */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800&display=swap');

:root {
  --red: #c1161c;
  --red-dark: #c1161c;
  --red-light: #fde8e9;
  --red-pale: #fff5f5;
  --maroon: #c1161c;
  --maroon-dark: #9e1217;
  --navy: #1a2d4a;
  --navy-light: #243a5c;
  --gold: #a68d60;
  --gold-hover: #8f7650;
  --gold-light: #c4a574;
  --gold-pale: rgba(166, 141, 96, 0.12);
  --gold-line: linear-gradient(90deg, transparent, #a68d60 20%, #c4a574 50%, #a68d60 80%, transparent);
  --wood: #8b5e34;
  --wood-light: #d4b896;
  --wood-pale: #f3ebe0;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --page-bg: #eef1f5;
  --card-bg: rgba(255, 255, 255, 0.84);
  --card-bg-hover: rgba(255, 255, 255, 0.94);
  --card-border: rgba(255, 255, 255, 0.95);
  --card-shadow: 0 8px 28px rgba(26, 45, 74, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
  --icon-tone-red: #c1161c;
  --icon-tone-blue: #3b82f6;
  --icon-tone-white: #ffffff;
  --font: 'Roboto', system-ui, sans-serif;
  --radius: 14px;
  --radius-pill: 999px;
  --radius-btn: 12px;
  --shadow: 0 4px 20px rgba(26, 45, 74, 0.08);
  --icon-gray: #b0b8c4;
  --icon-gray-bg: #e8ecf0;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--page-bg);
  min-height: 100vh;
}

body.inner-page { background: var(--page-bg); }

.text-accent { color: var(--red-dark) !important; }

/* —— Početna —— */
.home-page {
  min-height: 100vh;
  background: url('../assets/images/home/hero_bg.jpeg') center/cover no-repeat fixed;
  position: relative;
}

.home-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 75% at 50% 58%, rgba(255,255,255,.42) 0%, transparent 68%),
    linear-gradient(
      180deg,
      rgba(0,0,0,.14) 0%,
      rgba(255,255,255,.06) 28%,
      rgba(26,45,74,.2) 100%
    );
  pointer-events: none;
  z-index: 0;
}

.home-page > * { position: relative; z-index: 1; }

.home-header .home-title {
  color: #fff;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.home-subtitle {
  color: rgba(255,255,255,.92);
  font-size: .8rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.home-logo { height: 48px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }

.home-header {
  position: relative;
  z-index: 200;
}

.home-header__row {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.25rem;
  padding: 0.75rem 0;
}

.home-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.home-header__titles {
  flex: 1;
  min-width: 0;
}

.lang-dropdown {
  position: relative;
  flex-shrink: 0;
}

.lang-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.45rem 0.2rem 0.25rem;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-dropdown__toggle:hover,
.lang-dropdown__toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.38);
  border-color: #fff;
}

.lang-dropdown__flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.lang-dropdown__caret {
  font-size: 0.7rem;
  opacity: 0.9;
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 168px;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(26, 45, 74, 0.22);
  z-index: 1200;
}

.lang-dropdown__menu[hidden] { display: none !important; }

.lang-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.lang-dropdown__item .lang-dropdown__flag {
  width: 24px;
  height: 24px;
}

.lang-dropdown__item:hover,
.lang-dropdown__item.is-active {
  background: var(--red-pale);
  color: var(--red-dark);
}

.home-welcome {
  color: #1a1a1a;
  font-weight: 800;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
}

.lang-flags { display: flex; gap: 6px; flex-wrap: wrap; }

.lang-flag {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.28);
  font-size: 15px;
  cursor: pointer;
  transition: .15s;
  padding: 0;
}

.lang-flag.active, .lang-flag:hover {
  background: rgba(255,255,255,.5);
  border-color: #fff;
  transform: scale(1.05);
}

.inner-nav .lang-flag {
  border-color: var(--border);
  background: #fff;
}

/* Vreme + kartice — ista širina */
.home-content-band {
  max-width: 980px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.home-cards-section {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: .85rem .65rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.weather-panel-wrap {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.weather-panel-shell {
  /* Fallback: blagi talasi (polygon) */
  --weather-blob: polygon(
    0% 10%, 12.5% 7.5%, 25% 10%, 37.5% 7.5%, 50% 10%, 62.5% 7.5%, 75% 10%, 87.5% 7.5%, 100% 10%,
    100% 90%, 87.5% 92.5%, 75% 90%, 62.5% 92.5%, 50% 90%, 37.5% 92.5%, 25% 90%, 12.5% 92.5%, 0% 90%
  );
  position: relative;
  width: 100%;
  filter: drop-shadow(0 4px 14px rgba(26, 45, 74, 0.06));
  padding: 3px 2px;
}

@supports (clip-path: path('M 0 0 L 1 1 Z')) {
  .weather-panel-shell {
    --weather-blob: path(
      'M 0 0.10 Q 0.125 0.072 0.25 0.10 T 0.5 0.10 T 0.75 0.10 T 1 0.10'
      ' L 1 0.90 Q 0.875 0.928 0.75 0.90 T 0.5 0.90 T 0.25 0.90 T 0 0.90 Z'
    );
  }
}

.weather-panel-shell::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.14) 100%
  );
  clip-path: var(--weather-blob);
  pointer-events: none;
  z-index: 0;
}

.weather-panel-shell::after {
  content: '';
  position: absolute;
  inset: 3px 2px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  clip-path: var(--weather-blob);
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 768px) {
  .home-content-band {
    padding: 0 0.65rem;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }

  .home-page main.container-xl > .row.mb-3 {
    --bs-gutter-x: 0;
    margin-bottom: 0.75rem !important;
  }
}

.weather-panel {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  clip-path: var(--weather-blob);
  border: none;
  border-radius: 0;
  padding: 0.55rem 0.9rem 0.65rem;
  box-shadow: none;
}

.weather-panel__title {
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(30, 41, 59, 0.88);
}

.weather-panel__updated { font-size: 0.59rem; color: rgba(100, 116, 139, 0.85); }

.weather-panel__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.weather-panel__body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.weather-panel__weather {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 auto;
  min-width: 0;
}

.weather-panel__main {
  min-width: 0;
  flex: 1;
}

.weather-panel__icon { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }

.weather-panel__temp-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
}

.weather-panel__temp {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--red-dark);
  line-height: 1.1;
  white-space: nowrap;
}

.weather-panel__aqi-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(30, 41, 59, 0.9);
  white-space: nowrap;
}

.weather-panel__details {
  opacity: 0.88;
}

.weather-panel .small { font-size: 0.68rem !important; }
.weather-panel.text-center.py-4 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }

@media (max-width: 575px) {
  .weather-panel {
    padding: 0.5rem 0.7rem 0.6rem;
  }

  .weather-panel__body {
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .weather-panel__temp { font-size: 1rem; }

  .weather-panel__aqi-inline {
    font-size: 0.88rem;
  }
}

.aqi-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* —— Unutrašnje stranice: kompaktniji header (−15% visina, −5% tekst) —— */
.inner-page .site-header__bar {
  padding: 0.55rem 0;
}

.inner-page .site-header__brand img {
  height: 36px;
}

.inner-page .site-header__name {
  font-size: 0.9025rem;
}

.inner-page .site-header__back-btn,
.inner-page .site-header__icon-btn {
  width: 31px;
  height: 31px;
  font-size: 0.95rem;
}

.inner-page .inner-nav .nav-link {
  font-size: 0.741rem;
  padding: 0.47rem 0.765rem !important;
  margin: 0.3rem 0.13rem;
}

.inner-page .inner-nav .navbar-toggler {
  margin: 0.34rem 0;
}

.inner-page .page-banner {
  min-height: 119px;
  margin-bottom: 2.125rem;
}

.inner-page .page-banner__inner {
  padding: 2.125rem 0;
  gap: 0.85rem;
}

.inner-page .page-banner__icon {
  width: 41px;
  height: 41px;
  font-size: 1.15rem;
}

.inner-page .page-banner h1 {
  font-size: clamp(1.425rem, 3.8vw, 1.995rem);
}

/* Kartice početna 4+5 */
.home-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(88px, 1fr));
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 980px) {
  .home-card-grid--10 { grid-template-columns: repeat(5, minmax(100px, 1fr)); }
}
@media (max-width: 979px) {
  .home-card-grid--10 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 879px) {
  .home-card-grid { grid-template-columns: repeat(3, 1fr); }
  .home-card-grid--10 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 559px) {
  .home-card-grid { grid-template-columns: repeat(2, 1fr); }
  .home-card-grid--10 { grid-template-columns: repeat(2, 1fr); }
}

.home-card__inner {
  aspect-ratio: 1;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .75rem;
  box-shadow: var(--card-shadow);
  transition: transform .18s, background .18s, box-shadow .18s, border-color .18s;
}

.home-card:hover .home-card__inner {
  background: var(--card-bg-hover);
  transform: translateY(-4px);
  border-color: #fff;
  box-shadow: 0 14px 34px rgba(26, 45, 74, 0.22), 0 4px 12px rgba(229, 57, 53, 0.14);
}

.home-card__icon {
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  margin-bottom: 8%;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

.home-card__icon--red {
  color: var(--red-dark);
  background: rgba(254, 202, 202, 0.92);
}

.home-card__icon--blue {
  color: #1d4ed8;
  background: rgba(191, 219, 254, 0.92);
}

.home-card__icon--white {
  color: #fff;
  background: rgba(51, 65, 85, 0.78);
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.grad-red,
.grad-red-light,
.grad-wood,
.grad-wood-light,
.grad-mix {
  background: rgba(255, 255, 255, 0.35);
}

.home-card__label {
  font-size: clamp(.65rem, 1.8vw, .85rem);
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  line-height: 1.2;
}

/* —— Portal header (Dubrovnik-style) —— */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 0;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--text);
}
.site-header__brand img { height: 42px; }
.site-header__name {
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .04em;
  line-height: 1.2;
  color: var(--maroon);
}
.site-header__actions { display: flex; gap: .5rem; align-items: center; }
.site-header__start {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}
.site-header__back-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--page-bg);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}
.site-header__back-btn:hover { background: var(--border); }
.site-header__brand { min-width: 0; }
.mobile-menu-toggle,
.home-header__menu-btn {
  display: none;
}
.home-header__menu-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.home-header__menu-btn:hover { background: rgba(255,255,255,.28); }
.site-header__icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
}

.inner-nav {
  background: var(--maroon);
  padding: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.inner-nav .navbar { padding: 0; }
.inner-nav .navbar-brand { display: none; }
.inner-nav .navbar-toggler {
  border-color: rgba(255,255,255,.4);
  margin: .4rem 0;
}
.inner-nav .navbar-toggler-icon { filter: invert(1); }
.inner-nav .nav-link {
  color: rgba(255,255,255,.92);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin: .35rem .15rem;
  padding: .55rem .9rem !important;
  transition: background .15s;
}
.inner-nav .nav-link:hover,
.inner-nav .nav-link.active {
  color: #fff;
  background: rgba(0,0,0,.18);
}
.inner-nav .lang-flags { padding: .5rem 0; }
.inner-nav .lang-flag {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.15);
}

/* Page banner hero */
.page-banner {
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: center;
  background: var(--navy) center/cover no-repeat;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26,45,74,.82) 0%, rgba(26,45,74,.45) 100%);
}
.page-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 0;
}
.page-banner__icon {
  width: 48px; height: 48px;
  background: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.page-banner h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.page-hero {
  background: linear-gradient(135deg, var(--maroon), var(--navy));
  color: #fff;
  padding: 2rem 0;
  margin-bottom: 2rem;
}
.page-hero h1 { font-weight: 800; font-size: clamp(1.5rem, 4vw, 2rem); margin: 0; }

.page-main { padding-bottom: 3rem; }

.section-title {
  font-weight: 700;
  font-size: 1.1rem;
  padding-left: 12px;
  border-left: 4px solid var(--wood);
}

/* Content cards */
.content-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(229,57,53,.14);
}

.content-card__wood-bar {
  height: 4px;
  background: linear-gradient(90deg, #5c3d1e, var(--wood), var(--wood-light));
}

.content-card__media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--wood-pale), var(--red-light));
}

.content-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--wood);
  opacity: .4;
}

.content-card__img { width: 100%; height: 100%; object-fit: cover; }

.content-card__body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.content-card__meta { font-size: .8rem; color: var(--text-muted); margin-bottom: .35rem; }
.content-card__title { font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: .5rem; }
.content-card__text { font-size: .875rem; color: var(--text-muted); line-height: 1.5; flex: 1; }

.card-badge {
  background: var(--red-light) !important;
  color: var(--red-dark) !important;
  font-weight: 700;
  border: 1px solid rgba(229,57,53,.2);
}

.btn-accent {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-btn);
}

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

/* List cards */
.list-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.list-card__bar {
  height: 3px;
  background: linear-gradient(90deg, #5c3d1e, var(--wood), var(--wood-light));
}

.list-card__img { width: 100%; height: 140px; object-fit: cover; }

.contact-avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--red-light);
  color: var(--red-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

#map { height: calc(100vh - 72px); min-height: 400px; z-index: 1; }

.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: .85rem;
  color: var(--text-muted);
}

.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* —— Vesti kartice (mockup) —— */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,45,74,.14);
}

.news-card__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--wood-pale), var(--red-light));
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__date {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--red-dark);
  color: #fff;
  text-align: center;
  min-width: 58px;
  padding: .45rem .5rem .35rem;
  line-height: 1.1;
  box-shadow: 2px 2px 0 rgba(0,0,0,.12);
}

.news-card__date-day {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
}

.news-card__date-sub {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  opacity: .95;
}

.news-card__body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: .65rem;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__title--accent { color: var(--red-dark); }

.news-card__text {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--gold);
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  margin-top: auto;
}

.read-more-link:hover { color: var(--gold-hover); }
.read-more-link__arrow {
  color: var(--text-muted);
  font-size: .65rem;
}

/* —— Za građane kartice —— */
.citizen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.news-card--link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.news-card--link:hover {
  color: inherit;
}

/* —— Pojedinačna vest / detalj entiteta —— */
.page-main--article {
  max-width: 820px;
}

.news-article-page .page-main {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.news-article-page .news-article {
  position: relative;
  background: #fff;
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.35rem, 4vw, 2.15rem);
  box-shadow:
    0 14px 44px rgba(26, 45, 74, 0.09),
    0 0 0 1px rgba(166, 141, 96, 0.14);
  overflow: hidden;
}

.news-article-page .news-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-hover), var(--gold), var(--gold-light), var(--gold), var(--gold-hover));
}

.news-article-page .news-article::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--gold-line);
  opacity: 0.7;
}

.news-article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 1.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.news-article__back:hover {
  color: var(--gold-hover);
  border-bottom-color: rgba(166, 141, 96, 0.35);
}

.news-article__header {
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(166, 141, 96, 0.2);
  position: relative;
}

.news-article__header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 4.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

.news-article__date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-hover);
  background: var(--gold-pale);
  border: 1px solid rgba(166, 141, 96, 0.28);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.news-article__title {
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.28;
  color: var(--navy);
  margin: 0 0 0.65rem;
}

.news-article__lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-justify: inter-word;
}

.news-article__hero {
  margin: 0 0 1.65rem;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 2px solid rgba(166, 141, 96, 0.38);
  box-shadow:
    0 10px 32px rgba(26, 45, 74, 0.11),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 440px);
  background: var(--page-bg);
  position: relative;
}

.news-article__hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.85;
  pointer-events: none;
}

.news-article__hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-article__body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-justify: inter-word;
}

.news-article__body p {
  margin-bottom: 1.05rem;
}

.news-article__body p:last-child {
  margin-bottom: 0;
}

.news-article__gallery {
  margin-top: 2.15rem;
  padding-top: 1.65rem;
  border-top: none;
  position: relative;
}

.news-article__gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-line);
}

.news-article__gallery-title,
.news-article__share-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.news-article__gallery-title::before,
.news-article__share-title::before {
  content: '';
  flex: 0 0 2.75rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(166, 141, 96, 0.2));
  border-radius: 1px;
}

.news-article__gallery-title::after,
.news-article__share-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(166, 141, 96, 0.3), transparent);
}

.news-article__gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.news-article__gallery-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(166, 141, 96, 0.25);
  box-shadow: 0 4px 14px rgba(26, 45, 74, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.news-article__gallery-item:hover {
  transform: translateY(-2px);
  border-color: rgba(166, 141, 96, 0.55);
  box-shadow: 0 8px 22px rgba(166, 141, 96, 0.18);
}

.news-article__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-article__share {
  margin-top: 2.15rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(180deg, rgba(166, 141, 96, 0.06) 0%, #fff 45%);
  border: 1px solid rgba(166, 141, 96, 0.22);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(26, 45, 74, 0.06);
}

.news-article__meta {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem 0.85rem 1.1rem;
  background: linear-gradient(135deg, rgba(166, 141, 96, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
  border: 1px solid rgba(166, 141, 96, 0.22);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  position: relative;
}

.news-article__meta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
  opacity: 0.5;
}

.news-article__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(166, 141, 96, 0.12);
}

.news-article__meta-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.news-article__meta-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gold-hover);
  min-width: 7rem;
  margin: 0;
}

.news-article__meta-value {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  color: var(--text);
}

.news-article__meta-value a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(166, 141, 96, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.news-article__meta-value a:hover {
  color: var(--gold-hover);
  border-bottom-color: var(--gold);
}

.entity-article__head-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.85rem;
  margin-bottom: 0.85rem;
  background: var(--gold-pale);
  color: var(--gold-hover);
  border: 1px solid rgba(166, 141, 96, 0.32);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.entity-article__external .btn-outline-danger {
  border-color: rgba(166, 141, 96, 0.55);
  color: var(--gold-hover);
}

.entity-article__external .btn-outline-danger:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--gold-hover);
}

.content-card-link:hover .content-card,
.citizen-card-link:hover .citizen-card,
.activity-card-link:hover .activity-card {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.content-card-link .content-card,
.citizen-card-link .citizen-card,
.activity-card-link .activity-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-article__share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(166, 141, 96, 0.22);
  background: #fff;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.share-btn:hover {
  background: var(--gold-pale);
  border-color: rgba(166, 141, 96, 0.45);
  color: var(--text);
}

.share-btn--facebook:hover { border-color: #1877f2; color: #1877f2; background: rgba(24, 119, 242, 0.06); }
.share-btn--whatsapp:hover { border-color: #25d366; color: #128c7e; background: rgba(37, 211, 102, 0.06); }
.share-btn--viber:hover { border-color: #7360f2; color: #7360f2; background: rgba(115, 96, 242, 0.06); }
.share-btn--email:hover { border-color: var(--gold); color: var(--gold-hover); }
.share-btn--copy:hover { border-color: var(--navy); color: var(--navy); background: rgba(26, 45, 74, 0.04); }

@media (max-width: 575px) {
  .news-article-page .news-article {
    padding: 1.15rem 1rem 1.35rem;
    border-radius: 12px;
  }

  .news-article__hero {
    max-height: 38vh;
    border-radius: 10px;
  }

  .news-article__meta-label {
    min-width: 100%;
  }

  .news-article__share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .share-btn {
    justify-content: center;
  }
}

.citizen-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}

.citizen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(26,45,74,.15);
}

.citizen-card__head {
  background: var(--navy);
  color: #fff;
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}

.citizen-card__head-icon {
  font-size: 2.25rem;
  line-height: 1;
  opacity: .95;
}

.citizen-card__head-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.35;
}

.citizen-card__body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.citizen-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .65rem;
  color: var(--text);
}

.citizen-card__text {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}

/* —— Footer portal —— */
.site-footer--portal {
  background: var(--navy);
  color: rgba(255,255,255,.88);
  padding: 2.5rem 0 0;
  margin-top: 0;
  text-align: left;
  font-size: .85rem;
}

.site-footer--portal a { color: var(--gold); }
.site-footer--portal a:hover { color: #fff; }

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer__logo img { height: 72px; margin-bottom: 1rem; }
.site-footer__title {
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: .75rem;
  color: #fff;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
}

.site-footer--home {
  background: rgba(26,45,74,.88);
  border-top: none;
  color: rgba(255,255,255,.85);
}
.site-footer--home a { color: var(--gold); }

/* —— Entity cards (aktivnosti, kontakt) —— */
.entity-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.entity-card__body { padding: 1.25rem 1.35rem; }
.entity-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.entity-card__text { color: var(--text-muted); font-size: .9rem; line-height: 1.55; }

.institution-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
}

.institution-card__body {
  flex: 1;
  min-width: 0;
}

.institution-logo {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 2px 8px rgba(26, 45, 74, 0.06);
}

.institution-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.institution-logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-light);
  color: var(--red-dark);
  font-size: 1.75rem;
}

.institution-logo-preview {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

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

/* —— Aktivnosti — kartice u mreži (2 po redu) —— */
body[data-page="aktivnosti"] {
  font-family: 'Poppins', 'Roboto', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.activity-card {
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.activity-card--grid {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 18px rgba(26, 45, 74, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.activity-card--grid:hover {
  box-shadow: 0 8px 28px rgba(26, 45, 74, 0.12);
  transform: translateY(-2px);
}

.activity-card__inner {
  display: flex;
  align-items: stretch;
  height: 150px;
  max-height: 150px;
}

.activity-card--grid .activity-card__inner {
  display: none;
}

.activity-card--grid .activity-thumb {
  width: 100%;
  min-width: 0;
  height: 200px;
  flex-shrink: 0;
}

.activity-thumb {
  width: 130px;
  min-width: 130px;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--page-bg);
  position: relative;
}

.activity-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.activity-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-gray);
  font-size: 1.5rem;
}

.activity-thumb--carousel .media-gallery__track,
.activity-thumb--carousel.media-gallery--carousel .media-gallery__track {
  display: flex;
  height: 100%;
  min-height: 0;
  transition: transform .3s ease;
}

.activity-thumb--carousel img,
.activity-thumb--carousel.media-gallery--carousel img {
  flex: 0 0 100%;
  min-height: 0;
  height: 100%;
}

.activity-thumb .media-gallery__nav {
  width: 24px;
  height: 24px;
  font-size: .95rem;
}

.activity-thumb .media-gallery__nav--prev { left: 4px; }
.activity-thumb .media-gallery__nav--next { right: 4px; }

.activity-card__body {
  flex: 1;
  min-width: 0;
  padding: .65rem .9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.activity-card--grid .activity-card__body {
  padding: 1.1rem 1.25rem 1.25rem;
  justify-content: flex-start;
  overflow: visible;
}

.activity-card__type {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red-dark);
  margin-bottom: 0.45rem;
}

.activity-card__title {
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 .2rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.activity-card--grid .activity-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.5rem;
  -webkit-line-clamp: 2;
}

.activity-card__text {
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.35;
  margin: 0 0 .35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.activity-card--grid .activity-card__text {
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.6;
  color: #5c6b7a;
  margin-bottom: 1rem;
  -webkit-line-clamp: 3;
}

.activity-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  align-items: center;
  font-size: .78rem;
}

.activity-card--grid .activity-card__meta {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}

.activity-card__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.activity-card__meta-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #94a3b8;
}

.activity-card__meta-value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.activity-card__meta-value--price {
  color: var(--red-dark);
}

.activity-card__meta .badge {
  font-size: .68rem;
  padding: .2rem .45rem;
}

.media-gallery {
  position: relative;
  min-height: 200px;
  height: 100%;
  background: var(--page-bg);
  overflow: hidden;
}

.media-gallery img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

.media-gallery--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-gray);
  font-size: 2rem;
  min-height: 200px;
}

.media-gallery--carousel .media-gallery__track {
  display: flex;
  height: 100%;
  min-height: 200px;
  transition: transform .3s ease;
}

.media-gallery--carousel img {
  flex: 0 0 100%;
  min-height: 200px;
}

.media-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.media-gallery__nav--prev { left: 8px; }
.media-gallery__nav--next { right: 8px; }

.media-gallery__count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .7rem;
  padding: .2rem .5rem;
  border-radius: var(--radius-pill);
}

/* —— Mapa —— */
.map-page { padding: 0; overflow: hidden; }
.map-page .inner-nav { border-radius: 0; }

.map-shell {
  position: relative;
  height: calc(100vh - 118px);
  min-height: 420px;
}

#map { width: 100%; height: 100%; z-index: 1; }

.map-ui__left {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-pill {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-btn);
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.map-pill--wide {
  width: auto;
  padding: 0 .75rem;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 600;
}

.map-ui__right {
  position: absolute;
  right: 0;
  top: 8px;
  bottom: 8px;
  z-index: 500;
  display: flex;
  align-items: stretch;
  pointer-events: none;
}

.map-ui__right > * { pointer-events: auto; }

.map-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
}

.map-rail__btn {
  width: 44px;
  border: none;
  background: rgba(27, 58, 92, 0.88);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .85rem .25rem;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1.1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  transition: background .15s, filter .15s;
}

.map-rail__btn + .map-rail__btn {
  border-top: 1px solid rgba(255,255,255,.15);
}

.map-rail__btn i {
  writing-mode: horizontal-tb;
  transform: rotate(180deg);
  font-size: 1rem;
}

.map-rail__btn span {
  letter-spacing: .02em;
}

.map-rail__btn:hover {
  background: rgba(27, 58, 92, 1);
}

.map-rail__btn.is-active {
  background: var(--maroon);
  filter: brightness(1.05);
}

.map-rail__btn--search {
  margin-top: auto;
  background: rgba(27, 58, 92, 0.92);
  padding: .75rem .25rem;
  writing-mode: horizontal-tb;
  transform: none;
}

.map-rail__btn--search i {
  transform: none;
  font-size: 1.1rem;
}

.map-drawer {
  width: 0;
  margin-right: 0;
  overflow: hidden;
  opacity: 0;
  background: rgba(255,255,255,.97);
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  transition: width .22s ease, opacity .18s ease, margin-right .22s ease;
  pointer-events: none;
}

.map-drawer.is-open {
  width: 240px;
  margin-right: 4px;
  opacity: 1;
  pointer-events: auto;
}

.map-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--border);
  font-size: .8rem;
  font-weight: 700;
  color: var(--maroon);
  flex-shrink: 0;
}

.map-drawer__close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--page-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.map-drawer__close:hover { background: var(--border); }

.map-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: .5rem;
}

.map-region-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: .5rem .4rem;
  font-size: .8rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
}

.map-region-btn:hover { background: var(--page-bg); }

.map-filter-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .25rem;
  font-size: .78rem;
  cursor: pointer;
}

.map-filter-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.map-pin-wrap { background: transparent; border: none; }

.map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  --pin-accent: #c62828;
  background: color-mix(in srgb, var(--pin-accent) 32%, white);
  color: var(--pin-accent);
  border: 3px solid #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.45);
  filter: brightness(1.08) saturate(1.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.map-pin i {
  font-size: 1.2rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.6));
}

.leaflet-marker-icon.map-pin-wrap:hover .map-pin {
  transform: scale(1.12);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.65),
    0 6px 18px rgba(0, 0, 0, 0.5);
}

.site-header__icon-btn { border-radius: 50%; }

/* Mobilni hamburger meni */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity .22s ease;
  cursor: pointer;
}

.mobile-menu.is-open .mobile-menu__backdrop {
  opacity: 1;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: #fff;
  box-shadow: -8px 0 32px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .24s ease;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem .75rem;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: 1rem;
  color: var(--maroon);
  flex-shrink: 0;
}

.mobile-menu__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--page-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu__list {
  flex: 1;
  overflow-y: auto;
  padding: .5rem;
}

.mobile-menu__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .75rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: .9rem;
}

.mobile-menu__item:hover {
  background: var(--page-bg);
}

.mobile-menu__item.is-active {
  background: var(--red-pale);
  color: var(--maroon);
}

.mobile-menu__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--page-bg);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.mobile-menu__item.is-active .mobile-menu__icon {
  background: var(--maroon);
  color: #fff;
}

.mobile-menu__langs {
  padding: .75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.mobile-menu__langs-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 899px) {
  .mobile-menu-toggle,
  .home-header__menu-btn {
    display: flex;
  }

  .site-header__icon-btn--desktop {
    display: none !important;
  }

  .inner-nav {
    display: none;
  }
}

@media (min-width: 900px) {
  #mobile-menu-root {
    display: none;
  }
}
.lang-flag { border-radius: 50%; }

@media (max-width: 768px) {
  .map-drawer.is-open { width: min(220px, calc(100vw - 60px)); }
  .map-rail__btn span { display: none; }
  .map-rail__btn { padding: .7rem .25rem; }
  .map-shell { height: calc(100vh - 100px); }
}

/* —— Mobilni bottom nav (kao Flutter) —— */
.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  display: none;
  pointer-events: none;
}

.mobile-bottom-nav.is-visible {
  display: block;
  pointer-events: auto;
}

.mobile-bottom-nav__inner {
  position: relative;
  height: 76px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: #fff;
  border-top: 1px solid #d1d5db;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  display: flex;
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav__group {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.mobile-bottom-nav__notch {
  flex: 0 0 72px;
}

.mobile-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #9ca3af;
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.1;
  padding: 6px 2px;
  min-width: 0;
}

.mobile-bottom-nav__item i {
  font-size: 1.35rem;
  line-height: 1;
}

.mobile-bottom-nav__item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.mobile-bottom-nav__item.is-active {
  color: var(--red-dark);
  font-weight: 700;
}

.mobile-bottom-nav__map {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #9ca3af;
}

.mobile-bottom-nav__map-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--red-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(229,57,53,.28);
}

.mobile-bottom-nav__map-btn i {
  font-size: 1.65rem;
  color: var(--red-dark);
}

.mobile-bottom-nav__map.is-active .mobile-bottom-nav__map-btn {
  border-width: 3px;
  box-shadow: 0 6px 18px rgba(229,57,53,.35);
}

.mobile-bottom-nav__map-label {
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.1;
}

.mobile-bottom-nav__map.is-active .mobile-bottom-nav__map-label {
  color: var(--red-dark);
  font-weight: 700;
}

@media (max-width: 899px) {
  body.has-mobile-bottom-nav {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0));
  }

  body.has-mobile-bottom-nav.map-page .map-shell {
    height: calc(100vh - 118px - 76px - env(safe-area-inset-bottom, 0));
    min-height: 320px;
  }

  /* Glavne stavke su u bottom nav-u — sakrij dupli meni */
  .inner-nav .navbar-collapse .navbar-nav {
    display: none !important;
  }

  .inner-nav .navbar-toggler {
    display: none;
  }
}

/* —— Parking: javne zone —— */
.parking-public__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.parking-zone-map-thumb {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 45, 74, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.parking-zone-map-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(26, 45, 74, 0.18);
}

.parking-zone-map-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parking-zone-map-thumb__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 45, 74, 0.35);
  color: #fff;
  font-size: 1.25rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.parking-zone-map-thumb:hover .parking-zone-map-thumb__zoom { opacity: 1; }

.parking-zone-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 18, 32, 0.92);
}

.parking-zone-lightbox[hidden] { display: none !important; }

.parking-zone-lightbox__img {
  max-width: min(96vw, 900px);
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.parking-zone-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.parking-zone-lightbox__close:hover { opacity: 1; }

body.parking-lightbox-open { overflow: hidden; }

.parking-info-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  box-shadow: 0 2px 12px rgba(26, 45, 74, 0.06);
}

.parking-info-box--monthly {
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border-left: 4px solid var(--navy);
}

.parking-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.parking-info-list li {
  padding: 0.3rem 0;
  font-size: 0.95rem;
}

.parking-zone-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  border-left: 5px solid var(--red-dark);
  box-shadow: 0 4px 16px rgba(26, 45, 74, 0.08);
}

.parking-zone-card--red { border-left-color: #c62828; }
.parking-zone-card--blue { border-left-color: #1565c0; }
.parking-zone-card--white { border-left-color: #90a4ae; background: linear-gradient(135deg, #fff 0%, #f8fafc 100%); }

.parking-zone-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.parking-zone-card__dot { font-size: 1.35rem; line-height: 1; }

.parking-zone-card__list {
  padding-left: 1.15rem;
  margin: 0;
}

.parking-zone-card__list li { margin-bottom: 0.35rem; }

.parking-sms-box {
  background: var(--red-pale);
  border: 1px solid rgba(193, 22, 28, 0.15);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.parking-private {
  padding-top: 0.5rem;
  border-top: 2px solid var(--border);
}
