/* ═══════════════════════════════════════════════════════════════
 * pula.css — Smart City Pula+
 * Extracted from index.html
 * ═══════════════════════════════════════════════════════════════ */

/* ── Style block 1 ── */
#popis-lokacija {padding:3% 10%}
.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:1% 4%}
		#map-mobile{width: 100%; height:auto;}
		}
	@media (max-width: 767px) {
  .filter-controls { display: none; }
  .filter-dropdown { display: block; }
  #popis-lokacija {padding:1% 4%}
}
@media (min-width: 768px) {
  .filter-controls { display: block; }
  .filter-dropdown { display: none; }
}
.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: #15803D !important;
  color: #fff !important;
  opacity: 1;
}
.carousel-single {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.btn-primary:disabled {
    background: #16A34A!important;
    color: #fff !important;
    opacity:0.6;
}
hr {
    margin-top: 5px;
    margin-bottom: 5px;}
	

.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
}

.owl-dots {
  display: none !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 - default bootstrap visina + zeleno-žuti SHARE Portal stil */
#locationModal .modal-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(252, 211, 77, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, #14532D 0%, #16A34A 100%) !important;
  border-bottom: 1px solid rgba(252, 211, 77, 0.55);
  padding: 15px;
  min-height: 56px;
  box-shadow:
    0 3px 12px rgba(0,0,0,0.5),
    0 0 20px rgba(252, 211, 77, 0.08),
    inset 0 -1px 0 rgba(252, 211, 77, 0.15);
  transition: background 0.3s ease;
}
#locationModal .modal-header h5 {
  display: flex !important;
  align-items: center !important;
  font-size: 15px !important;
  letter-spacing: 0.04em;
}
/* Text span unutar naslova - zlatni gradient (NE cijeli h5, da ikona bude vidljiva) */
#locationModal .modal-header h5 #pula-modal-title-text {
  background: linear-gradient(135deg, #FCD34D 0%, #FCD34D 50%, #FCD34D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.pula-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  /* Zlatni gradient badge */
  background: linear-gradient(145deg, #FCD34D 0%, #FCD34D 50%, #CA8A04 100%);
  border-radius: 9px;
  font-size: 14px;
  margin-right: 10px;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 0 8px rgba(252, 211, 77, 0.25);
}
/* Crna ikona na zlatnoj podlozi - vazno KONKRETAN selektor da override-a sve */
.pula-modal-icon,
.pula-modal-icon i,
#locationModal .pula-modal-icon i {
  color: #0a0a0a !important;
}
/* Close gumb - crni circle sa zlatnim ringom + bijela X ikona (VIDLJIVA) */
#locationModal .modal-header button[data-dismiss="modal"] {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1.5px solid rgba(252, 211, 77, 0.5) !important;
  transition: all 0.2s ease;
}
#locationModal .modal-header button[data-dismiss="modal"]:hover {
  background: rgba(252, 211, 77, 0.9) !important;
  border-color: rgba(252, 211, 77, 1) !important;
  transform: rotate(90deg);
}
#locationModal .modal-header button[data-dismiss="modal"] i {
  color: #FCD34D !important;
  font-size: 14px !important;
}
#locationModal .modal-header button[data-dismiss="modal"]:hover i {
  color: #0a0a0a !important;
}
#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%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin-bottom: 10px;
  flex-shrink: 0;
}

#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: transparent;
  color: #fff;
  border: none;
  border-radius: 0;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 22px;
  font-weight: normal;
  line-height: 1;
  padding: 0;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.7),
    0 0 8px rgba(0, 0, 0, 0.5);
  box-shadow: none;
  opacity: 0.85;
}

#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 {
    aspect-ratio: 16 / 9;
    height: auto;
    width: 100%;
  }
  
  #location-modal-video {
    max-height: 250px;
  }
}

.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;
}

/* naš vlastiti InfoWindow – ekstremno kompaktan */
.gm-style .custom-iw {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    padding: 5px 13px 5px 10px !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 800;
    color: #fff !important;
    border-radius: 12px;
    border: 2px solid #FCD34D !important;
    box-shadow: 0 2px 8px rgba(20, 83, 45, 0.25), 0 0 0 1px rgba(252, 211, 77, 0.35);
    cursor: pointer;
    user-select: none;
    max-width: none !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.22);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
}

/* Na užem mobilnom ekranu — manji max-width da ne izlazi iz karte */
@media (max-width: 480px) {
  .gm-style .custom-iw {
    max-width: none !important;
    font-size: 11.5px !important;
    padding: 4px 11px 4px 9px !important;
  }
}

