@font-face {
  font-family: 'DoorsV3';
  src: url('fonts/DOORS_V3point4.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --green1: #14532d;
  --green2: #166534;
  --green3: #15803d;

  --nav-blue1: #1d4d94;
  --nav-blue2: #1f4f99;
  --nav-blue3: #2260a5;

  --countdown1: #6d8a22;
  --countdown2: #8eb830;
  --countdown3: #a8c848;

  --success: #16a34a;
  --danger: #dc2626;

  --bg: #f5f5f5;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  background: var(--bg);
  font-family: Segoe UI, sans-serif;
  overflow-x: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1 0 auto;
}

/* =========================
     NAVBAR
  ========================= */

.site-logo-banner {
  background: rgba(244, 247, 236, 0.7);
  padding: 16px 0;
  border-top: 3px solid #1f4f99;
  box-shadow: 0 8px 25px rgba(31, 79, 153, 0.9);
}

.site-logo-banner-link {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.site-logo-banner-link:hover {
  opacity: 0.92;
}

.site-logo-banner-img {
  display: inline-block;
  max-height: 180px;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  vertical-align: middle;
}

.site-logo-banner-img--left {
  margin-right: auto;
}

.site-logo-banner-img--right {
  margin-left: auto;
  max-width: 100%;
}

@media (min-width:768px) {
  .site-logo-banner-img--right {
    max-width: 500px;
  }
}

.site-sticky-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.countdown-bar {
  /* Prethodno: linear-gradient(90deg,#0f3d26,#166534,#15803d); */
  background: linear-gradient(90deg, var(--countdown1), var(--countdown2), var(--countdown3));
  color: #fff;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(110, 138, 34, .25);
}

.countdown-bar.is-hidden {
  display: none;
}

.countdown-bar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 52px 10px 16px;
}

.eco-countdown-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 32px;
}

.countdown-close-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s;
}

.countdown-close-btn:hover,
.countdown-close-btn:focus-visible {
  background: rgba(255, 255, 255, .35);
  color: #fff;
}

.countdown-bar #countdownClock {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-left: 8px;
}

.eco-navbar {
  /* Prethodno: linear-gradient(135deg, var(--green1), var(--green2), var(--green3)); */
  background: linear-gradient(135deg,
      var(--nav-blue1),
      var(--nav-blue2),
      var(--nav-blue3));

  padding: 12px 0;

  box-shadow: 0 8px 25px rgba(31, 79, 153, .28);
}

.eco-brand {
  color: #fff !important;
  text-decoration: none;
}

.eco-logo {
  width: 52px;
  height: 52px;

  border-radius: 16px;

  background: rgba(255, 255, 255, .15);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;

  backdrop-filter: blur(10px);
}

.eco-title {
  font-family: 'DoorsV3', sans-serif;
  font-size: 22px;
  font-weight: normal;
}

.eco-subtitle {
  color: rgba(255, 255, 255, .75);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-eco-bar {
  min-height: 52px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}

/* Desktop: naslov u centru prozora; ikone samo desno (ne sire se preko celog reda) */
.nav-eco-brand {
  z-index: 1;
  width: max-content;
  max-width: min(720px, calc(100vw - 200px));
  pointer-events: auto;
}

.nav-eco-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  min-width: 0;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* =========================
     ACTIONS
  ========================= */

.action-btn {
  width: 48px;
  height: 48px;

  border: none;
  border-radius: 15px;

  background: rgba(255, 255, 255, .15);

  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;

  transition: .3s;

  backdrop-filter: blur(10px);
}

.action-btn:hover,
.action-btn:focus-visible {
  background: #fff;
  color: var(--nav-blue2);

  transform: translateY(-2px);
}

.action-btn--with-label {
  width: auto;
  min-width: 48px;
  gap: 8px;
  padding-left: 12px;
  padding-right: 14px;
}

.action-btn-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

#searchActionWrap:has(.search-panel.active) .action-btn,
#gridActionWrap:has(.grid-panel.active) .action-btn {
  background: #fff;
  color: var(--nav-blue2);
}

