
#zoo-category-desktop {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 16px 0;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f4 100%);
  border-radius: 12px;
  padding: 12px 10px 14px;
}

/* Kategorija dugmić u desktop baru  */
#zoo-category-desktop .zoo-cat-item {
  flex: 1 1 calc(20% - 8px);   /* 5 po redu na standardnom desktopu */
  min-width: 72px;
  max-width: 130px;
}

@media (min-width: 1200px) {
  /* 6 po redu na širim ekranima */
  #zoo-category-desktop .zoo-cat-item {
    flex: 1 1 calc(16.6% - 8px);
  }
}

@media (min-width: 992px) and (max-width: 1100px) {
  /* 4 po redu na manjim desktop ekranima */
  #zoo-category-desktop .zoo-cat-item {
    flex: 1 1 calc(25% - 8px);
  }
}

/* Zaglavlje desktop panela – malo smanjiti da se dobije prostora */
.show-only-desktop .tt-heading {
  margin-bottom: 8px !important;
}
.show-only-desktop .tt-heading .tt-heading-inner {
  padding-bottom: 6px !important;
}

/* ================================================================
   MOBILE – Sakrij desktop bar (osiguraj da se ne prikazuje mobilno)
================================================================ */
@media (max-width: 991px) {
  #zoo-category-desktop {
    display: none !important;
  }
}

/* ================================================================
   DESKTOP – Kategorija scroll iz mobilnog ostaje skrivena
================================================================ */
@media (min-width: 992px) {
  #zoo-category-scroll {
    display: none !important;
  }
}

/* ================================================================
   DESKTOP – #opis-lokacija scroll  (povećaj max visinu)
================================================================ */
@media (min-width: 992px) {
  #opis-lokacija {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

/* ================================================================
   DESKTOP – Category list container  (prikaži i na desktopu)
   Koristi se kad je kategorija aktivna (popis lokacija)
================================================================ */
@media (min-width: 992px) {
  #category-list-container {
    /* Ne prikazujemo ga na desktopu – koristimo #opis-lokacija */
    display: none !important;
  }
}

/* ================================================================
   DESKTOP  – Active state kategorija  (sve kategorije dijele isti CSS)
================================================================ */
@media (min-width: 992px) {
  /* Mali hover popravak – ne pomičemo se previše gore */
  .zoo-cat-item:hover {
    transform: translateY(-2px);
  }
  .zoo-cat-item:active {
    transform: scale(0.95);
  }
}


#map-mobile {
  /* UKLONJENO: transition: all - uzrokovalo skakanje karte */
}

/* ═══════════════════════════════════════════════════════════════════════════
   STANDARDIZIRANI TOOLTIP STIL - za sve markere na karti
   ═══════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════
   ZOO MAP TOOLTIP - zeleni, bijeli tekst+šapa+border
   ═══════════════════════════════════════════════ */
.zoo-map-tooltip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
  padding: 5px 10px 5px 5px;
  border-radius: 22px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  border: 2px solid rgba(255,255,255,0.45);
  box-shadow:
    0 6px 20px rgba(4,120,87,0.50),
    0 2px 8px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.20);
  cursor: pointer;
  animation: tooltipAppear 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tooltipAppear {
  0%   { opacity: 0; transform: scale(0.55) translateY(10px); }
  100% { opacity: 1; transform: scale(1)    translateY(0); }
}

.zoo-map-tooltip:hover {
  background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
  border-color: rgba(255,255,255,0.65);
  box-shadow:
    0 8px 28px rgba(4,120,87,0.60),
    0 2px 8px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(-1px);
  transition: all 0.18s ease;
}

.zoo-map-tooltip .tooltip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 1px;
  animation: pawPulse 2.8s ease-in-out infinite;
}

@keyframes pawPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.80; transform: scale(0.92); }
}

.zoo-map-tooltip .tooltip-icon i {
  color: rgba(255,255,255,0.95);
  font-size: 13px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.20));
}

.zoo-map-tooltip .tooltip-text {
  color: #ffffff;
  font-weight: 800;
  font-size: 11.5px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  white-space: normal;
  word-break: break-word;
  max-width: 160px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

/* Ukloni default Google InfoWindow stilove */
.gm-style-iw-c {
  padding: 0 !important;
  border-radius: 22px !important;
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
}
.gm-style-iw-d {
  overflow: visible !important;
}
.gm-style-iw-tc::after {
  background: #059669 !important;
}
/* Sakrij X gumb na tooltipovima */
.gm-style-iw-c button.gm-ui-hover-effect {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATEGORY SCROLL - Horizontalna traka s kategorijama
   ═══════════════════════════════════════════════════════════════════════════ */
#zoo-category-scroll {
  position: relative;
  background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f4 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0;
}

#zoo-category-scroll .scroll-container {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 14px 12px 16px;
  gap: 12px;
}

#zoo-category-scroll .scroll-container::-webkit-scrollbar {
  display: none;
}

/* Fade indikatori na rubovima */
#zoo-category-scroll::before,
#zoo-category-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#zoo-category-scroll::before {
  left: 0;
  background: linear-gradient(to right, rgba(248,249,250,1) 0%, rgba(248,249,250,0) 100%);
}
#zoo-category-scroll::after {
  right: 0;
  background: linear-gradient(to left, rgba(241,243,244,1) 0%, rgba(241,243,244,0) 100%);
}
#zoo-category-scroll.can-scroll-left::before,
#zoo-category-scroll.can-scroll-right::after {
  opacity: 1;
}

/* Category Button - MODERNI DIZAJN */
.zoo-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 14px 12px 12px;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 2px 8px rgba(0,0,0,0.08),
    0 1px 2px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

/* Sjajni overlay efekt */
.zoo-cat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
}

.zoo-cat-item:hover::before {
  left: 100%;
}