@keyframes iwFadeIn {
  from { opacity: 0; transform: translateY(6px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.custom-iw-animate {
  animation: iwFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.gm-style-iw-tc { transition: opacity 0.3s ease; }

/* ukloni dodatni unutarnji padding koji Google stavlja oko sadržaja */
.gm-style-iw-d {
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
}
.gm-style-iw {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.gm-style .custom-iw {
    padding: 5px 13px 5px 10px !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.22) !important;
}

/* ========== MOBILE FILTER WRAPPER ========== */
.mobile-filter-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
}

/* Zajednički stil za oba selecta */
.mobile-select-styled {
  flex: 1;
  width: 100%;
  padding: 14px 46px 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.25s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.mobile-select-styled:focus {
  outline: none;
  border-color: #16A34A;
  box-shadow: 0 0 0 4px rgba(22,163,74,0.12), 0 4px 12px rgba(0,0,0,0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2308c1b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 15 12 9 18 15'%3E%3C/polyline%3E%3C/svg%3E");
}
.mobile-select-styled:hover {
  border-color: #cbd5e0;
}

/* Reset button (X) */
.mobile-filter-reset {
  display: none;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(145deg, #ff6b6b 0%, #ee5a5a 100%);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(238,90,90,0.35);
  flex-shrink: 0;
}
.mobile-filter-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238,90,90,0.4);
}
.mobile-filter-reset:active {
  transform: translateY(0) scale(0.96);
}
.mobile-filter-reset.visible {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: resetBtnIn 0.3s ease-out;
}
@keyframes resetBtnIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Podfilter container - naglašeni stil */
.mobile-subfilter-container {
  display: none;
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 100%);
  border-radius: 20px;
  border: 2px solid rgba(75,85,99,0.25);
  box-shadow: 
    0 4px 20px rgba(55,65,81,0.15),
    inset 0 1px 2px rgba(255,255,255,0.9);
  /* Bez animacije - tezak re-render svakog klika na kategoriju uzrokuje treperenje.
     Umjesto staggered/slide animacije koristi cistu opacity na .location-card
     (ispod) koja je subtle i ne trese elemente. */
}
/* Fade animacija na cards uklonjena - uzrokovala je flicker jer se render
   poziva vise puta u kratkom vremenu (GPS update, kategorija toggle). */

/* Lista lokacija */
.mobile-subfilter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Default: prikazuje točno 4 lokacije bez scrollanja
     1 kartica ≈ 64px (12px padding × 2 + 40px content) + 8px gap = 72px
     4 kartice = 4 × 64 + 3 × 8 = 256 + 24 = 280px (s 4px buffera = 284px) */
  max-height: 284px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  /* Buffer pri dnu liste — kad se scrolla na zadnju lokaciju, ona ne smije
     biti odsječena ni eventualnom mobilnom adresnom trakom preglednika
     ni rubom liste. Padding ostaje unutar scroll-area. */
  padding-bottom: 12px;
  margin-bottom: 0;
  /* Smooth animacija ekspanzije */
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* iOS smooth scroll inertia */
  -webkit-overflow-scrolling: touch;
  /* Eksplicitno dozvoli vertikalan scroll prstom */
  touch-action: pan-y;
  /* Performance hint za browser - smooth scroll na svim uređajima */
  will-change: scroll-position;
}
/* EXPANDED: lista se proširi do 50% viewport visine
   Korisnik scrolla UNUTAR liste, ne na page-u, pa button ispod liste
   ostaje uvijek vidljiv (ne završi pod browser address barom).
   Koristimo dvh (dynamic viewport height) — uzima u obzir mobilnu
   adresnu traku Chrome-a/Safarija koja se dinamički pojavljuje/sakriva.
   Fallback na vh za starije preglednike. */
.mobile-subfilter-list.expanded {
  max-height: 50vh;
  max-height: 50dvh;
}

/* Wrapper za "Prikaži sve" button — ispod liste, uvijek vidljiv */
.mobile-show-all-wrap {
  margin-top: 10px;
  display: block;
}
/* Sakrij wrap ako je prazan (npr. između kategorija s ≤4 lokacija) */
.mobile-show-all-wrap:empty {
  margin-top: 0;
  display: none;
}

/* "Prikaži sve / Prikaži manje" toggle button — diskretni link-stil
   Manji i suptilniji nego prije, ne dominira UI prostorom */
.mobile-show-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  background: rgba(22, 163, 74, 0.08);
  color: #14532D;
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-show-all-btn:hover,
.mobile-show-all-btn:focus {
  background: rgba(22, 163, 74, 0.15);
  border-color: rgba(22, 163, 74, 0.45);
  color: #16A34A;
  outline: none;
}
.mobile-show-all-btn:active {
  background: rgba(22, 163, 74, 0.2);
}
.mobile-show-all-btn i {
  font-size: 10px;
  opacity: 0.85;
  transition: transform 0.25s ease;
}
.mobile-show-all-btn:hover i {
  transform: translateY(1px);
}
.mobile-show-all-btn:hover .fa-chevron-up {
  transform: translateY(-1px);
}
/* Count badge unutar buttona (npr. "12") - manji žuti kružić */
.mobile-show-all-btn .show-all-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 1px 6px;
  margin-left: 2px;
  background: #FCD34D;
  color: #14532D;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* "Prikaži sve / Prikaži manje" toggle button — premium SHARE Portal stil */
.mobile-subfilter-list::-webkit-scrollbar {
  width: 6px;
}
.mobile-subfilter-list::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.08);
  border-radius: 3px;
}
.mobile-subfilter-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.55);
  border-radius: 3px;
}
.mobile-subfilter-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.75);
}
/* Firefox scrollbar (width: thin → 6px, ista paleta) */
.mobile-subfilter-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.55) rgba(0,0,0,0.08);
}