#userMenuWrap .dropdown-toggle::after {
  display: none;
}

#userMenuWrap .dropdown-menu {
  top: calc(100% + 8px);
  border-radius: 14px;
  border: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
  padding: 8px;
  min-width: 220px;
}

#userMenuWrap .dropdown-item {
  border-radius: 10px;
  padding: 10px 14px;
}

#userMenuWrap .dropdown-item:hover,
#userMenuWrap .dropdown-item:focus {
  background: #e8f0fb;
  color: var(--nav-blue2);
}

#userMenuWrap .dropdown-item:active {
  background: #dce8f7;
  color: var(--nav-blue1);
}

/* =========================
     SEARCH PANEL
  ========================= */

.nav-action-wrap {
  position: relative;
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;

  width: 280px;

  background: #fff;

  border-radius: 16px;

  padding: 12px 12px 10px;

  display: none;

  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);

  z-index: 999;
}

.search-panel.active {
  display: block;
}

.search-input {
  position: relative;
}

.search-input i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);

  color: var(--nav-blue2);

  font-size: 14px;
}

.search-input input {
  width: 100%;

  border: none;

  background: #f3f4f6;

  border-radius: 12px;

  padding: 10px 12px 10px 38px;

  outline: none;

  font-size: 14px;
}

.search-input input:focus {
  background: #e8f0fb;
}

.search-filters {
  display: flex;
  flex-direction: column;
  gap: 4px;

  margin-top: 10px;

  padding-top: 8px;

  border-top: 1px solid #eef0f2;
}

.search-filters .form-check {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 0;

  padding: 5px 8px;

  background: #f9fafb;

  border-radius: 8px;

  min-height: 0;
}

.search-filters .form-check-input {
  float: none;

  margin: 0;

  flex-shrink: 0;
}

.search-filters .form-check-input:checked {
  background-color: var(--nav-blue2);
  border-color: var(--nav-blue2);
}

.search-filters .form-check-input:focus {
  border-color: var(--nav-blue3);
  box-shadow: 0 0 0 .2rem rgba(31, 79, 153, .25);
}

.search-filters .form-check-label {
  padding: 0;

  margin: 0;

  font-size: 13px;

  line-height: 1.25;

  cursor: pointer;

  color: #374151;
}

.mz-toolbar label,
.mz-search-field label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.mz-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nav-blue2);
  pointer-events: none;
  z-index: 2;
  font-size: 14px;
}

.mz-search-input {
  padding-left: 2.35rem !important;
}

.mz-list-row {
  cursor: pointer;
  transition: background .15s;
}

.mz-list-row:hover {
  background: #e8f0fb !important;
}

.mz-list-row.mz-row-active {
  background: #dce8f7 !important;
  outline: 2px solid var(--nav-blue2);
  outline-offset: -2px;
}

/* Registri u panelu (MZ, evidencija količine) — sticky zaglavlje sa vidljivom ivicom */
#ekoListTable .register-panel-table,
#mzListTable .register-panel-table {
  border-collapse: separate;
  border-spacing: 0;
}

#ekoListTable .register-panel-th,
#mzListTable .register-panel-th {
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: #fff !important;
  border-bottom: 2px solid #dee2e6 !important;
  vertical-align: bottom;
}

#ekoListTable.eko-readonly .eko-list-row {
  cursor: default;
}

#ekoListTable.eko-readonly .eko-list-row:hover {
  background: inherit !important;
}

#ekoListTable .eko-total-row {
  cursor: default;
}

#ekoListTable .eko-total-row:hover {
  background: inherit !important;
}

#ekoListTable .eko-total-row td {
  border: 0 !important;
  border-top: 2px solid #198754 !important;
  background: #fff;
  padding-top: 0.65rem;
  vertical-align: middle;
}

#ekoListTable .eko-total-row td strong {
  font-weight: 600;
  color: #334155;
}