.zoo-cat-item:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 20px rgba(0,0,0,0.12),
    0 4px 8px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.zoo-cat-item:active {
  transform: scale(0.96) translateY(0);
  box-shadow: 
    0 2px 6px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.zoo-cat-item .cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  box-shadow: 
    0 3px 8px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.zoo-cat-item:hover .cat-icon {
  transform: scale(1.1);
}

/* FontAwesome ikone - veliki i lijepi */
.zoo-cat-item .cat-icon i {
  font-size: 24px;
  transition: all 0.3s ease;
}

.zoo-cat-item:hover .cat-icon i {
  transform: scale(1.1);
}

/* Boje ikona po kategorijama */
.zoo-cat-item[data-category="popularno"] .cat-icon i { color: #F59E0B; }
.zoo-cat-item[data-category="gmazovi"] .cat-icon i { color: #7CB342; }
.zoo-cat-item[data-category="ptice"] .cat-icon i { color: #26A69A; }
.zoo-cat-item[data-category="djeca"] .cat-icon i { color: #22C55E; }
.zoo-cat-item[data-category="info"] .cat-icon i { color: #3B82F6; }
.zoo-cat-item[data-category="sadrzaji"] .cat-icon i { color: #14B8A6; }
.zoo-cat-item[data-category="restoran"] .cat-icon i { 
  color: #F97316; 
}
.zoo-cat-item[data-category="caffe"] .cat-icon i { color: #8D6E63; }
.zoo-cat-item[data-category="wc"] .cat-icon i { color: #0EA5E9; }
.zoo-cat-item[data-category="suvenirnica"] .cat-icon i { color: #A855F7; }
.zoo-cat-item[data-category="povijest"] .cat-icon i { color: #78716C; }

/* Aktivno stanje - bijele ikone */
.zoo-cat-item.active .cat-icon i { 
  color: #fff !important; 
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.zoo-cat-item .cat-label {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  text-align: center;
  line-height: 1.2;
  max-width: 72px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  margin-top: 2px;
}

/* ═══ BOJE KATEGORIJA - PREMIUM DIZAJN ═══ */

/* Popularno - zlatna/žuta */
.zoo-cat-item[data-category="popularno"] .cat-icon { 
  background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%); 
}
.zoo-cat-item[data-category="popularno"] { 
  box-shadow: 
    0 2px 8px rgba(255,193,7,0.15),
    0 1px 2px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.zoo-cat-item[data-category="popularno"]:hover {
  box-shadow: 0 8px 24px rgba(255,193,7,0.25);
}
.zoo-cat-item[data-category="popularno"].active {
  background: linear-gradient(135deg, #FFD54F 0%, #FFB300 100%);
  box-shadow: 
    0 6px 20px rgba(255,179,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.zoo-cat-item[data-category="popularno"].active .cat-label { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.zoo-cat-item[data-category="popularno"].active .cat-icon { 
  background: rgba(255,255,255,0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Gmazovi - zelena/lime */
.zoo-cat-item[data-category="gmazovi"] .cat-icon { 
  background: linear-gradient(135deg, #F1F8E9 0%, #DCEDC8 100%); 
}
.zoo-cat-item[data-category="gmazovi"] { 
  box-shadow: 
    0 2px 8px rgba(124,179,66,0.15),
    0 1px 2px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.zoo-cat-item[data-category="gmazovi"]:hover {
  box-shadow: 0 8px 24px rgba(124,179,66,0.25);
}
.zoo-cat-item[data-category="gmazovi"].active {
  background: linear-gradient(135deg, #9CCC65 0%, #7CB342 100%);
  box-shadow: 
    0 6px 20px rgba(124,179,66,0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.zoo-cat-item[data-category="gmazovi"].active .cat-label { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.zoo-cat-item[data-category="gmazovi"].active .cat-icon { 
  background: rgba(255,255,255,0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Ptice - teal */
.zoo-cat-item[data-category="ptice"] .cat-icon { 
  background: linear-gradient(135deg, #E0F2F1 0%, #B2DFDB 100%); 
}
.zoo-cat-item[data-category="ptice"] { 
  box-shadow: 
    0 2px 8px rgba(38,166,154,0.15),
    0 1px 2px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.zoo-cat-item[data-category="ptice"]:hover {
  box-shadow: 0 8px 24px rgba(38,166,154,0.25);
}
.zoo-cat-item[data-category="ptice"].active {
  background: linear-gradient(135deg, #4DB6AC 0%, #26A69A 100%);
  box-shadow: 
    0 6px 20px rgba(38,166,154,0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.zoo-cat-item[data-category="ptice"].active .cat-label { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.zoo-cat-item[data-category="ptice"].active .cat-icon { 
  background: rgba(255,255,255,0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Djeca - zelena/mint */
.zoo-cat-item[data-category="djeca"] .cat-icon { 
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%); 
}
.zoo-cat-item[data-category="djeca"] { 
  box-shadow: 
    0 2px 8px rgba(76,175,80,0.12),
    0 1px 2px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.zoo-cat-item[data-category="djeca"]:hover {
  box-shadow: 0 8px 24px rgba(76,175,80,0.2);
}
.zoo-cat-item[data-category="djeca"].active {
  background: linear-gradient(135deg, #66BB6A 0%, #43A047 100%);
  box-shadow: 
    0 6px 20px rgba(67,160,71,0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.zoo-cat-item[data-category="djeca"].active .cat-label { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.zoo-cat-item[data-category="djeca"].active .cat-icon { 
  background: rgba(255,255,255,0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Restoran - nježna narančasta */
.zoo-cat-item[data-category="restoran"] .cat-icon { 
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%); 
}

.zoo-cat-item[data-category="restoran"] { 
  box-shadow: 
    0 2px 8px rgba(251,146,60,0.15),
    0 1px 2px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.zoo-cat-item[data-category="restoran"]:hover {
  box-shadow: 0 8px 24px rgba(251,146,60,0.25);
}

.zoo-cat-item[data-category="restoran"].active {
  background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
  box-shadow: 
    0 6px 20px rgba(249,115,22,0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.zoo-cat-item[data-category="restoran"].active .cat-label { 
  color: #fff; 
  text-shadow: 0 1px 2px rgba(0,0,0,0.2); 
}

.zoo-cat-item[data-category="restoran"].active .cat-icon { 
  background: rgba(255,255,255,0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
/* Caffe - smeđa/coffee */
.zoo-cat-item[data-category="caffe"] .cat-icon { 
  background: linear-gradient(135deg, #EFEBE9 0%, #D7CCC8 100%); 
}
.zoo-cat-item[data-category="caffe"] { 
  box-shadow: 
    0 2px 8px rgba(141,110,99,0.15),
    0 1px 2px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.zoo-cat-item[data-category="caffe"]:hover {
  box-shadow: 0 8px 24px rgba(141,110,99,0.25);
}
.zoo-cat-item[data-category="caffe"].active {
  background: linear-gradient(135deg, #A1887F 0%, #8D6E63 100%);
  box-shadow: 
    0 6px 20px rgba(141,110,99,0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.zoo-cat-item[data-category="caffe"].active .cat-label { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.zoo-cat-item[data-category="caffe"].active .cat-icon { 
  background: rgba(255,255,255,0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* WC - plava svijetla/cyan */
.zoo-cat-item[data-category="wc"] .cat-icon { 
  background: linear-gradient(135deg, #E1F5FE 0%, #B3E5FC 100%); 
}
.zoo-cat-item[data-category="wc"] { 
  box-shadow: 
    0 2px 8px rgba(3,169,244,0.12),
    0 1px 2px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.zoo-cat-item[data-category="wc"]:hover {
  box-shadow: 0 8px 24px rgba(3,169,244,0.2);
}
.zoo-cat-item[data-category="wc"].active {
  background: linear-gradient(135deg, #29B6F6 0%, #0288D1 100%);
  box-shadow: 
    0 6px 20px rgba(2,136,209,0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.zoo-cat-item[data-category="wc"].active .cat-label { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.zoo-cat-item[data-category="wc"].active .cat-icon { 
  background: rgba(255,255,255,0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Sadržaji - tirkizna */
/* Info - plava */
.zoo-cat-item[data-category="info"] .cat-icon { 
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%); 
}
.zoo-cat-item[data-category="info"] { 
  box-shadow: 
    0 2px 8px rgba(59,130,246,0.12),
    0 1px 2px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.zoo-cat-item[data-category="info"]:hover {
  box-shadow: 0 8px 24px rgba(59,130,246,0.2);
}
.zoo-cat-item[data-category="info"].active {
  background: linear-gradient(135deg, #42A5F5 0%, #1E88E5 100%);
  box-shadow: 
    0 6px 20px rgba(30,136,229,0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.zoo-cat-item[data-category="info"].active .cat-label { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.zoo-cat-item[data-category="info"].active .cat-icon { 
  background: rgba(255,255,255,0.35);
}

/* Sadržaji/Edukacija - teal */
.zoo-cat-item[data-category="sadrzaji"] .cat-icon { 
  background: linear-gradient(135deg, #E0F7FA 0%, #B2EBF2 100%); 
}
.zoo-cat-item[data-category="sadrzaji"] { 
  box-shadow: 
    0 2px 8px rgba(0,188,212,0.12),
    0 1px 2px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.zoo-cat-item[data-category="sadrzaji"]:hover {
  box-shadow: 0 8px 24px rgba(0,188,212,0.2);
}
.zoo-cat-item[data-category="sadrzaji"].active {
  background: linear-gradient(135deg, #26C6DA 0%, #00ACC1 100%);
  box-shadow: 
    0 6px 20px rgba(0,172,193,0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.zoo-cat-item[data-category="sadrzaji"].active .cat-label { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.zoo-cat-item[data-category="sadrzaji"].active .cat-icon { 
  background: rgba(255,255,255,0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Suvenirnica - ljubičasta */
.zoo-cat-item[data-category="suvenirnica"] .cat-icon { 
  background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%); 
}
.zoo-cat-item[data-category="suvenirnica"] { 
  box-shadow: 
    0 2px 8px rgba(156,39,176,0.12),
    0 1px 2px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.zoo-cat-item[data-category="suvenirnica"]:hover {
  box-shadow: 0 8px 24px rgba(156,39,176,0.2);
}
.zoo-cat-item[data-category="suvenirnica"].active {
  background: linear-gradient(135deg, #AB47BC 0%, #8E24AA 100%);
  box-shadow: 
    0 6px 20px rgba(142,36,170,0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.zoo-cat-item[data-category="suvenirnica"].active .cat-label { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.zoo-cat-item[data-category="suvenirnica"].active .cat-icon { 
  background: rgba(255,255,255,0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Povijest - smeđa/elegantna */
.zoo-cat-item[data-category="povijest"] .cat-icon { 
  background: linear-gradient(135deg, #EFEBE9 0%, #D7CCC8 100%); 
}
.zoo-cat-item[data-category="povijest"] { 
  box-shadow: 
    0 2px 8px rgba(121,85,72,0.12),
    0 1px 2px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.zoo-cat-item[data-category="povijest"]:hover {
  box-shadow: 0 8px 24px rgba(121,85,72,0.2);
}
.zoo-cat-item[data-category="povijest"].active {
  background: linear-gradient(135deg, #8D6E63 0%, #6D4C41 100%);
  box-shadow: 
    0 6px 20px rgba(109,76,65,0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.zoo-cat-item[data-category="povijest"].active .cat-label { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.zoo-cat-item[data-category="povijest"].active .cat-icon { 
  background: rgba(255,255,255,0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Uskoro badge - moderan dizajn */
.zoo-cat-item.coming-soon {
  opacity: 0.55;
  filter: grayscale(30%);
}
.zoo-cat-item.coming-soon:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}
.zoo-cat-item.coming-soon::after {
  content: 'Uskoro';
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #78909C 0%, #546E7A 100%);
  color: #fff;
  font-size: 7px;
  padding: 3px 6px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  text-transform: uppercase;
}

/* Stabilna mini karta u modalu */
#modalMiniMap {
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: auto;
}
#modalMapContainer {
  overflow: hidden;
}

/* 🔥 SAKRIJ SAMO ZOO LOGO U KATEGORIJAMA (ne category tooltipove) */
body.hide-zoo-logo .zoo-logo-label {
  display: none !important;
  visibility: hidden !important;
}
body.hide-zoo-logo .gm-style-iw-c:has(.zoo-logo-label),
body.hide-zoo-logo .gm-style-iw-t:has(.zoo-logo-label) {
  display: none !important;
  visibility: hidden !important;
}
/* Backup: sakrij SVE gm-style-iw elemente osim onih s cat-tooltip ILI custom-iw */
body.hide-zoo-logo .gm-style-iw-c:not(:has(.cat-tooltip-marker)):not(:has(.custom-iw)),
body.hide-zoo-logo .gm-style-iw-t:not(:has(.cat-tooltip-marker)):not(:has(.custom-iw)),
body.hide-zoo-logo .gm-style-iw-tc:not(:has(.cat-tooltip-marker)):not(:has(.custom-iw)) {
  display: none !important;
}
/* Ali prikaži category tooltipove */
body.hide-zoo-logo .gm-style-iw-c:has(.cat-tooltip-marker),
body.hide-zoo-logo .gm-style-iw-t:has(.cat-tooltip-marker) {
  display: block !important;
}
/* 🔥 PRIKAŽI I custom-iw tooltipove (npr. najbliža životinja) */
body.hide-zoo-logo .gm-style-iw-c:has(.custom-iw),
body.hide-zoo-logo .gm-style-iw-t:has(.custom-iw) {
  display: block !important;
}
/* 🔥 SAKRIJ GOOGLE MAPS POI LABEL "Zoo Zagreb" */
body.hide-zoo-logo div[title="Zoo Zagreb"],
body.hide-zoo-logo div[aria-label="Zoo Zagreb"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.chevron-icon {
  transition: transform 0.3s ease;
}
.chevron-icon.rotated {
  transform: rotate(180deg);
}


.video-slide {
  position: relative;
}

.video-caption {
    position: absolute;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
    background: rgb(0 0 0 / 45%);
    color: #fff;
    font-size: 16px;
    padding: 5px;
    border-radius: 8px;
    max-width: 94%;
    text-align: center;
    z-index: 10;
    box-shadow: 0 2px 16px rgb(0 0 0 / 18%);
    letter-spacing: 0.01em;
    pointer-events: none;
    font-family: inherit;
    width: 94%;
}
.owl-dots {
  display: none !important;
}
 @media (max-width: 768px) {
        #gallery-single-section .isotope-item {
            width: 48%;
            margin: 1%;
            display: inline-block;
            vertical-align: top;
            position: static;
        }}
.fa,.glyphicon {margin:3px!important}

.tt-tools-lang #current-lang-flag {
  margin-right: 5px;           
}
.tt-tools-lang .tt-dropdown {
    min-width: 100px!important;}

.fi {float:right!important; margin-left:5px}
.fa,.glyphicon {margin:3px!important}
.dropdown-menu>li>a>span {float:right; margin-left:5px}
#popis-lokacija {padding:0; margin:0;}
.chevron-icon {
  transition: transform 0.3s ease;
}
.chevron-icon.rotated {
  transform: rotate(180deg);
}

 @media (max-width: 768px) {
        #gallery-single-section .isotope-item {
            width: 48%;
            margin: 1%;
            display: inline-block;
            vertical-align: top;
            position: static;
        }
    }
	.video-slide {
  position: relative;
}

.video-caption {
    position: absolute;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
    background: rgb(0 0 0 / 45%);
    color: #fff;
    font-size: 16px;
    padding: 5px;
    border-radius: 8px;
    max-width: 94%;
    text-align: center;
    z-index: 10;
    box-shadow: 0 2px 16px rgb(0 0 0 / 18%);
    letter-spacing: 0.01em;
    pointer-events: none;
    font-family: inherit;
    width: 94%;
}
.owl-dots {
  display: none !important;
}
#map{width: 100%; height: 100vh; min-height:400px}
 @media (max-width: 768px) {
        #gallery-single-section .isotope-item {
            width: 48%;
            margin: 1%;
            display: inline-block;
            vertical-align: top;
            position: static;
        }
		#popis-lokacija {padding:0}
		#map-mobile{width: 100%; height:50vh;}
		}
	#popis-lokacija {padding:0; margin:0;}

@media (max-width: 768px) {
  #gallery-single-section .isotope-item {
    width: 48%;
    margin: 1%;
    display: inline-block;
    vertical-align: top;
    position: static;
  }
  #map-mobile{width: 100%; height:50vh;}
}

@media (max-width: 767px) {
  .filter-controls { display: none; }
  .filter-dropdown { display: block; }
}

.gm-style .gm-style-iw {
  padding-top:8px !important;
  padding-bottom:8px !important;
  padding-left:12px !important;
  padding-right:12px !important;
  font-size:14px;
}
.slider-controls-desktop button, .slider-controls-mobile button {
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.filter-btn.active, .btn-primary:disabled {
  background: #0062cc !important;
  color: #fff !important;
  opacity: 1;
}
.carousel-single {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.btn-primary:disabled {
    background: #08c1b8!important;
    color: #fff !important;
    opacity:0.6;
}
hr {
    margin-top: 5px;
    margin-bottom: 5px;}
	
	@keyframes btnPulse {
  0% { transform: translateY(-50%) scale(1);}
  30% { transform: translateY(-50%) scale(1.15);}
  60% { transform: translateY(-50%) scale(0.95);}
  100% { transform: translateY(-50%) scale(1);}
}
.btn-next-anim {
  animation: btnPulse 0.9s infinite;
  box-shadow: 0 0 16px 2px #329af0;
  border: 2px solid #329af0;
}


@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

.pulse-marker {
  animation: pulse 2s infinite;
  border-radius: 50%;
  background-color: #007bff;
  width: 20px;
  height: 20px;
  border: 2px solid white;
}
.pulse-wrapper {
  position: relative;
  width: 30px;
  height: 42px;
}

.pulse-circle {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 16px;
  height: 16px;
  background: rgba(0,123,255,0.4);
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite;
  z-index: 1;
}

.pulse-pin {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 42px;
  background-image: url('https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi-dotless_hdpi.png');
  background-size: cover;
  z-index: 2;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(2.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
.lokacija-naslov {
  text-transform: uppercase;
  font-weight: bold;
  text-align: left;
  font-family: 'Ethnocentric', sans-serif;
  font-size: 16px;
  color: #626768;
  margin: 5px 0;
  cursor: pointer;
  opacity:0.7
}
.lokacija-naslov:hover {cursor: pointer;
  opacity:1
}
  /* Bootstrap 3 nema spinner — vrtimo glyphicon-refresh */
  .glyphicon.spin { -webkit-animation: spin 1s linear infinite; animation: spin 1s linear infinite; }
  @-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
  @keyframes spin { 100% { transform: rotate(360deg); } }

  .tts-btn-badge .fi { margin-right:6px; }
  .tts-lang-menu .fi { margin-right:8px; }

#modalDescText {margin-top:20px}
/* Modal video: defaultno skriven */
#locationModal video#modal-video-player {
  display: none !important;
  visibility: hidden !important;
}

/* Prikazujemo ga SAMO kad mu dodamo klasu .is-on */
#locationModal video#modal-video-player.is-on {
  display: block !important;
  visibility: visible !important;
}

.fi {float:right!important; margin-left:5px}
.fa,.glyphicon {margin:3px!important}
.dropdown-menu>li>a>span {float:right; margin-left:5px}
/* Sticky modal header - SAMO HEADER STICKY */
#locationModal .modal-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: #000;
  border-bottom: 2px solid #08c1b8;
}
#locationModal .modal-dialog {
  max-width: 600px;
  margin: 0px auto;
}

#locationModal .modal-content {
  max-height: 100vh;
  
  flex-direction: column;
}

#locationModal .modal-body {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding: 0px;
}

#modalStreetView {
  width: 100%;
  height: 300px;
  margin-bottom: 10px;

}

#location-modal-video-container {
  position: relative !important;
  width: 100%;
  margin: 10px 0;
  clear: both;
}

#close-modal-video {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 1000 !important;
  background: #ff0000;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  line-height: 32px;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  z-index: 3000 !important;
}



#location-modal-video {
  position: relative !important;
  width: 100%;
  max-height: 350px;
  display: block;
  background: #fff;
}

#locationModal .modal-footer {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #e5e5e5;
}

@media (max-width: 768px) {
  #modalStreetView {
    height: auto;
	width:100%
  }
  
  #location-modal-video {
    max-height: 250px;
  }
}

.gm-iv-address,.gmnoprint,.gm-style-cc,.gm-style-cc>a{display:none}

  /* Po defaultu NE prikazuj X */
  #locationModal #modal-video-close { display: none !important; }

  /* X prikaži samo kad #locationModal ima klasu .has-video */
  #locationModal.has-video #modal-video-close { display: block !important; }
  
.gm-iv-address,.gmnoprint,.gm-style-cc,.gm-style-cc>a{display:none}

.gm-ui-hover-effect { display: none !important; }

/* potpuno sakrij X-ikonice */
#prikaz-mape .gm-ui-hover-effect,
#map-mobile .gm-ui-hover-effect {
  display: none !important;
}

/* ═══════════════════════════════════════════════
   CUSTOM-IW – wow search/single marker tooltip
   ═══════════════════════════════════════════════ */

.gm-style .custom-iw {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%) !important;
    padding: 5px 11px !important;
    margin: 0 !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    border-radius: 22px !important;
    border: 2px solid rgba(255,255,255,0.45) !important;
    box-shadow:
      0 6px 20px rgba(4,120,87,0.50),
      0 2px 8px rgba(0,0,0,0.18),
      inset 0 1px 0 rgba(255,255,255,0.20) !important;
    cursor: pointer;
    user-select: none;
    max-width: 160px !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
    letter-spacing: 0.01em !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.18) !important;
}

.gm-style .custom-iw:hover {
    background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%) !important;
    border-color: rgba(255,255,255,0.65) !important;
    box-shadow:
      0 8px 28px rgba(4,120,87,0.60),
      0 2px 8px rgba(0,0,0,0.20),
      inset 0 1px 0 rgba(255,255,255,0.25) !important;
    transform: translateY(-1px);
    transition: all 0.18s ease;
}

/* Ukloni bijeli box Google InfoWindow containera */
.gm-style-iw,
.gm-style-iw-c,
.gm-style-iw-t,
.gm-style-iw-d,
.gm-style-iw-tc,
.gm-style-iw-chr {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
.gm-style-iw-c {
    border-radius: 22px !important;
}
/* Sakrij strelicu (pointer) 
.gm-style-iw-t::after { display: none !important; }
.gm-style .gm-style-iw-tc { display: none !important; }*/
.gm-style-iw button { display: none !important; }
.gm-style-iw-chr { display: none !important; }
.gm-style .gm-style-iw-c,
.gm-style .gm-style-iw-t,
.gm-style .gm-style-iw-tc,
.gm-style .gm-style-iw-d {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

.search-container .input-group {
  display: flex;               /* zadržava sve u jednom redu */
  align-items: stretch;        /* visine se usklađuju */
  width: 100%;
}
.search-container .input-group-addon {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 10px;
}
.search-container .form-control {
  flex: 1 1 auto;              /* input zauzima preostali prostor */
  min-width: 0;                /* sprječava prelijevanje */
}

#modalStreetView {
  width: 100%;
  height: 300px;
  margin-bottom: 10px;
  overflow: hidden; /* Važno za object-fit */
}

@media (max-width: 768px) {
  #modalStreetView {
    height: 250px; /* Možeš prilagoditi */
    width: 100%;
  }
}
.tooltip-inner {
  max-width: 220px !important; /* možeš povećati ili smanjiti */
  white-space: normal !important;
  word-break: break-word;
  text-align: center; /* da izgleda urednije */
  line-height: 1.3;
  padding: 8px 10px;
}
#opis-lokacija {
  max-height: 500px;      /* ili koliko želiš */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;    /* da ne reže tekst scrollbara */
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP FLEX PANEL  (.zdp-panel)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 992px) {

  /* Skriva mobilni category scroll na desktopu */
  #zoo-category-scroll { display: none !important; }

  /* Cijeli lijevi stupac = flex kolona, fiksna visina kao karta */
  .zdp-panel {
    display: flex;
    flex-direction: column;
    height: 800px;          /* mora = min-height prikaz-mape */
    overflow: hidden;
    padding: 16px 20px 12px;
    background: #fff;
    border-right: 1px solid rgba(0,0,0,0.06);
    box-sizing: border-box;
  }

  /* 1. Naslov – fiksna visina */
  .zdp-header {
    flex-shrink: 0;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #08c1b8;
  }

  /* 2. Category grid – prikazuje sve gumbe u gridu, fiksna visina */
  #zoo-category-desktop.zdp-cats {
    flex-shrink: 0;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 8px;
    background: linear-gradient(180deg,#f8f9fa 0%,#f1f3f4 100%);
    border-radius: 12px;
    padding: 10px 8px;
  }

  /* Manji gumbi u desktop gridu */
  #zoo-category-desktop.zdp-cats .zoo-cat-item {
    min-width: unset !important;
    max-width: unset !important;
    flex: unset !important;
    padding: 8px 4px 6px;
  }
  #zoo-category-desktop.zdp-cats .cat-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  #zoo-category-desktop.zdp-cats .cat-icon i {
    font-size: 18px;
  }
  #zoo-category-desktop.zdp-cats .cat-label {
    font-size: 10px;
    max-width: 64px;
  }

  /* 3. GPS bar – fiksna visina */
  .zdp-gps {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
  }
  .zdp-gps .gps-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 6px;
    transition: background .2s;
    user-select: none;
  }
  .zdp-gps .gps-label:hover { background: rgba(66,133,244,.07); }
  .zdp-gps .gps-label i { color: #4285f4; font-size: 13px; }
  #zoo-desktop-gps-status { font-size: 11px; color: #94a3b8; white-space: nowrap; }
  .zoo-gps-toggle {
    position: relative; width: 40px; height: 22px;
    background: #e0e0e0; border-radius: 11px;
    transition: all .3s; flex-shrink: 0; cursor: pointer;
  }
  .zoo-gps-toggle::after {
    content: ""; position: absolute; top: 2px; left: 2px;
    width: 18px; height: 18px; background: #fff;
    border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,.2);
    transition: all .3s;
  }
  .zoo-gps-toggle.on { background: linear-gradient(135deg,#4285f4 0%,#1a73e8 100%); }
  .zoo-gps-toggle.on::after { left: 20px; }

  /* 4. Search – fiksna visina */
  .zdp-search {
    flex-shrink: 0;
    margin-bottom: 8px;
  }
  .zdp-search .input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    flex-wrap: nowrap;
  }
  .zdp-search .input-group-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0 10px;
    background: #f8f9fa;
    border-color: #dee2e6;
    flex-shrink: 0;
  }
  .zdp-search .form-control {
    font-size: 13px !important;
    padding: 8px 10px !important;
    height: auto !important;
    border-color: #dee2e6;
    flex: 1 1 auto;
    min-width: 0;
  }

  /* 5. Rezultati – rasteže se da popuni ostatak panela, scroll unutra */
  #opis-lokacija.zdp-results {
    flex: 1 !important;
    min-height: 0 !important;      /* ključno za flex overflow */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: none !important;   /* poništi stari max-height:500px */
    padding-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(8,193,184,.3) transparent;
  }
  #opis-lokacija.zdp-results::-webkit-scrollbar { width: 4px; }
  #opis-lokacija.zdp-results::-webkit-scrollbar-thumb {
    background: rgba(8,193,184,.3); border-radius: 4px;
  }

  /* Select box unutar results – samo scroll container */
  #opis-lokacija.zdp-results .zoo-select-box {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    max-height: none !important;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(8,193,184,.3) transparent;
  }
  #opis-lokacija.zdp-results .zoo-select-box::-webkit-scrollbar { width: 4px; }
  #opis-lokacija.zdp-results .zoo-select-box::-webkit-scrollbar-thumb {
    background: rgba(8,193,184,.3); border-radius: 4px;
  }
}


.gm-control-active, .gm-fullscreen-control {display: none !important;}
#modalDesc p {
  
  margin: 4px 0 !important;
  line-height: 1.35 !important;
}

/* ===== ZOO MODAL – PROFESIONALNI DIZAJN ===== */

/* Sve p-tagove unutar sekcija poravnaj lijepo */
#modal-extra-sections p,
#modalDesc .zoo-first-section p {
  margin: 3px 0 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #444;
      text-align: justify;
}

/* Hover na header karticama */
.zoo-sec-header:hover {
  background: #f0fefe !important;
}

/* Strong u sadržaju sekcija – ne zeleno, već tamno sivo */
#modal-extra-sections strong,
#modalDesc strong {
  color: #333 !important;
  font-weight: 700;
}

/* Gumb Opširnije – hover efekt */
#btn-opširnije:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 24px rgba(8,193,184,0.45) !important;
}
#btn-opširnije:active {
  transform: translateY(0);
}

/* Lijeva bordura – prvi blok */
.zoo-first-section {
  border-left: 4px solid #08c1b8;
  padding: 10px 14px;
  margin: 6px 0;
  background: #f8fdfd;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  line-height: 1.6;
}

/* Ikona-krug u headerima */
.zoo-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
}
.zoo-icon-badge i {
  color: #fff;
  font-size: 13px;
  margin: 0 !important;
}

/* Padding modalDesc */
#modalDesc {
  padding: 10px 12px 4px 12px !important;
}

#modalDesc {
  text-align: left !important;
  max-width: 640px;
  margin: 0 auto;
}
.modal-header .modal-title {
  margin-right: 15px;        /* da se naslov ne zalijepi uz X */
  white-space: normal;       /* omogućava prelazak u više redova */
  overflow: visible;
}
.modal-header .close {
     z-index: 100000;
    position: absolute;
    top: 35px;
    right: 10px;

}

i[class*="fa"], i[class*="fas"], i[class*="far"], i[class*="fab"], .fi {
    margin-right: 0px !important;
    display: inline-block !important;
    font-style: normal !important;
}
#btn-opširnije>span {margin-left:8px !important}

#modalStreetView {
  width: 100% !important;
  height: auto !important;
  min-height: 300px;
  flex-shrink: 1 !important;
  flex-basis: auto !important;
}

@media (max-width: 768px) {
  #modalStreetView {
    min-height: 250px !important;
    height: 300px !important;
  }
}

@media (max-width: 480px) {
  #modalStreetView {
    min-height: 200px !important;
    height: 250px !important;
  }
}

/* ========== GPS / LOCATION BUTTONS ========== */
.zoo-location-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 12px auto;
  padding: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #f5f7fa 100%);
  border-radius: 16px;
  width: 95%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid rgba(255,255,255,0.8);
}
.zoo-location-row {
  display: flex;
  align-items: center;
  justify-content: center;
}
.zoo-location-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.25s ease;
  user-select: none;
}
.zoo-location-label:hover {
  background: rgba(66,133,244,0.08);
}
.zoo-location-checkbox {
  display: none;
}
.zoo-location-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.zoo-location-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.zoo-location-checkbox:checked + .zoo-location-toggle {
  background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
}
.zoo-location-checkbox:checked + .zoo-location-toggle::after {
  left: 22px;
}
.zoo-location-text {
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 6px;
}
.zoo-location-text i {
  color: #4285f4;
  font-size: 14px;
}

/* Gumb Najbliža životinja */
.nearest-animal-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(245,158,11,0.35);
  animation: fadeSlideIn 0.3s ease-out;
}
.nearest-animal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.4);
}
.nearest-animal-btn:active {
  transform: translateY(0) scale(0.98);
}
.nearest-animal-btn.visible {
  display: flex;
}
.nearest-animal-btn i {
  font-size: 18px;
}
.nearest-animal-btn .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.nearest-animal-btn .btn-subtitle {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.85;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== CATEGORY LIST CONTAINER ========== */
#category-list-container {
  display: none;
  width: 97%;
  margin: 10px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  animation: fadeSlideIn 0.3s ease;
}
#category-list-container.visible {
  display: block;
}
.category-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(135deg, #08c1b8 0%, #0a9e97 100%);
  color: #fff;
}
.category-list-header .header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-list-header .header-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
}
.category-list-header .header-title {
  font-size: 15px;
  font-weight: 600;
}
.category-list-header .header-count {
  font-size: 11px;
  background: rgba(255,255,255,0.25);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  margin-left: 6px;
}
.category-list-close {
  width: 28px;
  height: 28px;
  background: #e53935;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(229,57,53,0.4);
}
.category-list-close:hover {
  background: #c62828;
  transform: scale(1.1);
}
.category-list-items {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px 0;
}
.category-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f0f0f0;
}
.category-list-item:last-child {
  border-bottom: none;
}
.category-list-item:hover {
  background: #f8f9fa;
}
.category-list-item.active {
  background: #e8f8f7;
}
.category-list-item .item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.category-list-item .item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.category-list-item .item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-list-item .item-icon i {
  font-size: 18px;
  color: #08c1b8;
}
.category-list-item .item-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
.category-list-item .item-distance {
  font-size: 12px;
  color: #08c1b8;
  font-weight: 500;
}
.category-list-item .item-arrow {
  color: #ccc;
  font-size: 14px;
}

/* ========== DESKTOP: Sakrij GPS elemente ========== */
@media (min-width: 992px) {
  #modalEnableLocationBtn {
    display: none !important;
  }
  .zoo-location-wrapper {
    display: none !important;
  }
}

/* ========== NARRATION DROPDOWNS ========== */
.audio-video-set {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 14px;
}
.audio-video-set .btn-group {
  margin-bottom: 0;
}
.audio-video-set .btn-primary {
  background: linear-gradient(135deg, #08c1b8 0%, #059e96 100%);
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(8,193,184,0.25);
  transition: all 0.25s ease;
}
.audio-video-set .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(8,193,184,0.35);
}
.audio-video-set .dropdown-menu {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 8px 0;
  min-width: 160px;
}
.audio-video-set .dropdown-menu li a {
  padding: 10px 16px;
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease;
}
.audio-video-set .dropdown-menu li a:hover {
  background: linear-gradient(135deg, #e8f8f8 0%, #d0f0ee 100%);
  color: #08c1b8;
}
.audio-video-set .dropdown-menu .fi {
  font-size: 16px;
  margin-left: 10px;
}
.audio-video-set .glyphicon {
  margin-right: 6px;
}

/* Audio player styling */
#modal-audio-player {
  border-radius: 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  margin: 10px 14px;
  width: calc(100% - 28px) !important;
}
#modal-audio-player::-webkit-media-controls-panel {
  background: transparent;
}

.zoo-cat-item[data-category="hranjenja"] .cat-icon i { color: #1a5d3a; }
.zoo-cat-item[data-category="kviz"] .cat-icon i { color: #C9A84C; }

/* Hranjenja - narančasta */
.zoo-cat-item[data-category="hranjenja"] .cat-icon {
    background: linear-gradient(178deg, #7ae25545 0%, #51f47ca3 100%);
}
.zoo-cat-item[data-category="hranjenja"] {
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15), 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.zoo-cat-item[data-category="hranjenja"]:hover {
  box-shadow: 0 8px 24px rgba(249,115,22,0.25);
}
.zoo-cat-item[data-category="hranjenja"].active {
  background: linear-gradient(178deg, #7ae25545 0%, #51f47ca3 100%);
box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15), 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);}
}
.zoo-cat-item[data-category="hranjenja"].active .cat-label {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.zoo-cat-item[data-category="hranjenja"].active .cat-icon {
 background: linear-gradient(178deg, #7ae25545 0%, #51f47ca3 100%);
box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15), 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);}

/* Kviz - ljubičasta */
.zoo-cat-item[data-category="kviz"] .cat-icon {
  background: linear-gradient(135deg, #FDF8EE 0%, #FEF3C7 100%);
}
.zoo-cat-item[data-category="kviz"] {
  box-shadow:
    0 2px 8px rgba(201,168,76,0.15),
    0 1px 2px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.zoo-cat-item[data-category="kviz"]:hover {
  box-shadow: 0 8px 24px rgba(201,168,76,0.28);
}
.zoo-cat-item[data-category="kviz"].active {
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
  box-shadow:
    0 6px 20px rgba(17,24,39,0.40),
    inset 0 1px 0 rgba(201,168,76,0.25);
}
.zoo-cat-item[data-category="kviz"].active .cat-label {
  color: #C9A84C;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.zoo-cat-item[data-category="kviz"].active .cat-icon {
  background: rgba(201,168,76,0.18);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.zoo-cat-item[data-category="kviz"].active .cat-icon i {
  color: #C9A84C !important;
}


/* Igre - crvena/koralna */
.zoo-cat-item[data-category="igre"] .cat-icon i { color: #ef4444; }
.zoo-cat-item[data-category="igre"] .cat-icon {
  background: linear-gradient(135deg, #FFF1F1 0%, #FFD5D5 100%);
}
.zoo-cat-item[data-category="igre"] {
  box-shadow:
    0 2px 8px rgba(239,68,68,0.15),
    0 1px 2px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.zoo-cat-item[data-category="igre"]:hover {
  box-shadow: 0 8px 24px rgba(239,68,68,0.28);
}
.zoo-cat-item[data-category="igre"].active {
  background: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
  box-shadow:
    0 6px 20px rgba(220,38,38,0.45),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.zoo-cat-item[data-category="igre"].active .cat-label {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.zoo-cat-item[data-category="igre"].active .cat-icon {
  background: rgba(255,255,255,0.22);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.zoo-cat-item[data-category="igre"].active .cat-icon i {
  color: #fff !important;
}
/* Favoriti - roza */
.zoo-cat-item[data-category="favoriti"] .cat-icon { background: linear-gradient(135deg,#FFF0F3 0%,#FFD6DF 100%); }
.zoo-cat-item[data-category="favoriti"] .cat-icon i { color:#E91E63; }
.zoo-cat-item[data-category="favoriti"] { box-shadow:0 2px 8px rgba(233,30,99,.15),0 1px 2px rgba(0,0,0,.04),inset 0 1px 0 rgba(255,255,255,.8); }
.zoo-cat-item[data-category="favoriti"]:hover { box-shadow:0 8px 24px rgba(233,30,99,.25); }
.zoo-cat-item[data-category="favoriti"].active { background:linear-gradient(135deg,#F48FB1 0%,#E91E63 100%); box-shadow:0 6px 20px rgba(233,30,99,.45),inset 0 1px 0 rgba(255,255,255,.3); }
.zoo-cat-item[data-category="favoriti"].active .cat-label { color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.2); }
.zoo-cat-item[data-category="favoriti"].active .cat-icon { background:rgba(255,255,255,.35); box-shadow:0 2px 8px rgba(0,0,0,.15); }
.zoo-cat-item[data-category="favoriti"].active .cat-icon i { color:#fff!important; }
/* Srce na stavkama liste */
.row-fav-btn:hover { color:#E91E63!important; transform:scale(1.2); }
.row-fav-btn.is-fav { color:#E91E63!important; }
.category-list-item .item-fav-btn { background:none;border:none;padding:0 6px 0 0;cursor:pointer;font-size:18px;color:#d1d5db;flex-shrink:0;line-height:1;transition:color .2s; }
.category-list-item .item-fav-btn.is-fav { color:#E91E63; }
.category-list-item .item-fav-btn:hover { color:#E91E63; transform:scale(1.2); }


.zoo-cat-item[data-category="ribe"] .cat-icon {
  background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
}

.zoo-cat-item[data-category="ribe"] .cat-icon i {
  color: #0284C7;
}

.zoo-cat-item[data-category="ribe"].active {
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
}

.category-search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  margin: 12px;
}

.category-search-empty .empty-icon {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.category-search-empty .empty-title {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 4px;
}

.category-search-empty .empty-sub {
  font-size: 12px;
  opacity: 0.85;
}

.category-list-item .item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.category-list-item .item-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-list-item .item-fav-btn,
.category-list-item .item-arrow {
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.category-list-item .item-distance {
  font-size: 12px;
  color: #08c1b8;
  font-weight: 500;
  flex-shrink: 0;
}

 #zooLocationModalOverlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
  }

  #zooLocationModal {
    width: min(92vw, 420px);
    background: #ffffff;
    border: 2px solid #43a047;
    border-radius: 28px;
    padding: 28px 22px 22px;
    text-align: center;
    box-shadow:
      0 18px 50px rgba(0, 0, 0, 0.18),
      0 0 0 4px rgba(67, 160, 71, 0.08),
      0 0 28px rgba(67, 160, 71, 0.18);
    font-family: Arial, sans-serif;
  }

  .zoo-location-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
  }

  .zoo-location-marker {
    position: relative;
    width: 78px;
    height: 78px;
    background: linear-gradient(180deg, #66bb6a 0%, #2e7d32 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow:
      0 10px 25px rgba(0, 0, 0, 0.18),
      0 0 24px rgba(76, 175, 80, 0.28);
    animation: zooMarkerPulse 1.9s ease-in-out infinite;
  }

  .zoo-location-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 2px solid rgba(76, 175, 80, 0.18);
    transform: translate(-50%, -50%) rotate(45deg);
    animation: zooRadar 1.9s ease-out infinite;
  }

  .zoo-location-marker svg {
    position: absolute;
    width: 36px;
    height: 36px;
    left: 21px;
    top: 19px;
    transform: rotate(45deg);
    z-index: 2;
  }

  .zoo-location-marker svg * {
    fill: #ffffff;
  }

  #zooLocationModalText {
    color: #1f2b22;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;
    margin: 0 0 22px;
  }

  #zooLocationModalBtn {
    width: 100%;
    border: none;
    border-radius: 16px;
    background: linear-gradient(180deg, #43a047 0%, #2e7d32 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    padding: 15px 18px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(46, 125, 50, 0.28);
  }

  #zooLocationModalBtn:active {
    transform: translateY(1px);
  }

  @keyframes zooMarkerPulse {
    0%, 100% {
      transform: rotate(-45deg) scale(1);
      box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.18),
        0 0 24px rgba(76, 175, 80, 0.28);
    }
    50% {
      transform: rotate(-45deg) scale(1.06);
      box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.2),
        0 0 34px rgba(76, 175, 80, 0.38);
    }
  }

  @keyframes zooRadar {
    0% {
      opacity: 0.7;
      transform: translate(-50%, -50%) rotate(45deg) scale(0.55);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, -50%) rotate(45deg) scale(1.15);
    }
  }


.category-list-item.active {
  background: linear-gradient(135deg, #e8fffe 0%, #d4f5f3 100%) !important;
  border-color: #08c1b8 !important;
  box-shadow: 0 2px 8px rgba(8, 193, 184, 0.25) !important;
  transform: translateX(4px);
}
.category-list-item.active .item-name { color: #059e96 !important; font-weight: 700 !important; }
.category-list-item.active .item-distance { color: #08c1b8 !important; font-weight: 600 !important; }
.category-list-item.active .item-icon { background: linear-gradient(135deg, #08c1b8 0%, #059e96 100%) !important; box-shadow: 0 2px 6px rgba(8, 193, 184, 0.3) !important; }
.category-list-item.active .item-icon i { color: #fff !important; }
.category-list-item.active .item-arrow { color: #08c1b8 !important; }
.category-list-item.active .item-icon { animation: activePulse 2s ease-in-out infinite; }
@keyframes activePulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(8, 193, 184, 0.3); }
  50% { box-shadow: 0 2px 12px rgba(8, 193, 184, 0.5); }
}
/* cat-tooltip-marker: animal (zeleni) - background dolazi iz JS inline stila za place */
.zoo-map-tooltip.cat-tooltip-marker {
  border: 2px solid rgba(255,255,255,0.45) !important;
  box-shadow: 0 6px 20px rgba(4,120,87,0.50), 0 2px 8px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.20) !important;
  padding: 5px 10px 5px 5px !important;
  border-radius: 22px !important;
  width: fit-content !important;
}
/* Životinja (zelena pozadina) */
.zoo-map-tooltip.cat-tooltip-marker:not(.zoo-tooltip-place) {
  background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%) !important;
}
/* Lokacija (boja kategorije iz inline stila – ne override-amo) */
.zoo-map-tooltip.zoo-tooltip-place {
  box-shadow: 0 6px 20px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.20) !important;
  border-radius: 14px !important;
}
.zoo-map-tooltip.cat-tooltip-marker .tooltip-icon {
  background: none !important;
  border: none !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  align-self: flex-start !important;
  margin-top: 1px !important;
}
.zoo-map-tooltip.zoo-tooltip-place .tooltip-icon {
  background: rgba(255,255,255,0.22) !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  border-radius: 50% !important;
  align-self: flex-start !important;
  margin-top: 1px !important;
}
.zoo-map-tooltip.cat-tooltip-marker .tooltip-icon i {
  color: rgba(255,255,255,0.95) !important;
  font-size: 13px !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.20)) !important;
}
.zoo-map-tooltip.zoo-tooltip-place .tooltip-icon i {
  color: #fff !important;
  font-size: 11px !important;
}
.zoo-map-tooltip.cat-tooltip-marker .tooltip-text {
  font-weight: 800 !important;
  font-size: 11.5px !important;
  color: #ffffff !important;
  line-height: 1.35 !important;
  max-width: 130px !important;
  word-break: break-word !important;
  white-space: normal !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.18) !important;
}

.category-list-item:hover:not(.active) { background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%); transform: translateX(2px); }
.category-list-item { transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
#category-list-items { scrollbar-width: thin; scrollbar-color: rgba(8, 193, 184, 0.3) transparent; }
#category-list-items::-webkit-scrollbar { width: 4px; }
#category-list-items::-webkit-scrollbar-track { background: transparent; }
#category-list-items::-webkit-scrollbar-thumb { background-color: rgba(8, 193, 184, 0.3); border-radius: 4px; }



/* ── TOOLTIP: non-animal kategorije - icon kružnica ── */
.zoo-tooltip-place .tooltip-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  align-self: flex-start !important;
  margin-top: 1px !important;
}