/* Kartica lokacije - bez okvira */
.location-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.location-card:hover {
  background: #f3f4f6;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(55,65,81,0.18);
}
.location-card.active {
 background: linear-gradient(135deg, #fdf2f2 0%, #ecf1f0 100%);
    box-shadow: 0 4px 15px rgb(77 81 81 / 22%);
}
.location-card-left {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
}
.location-card-cat-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 14px; color: #FCD34D; flex-shrink: 0;
  border: 1.5px solid rgba(252, 211, 77, 0.6);
  box-shadow: 0 2px 8px rgba(20, 83, 45, 0.3),
              inset 0 1px 0 rgba(252, 211, 77, 0.2);
}
/* Boje ikone – diferencirane po kategoriji (nijanse zelene + zlatni akcent) */
.pula-cat-active-znamenitosti        .location-card-cat-icon { background: linear-gradient(135deg,#14532D,#0a3d1f); } /* tamno zelena - znamenitosti/povijest */
.pula-cat-active-kultura       .location-card-cat-icon { background: linear-gradient(135deg,#16A34A,#15803D); } /* srednja zelena - kultura */
.pula-cat-active-plaze         .location-card-cat-icon { background: linear-gradient(135deg,#0891B2,#0E7490); } /* turkizna - plaže/more */
.pula-cat-active-zanimljivosti .location-card-cat-icon { background: linear-gradient(135deg,#65A30D,#4D7C0F); } /* maslinasta zelena - zanimljivosti */
.pula-cat-active-parkovi       .location-card-cat-icon { background: linear-gradient(135deg,#84CC16,#65A30D); } /* svjetlozelena - parkovi/priroda */
.location-card-title {
  font-size: 14px; font-weight: 600; color: #2d3748;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.location-card.active .location-card-title { font-weight: 700; }
.pula-cat-active-znamenitosti .location-card.active .location-card-title,
.pula-cat-active-kultura  .location-card.active .location-card-title,
.pula-cat-active-plaze    .location-card.active .location-card-title,
.pula-cat-active-zanimljivosti   .location-card.active .location-card-title,
.pula-cat-active-parkovi     .location-card.active .location-card-title { color: #14532D; }

/* PLAŽE — aktivna kartica ima TAMNOZELENI gradient (override iz smart-city.css ili teme),
   pa tekst MORA biti ŽUTI/SVIJETLI za čitljivost. Forsiram na razini selektora s !important
   da pregazimo sve naknadne override-e. */
.pula-cat-active-plaze .location-card.active {
  background: linear-gradient(135deg, #16A34A 0%, #14532D 100%) !important;
  border: 2px solid #FCD34D !important;
}
.pula-cat-active-plaze .location-card.active .location-card-title,
.pula-cat-active-plaze .location-card.active .location-card-distance,
.pula-cat-active-plaze .location-card.active .location-card-distance i,
.pula-cat-active-plaze .location-card.active .location-card-distance span,
.pula-cat-active-plaze .location-card.active .fa-chevron-right,
.pula-cat-active-plaze .location-card.active .location-card-arrow {
  color: #FCD34D !important;
}

/* Aktivna kartica na svjetloj pozadini - tekst je tamnozeleni (#14532D)
   za sve kategorije, uključujući plaže. Ranije je smart-city.css overridao
   pozadinu plaže na tamnu pa je tekst bio žuti, ali to više ne radi
   pa žuti tekst na svjetloj pozadini postaje nečitljiv. */
.location-card-distance {
  font-size: 12px; font-weight: 700; white-space: nowrap;
  flex-shrink: 0; margin-left: 8px;
}
.pula-cat-active-znamenitosti .location-card-distance,
.pula-cat-active-kultura  .location-card-distance,
.pula-cat-active-plaze    .location-card-distance,
.pula-cat-active-zanimljivosti   .location-card-distance,
.pula-cat-active-parkovi     .location-card-distance { color: #14532D; }
.location-card-arrow { color: #cbd5e0; font-size: 12px; margin-left: 8px; flex-shrink: 0; }
.location-card-icon { display: none; }

/* Gumb Zatvorite */
.close-subfilter-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 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 12px rgba(229,62,62,0.25);
}
.close-subfilter-btn:hover {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(229,62,62,0.3);
}
.close-subfilter-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ========== MOJA LOKACIJA CHECKBOX ========== */
.my-location-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.my-location-row {
  display: flex;
  align-items: center;
  justify-content: center;
}
.my-location-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #2d3748;
}
.my-location-checkbox {
  display: none;
}
.my-location-toggle {
  width: 44px;
  height: 24px;
  background: #e2e8f0;
  border-radius: 12px;
  position: relative;
  transition: all 0.3s ease;
}
.my-location-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.my-location-checkbox:checked + .my-location-toggle {
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
}
.my-location-checkbox:checked + .my-location-toggle::after {
  left: 22px;
}
.my-location-text {
  display: flex;
  align-items: center;
  gap: 6px;
}
.my-location-text i {
  color: #16A34A;
}

/* ========== NEAREST LOCATION BUTTON ========== */
.nearest-location-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(22,163,74,0.3);
}
.nearest-location-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22,163,74,0.4);
}
.nearest-location-btn:active {
  transform: translateY(0) scale(0.98);
}
.nearest-location-btn.visible {
  display: flex;
  animation: nearestBtnIn 0.4s ease-out;
}
@keyframes nearestBtnIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.nearest-location-btn i {
  font-size: 16px;
}
.nearest-location-btn .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}
.nearest-location-btn .btn-subtitle {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
}

/* ========== GPS MARKER PULSE ========== */
@keyframes gpsPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* ========== TOAST NOTIFIKACIJA ========== */
.nearest-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  color: #fff;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(22,163,74,0.4);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-align: center;
  max-width: 90%;
}
.nearest-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   PULA CATEGORY BUTTONS – zoo-inspired
═══════════════════════════════════════════════════════ */
/* ═══ MOBILE: horizontalni scroll – 4 vidljiva ═══ */
.pula-cat-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0 6px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 4px;
}
.pula-cat-scroll::-webkit-scrollbar { display: none; }
.pula-cat-wrap {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 20px) / 4);
    gap: 8px;
    padding-left: 4px;
    padding-right: 8px;
    box-sizing: border-box;
}
.pula-cat-scroll .pula-cat-btn {
    box-sizing: border-box;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
/* ═══ DESKTOP: 3 kolone grid ═══ */
.pula-cat-desktop.pula-cat-wrap {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-auto-flow: row !important;
  grid-auto-columns: unset !important;
  gap: 10px;
  margin-bottom: 18px;
  width: 100%;
  max-width: 520px;
}
.pula-cat-desktop .pula-cat-btn {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px 12px;
  border-radius: 16px;
  width: 100% !important;
  min-width: 0;
  min-height: 90px;
}
.pula-cat-desktop .pula-cat-icon {
  width: 42px; height: 42px;
  border-radius: 13px;
  font-size: 18px;
  flex-shrink: 0;
}
.pula-cat-desktop .pula-cat-label {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  text-align: center;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.pula-cat-desktop .pula-cat-btn.active .pula-cat-label { color: #fff; }

.pula-cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  /* SHARE Portal stil — zeleni gradient pozadina (default fallback) */
  background: linear-gradient(135deg, #16A34A 0%, #14532D 100%);
  border: 1px solid rgba(252, 211, 77, 0.35);
  border-radius: 14px;
  padding: 8px 4px 8px 4px;
  width: 100%;
  cursor: pointer;
  box-shadow:
    0 3px 10px rgba(20, 83, 45, 0.35),
    inset 0 1px 0 rgba(252, 211, 77, 0.15);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease;
}
.pula-cat-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 22px rgba(20, 83, 45, 0.45),
    0 0 16px rgba(252, 211, 77, 0.25),
    inset 0 1px 0 rgba(252, 211, 77, 0.25);
  border-color: rgba(252, 211, 77, 0.6);
}
.pula-cat-btn:active { transform: scale(0.96); }

.pula-cat-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: all 0.20s ease;
}
/* FA ikona unutar kategorije badge - centriraj potpuno (Bootstrap/FA default
   cesto daje margin-right ili width koji pomjera ikonu od centra) */
.pula-cat-icon i,
.pula-cat-icon i[class*="fa-"] {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  line-height: 1 !important;
  display: inline-block;
}
.pula-cat-label {
  font-size: 9.5px;
  font-weight: 800;
  color: #FCD34D;
  letter-spacing: 0.01em;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  line-height: 1.2;
  transition: color 0.18s;
  text-shadow: 0 1px 2px rgba(10, 61, 31, 0.5);
}

/* ── Ikona – tamno zelena pozadina, žuta ikona (SHARE Portal stil) ── */
.pula-cat-btn .pula-cat-icon {
  background: linear-gradient(135deg, #14532D 0%, #0a3d1f 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28),
              inset 0 1px 0 rgba(252, 211, 77, 0.2);
  border: 1px solid rgba(252, 211, 77, 0.3);
}
.pula-cat-btn .pula-cat-icon i { color: #FCD34D; }

/* ── Active – SHARE Portal stil: tamno zelena pozadina sa žutim okvirom ── */
.pula-cat-btn.active {
  background: linear-gradient(135deg, #14532D 0%, #0a3d1f 50%, #14532D 100%);
  border-color: rgba(252, 211, 77, 0.9);
  /* Pojačani žuti prsten koji ostaje nakon sweep animacije */
  box-shadow:
    0 10px 28px rgba(10, 61, 31, 0.6),
    0 0 0 3px rgba(252, 211, 77, 0.9),
    0 0 0 4px rgba(252, 211, 77, 0.4),
    0 0 24px rgba(252, 211, 77, 0.5),
    inset 0 1px 0 rgba(252, 211, 77, 0.3);
  transform: translateY(-3px) scale(1.06);
  /* Animacija A3: card pulse (1.4s sinkro sa sweep) → breathing glow */
  animation:
    pulaCatCardPulse 1.4s cubic-bezier(.55,.15,.35,1) 1,
    pulaCatActiveGlow 2.4s ease-in-out 1.4s infinite;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PREMIUM A3 BORDER SWEEP — conic-gradient pseudo-element
   Dva sloja: ::before = oštra zlatna linija, ::after = blurani halo
   Svaki rotira 720° (dva puna kruga) kroz 1.8s i nestane.
   Radi neovisno o dimenzijama gumba (nije SVG bazirano).
   Zahtijeva @property support: Chrome 85+, Safari 16.4+, Firefox 128+.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@property --pula-cat-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@property --pula-cat-angle-halo {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.pula-cat-btn.active::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 17px;
  /* 4px debljine linije */
  padding: 4px;
  /* Conic gradient koji se "puni" zlatom kako se angle okreće.
     U kombinaciji s background-size i keyframe switch-em na 100%
     postignemo: animacija crta zlatnu liniju, a na kraju cijeli krug ostane zlatan. */
  background:
    conic-gradient(
      from var(--pula-cat-angle),
      transparent 0deg,
      transparent 200deg,
      #FCD34D 280deg,
      #FDE047 340deg,
      #FEF3C7 360deg
    );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  filter:
    drop-shadow(0 0 12px rgba(255, 215, 0, 0.9))
    drop-shadow(0 0 4px rgba(255, 215, 0, 1));
  /* Jedan puni krug u 1.4s, finalno stanje: cijeli zlatni prsten ostaje */
  animation: pulaCatGoldSweep 1.4s cubic-bezier(.55,.15,.35,1) forwards;
}

.pula-cat-btn.active::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 22px;
  padding: 6px;
  background:
    conic-gradient(
      from var(--pula-cat-angle-halo),
      transparent 0deg,
      transparent 180deg,
      rgba(253, 224, 71, 0.7) 280deg,
      rgba(255, 235, 150, 1) 360deg
    );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
  /* Halo nestane nakon što se glavna linija nacrta */
  animation: pulaCatGoldSweepHalo 1.4s cubic-bezier(.55,.15,.35,1) forwards;
}

@keyframes pulaCatGoldSweep {
  /* Jedan krug 0° → 360° u 1.4s, na kraju sweep blijedi i otkriva
     trajni zlatni prsten ispod (definiran u box-shadow .active). */
  0%   { --pula-cat-angle: 0deg;   opacity: 0.9; }
  70%  { --pula-cat-angle: 252deg; opacity: 1; }
  100% { --pula-cat-angle: 360deg; opacity: 0; }
}

@keyframes pulaCatGoldSweepHalo {
  0%   { --pula-cat-angle-halo: 0deg;   opacity: 0.7; }
  70%  { --pula-cat-angle-halo: 252deg; opacity: 1; }
  100% { --pula-cat-angle-halo: 360deg; opacity: 0; }
}

/* Trik za očistiti "rep" pseudo-elementa nakon sweep-a */
.pula-cat-btn.active::before,
.pula-cat-btn.active::after {
  /* Pseudo-elementi prestaju biti vidljivi nakon 1.4s,
     što otkriva trajni zlatni ring u box-shadow .active blokа. */
}

@keyframes pulaCatCardPulse {
  0% {
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.7),
      0 0 10px rgba(252, 211, 77, 0.2);
  }
  60% {
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.7),
      0 0 50px rgba(253, 224, 71, 0.75);
  }
  100% {
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.6),
      0 0 0 3px rgba(252, 211, 77, 0.9),
      0 0 0 4px rgba(253, 224, 71, 0.4),
      0 0 24px rgba(252, 211, 77, 0.5),
      inset 0 1px 0 rgba(252, 211, 77, 0.25);
  }
}

@keyframes pulaCatActiveGlow {
  0%, 100% {
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.6),
      0 0 0 3px rgba(252, 211, 77, 0.9),
      0 0 0 4px rgba(253, 224, 71, 0.4),
      0 0 24px rgba(252, 211, 77, 0.5),
      inset 0 1px 0 rgba(252, 211, 77, 0.25);
  }
  50% {
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.6),
      0 0 0 3px rgba(253, 224, 71, 1),
      0 0 0 5px rgba(253, 224, 71, 0.55),
      0 0 36px rgba(252, 211, 77, 0.7),
      inset 0 1px 0 rgba(252, 211, 77, 0.35);
  }
}

/* Poštuj prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .pula-cat-btn.active {
    animation: none;
  }
  .pula-cat-btn.active::before,
  .pula-cat-btn.active::after {
    animation: none;
    opacity: 0;
  }
}
.pula-cat-btn.active .pula-cat-icon {
  /* Žuti gradient badge na aktivnoj kategoriji (SHARE Portal stil) */
  background: linear-gradient(145deg, #FDE047 0%, #FCD34D 50%, #EAB308 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4),
              0 2px 8px rgba(252, 211, 77, 0.5);
  border-color: rgba(252, 211, 77, 1);
}
.pula-cat-btn.active .pula-cat-icon i { color: #14532D; }
.pula-cat-btn.active .pula-cat-label {
  /* Svjetlo žuta (čista, ne gradient) */
  color: #FDE047;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #FDE047;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(10, 61, 31, 0.6);
}

/* ── Subfilter header ── */
.subfilter-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(20,83,45,0.20);
}
.subfilter-header-title {
  font-size: 11px; font-weight: 900; color: #14532D;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.subfilter-close-x {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#ef4444,#dc2626);
  border: none; border-radius: 50%;
  color: #fff; font-size: 13px; cursor: pointer;
  box-shadow: 0 3px 8px rgba(220,38,38,0.38);
  transition: all .18s ease;
}
.subfilter-close-x:hover { transform: scale(1.12); box-shadow: 0 5px 14px rgba(220,38,38,0.50); }
.subfilter-close-x:active { transform: scale(0.93); }
.mobile-subfilter-list { margin-bottom: 0 !important; }

/* ── Nearest btn: sakrij dok GPS nije aktivan ── */
.nearest-location-btn:not(.visible) { display: none !important; }

/* ── Tour zaključavanje kategorija tijekom intro animacije ── */
body.tour-in-progress .pula-cat-btn,
body.tour-in-progress #desktop-filter-reset,
body.tour-in-progress #mobile-filter-reset,
body.tour-in-progress #close-subfilter-btn,
body.tour-in-progress #mobile-category-select,
body.tour-in-progress #my-location-checkbox + .my-location-toggle,
body.tour-in-progress #desktop-location-checkbox + .my-location-toggle {
  pointer-events: none !important;
  opacity: 0.55 !important;
  filter: grayscale(0.3);
  cursor: not-allowed !important;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* ── Tooltip bounce animation ── */
@keyframes pulaChevronBounce {
  0%,100% { transform: translateY(0); opacity: 0.8; }
  50%      { transform: translateY(4px); opacity: 1; }
}
.custom-iw .pula-iw-arrow {
  display: inline-block;
  font-size: 13px;
  opacity: 0.85;
  line-height: 1;
  animation: pulaChevronBounce 1.1s ease-in-out infinite;
}



/* ═══ PREGAZI smart-city.css .gm-style .custom-iw background:white !important ═══
   ID selektor (1,2,0) > class selektor (0,2,0) — čak i uz !important            */
@media (hover: none) and (pointer: coarse), (max-width: 1367px) {
  #map-mobile .gm-style .custom-iw,
  #prikaz-mape .gm-style .custom-iw {
    background: linear-gradient(135deg,#14532D,#16A34A) !important;
  }
}
/* Bez media query – desktop i svi uređaji */
#map-mobile .gm-style .custom-iw,
#prikaz-mape .gm-style .custom-iw {
  background: linear-gradient(135deg,#14532D,#16A34A) !important;
  color: #fff !important;
  border: 2px solid #FCD34D !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35), 0 0 0 1px rgba(252, 211, 77, 0.45) !important;
}


/* ═══ TOOLTIP RED 2 — udaljenost + animirana strelica prema dolje ═══ */
.pula-iw-dist-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
}
.pula-iw-dist-inline {
  padding: 2px 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.92);
}
.pula-iw-dist {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  background: rgba(255,255,255,0.18);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  vertical-align: middle;
}

/* ═══ FAVORITES SRCE ═══ */
.fav-heart {
  cursor: pointer;
  font-size: 16px;
  color: #cbd5e0;
  transition: all 0.25s ease;
  margin-left: 6px;
  flex-shrink: 0;
  padding: 4px;
}
.fav-heart.active { color: #e53e3e; }
.fav-heart:hover { transform: scale(1.2); }

.favorites-empty {
  text-align: center;
  padding: 24px 16px;
  color: #718096;
  font-size: 14px;
}
.favorites-empty i {
  font-size: 32px;
  color: #e2e8f0;
  display: block;
  margin-bottom: 10px;
}

/* ═══ LANDMARK SLIKE U KARTICAMA ═══ */
.location-card-img {
  width: 38px; height: 38px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* ═══ GPS PROGRESS OVERLAY ═══ */
#gps-progress-overlay {
  display: none;
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99998;
  width: calc(100% - 32px);
  max-width: 360px;
}
/* .visible klasa dodaje JS (_gpsProgressShow) - bez ovog pravila
   overlay ostaje display:none i korisnik ga ne vidi iako log kaze
   "overlay prikazan". */
#gps-progress-overlay.visible {
  display: block;
}
.gps-progress-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: gpsSlideIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes gpsSlideIn {
  from { opacity:0; transform:translateY(20px) scale(0.95); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
.gps-progress-canvas-wrap {
  position: relative;
  width: 56px; height: 56px;
  flex-shrink: 0;
}
.gps-progress-canvas-wrap canvas { display: block; }
.gps-progress-pct {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 12px;
  font-weight: 800;
  color: #16A34A;
  line-height: 1;
}
.gps-progress-info { flex: 1; min-width: 0; }
.gps-progress-title {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 3px;
}
.gps-progress-sub {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.3;
}
.gps-progress-close {
  width: 26px; height: 26px;
  border: none; border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

/* ── Style block 2 ── */
/* Backdrop blur overlay */
#pulaGpsHintBackdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#pulaGpsHintBackdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Centered modal card */
#pulaGpsHint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  z-index: 9999;
  background: linear-gradient(145deg, #ffffff 0%, #F0FDF4 100%);
  border: 2px solid #16A34A;
  border-radius: 20px;
  box-shadow: 
    0 20px 60px rgba(22,163,74,0.25),
    0 8px 24px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.8);
  padding: 28px 28px 24px;
  max-width: 92%;
  width: 440px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34,1.56,0.64,1);
  text-align: center;
}
#pulaGpsHint.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* Icon */
#pulaGpsHint .gps-hint-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(22,163,74,0.35);
}
#pulaGpsHint .gps-hint-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(22,163,74,0.4);
  animation: gpsHintRipple 2s ease-out infinite;
}
#pulaGpsHint .gps-hint-icon::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(22,163,74,0.25);
  animation: gpsHintRipple 2s ease-out infinite 0.4s;
}
#pulaGpsHint .gps-hint-icon i {
  color: #15803D;
  font-size: 32px;
  z-index: 2;
}