#ekoListTable .eko-naziv-link {
  color: #0d6efd;
  text-decoration: none;
  cursor: pointer;
}

#ekoListTable .eko-naziv-link:hover,
#ekoListTable .eko-naziv-link:focus {
  color: #0a58ca;
  text-decoration: underline;
}

#ekoViewModal {
  z-index: 4200 !important;
}

#ekoViewModal .eko-view-kg-val {
  font-weight: 700;
  color: #1e293b;
}

#ekoViewModal .eko-view-kg-row .detail-fields-label {
  color: #64748b;
}

@media (min-width:576px) {
  #ekoViewModal .eko-view-modal-dialog {
    max-width: min(92vw, 720px);
  }
}

@media (min-width:992px) {
  #ekoViewModal .eko-view-modal-dialog {
    max-width: min(88vw, 900px);
  }
}

.korisnik-list-row {
  cursor: pointer;
}

.korisnik-list-row:hover {
  background: #e8f0fb;
}

.korisnik-list-row.korisnik-row-active {
  background: #dce8f7 !important;
  outline: 2px solid var(--nav-blue2);
  outline-offset: -2px;
}

.mz-td-multiline {
  white-space: pre-line;
  word-break: break-word;
  vertical-align: top;
  max-width: min(280px, 32vw);
}

.mz-btn-plus {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 12px;
}

#mzEditModal {
  z-index: 4000 !important;
}

#cmsEditPanel {
  z-index: 4000 !important;
}

/* TinyMCE padajući meniji/dijalozi (renderuju se u body > .tox-tinymce-aux) */
body>.tox-tinymce-aux {
  z-index: 10500 !important;
}

/* =========================
     GRID MENU
  ========================= */

.grid-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;

  width: 220px;

  background: #fff;

  border-radius: 18px;

  padding: 10px;

  display: none;

  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);

  z-index: 999;
}

.grid-panel.active {
  display: block;
}

.grid-btn {
  width: 100%;

  border: none;

  background: #f5f5f5;

  border-radius: 10px;

  padding: 8px 10px;

  margin-bottom: 6px;

  font-size: 13px;

  line-height: 1.25;

  transition: .3s;
}

.grid-btn:last-of-type {
  margin-bottom: 0;
}

.grid-btn:hover {
  background: #e8f0fb;
  color: var(--nav-blue2);
}

.cover-preview-wrap img {
  max-height: 130px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
}

/* Detaljni panel depone */
#detailContent .detail-cover {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #f3f4f6;
}

#detailContent .detail-cover-img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

#detailContent .detail-info .detail-pair,
#detailContent .detail-extra .detail-pair {
  display: grid;
  gap: 4px;
  align-content: start;
}

#detailContent .detail-fields-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
}

#detailContent .detail-fields-val {
  font-size: 14px;
  color: #111827;
  word-break: break-word;
}

#detailContent .detail-text-block .detail-text-body {
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
  white-space: pre-wrap;
}

#detailContent .detail-gallery-sec-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--nav-blue2);
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb;
}

#detailContent .detail-img-square {
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  cursor: pointer;
  background: #f3f4f6;
  transition: transform .15s ease, box-shadow .15s ease;
}

#detailContent .detail-img-square:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
}

#detailContent .detail-img-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
     STAT BOX
  ========================= */

.stat-card {
  border: none;

  border-radius: var(--radius);

  box-shadow: var(--shadow);

  transition: .3s;

  cursor: pointer;

  position: relative;

  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card i {
  position: absolute;
  right: 20px;
  top: 20px;

  font-size: 35px;

  opacity: .12;
}

.stat-card-metrics {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.stat-card-count {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-card-kg {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.stat-card-kg-group {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
  max-width: min(100%, 220px);
}

.stat-card-kg-group .stat-card-kg {
  font-size: 1.05rem;
}

.stat-card-kg-sep {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0.7;
}

@media (max-width: 575.98px) {
  .stat-card-kg {
    font-size: 0.95rem;
  }

  .stat-card-kg-group .stat-card-kg {
    font-size: 0.88rem;
  }

  .stat-card-count {
    font-size: 1.65rem;
  }
}

/* =========================
     DEPONIJA CARD
  ========================= */

.deponija-card {
  background: #fff;

  border-radius: var(--radius);

  overflow: hidden;

  box-shadow: var(--shadow);

  transition: .3s;

  cursor: pointer;

  position: relative;

  height: 100%;
}

.deponija-card:hover {
  transform: translateY(-5px);
}

.cards-load-sentinel {
  min-height: 1px;
  width: 100%;
  pointer-events: none;
}

.status-bar {
  width: 8px;

  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
}

.status-clean {
  background: var(--success);
}

.status-dirty {
  background: var(--danger);
}

.thumb {
  width: 100%;
  height: 220px;

  object-fit: cover;
}

.card-meta-row {
  font-size: 0.875rem;
  color: #64748b;
}

.card-opis-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.45;
  min-height: 0;
  margin-bottom: 0;
}

.badge-clean {
  background: rgba(22, 163, 74, .12);
  color: var(--success);
}

.badge-dirty {
  background: rgba(220, 38, 38, .12);
  color: var(--danger);
}

/* =========================
     PANELS
  ========================= */

.overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, .45);

  z-index: 1500;

  display: none;
}

.overlay.show {
  display: block;
}

.slide-panel {
  position: fixed;
  top: 0;
  left: -100%;

  width: 100%;
  max-width: 500px;

  height: 100vh;

  background: #fff;

  overflow-y: auto;

  z-index: 2000;

  transition: .4s;

  box-shadow: none;
}

.slide-panel.open {
  left: 0;
  box-shadow: 0 0 40px rgba(0, 0, 0, .3);
}

.panel-header {
  /* Prethodno: background:#166534; */
  background: linear-gradient(135deg, var(--nav-blue1), var(--nav-blue2), var(--nav-blue3));
  color: #fff;
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Plava umjesto zelene — paneli, modali, forma (status depone na karticama ostaje zelen) */
.btn-success {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--nav-blue2);
  --bs-btn-border-color: var(--nav-blue2);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1a4589;
  --bs-btn-hover-border-color: #1a4589;
  --bs-btn-focus-shadow-rgb: 31, 79, 153;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #184280;
  --bs-btn-active-border-color: #184280;
  --bs-btn-disabled-bg: var(--nav-blue2);
  --bs-btn-disabled-border-color: var(--nav-blue2);
}

.slide-panel .text-success,
#formModal .text-success,
.modal .text-success {
  color: var(--nav-blue2) !important;
}

.slide-panel .border-success,
#formModal .border-success,
.modal .border-success {
  border-color: var(--nav-blue2) !important;
}

.slide-panel .badge.text-bg-success,
.modal .badge.text-bg-success {
  background-color: var(--nav-blue2) !important;
}

.toast.text-bg-success {
  background-color: var(--nav-blue2) !important;
}

/* =========================
     FULLSCREEN
  ========================= */

.fullscreen-view {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, .95);

  display: none;

  align-items: center;
  justify-content: center;

  z-index: 4000;
}

.fullscreen-view.show {
  display: flex;
}

/* Pregled svih deponeja na mapi */
.map-overview-overlay {
  position: fixed;
  inset: 0;
  z-index: 3500;
  background: #0f172a;
  display: none;
}

.map-overview-overlay.show {
  display: block;
}

body.map-overview-open {
  overflow: hidden;
}

body.map-overview-open .overlay.show {
  z-index: 3600;
}

body.map-overview-open .slide-panel.open {
  z-index: 3650;
}

body.map-overview-open .fullscreen-modal.show {
  z-index: 3700;
  /* iznad .slide-panel (3650) i mape (3500) */
}

.map-overview-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-overview-close {
  position: fixed;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 4001;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}

.map-overview-close:hover {
  background: #fff;
}