/* Title */
#pulaGpsHint .gps-hint-title {
  font-size: 18px;
  font-weight: 800;
  color: #14532D;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* Text */
#pulaGpsHint .gps-hint-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 0 8px;
}

/* CTA button — primary */
#pulaGpsHint .gps-hint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #16A34A 0%, #16A34A 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(22,163,74,0.35);
  transition: all 0.2s ease;
  width: 100%;
  max-width: 280px;
}
#pulaGpsHint .gps-hint-btn:hover {
  background: linear-gradient(135deg, #16A34A 0%, #14532D 100%);
  box-shadow: 0 6px 16px rgba(22,163,74,0.45);
  transform: translateY(-1px);
}
#pulaGpsHint .gps-hint-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(22,163,74,0.3);
}
#pulaGpsHint .gps-hint-btn i { font-size: 13px; }

/* Secondary link */
#pulaGpsHint .gps-hint-secondary {
  display: inline-block;
  margin-top: 12px;
  background: transparent;
  border: none;
  font-size: 12.5px;
  color: #64748b;
  cursor: pointer;
  padding: 6px 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#pulaGpsHint .gps-hint-secondary:hover { color: #334155; }

/* Close button — top right */
#pulaGpsHint .gps-hint-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: all 0.2s;
}
#pulaGpsHint .gps-hint-close:hover {
  background: rgba(148,163,184,0.15);
  color: #475569;
}