.leaflet-div-icon.dep-overview-marker-outer,
.leaflet-div-icon.dep-form-marker-outer {
  background: transparent !important;
  border: none !important;
}

.dep-map-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dep-map-marker--pin-only .dep-map-marker-pin {
  margin: 2px 0 0 2px;
}

.leaflet-tooltip.dep-overview-tooltip {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  border-radius: 8px;
  padding: 4px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.leaflet-div-icon.dep-overview-mz-label-icon {
  background: transparent !important;
  border: none !important;
}

.dep-overview-mz-label-text {
  display: block;
  position: relative;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: #1d4ed8;
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    0 0 4px #fff;
}

.dep-map-marker-cover-box {
  display: grid;
  box-sizing: border-box;
  width: 164px;
  height: 114px;
  padding: 0;
  border: 3px solid;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .28);
  margin-bottom: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.dep-map-marker-cover-box img,
.leaflet-div-icon.dep-overview-marker-outer .dep-map-marker-cover-box img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0;
  min-height: 0;
  object-fit: cover !important;
  object-position: center;
  padding: 3px;
  border-radius: 12px;
}

.dep-map-marker--clean .dep-map-marker-cover-box {
  border-color: #16a34a;
}

.dep-map-marker--dirty .dep-map-marker-cover-box {
  border-color: #dc2626;
}

.dep-map-marker-pin {
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
  margin: 0;
  flex-shrink: 0;
}

.dep-map-marker--clean .dep-map-marker-pin {
  background: #16a34a;
}

.dep-map-marker--dirty .dep-map-marker-pin {
  background: #dc2626;
}

.dep-map-marker--reference .dep-map-marker-pin {
  background: #7c3aed;
}

.dep-map-marker--selected .dep-map-marker-pin {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .35), 0 2px 10px rgba(0, 0, 0, .4);
}

.dep-map-marker-kol {
  margin-top: 12px;
  padding: 3px 9px;
  max-width: 140px;
  background: #fff;
  border: 2px solid;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  flex-shrink: 0;
}

.dep-map-marker--clean .dep-map-marker-kol {
  border-color: #16a34a;
  color: #16a34a;
}

.dep-map-marker--dirty .dep-map-marker-kol {
  border-color: #dc2626;
  color: #dc2626;
}

.fullscreen-view img {
  max-width: 90%;
  max-height: 90%;

  border-radius: 16px;
}

.close-fullscreen {
  position: absolute;
  top: 20px;
  right: 30px;

  color: #fff;
  font-size: 35px;

  cursor: pointer;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  color: #fff;
  font-size: 38px;

  cursor: pointer;
}

.left-arrow {
  left: 30px;
}

.right-arrow {
  right: 30px;
}

/* =========================
     FORM
  ========================= */

.fullscreen-modal {
  position: fixed;
  inset: 0;

  background: #fff;

  overflow-y: auto;

  z-index: 3000;

  display: none;
}

.fullscreen-modal.show {
  display: block;
}

/* CMS Edit Panel — flex layout: sticky header + scrollable body + sticky footer */
#cmsEditPanel {
  overflow: hidden !important;
}

#cmsEditPanel.show {
  display: flex !important;
  flex-direction: column;
}

/* Neutrališemo horizontalni padding na header/footer — container unutra preuzima poravnanje */
#cmsEditPanel .privacy-modal-header {
  padding-left: 0;
  padding-right: 0;
}

.cms-edit-panel-body {
  flex: 1 1 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cms-edit-panel-footer {
  flex-shrink: 0;
  padding: .75rem 0;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, .1);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, .08);
}

#cmsViewContent table {
  border-collapse: collapse;
}

#cmsViewContent table,
#cmsViewContent th,
#cmsViewContent td {
  border: 1px solid #000;
}

.map {
  height: 300px;
  border-radius: 16px;
}

.image-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;

  margin-top: 10px;
}

.preview-item {
  position: relative;
}

.preview-item img {
  width: 110px;
  height: 90px;

  object-fit: cover;

  border-radius: 12px;

  cursor: grab;
}