@keyframes gpsHintRipple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 480px) {
  #pulaGpsHint {
    width: calc(100% - 28px);
    padding: 24px 20px 20px;
    border-radius: 18px;
  }
  #pulaGpsHint .gps-hint-icon { width: 64px; height: 64px; margin-bottom: 14px; }
  #pulaGpsHint .gps-hint-icon i { font-size: 28px; }
  #pulaGpsHint .gps-hint-title { font-size: 17px; }
  #pulaGpsHint .gps-hint-text { font-size: 13.5px; }
}

/* ── Style block 3 ── */
#mobile-gps-refresh i{transition:transform 0.5s ease;}
#mobile-gps-refresh.spinning i{transform:rotate(360deg);}

#pulaNextLocToast{
  position:fixed;bottom:80px;left:50%;z-index:999999;
  transform:translateX(-50%) translateY(100px);
  background:linear-gradient(145deg,#fff,#F0FDF4);
  border:2px solid #FCD34D;border-radius:14px;
  box-shadow:0 8px 28px rgba(22,163,74,0.25),0 0 0 1px rgba(252,211,77,0.3),0 2px 8px rgba(0,0,0,0.1);
  padding:10px 14px;max-width:92%;width:380px;
  display:flex;align-items:center;gap:10px;
  opacity:0;pointer-events:none;
  transition:opacity 0.4s ease,transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  cursor:pointer;
}
#pulaNextLocToast.show{opacity:1!important;transform:translateX(-50%) translateY(0)!important;pointer-events:auto!important;}
#pulaNextLocToast .nlt-img{width:40px;height:40px;border-radius:10px;object-fit:cover;flex-shrink:0;box-shadow:0 2px 6px rgba(0,0,0,.12);}
#pulaNextLocToast .nlt-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#16A34A,#14532D);color:#fff;font-size:16px;flex-shrink:0;}
#pulaNextLocToast .nlt-name{flex:1;min-width:0;font-size:13px;font-weight:700;color:#1a202c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#pulaNextLocToast .nlt-dist{font-size:12px;color:#16A34A;font-weight:700;flex-shrink:0;white-space:nowrap;}
#pulaNextLocToast .nlt-close{flex-shrink:0;background:transparent;border:none;color:#94a3b8;font-size:16px;cursor:pointer;padding:2px 6px;border-radius:4px;}
#pulaNextLocToast .nlt-close:hover{background:#f1f5f9;color:#475569;}
@media(max-width:991px){#pulaNextLocToast{bottom:80px;}}


/* ═══════════════════════════════════════════════════════════════════════
   GPS "Uključite lokaciju" button — premium decentni dizajn
   Korišten u modal mini-map kartici (pula-mini-map-uber.js).
   Bijeli kompaktni button s žutim crosshairs ikonom u kružnom okviru.
   Klik = elegantna utisnuta animacija (bez šarenih boja).
   ═══════════════════════════════════════════════════════════════════════ */
.pula-gps-enable-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #14532D;
  border: 1px solid rgba(252, 211, 77, 0.65);
  border-radius: 18px;
  padding: 4px 12px 4px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Ethnocentric', sans-serif;
  cursor: pointer;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.12s ease,
    border-color 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.pula-gps-enable-btn .pula-gps-enable-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FCD34D 0%, #EAB308 100%);
  color: #14532D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pula-gps-enable-btn .pula-gps-enable-icon i {
  font-size: 9px;
}
.pula-gps-enable-btn .pula-gps-enable-label {
  line-height: 1;
  white-space: nowrap;
}
/* Hover (desktop) — diskretan lift, žutiji border, ikona se rotira pulse */
.pula-gps-enable-btn:hover {
  background: #FFFBEB;
  border-color: #FCD34D;
  transform: translateY(-1px);
  box-shadow:
    0 3px 10px rgba(20, 83, 45, 0.14),
    0 0 0 1px rgba(252, 211, 77, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.pula-gps-enable-btn:hover .pula-gps-enable-icon {
  transform: rotate(90deg) scale(1.05);
}
/* Aktiv/press — elegantna "utisnuta" animacija, bez agresivnih boja.
   Pozadina ostaje bijela ali s lagano zatamnjenim svijetlo-zelenim ofsetom,
   inset shadow daje pressed dojam, scale 0.97 = tactile feedback. */
.pula-gps-enable-btn:active {
  background: #F0FDF4;
  border-color: rgba(20, 83, 45, 0.4);
  color: #14532D;
  transform: scale(0.97);
  box-shadow:
    inset 0 2px 5px rgba(20, 83, 45, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.06);
}
.pula-gps-enable-btn:active .pula-gps-enable-icon {
  transform: scale(0.92);
  box-shadow:
    inset 0 1px 3px rgba(20, 83, 45, 0.25),
    0 0 0 1px rgba(20, 83, 45, 0.08);
}
/* Focus-visible (keyboard accessibility) */
.pula-gps-enable-btn:focus-visible {
  outline: 2px solid #FCD34D;
  outline-offset: 3px;
}