.remove-image {
  position: absolute;
  top: -5px;
  right: -5px;

  width: 22px;
  height: 22px;

  border: none;
  border-radius: 50%;

  background: red;
  color: #fff;
}

/* Prethodna pozadina footera (za povratak): linear-gradient(90deg,#0f3d26,#166534,#15803d); */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: #1f4f99;
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
  text-align: center;
  letter-spacing: .5px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, .12);
}

.site-footer a,
.site-footer button.site-footer-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.site-footer a:hover,
.site-footer button.site-footer-link:hover {
  color: rgba(255, 255, 255, .9);
}

#privacyModal .legal-wrap,
#cmsPageModal .legal-wrap {
  max-width: 820px;
  margin: 0 auto;
}

#privacyModal .legal-card,
#cmsPageModal .legal-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  padding: 2rem 1.75rem;
}

#privacyModal .legal-card h1 {
  font-size: 1.5rem;
  color: var(--green1);
  margin-bottom: .25rem;
}

#privacyModal .legal-meta {
  font-size: .9rem;
  color: #64748b;
  margin-bottom: 1.75rem;
}

#privacyModal .legal-card h2 {
  font-size: 1.1rem;
  color: var(--green2);
  margin-top: 1.75rem;
  margin-bottom: .6rem;
}

#privacyModal .legal-card h3 {
  font-size: 1rem;
  color: var(--green2);
  margin-top: 1.25rem;
  margin-bottom: .5rem;
}

#privacyModal .legal-cookie-table {
  font-size: .875rem;
}

#privacyModal .legal-cookie-table th {
  background: #f1f5f9;
  font-weight: 600;
}

#privacyModal .legal-card p,
#privacyModal .legal-card li {
  font-size: .95rem;
  line-height: 1.65;
  color: #1e293b;
}

#privacyModal .legal-card ul {
  padding-left: 1.25rem;
}

.privacy-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(90deg, #0f3d26, #166534, #15803d);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.privacy-modal-header h5 {
  margin: 0;
  font-size: 1.1rem;
}

/* =========================
     MOBILE NAV (hamburger)
  ========================= */

.mobile-nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-left: 8px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: .25s;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible {
  background: #fff;
  color: var(--nav-blue2);
}

.nav-drawer-toggle {
  display: none;
}

.mobile-nav-overlay,
.mobile-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}

.mobile-nav-overlay.is-open,
.mobile-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-sheet {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: max(12px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  padding: 8px 10px;
  overflow-y: auto;
  background: linear-gradient(165deg, var(--nav-blue1), var(--nav-blue2) 55%, var(--nav-blue3));
}

/* Telefon: meni preko cijelog ekrana */
@media (max-width:768px) {

  .mobile-nav-overlay {
    background: linear-gradient(165deg, var(--nav-blue1), var(--nav-blue2) 55%, var(--nav-blue3));
  }
}

/* Desktop: lijevi panel + providna pozadina kao kod slide panela */
@media (min-width:769px) {

  .nav-drawer-toggle {
    display: flex;
  }

  .nav-eco-toolbar-extra {
    display: none !important;
  }

  .mobile-nav-overlay {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    background: rgba(0, 0, 0, .45);
  }

  .mobile-nav-sheet {
    width: min(400px, 36vw);
    max-width: 400px;
    min-width: 300px;
    flex-shrink: 0;
    box-shadow: 8px 0 32px rgba(0, 0, 0, .28);
    transform: translateX(-100%);
    transition: transform .28s ease;
  }

  .mobile-nav-overlay.is-open .mobile-nav-sheet {
    transform: translateX(0);
  }
}

.mobile-nav-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.mobile-nav-close,
.mobile-search-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-close:hover,
.mobile-search-close:hover,
.mobile-nav-close:focus-visible,
.mobile-search-close:focus-visible {
  background: #fff;
  color: var(--nav-blue2);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  transition: background .2s;
}

.mobile-nav-item i:first-child {
  width: 22px;
  text-align: center;
  font-size: 18px;
  opacity: .9;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus-visible {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.mobile-nav-item--expand {
  justify-content: flex-start;
}

.mobile-nav-chevron {
  margin-left: auto;
  font-size: 14px;
  transition: transform .25s;
}

.mobile-nav-group.is-expanded .mobile-nav-chevron {
  transform: rotate(180deg);
}

.mobile-nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 6px 12px;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, .25);
}

.mobile-nav-subitem {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  color: rgba(255, 255, 255, .92);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  background: rgba(0, 0, 0, .08);
  cursor: pointer;
  transition: background .2s;
}

.mobile-nav-subitem:hover,
.mobile-nav-subitem:focus-visible {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.mobile-nav-subitem.is-active {
  background: #fff;
  color: var(--nav-blue2);
}

.mobile-nav-subitem--danger {
  color: #fecaca;
}

.mobile-nav-subitem--danger:hover,
.mobile-nav-subitem--danger:focus-visible {
  background: rgba(220, 38, 38, .25);
  color: #fff;
}

.mobile-nav-user-block {
  margin-top: 3px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.mobile-nav-group.is-expanded .mobile-nav-item--expand {
  background: rgba(255, 255, 255, .2);
}

body.mobile-nav-open {
  overflow: hidden;
}

#searchSlidePanel .search-slide-filters {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#searchSlidePanel .search-slide-filters .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 8px 10px;
  background: #f9fafb;
  border-radius: 8px;
}

#searchSlidePanel .search-slide-filters .form-check-input {
  margin: 0;
  flex-shrink: 0;
}

#searchSlidePanel .search-slide-filters .form-check-input:checked {
  background-color: var(--nav-blue2);
  border-color: var(--nav-blue2);
}

#searchSlidePanel #searchSlideApply .badge {
  min-width: 2rem;
  font-size: 14px;
  font-weight: 700;
}

.cms-nav-pages-mount {
  display: contents;
}

.cms-editor-mode-toggle .btn.active {
  background: var(--nav-blue2);
  border-color: var(--nav-blue2);
  color: #fff;
}

.cms-html-source {
  min-height: 280px;
  font-size: 13px;
  line-height: 1.45;
  tab-size: 2;
  resize: vertical;
}

.cms-quill-editor {
  min-height: 220px;
  background: #fff;
  border-radius: 0 0 12px 12px;
}

.cms-quill-editor .ql-toolbar.ql-snow {
  flex-wrap: wrap;
}

.cms-quill-editor .ql-editor {
  min-height: 200px;
  font-size: 15px;
  line-height: 1.6;
}

.cms-quill-editor .ql-toolbar.ql-snow {
  border-radius: 12px 12px 0 0;
  border-color: #dee2e6;
  background: #f8fafc;
}

.cms-quill-editor .ql-container.ql-snow {
  border-color: #dee2e6;
}

#cmsEditPanel .ql-editor p,
#cmsEditPanel .ql-editor ol,
#cmsEditPanel .ql-editor ul {
  margin-bottom: .5rem;
}

.cms-page-body {
  font-size: 15px;
  line-height: 1.6;
  color: #1e293b;
}

.cms-page-body p,
.cms-page-body ul,
.cms-page-body ol {
  margin-bottom: .75rem;
}

.cms-page-body blockquote {
  margin: 1rem 0;
  padding: .5rem 1rem;
  border-left: 4px solid var(--nav-blue2);
  background: #f1f5f9;
}

.cms-page-body pre,
.cms-page-body .ql-syntax {
  background: #1e293b;
  color: #f8fafc;
  padding: 12px 14px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 13px;
}

.cms-page-body img {
  border-radius: 8px;
}

.cms-page-body img {
  max-width: 100%;
  height: auto;
}

.cms-page-body table {
  max-width: 100%;
}

@media (min-width:576px) {
  .cms-edit-modal-dialog {
    max-width: min(92vw, 900px);
  }
}

/* =========================
     MOBILE
  ========================= */

@media(max-width:768px) {

  .mobile-nav-toggle {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    margin-left: 0;
  }

  .nav-eco-actions {
    display: none !important;
  }

  .nav-eco-bar {
    position: relative;
    display: block;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    min-height: 44px;
    padding: 0 52px 0 4px;
  }

  .eco-navbar {
    padding: 8px 10px;
  }

  .nav-eco-brand {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex !important;
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    justify-content: flex-start !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 8px !important;
    text-align: left;
    z-index: 1;
  }

  .nav-eco-brand .eco-logo {
    display: flex !important;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    font-size: 14px;
    flex-shrink: 0;
  }

  .nav-eco-brand .text-start {
    text-align: left !important;
    align-items: flex-start !important;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .eco-title {
    font-size: 13px;
    line-height: 1.25;
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .eco-subtitle {
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: 1px;
    display: block;
  }

  .eco-countdown-label {
    --bs-gutter-x: 0;
    font-size: 20px !important;
  }

  .eco-countdown-label #countdownClock {
    display: block;
  }

  .countdown-bar-inner {
    padding-right: 48px;
    padding-left: 12px;
  }

  .countdown-close-btn {
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .thumb {
    height: 180px;
  }

  .slide-panel {
    max-width: 100%;
  }
}

.bg-image {
  position: fixed;
  inset: 0;
  background: url('img/background.jpg') center/cover no-repeat;
  background-position: center top;
  opacity: 0.2;
  filter: blur(0px) brightness(0.5) contrast(1.2);
  transform: scale(1.1);
  z-index: -1;
}

/* =========================
     POPUP BANER + SLIDESHOW
   ========================= */

.baner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: banerFadeIn .25s ease;
}

.baner-overlay[hidden] {
  display: none;
}

@keyframes banerFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.baner-popup {
  position: relative;
  max-width: min(92vw, 720px);
  width: 100%;
  animation: banerSlideUp .3s ease;
}

@keyframes banerSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* --- Slideshow --- */
.baner-slideshow {
  position: relative;
  line-height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
}

.baner-slides {
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
}

.baner-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.baner-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  cursor: pointer;
  background: #000;
}

/* Arrows */
.baner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  border: none;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
  padding: 0;
  line-height: 1;
}

.baner-arrow:hover,
.baner-arrow:focus {
  background: rgba(0, 0, 0, .8);
  outline: none;
}

.baner-arrow-prev { left: 8px; }
.baner-arrow-next { right: 8px; }

.baner-arrow.d-none { display: none !important; }

/* Dots */
.baner-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  line-height: 1;
  height: 15px;
}

.baner-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .15s, transform .15s;
}

.baner-dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* Close btn */
.baner-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #333;
  transition: background .15s, color .15s;
  line-height: 1;
  padding: 0;
}

.baner-close:hover,
.baner-close:focus {
  background: #e83e3e;
  color: #fff;
  outline: none;
}

/* Na malim ekranima zatvoriti dugme pomjeriti unutra */
@media (max-width: 480px) {
  .baner-close {
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    box-shadow: none;
  }

  .baner-close:hover,
  .baner-close:focus {
    background: rgba(220, 0, 0, .8);
  }

  .baner-arrow {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

/* ============================
   ADMIN: Baner slike grid
   ============================ */
.baner-admin-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.baner-admin-thumb {
  position: relative;
  width: 90px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  flex-shrink: 0;
}

.baner-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.baner-admin-thumb .baner-del-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(200, 0, 0, .75);
  border: none;
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0;
  transition: opacity .15s;
}

.baner-admin-thumb:hover .baner-del-btn,
.baner-admin-thumb:focus-within .baner-del-btn {
  opacity: 1;
}

.baner-admin-thumb[draggable="true"] {
  cursor: grab;
}

.baner-admin-thumb.drag-over {
  outline: 2px dashed #0d6efd;
  opacity: .7;
}
