/* ========================================
   ULTRA MODERNE UTILITY KLASE
   Import ovaj fajl nakon style.css
   ======================================== */

/* === GLASSMORPHISM EFFECTS === */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-base);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-2xl);
  transform: translateY(-4px);
}

.glass-modal {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* === 3D HOVER EFFECTS === */
.card-3d-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  transform-style: preserve-3d;
}

.card-3d-lift:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: var(--shadow-primary);
}

.card-3d-tilt:hover {
  transform: perspective(1000px) rotateX(3deg) rotateY(-3deg) translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.lift-sm:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.lift-md:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.lift-lg:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
}

/* === SKELETON LOADERS === */
@keyframes skeleton-loading {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-xs);
}

.skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
}

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-lg);
}

/* === FLOATING LABELS === */
.form-floating {
  position: relative;
}

.form-floating > input,
.form-floating > textarea {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base);
}

.form-floating > label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 1rem 0.75rem;
  pointer-events: none;
  transform-origin: 0 0;
  transition: all var(--transition-base);
  color: var(--color-gray);
}

.form-floating > input:focus ~ label,
.form-floating > input:not(:placeholder-shown) ~ label,
.form-floating > textarea:focus ~ label,
.form-floating > textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-0.5rem) scale(0.85);
  color: var(--color-primary);
  font-weight: 600;
}

.form-floating > input:focus,
.form-floating > textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(6, 3, 141, 0.1);
}

/* === MODERN FOCUS STATES === */
*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
  transition: outline var(--transition-fast);
}

button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 0;
  box-shadow: 0 0 0 4px rgba(6, 3, 141, 0.1);
}

/* === ANIMATED UNDERLINE LINKS === */
.link-animated {
  position: relative;
  text-decoration: none;
  display: inline-block;
  transition: color var(--transition-base);
}

.link-animated::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.link-animated:hover::after {
  width: 100%;
}

.link-animated:hover {
  color: var(--color-primary);
}

.link-underline-animated {
  background-image: linear-gradient(var(--color-primary), var(--color-primary));
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size var(--transition-base);
}

.link-underline-animated:hover {
  background-size: 100% 2px;
}

/* === BUTTON MICRO-INTERACTIONS === */
.btn-ripple {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn-ripple:active::before {
  width: 300px;
  height: 300px;
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-shine);
  transition: left 0.7s;
}

.btn-shine:hover::before {
  left: 100%;
}

.btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 3, 141, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(6, 3, 141, 0); }
}

.btn-bounce:hover {
  animation: bounce 0.6s;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* === GRADIENT BACKGROUNDS === */
.bg-gradient-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
}

.bg-gradient-secondary {
  background: var(--gradient-secondary);
  color: var(--color-white);
}

.bg-gradient-overlay {
  position: relative;
}

.bg-gradient-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  pointer-events: none;
}

/* === MODERN CARDS === */
.card-modern {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card-modern:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.card-bordered-modern {
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.card-bordered-modern:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-primary);
}

/* === TOOLTIP MODERN === */
.tooltip-modern {
  position: relative;
}

.tooltip-modern::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0);
  padding: 8px 12px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: all var(--transition-base);
  pointer-events: none;
  z-index: 1000;
}

.tooltip-modern::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) scale(0);
  border: 6px solid transparent;
  border-top-color: var(--color-black);
  opacity: 0;
  transition: all var(--transition-base);
}

.tooltip-modern:hover::before,
.tooltip-modern:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* === BADGE MODERN === */
.badge-modern {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-base);
}

.badge-modern-primary {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
}

.badge-modern-secondary {
  background: var(--color-secondary-100);
  color: var(--color-secondary-700);
}

.badge-modern-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-modern-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-modern-danger {
  background: var(--color-secondary-100);
  color: var(--color-secondary-700);
}

/* === PROGRESS BAR MODERN === */
.progress-modern {
  height: 8px;
  background: var(--color-gray-lighter);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-modern-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.progress-modern-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: var(--gradient-shine);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* === SWITCH TOGGLE MODERN === */
.switch-modern {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch-modern input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-gray-light);
  transition: var(--transition-base);
  border-radius: var(--radius-full);
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background: var(--color-white);
  transition: var(--transition-base);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.switch-modern input:checked + .switch-slider {
  background: var(--gradient-primary);
}

.switch-modern input:checked + .switch-slider::before {
  transform: translateX(22px);
}

.switch-modern input:focus-visible + .switch-slider {
  box-shadow: 0 0 0 4px rgba(6, 3, 141, 0.2);
}

/* === SCROLL ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

.animate-zoom-in {
  animation: zoomIn 0.5s ease-out;
}

/* === UTILITY HELPERS === */
.blur-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.shadow-primary {
  box-shadow: var(--shadow-primary) !important;
}

.shadow-secondary {
  box-shadow: var(--shadow-secondary) !important;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.overflow-hidden-smooth {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 768px) {
  .card-3d-lift:hover,
  .card-3d-tilt:hover {
    transform: none;
  }
  
  .glass-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* === DARK MODE SPECIFIC STYLES (OPT-IN) === */
/* Dark mode se aktivira samo ako dodaš .dark-mode klasu na <html> ili <body> */
.dark-mode .glass-card {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #333333 50%, #2a2a2a 75%);
  background-size: 200px 100%;
}

.dark-mode .card-modern {
  background: var(--color-gray-lighter);
}

.dark-mode .badge-modern-primary {
  background: var(--color-primary-900);
  color: var(--color-primary-200);
}

.dark-mode .badge-modern-secondary {
  background: var(--color-secondary-900);
  color: var(--color-secondary-200);
}

/* === ACTION BUTTONS (ICON-ONLY) === */
.action-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all var(--transition-base);
  overflow: hidden;
  isolation: isolate;
}

.action-btn i {
  font-size: 18px;
  color: var(--color-gray);
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
}

.action-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 1);
}

.action-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Ripple effect na klik */
.action-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(6, 3, 141, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  z-index: 0;
}

.action-btn:active::before {
  width: 200px;
  height: 200px;
  transition: width 0.3s, height 0.3s;
}

/* Favorite button specifično */
.action-btn-favorite i {
  color: #999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn-favorite:hover i {
  color: var(--color-primary);
  transform: scale(1.15);
}

/* Kada je favorited - AKTIVNO STANJE */
.action-btn-favorite[data-favorited="true"] {
  background: linear-gradient(135deg, rgba(6, 3, 141, 0.1), rgba(6, 3, 141, 0.15)) !important;
  box-shadow: 0 4px 15px rgba(6, 3, 141, 0.2) !important;
}

.action-btn-favorite[data-favorited="true"] i {
  color: var(--color-primary) !important;
}

.action-btn-favorite[data-favorited="true"]:hover {
  background: linear-gradient(135deg, rgba(6, 3, 141, 0.15), rgba(6, 3, 141, 0.2)) !important;
  box-shadow: 0 6px 20px rgba(6, 3, 141, 0.3) !important;
  transform: translateY(-3px) scale(1.05);
}

.action-btn-favorite[data-favorited="true"]:hover i {
  transform: scale(1.2);
}

/* Kada NIJE favorited - NEAKTIVNO STANJE */
.action-btn-favorite[data-favorited="false"] {
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.action-btn-favorite[data-favorited="false"] i {
  color: #999 !important;
}

.action-btn-favorite[data-favorited="false"]:hover {
  background: rgba(255, 255, 255, 1) !important;
}

.action-btn-favorite[data-favorited="false"]:hover i {
  color: var(--color-primary) !important;
}

/* Animacija heartBeat kada se dodaje u favorite */
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1.1); }
  75% { transform: scale(1.25); }
}

/* Mobile-specific: Ukloni žuti focus outline */
.action-btn-favorite:focus,
.action-btn-favorite:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(6, 3, 141, 0.2) !important;
}

.action-btn-favorite:active {
  transform: scale(0.95) !important;
  transition: transform 0.1s ease !important;
}

/* Mobile: Veći touch target */
@media (max-width: 768px) {
  .action-btn-favorite {
    width: 44px;
    height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .action-btn-favorite i {
    font-size: 20px;
  }
  
  /* Ukloni sve outline-e na mobile */
  .action-btn-favorite:focus,
  .action-btn-favorite:focus-visible,
  .action-btn-favorite:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
}

/* Share button specifično */
.action-btn-share:hover {
  background: linear-gradient(135deg, rgba(6, 3, 141, 0.05), rgba(6, 3, 141, 0.08));
}

.action-btn-share:hover i {
  color: var(--color-primary);
  transform: rotate(12deg) scale(1.1);
}

/* Close button specifično */
.action-btn-close:hover {
  background: linear-gradient(135deg, rgba(239, 51, 64, 0.05), rgba(239, 51, 64, 0.08));
}

.action-btn-close:hover i {
  color: var(--color-secondary);
  transform: rotate(90deg) scale(1.1);
}

/* Alternativa sa glassmorphism efektom */
.action-btn-glass {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn-glass:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Mini variant (smaller) */
.action-btn-sm {
  width: 36px;
  height: 36px;
}

.action-btn-sm i {
  font-size: 16px;
}

/* Large variant */
.action-btn-lg {
  width: 50px;
  height: 50px;
}

.action-btn-lg i {
  font-size: 22px;
}

/* Grouped action buttons */
.action-btn-group {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.action-btn-group .action-btn {
  margin: 0;
}

/* Loading state */
.action-btn.loading {
  pointer-events: none;
  opacity: 0.6;
}

.action-btn.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Pulsing notification badge on action button */
.action-btn-with-badge {
  position: relative;
}

.action-btn-with-badge::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: var(--color-secondary);
  border-radius: 50%;
  border: 2px solid white;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 0 0 0 rgba(239, 51, 64, 0.7);
  }
  50% { 
    transform: scale(1.1); 
    box-shadow: 0 0 0 6px rgba(239, 51, 64, 0);
  }
}

/* Dark mode support */
.dark-mode .action-btn {
  background: rgba(30, 30, 30, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .action-btn:hover {
  background: rgba(40, 40, 40, 1);
}

.dark-mode .action-btn i {
  color: var(--color-gray-light);
}

/* === BUSINESS CARD MODERNIZATION === */

/* Moderan vendor/business card wrapper */
.sf-vender-list-wrap-modern {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
  height: 100%;
  margin-bottom: 24px;
  position: relative;
}

.sf-vender-list-wrap-modern:hover {
  box-shadow: 0 12px 40px rgba(6, 3, 141, 0.12);
  transform: translateY(-6px);
  border-color: rgba(6, 3, 141, 0.1);
}

/* Hover indicator - suptilan plavi overlay */
.sf-vender-list-wrap-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6, 3, 141, 0.02), rgba(6, 3, 141, 0.01));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.sf-vender-list-wrap-modern:hover::after {
  opacity: 1;
}

/* Moderan image container sa overlay */
.sf-vender-list-pic-modern {
  position: relative;
  width: 140px;
  min-width: 140px;
  height: 100%;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.sf-vender-list-pic-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6, 3, 141, 0.7) 0%, rgba(6, 3, 141, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.sf-vender-list-wrap-modern:hover .sf-vender-list-pic-modern::before {
  opacity: 1;
}

/* Overlay badge za kategoriju */
.sf-category-badge-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sf-category-badge-overlay .badge-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--color-primary);
  font-size: 11px;
  padding: 4px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Moderan info section */
.sf-vender-list-info-modern {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Moderni naslov */
.sf-venders-title-modern {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 8px 0;
  line-height: 1.3;
  transition: color 0.3s ease;
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.sf-venders-title-modern:hover {
  color: var(--color-primary);
}

.sf-venders-title-modern::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.sf-venders-title-modern:hover::after {
  width: 100%;
}

/* Moderne kategorije kao chips/badges */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(6, 3, 141, 0.06);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(6, 3, 141, 0.1);
}

.category-chip:hover {
  background: rgba(6, 3, 141, 0.1);
  transform: scale(1.05);
  border-color: rgba(6, 3, 141, 0.2);
}

/* Moderniji info items sa ikonicama */
.info-item-modern {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.5;
  position: relative;
  z-index: 10;
}

.info-item-modern i {
  color: var(--color-primary);
  font-size: 14px;
  margin-top: 2px;
  min-width: 16px;
}

.info-item-modern a {
  color: var(--color-gray);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  z-index: 10;
}

.info-item-modern a:hover {
  color: var(--color-primary);
}

/* Moderniji rating */
.sf-rating-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.sf-rating-modern .stars {
  display: flex;
  gap: 3px;
}

.sf-rating-modern .stars i {
  font-size: 16px;
  color: #fbbf24;
}

.sf-rating-modern .stars i.empty {
  color: #e5e7eb;
}

.sf-rating-modern .count {
  font-size: 13px;
  color: var(--color-gray);
  font-weight: 600;
}

/* Card footer sa action buttons */
.card-footer-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.card-footer-modern .action-btn-group {
  gap: 8px;
}

.card-footer-modern .action-btn {
  width: 38px;
  height: 38px;
}

.card-footer-modern .action-btn i {
  font-size: 16px;
}

/* Contact info group */
.contact-info-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

/* Verified badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.verified-badge i {
  font-size: 12px;
}

/* Featured/Premium badge */
.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
}

.featured-badge i {
  font-size: 12px;
}

/* Desktop fix - pomeri badge na sliku da ne kolidira sa action buttons */
@media (min-width: 577px) {
  .featured-badge {
    top: 12px;
    left: 12px;
    right: auto;
  }
}

/* Hover lift effect za karticu */
.card-lift-effect {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-lift-effect:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Skeleton loader za kartice */
.sf-vender-card-skeleton {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  overflow: hidden;
  height: 220px;
  display: flex;
}

.sf-vender-card-skeleton .skeleton-image {
  width: 140px;
  min-width: 140px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: skeleton-loading 1.5s infinite;
}

.sf-vender-card-skeleton .skeleton-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Stats badge (za broj pregleda, itd) */
.stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-gray);
}

.stats-badge i {
  font-size: 12px;
  color: var(--color-primary);
}

/* "Vidi detalje" button - CTA u donjem desnom uglu */
.btn-view-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--color-gray);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  margin-top: auto;
  align-self: flex-end;
}

.btn-view-details i {
  font-size: 14px;
  transition: transform 0.3s ease;
  color: var(--color-primary);
}

/* Hover - suptilan prelaz u plavo */
.btn-view-details:hover {
  background: rgba(6, 3, 141, 0.04);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 3, 141, 0.1);
}

.btn-view-details:hover i {
  transform: translateX(3px);
}

.btn-view-details:active {
  transform: translateY(0px);
}

/* Shine effect - vrlo suptilan */
.btn-view-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(6, 3, 141, 0.05), transparent);
  transition: left 0.5s;
}

.btn-view-details:hover::before {
  left: 100%;
}

/* Kompaktna verzija za manje kartice */
.btn-view-details-compact {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-view-details-compact i {
  font-size: 14px;
}

/* Outline variant (alternativa) */
.btn-view-details-outline {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(6, 3, 141, 0.15);
}

.btn-view-details-outline:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Mobile optimizacija - MALA IKONICA U DESNOM UGLU */
@media (max-width: 576px) {
  .btn-view-details {
    width: 50px;
    height: 50px;
    padding: 0;
    gap: 0;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: absolute;
    bottom: 16px;
    right: 16px;
    margin-top: 0;
    box-shadow: 0 6px 20px rgba(6, 3, 141, 0.35);
    z-index: 5;
  }
  
  /* Sakrij tekst na mobile */
  .btn-view-details .btn-text {
    display: none;
  }
  
  .btn-view-details i {
    font-size: 20px;
    margin: 0;
  }
  
  .btn-view-details:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(6, 3, 141, 0.45);
  }
  
  .btn-view-details:hover i {
    transform: translateX(2px);
  }
  
  .btn-view-details:active {
    transform: scale(0.95);
  }
  
  /* Dodaj padding na info sekciju da ne prekriva dugme */
  .sf-vender-list-info-modern {
    padding-bottom: 70px;
    position: relative;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sf-vender-list-pic-modern {
    width: 100px;
    min-width: 100px;
    min-height: 160px;
  }
  
  .sf-vender-list-info-modern {
    padding: 16px;
  }
  
  .sf-venders-title-modern {
    font-size: 16px;
  }
  
  .category-chip {
    font-size: 11px;
    padding: 3px 10px;
  }
  
  .card-footer-modern .action-btn {
    width: 36px;
    height: 36px;
  }
}

/* MOBILE VERTICAL LAYOUT - KRITIČNO ZA MOBILE */
@media (max-width: 576px) {
  /* Prebaci na vertikalni layout */
  .sf-vender-list-wrap-modern .sf-vender-list-box {
    flex-direction: column !important;
  }
  
  /* Slika na vrhu - full width */
  .sf-vender-list-pic-modern {
    width: 100% !important;
    min-width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
  }
  
  /* Info sekcija ispod slike */
  .sf-vender-list-info-modern {
    width: 100%;
    padding: 20px;
  }
  
  /* Naslov malo manji */
  .sf-venders-title-modern {
    font-size: 18px;
  }
  
  /* Category chips ostaju isti */
  .category-chips {
    margin-bottom: 12px;
  }
  
  /* Rating */
  .sf-rating-modern {
    margin: 10px 0;
  }
  
  /* Info items */
  .info-item-modern {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  /* Footer sa action buttons */
  .card-footer-modern {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 12px;
  }
  
  .card-footer-modern .action-btn {
    width: 44px;
    height: 44px;
  }
  
  .card-footer-modern .action-btn i {
    font-size: 18px;
  }
  
  /* Ukloni overlay kategorije na slici za mobile */
  .sf-category-badge-overlay {
    display: none;
  }
  
  /* Featured badge manji */
  .featured-badge {
    padding: 4px 10px;
    font-size: 10px;
  }
}

/* Dark mode support za kartice */
.dark-mode .sf-vender-list-wrap-modern {
  background: rgba(30, 30, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .sf-venders-title-modern {
  color: var(--color-white);
}

.dark-mode .info-item-modern {
  color: var(--color-gray-light);
}

.dark-mode .category-chip {
  background: rgba(6, 3, 141, 0.2);
  color: #93c5fd;
  border-color: rgba(6, 3, 141, 0.3);
}

.dark-mode .card-footer-modern {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
   BUSINESS DETAILS - HEADER SA NASLOVOM I AKCIJAMA
   ======================================== */

/* Header container - UVEK U ISTOJ LINIJI */
.servi-leRi-btn {
  display: flex;
  flex-wrap: nowrap !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

/* Naslov - može da se wrap-uje u više linija, ali ne pomera dugmiće */
.servi-leRi-btn .sf-provi-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding-right: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Action buttons grupa - FIKSNA ŠIRINA, ne sme da se smanjuje ili wrap-uje */
.servi-leRi-btn .action-btn-group {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Mobile optimizacija - ostaju u liniji sa naslovom */
@media (max-width: 576px) {
  .servi-leRi-btn {
    gap: 10px;
  }
  
  .servi-leRi-btn .sf-provi-title {
    font-size: 18px;
    line-height: 1.25;
    padding-right: 4px;
  }
  
  .servi-leRi-btn .action-btn-group {
    gap: 6px;
  }
  
  /* Malo manji dugmići na mobile za uštedu prostora */
  .servi-leRi-btn .action-btn {
    width: 38px;
    height: 38px;
  }
  
  .servi-leRi-btn .action-btn i {
    font-size: 16px;
  }
  
  /* Opcionalno: Sakrij close button na mobile ako treba više prostora */
  /* Otkomentariši sledeće ako želiš da sakriješ X dugme na mobile */
  /* .servi-leRi-btn .action-btn-close {
    display: none;
  } */
}

/* Extra small mobile - još kompaktniji layout */
@media (max-width: 400px) {
  .servi-leRi-btn {
    gap: 8px;
  }
  
  .servi-leRi-btn .sf-provi-title {
    font-size: 16px;
  }
  
  .servi-leRi-btn .action-btn {
    width: 36px;
    height: 36px;
  }
  
  .servi-leRi-btn .action-btn i {
    font-size: 15px;
  }
}

/* ========================================
   SEARCH MODAL MODERNIZATION
   ======================================== */

/* Modal backdrop - glassmorphism */
.modal-backdrop.show {
  background: rgba(6, 3, 141, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Search Modal Container */
#search-model .modal-dialog {
  max-width: 600px;
  margin: 100px auto;
  z-index: 10000;
}

#search-model .modal-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(6, 3, 141, 0.2);
  overflow: visible;
  position: relative;
}

/* Close button modernizacija */
#search-model .aon-login-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 400;
  color: var(--color-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

#search-model .aon-login-close:hover {
  background: rgba(239, 51, 64, 0.1);
  color: var(--color-secondary);
  transform: rotate(90deg) scale(1.1);
}

/* Modal body */
#search-model .modal-body {
  padding: 40px;
}

/* Modal naslov - dodaj ako nema */
.search-modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.search-modal-header h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, var(--color-black), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-modal-header p {
  font-size: 15px;
  color: var(--color-gray);
  margin: 0;
}

/* Step indicator - vizuelni vodič za redosled */
.search-step-indicator {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.search-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-gray);
  font-weight: 600;
}

.search-step-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 3, 141, 0.08);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid rgba(6, 3, 141, 0.15);
  transition: all 0.3s ease;
}

.search-step.active .search-step-number {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(6, 3, 141, 0.3);
  transform: scale(1.1);
}

.search-step.completed .search-step-number {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.search-step.completed .search-step-number::before {
  content: '✓';
  font-size: 16px;
}

.search-step-arrow {
  color: rgba(6, 3, 141, 0.2);
  margin: 0 8px;
}

/* Form group modernizacija */
#search-model .form-group {
  margin-bottom: 24px;
  position: relative;
}

/* Dodatni padding za form-group koja ima autocomplete */
#search-model .form-group:has(#searchOptions) {
  margin-bottom: 40px;
  z-index: 10;
}

/* Druga form-group treba veći padding-top ako je posle inputa sa autocomplete */
#search-model .form-group:has(#searchOptions) + .form-group {
  margin-top: 20px;
}

#search-model .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#search-model .form-group label span {
  color: var(--color-primary);
  font-size: 18px;
  margin-right: 4px;
}

/* Input modernizacija */
.aon-inputicon-box {
  position: relative;
  z-index: 1;
}

#search-model .sf-form-control {
  width: 100%;
  padding: 16px 50px 16px 20px;
  font-size: 16px;
  color: var(--color-black);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(6, 3, 141, 0.12);
  border-radius: 16px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 2;
}

#search-model .sf-form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(6, 3, 141, 0.15);
  background: white;
}

#search-model .sf-form-control::placeholder {
  color: rgba(0, 0, 0, 0.4);
  font-weight: 400;
}

/* Icon u inputu */
.aon-inputicon-box .aon-input-icon {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--color-primary);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 5;
}

#search-model .sf-form-control:focus ~ .aon-input-icon {
  color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

/* Tekst u inputu ne sme da ide ispod ikone */
#search-model input.sf-form-control {
  padding-right: 55px !important;
}

/* Select dropdown modernizacija */
.category-select .sf-select-box {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  color: var(--color-black);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(6, 3, 141, 0.12);
  border-radius: 16px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2306038D' stroke-width='2' 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;
  padding-right: 50px;
}

.category-select .sf-select-box:focus {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(6, 3, 141, 0.15);
  background-color: white;
}

.category-select .sf-select-box:hover {
  border-color: rgba(6, 3, 141, 0.25);
}

/* Bootstrap Select dropdown - custom styling */
#search-model .bootstrap-select {
  width: 100% !important;
}

#search-model .bootstrap-select .dropdown-toggle {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  color: var(--color-black);
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid rgba(6, 3, 141, 0.12) !important;
  border-radius: 16px !important;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: left;
}

#search-model .bootstrap-select .dropdown-toggle:focus,
#search-model .bootstrap-select.show .dropdown-toggle {
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 20px rgba(6, 3, 141, 0.15) !important;
  background-color: white !important;
}

#search-model .bootstrap-select .dropdown-toggle:hover {
  border-color: rgba(6, 3, 141, 0.25) !important;
}

/* Bootstrap Select dropdown menu - ZAOBLJENI UGLOVI I Z-INDEX */
#search-model .bootstrap-select .dropdown-menu {
  border-radius: 16px !important;
  border: 1px solid rgba(6, 3, 141, 0.08) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
  margin-top: 8px !important;
  padding: 8px 0 !important;
  overflow: hidden !important;
  z-index: 9999 !important;
  background: white !important;
}

/* Dropdown items */
#search-model .bootstrap-select .dropdown-menu li a {
  padding: 12px 20px !important;
  font-size: 15px !important;
  color: var(--color-black) !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

#search-model .bootstrap-select .dropdown-menu li a:hover {
  background: rgba(6, 3, 141, 0.06) !important;
  color: var(--color-primary) !important;
}

#search-model .bootstrap-select .dropdown-menu li.selected a {
  background: rgba(6, 3, 141, 0.1) !important;
  color: var(--color-primary) !important;
  font-weight: 600 !important;
}

/* Childcat image u dropdown-u */
#search-model .bootstrap-select .dropdown-menu .childcat-img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain;
  border-radius: 4px;
}

/* Caret (strelica) u select buttonu */
#search-model .bootstrap-select .dropdown-toggle .caret {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: none !important;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2306038D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

#search-model .bootstrap-select.show .dropdown-toggle .caret {
  transform: translateY(-50%) rotate(180deg);
}

/* Search options - autocomplete dropdown */
#searchOptions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 99999 !important;
  display: none;
  border: 1px solid rgba(6, 3, 141, 0.08);
}

#searchOptions.show {
  display: block;
  animation: slideDownFade 0.3s ease-out;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Autocomplete grupni naslov (kategorija) */
.search-option-category {
  padding: 12px 20px 8px 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(6, 3, 141, 0.04);
  border-bottom: 1px solid rgba(6, 3, 141, 0.08);
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Autocomplete stavka */
.search-option-item {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.search-option-item:last-child {
  border-bottom: none;
}

.search-option-item:hover {
  background: rgba(6, 3, 141, 0.06);
  padding-left: 24px;
}

.search-option-item i {
  font-size: 16px;
  color: var(--color-primary);
  min-width: 20px;
}

.search-option-item .option-text {
  flex: 1;
  font-size: 15px;
  color: var(--color-black);
  font-weight: 500;
}

.search-option-item .option-meta {
  font-size: 12px;
  color: var(--color-gray);
  font-weight: 600;
}

.search-option-item .option-arrow {
  font-size: 14px;
  color: var(--color-gray);
  opacity: 0;
  transition: all 0.2s ease;
}

.search-option-item:hover .option-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Highlighted match u autocomplete */
.search-option-item .highlight {
  background: rgba(6, 3, 141, 0.15);
  color: var(--color-primary);
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 4px;
}

/* Submit button modernizacija */
#search-model .site-button {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--color-primary), rgba(6, 3, 141, 0.9));
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 24px rgba(6, 3, 141, 0.3);
  position: relative;
  overflow: hidden;
}

#search-model .site-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

#search-model .site-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(6, 3, 141, 0.4);
}

#search-model .site-button:hover::before {
  left: 100%;
}

#search-model .site-button:active {
  transform: translateY(0px);
}

#search-model .site-button:disabled {
  background: rgba(0, 0, 0, 0.2);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Search tips - helper text */
.search-tips {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: rgba(6, 3, 141, 0.04);
  border-left: 4px solid var(--color-primary);
  border-radius: 12px;
  margin-bottom: 24px;
}

.search-tips i {
  font-size: 18px;
  color: var(--color-primary);
}

.search-tips p {
  margin: 0;
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.5;
}

/* Recent searches - opciono */
.recent-searches {
  margin-top: 20px;
}

.recent-searches-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.recent-searches-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recent-search-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(6, 3, 141, 0.06);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(6, 3, 141, 0.1);
}

.recent-search-tag:hover {
  background: rgba(6, 3, 141, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 3, 141, 0.15);
}

.recent-search-tag i {
  font-size: 12px;
}

/* Loading state */
.search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.search-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(6, 3, 141, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* No results */
.search-no-results {
  padding: 40px 20px;
  text-align: center;
}

.search-no-results i {
  font-size: 48px;
  color: rgba(6, 3, 141, 0.2);
  margin-bottom: 16px;
}

.search-no-results h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 8px;
}

.search-no-results p {
  font-size: 14px;
  color: var(--color-gray);
}

/* Responsive */
@media (max-width: 768px) {
  #search-model .modal-dialog {
    margin: 20px;
    max-width: calc(100% - 40px);
  }
  
  #search-model .modal-body {
    padding: 30px 20px;
  }
  
  .search-modal-header h3 {
    font-size: 24px;
  }
  
  .search-step-indicator {
    gap: 8px;
  }
  
  .search-step-text {
    display: none;
  }
  
  #searchOptions {
    max-height: 300px;
  }
}

@media (max-width: 576px) {
  #search-model .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }
  
  #search-model .modal-body {
    padding: 24px 16px;
  }
  
  .search-modal-header h3 {
    font-size: 20px;
  }
  
  #search-model .sf-form-control {
    padding: 14px 45px 14px 16px;
    font-size: 15px;
  }
  
  .category-select .sf-select-box {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  #search-model .site-button {
    padding: 16px 24px;
    font-size: 15px;
  }
}
.custom-select-wrapper {
    position: relative;
}

.custom-select-modern {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 16px;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(6, 3, 141, 0.12);
    border-radius: 16px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.custom-select-modern:hover {
    border-color: rgba(6, 3, 141, 0.25);
}

.custom-select-modern:focus {
    border-color: #06038D;
    box-shadow: 0 4px 20px rgba(6, 3, 141, 0.15);
    background: white;
}

.custom-select-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.02);
}

.custom-select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #06038D;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.custom-select-wrapper:hover .custom-select-arrow,
.custom-select-modern:focus ~ .custom-select-arrow {
    transform: translateY(-50%) scale(1.1);
}

/* Search Input - sa ikonom */
.search-input-group {
    position: relative;
    z-index: 100;
}

.search-input-wrapper {
    position: relative;
}

.search-input-modern {
    width: 100%;
    padding: 16px 55px 16px 20px;
    font-size: 16px;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(6, 3, 141, 0.12);
    border-radius: 16px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-input-modern:hover {
    border-color: rgba(6, 3, 141, 0.25);
}

.search-input-modern:focus {
    border-color: #06038D;
    box-shadow: 0 4px 20px rgba(6, 3, 141, 0.15);
    background: white;
}

.search-input-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.02);
}

.search-input-modern::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.search-input-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #06038D;
    pointer-events: none;
    z-index: 5;
    transition: all 0.3s ease;
}

.search-input-modern:focus ~ .search-input-icon {
    transform: translateY(-50%) scale(1.1);
}

/* Autocomplete Dropdown */
.search-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 99999;
    display: none;
    border: 1px solid rgba(6, 3, 141, 0.08);
}

.search-autocomplete-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.autocomplete-category {
    padding: 12px 20px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #06038D;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(6, 3, 141, 0.04);
    border-bottom: 1px solid rgba(6, 3, 141, 0.08);
    position: sticky;
    top: 0;
    z-index: 1;
}

.autocomplete-item {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: rgba(6, 3, 141, 0.06);
    padding-left: 24px;
}

.autocomplete-item i:first-child {
    font-size: 16px;
    color: #06038D;
    min-width: 20px;
}

.autocomplete-text {
    flex: 1;
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
}

.autocomplete-meta {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.autocomplete-arrow {
    font-size: 14px;
    color: #666;
    opacity: 0;
    transition: all 0.2s ease;
}

.autocomplete-item:hover .autocomplete-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Submit Button */
.search-submit-btn {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #06038D, rgba(6, 3, 141, 0.9));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 24px rgba(6, 3, 141, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.search-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(6, 3, 141, 0.4);
}

.search-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.search-submit-btn:disabled {
    background: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
    box-shadow: none;
}

/* Scrollbar styling */
.search-autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-autocomplete-dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.search-autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: rgba(6, 3, 141, 0.3);
    border-radius: 10px;
}

.search-autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 3, 141, 0.5);
}

/* Responsive */
@media (max-width: 576px) {
    .custom-select-modern,
    .search-input-modern {
        padding: 14px 45px 14px 16px;
        font-size: 15px;
    }
    
    .custom-select-arrow,
    .search-input-icon {
        right: 16px;
    }
    
    .search-submit-btn {
        padding: 16px 24px;
        font-size: 15px;
    }
    
    .search-step-text {
        display: none;
    }
}

/* ========================================
   AUTOCOMPLETE ENHANCEMENTS
   Dodatni stilovi iz autocomplete-arrow.css i autocomplete-additions.css
   ======================================== */

/* Autocomplete icon sličica - enhanced */
.autocomplete-icon-img {
    width: 32px;
    height: 32px;
    min-width: 32px;
    object-fit: contain;
    flex-shrink: 0;
    display: block !important;
    border-radius: 6px;
    background: rgba(6, 3, 141, 0.04);
    padding: 4px;
    transition: all 0.3s ease;
}

.autocomplete-item:hover .autocomplete-icon-img {
    transform: scale(1.1);
    background: rgba(6, 3, 141, 0.1);
}

/* Font Awesome ikonica alternativa */
.autocomplete-icon-fallback {
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #06038D 0%, #1a11c0 100%);
    color: white;
    border-radius: 8px;
    font-size: 16px;
    flex-shrink: 0;
    min-width: 32px;
}

/* Tekst - forsiraj vidljivost */
.autocomplete-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a !important;
    line-height: 1.4;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 20px;
}

/* Meta informacije - forsiraj vidljivost */
.autocomplete-meta {
    font-size: 12px;
    color: #666 !important;
    font-weight: 600;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.2s ease;
}

.autocomplete-item:hover .autocomplete-meta {
    background: rgba(6, 3, 141, 0.12);
    transform: scale(1.05);
}

/* Kategorija header - forsiraj vidljivost */
.autocomplete-category {
    padding: 12px 20px 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #06038D !important;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ebff 100%);
    border-bottom: 2px solid #06038D;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Autocomplete item - enhanced animacije */
.autocomplete-item {
    padding: 14px 20px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 0;
    animation: fadeInItem 0.3s ease forwards;
    min-height: 56px;
}

@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ebff 100%);
    padding-left: 24px;
    transform: translateX(4px);
}

/* Arrow enhancement - uvek suptilno vidljiva */
.autocomplete-arrow {
    color: #06038D;
    font-size: 14px;
    opacity: 0.3; /* ✅ FIX: suptilno vidljiva uvek */
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.autocomplete-item:hover .autocomplete-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Loading state enhancement */
.search-loading {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 16px;
}

.search-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #06038D;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.search-loading-text {
    font-size: 14px;
    color: #666 !important;
    font-weight: 500;
    display: block !important;
    opacity: 1 !important;
}

/* No results enhancement */
.search-no-results {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
    text-align: center;
}

.search-no-results i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 8px;
}

.search-no-results h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a !important;
    margin: 0;
    display: block !important;
    opacity: 1 !important;
}

.search-no-results p {
    font-size: 14px;
    color: #666 !important;
    margin: 0;
    display: block !important;
    opacity: 1 !important;
}

/* Scrollbar enhancement */
.search-autocomplete-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-autocomplete-dropdown::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 0 12px 12px 0;
}

.search-autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #06038D;
    border-radius: 4px;
}

.search-autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: #1a11c0;
}

/* Debug mode - ukloni u production */
.debug-mode .autocomplete-item {
    border: 2px solid red !important;
    background: rgba(255, 0, 0, 0.05) !important;
}

.debug-mode .autocomplete-text {
    border: 1px dashed blue !important;
    background: rgba(0, 0, 255, 0.05) !important;
}

.debug-mode .autocomplete-meta {
    border: 1px dashed green !important;
    background: rgba(0, 255, 0, 0.05) !important;
}

/* Mobile optimizacija */
@media (max-width: 576px) {
    .search-autocomplete-dropdown {
        max-height: 300px;
        border-radius: 8px;
    }
    
    .autocomplete-item {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .autocomplete-item:hover {
        padding-left: 20px;
    }
    
    .autocomplete-icon-img,
    .autocomplete-icon-fallback {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
    
    .autocomplete-text {
        font-size: 14px;
    }
    
    .autocomplete-meta {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .autocomplete-category {
        padding: 10px 16px 6px;
        font-size: 11px;
    }
}

/* ========================================
   CUSTOM REGION SELECT SA SLIČICAMA
   Moderan dropdown sa animacijama
   ======================================== */

.custom-region-select-wrapper {
    position: relative;
    width: 100%;
}

/* Button koji otvara dropdown */
.custom-region-button {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 16px;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(6, 3, 141, 0.12);
    border-radius: 16px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.custom-region-button:hover {
    border-color: rgba(6, 3, 141, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.custom-region-button:focus,
.custom-region-button:active {
    border-color: #EF3340; /* ✅ Crveni border na klik */
    box-shadow: 0 4px 20px rgba(239, 51, 64, 0.15); /* Crveni shadow */
    background: white;
}

/* Icon wrapper */
.region-icon-wrapper {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 3, 141, 0.06);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.custom-region-button:hover .region-icon-wrapper {
    background: rgba(6, 3, 141, 0.1);
    transform: scale(1.05);
}

/* Ikonica - slika */
.region-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Ikonica - Font Awesome fallback */
.region-icon-default,
.region-icon-fallback {
    font-size: 16px;
    color: #06038D;
}

/* Selected text */
.region-selected-text {
    flex: 1;
    font-weight: 500;
}

/* Dropdown arrow */
.region-dropdown-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #06038D;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.custom-region-button:hover .region-dropdown-arrow {
    transform: translateY(-50%) scale(1.1);
}

/* Dropdown lista */
.custom-region-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 99999;
    display: none;
    border: 1px solid rgba(6, 3, 141, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.custom-region-dropdown.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: slideDownFade 0.3s ease-out;
}

/* Dropdown item */
.region-dropdown-item {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 0;
    animation: fadeInItem 0.3s ease forwards;
}

.region-dropdown-item:last-child {
    border-bottom: none;
}

.region-dropdown-item:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ebff 100%);
    padding-left: 24px;
}

/* Region name */
.region-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

/* Check icon */
.region-check-icon {
    font-size: 16px;
    color: #06038D;
    opacity: 0;
    transition: all 0.2s ease;
}

.region-dropdown-item.selected {
    background: rgba(6, 3, 141, 0.06);
}

.region-dropdown-item.selected .region-check-icon {
    opacity: 1;
}

.region-dropdown-item.selected .region-name {
    color: #06038D;
    font-weight: 700;
}

/* Scrollbar */
.custom-region-dropdown::-webkit-scrollbar {
    width: 8px;
}

.custom-region-dropdown::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 0 12px 12px 0;
}

.custom-region-dropdown::-webkit-scrollbar-thumb {
    background: #06038D;
    border-radius: 4px;
}

.custom-region-dropdown::-webkit-scrollbar-thumb:hover {
    background: #1a11c0;
}

/* Mobile optimizacija */
@media (max-width: 576px) {
    .custom-region-button {
        padding: 14px 45px 14px 16px;
        font-size: 15px;
    }
    
    .region-icon-wrapper {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
    
    .region-icon-img {
        width: 20px;
        height: 20px;
    }
    
    .region-icon-default,
    .region-icon-fallback {
        font-size: 14px;
    }
    
    .region-selected-text {
        font-size: 15px;
    }
    
    .region-dropdown-arrow {
        right: 16px;
    }
    
    .custom-region-dropdown {
        max-height: 300px;
        border-radius: 12px;
    }
    
    .region-dropdown-item {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .region-dropdown-item:hover {
        padding-left: 20px;
    }
    
    .region-name {
        font-size: 14px;
    }
}


.btn-filter-primary {
    padding: 14px 32px;
    background: linear-gradient(135deg, #EF3340 0%, #d62835 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 51, 64, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-filter-primary:hover {
    background: linear-gradient(135deg, #d62835 0%, #c21e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 51, 64, 0.35);
}

.btn-filter-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(239, 51, 64, 0.3);
}

.btn-filter-primary i {
    font-size: 16px;
}
.btn-reset-icon-only {
    width: 48px;
    height: 48px;
    padding: 0;
    background: white;
    color: #EF3340;
    border: 2px solid #EF3340;
    border-radius: 50%; /* Perfect circle */
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-reset-icon-only:hover {
    background: #EF3340;
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(239, 51, 64, 0.25);
}

.btn-reset-icon-only:active {
    transform: translateY(0) scale(1);
}

.btn-reset-icon-only i {
    transition: transform 0.3s ease;
}

.btn-reset-icon-only:hover i {
    transform: rotate(-180deg);
}


/* Wrapper za dugmad - responsive flex */
.filter-buttons-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 10px;
}

/* Mobile optimizacija - Tablets & Mobile (max-width 768px) */
@media (max-width: 768px) {
    .btn-filter-primary {
        padding: 11px 24px; /* Malo manji padding */
        font-size: 15px;
        gap: 8px;
    }
    
    .btn-reset-icon-only {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }
}

/* Mobile optimizacija - Smartphones (max-width 576px) */
@media (max-width: 576px) {
    .btn-filter-primary {
        padding: 10px 20px; /* Manji padding */
        font-size: 14px; /* Manji font */
        gap: 6px;
        border-radius: 25px;
        flex: 1; /* Zauzima preostali prostor */
        min-width: 0; /* Allow shrinking */
        justify-content: center;
    }
    
    .btn-filter-primary i {
        font-size: 14px;
    }
    
    .btn-reset-icon-only {
        width: 42px; /* Manji krug */
        height: 42px;
        font-size: 16px;
        flex-shrink: 0; /* Ne sme da se smanjuje */
    }
    
    /* Row sa dugmadima */
    .filter-buttons-row {
        gap: 8px;
        padding-top: 8px;
    }
}

/* Extra small mobile - Very small screens (max-width 400px) */
@media (max-width: 400px) {
    .btn-filter-primary {
        padding: 9px 16px;
        font-size: 13px;
        gap: 5px;
        border-radius: 22px;
    }
    
    .btn-filter-primary i {
        font-size: 13px;
    }
    
    .btn-reset-icon-only {
        width: 38px;
        height: 38px;
        font-size: 14px;
        border-width: 1.5px; /* Tanja border */
    }
    
    .filter-buttons-row {
        gap: 6px;
    }
}

/* Landscape mode fix */
@media (max-height: 500px) and (orientation: landscape) {
    .btn-filter-primary {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .btn-reset-icon-only {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

.sf-searchbar-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Filter header */
.sf-searchbar-box h3 {
    color: #333 !important;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    padding: 20px 24px 16px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.sf-searchbar-box hr {
    margin: 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(6, 3, 141, 0.12) 50%, transparent 100%);
}

/* Filter content area - scrollable */
.sf-searchbar-area {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 3, 141, 0.3) rgba(6, 3, 141, 0.05);
}

.sf-searchbar-area::-webkit-scrollbar {
    width: 6px;
}

.sf-searchbar-area::-webkit-scrollbar-track {
    background: rgba(6, 3, 141, 0.05);
    border-radius: 10px;
}

.sf-searchbar-area::-webkit-scrollbar-thumb {
    background: rgba(6, 3, 141, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.sf-searchbar-area::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 3, 141, 0.5);
}

/* Filter items */
.sf-searchbar-area > li {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.3s ease;
}

.sf-searchbar-area > li:hover {
    background: rgba(6, 3, 141, 0.02);
}

.sf-searchbar-area > li:last-child {
    border-bottom: none;
}

/* Filter title */
.sf-search-title {
    margin-bottom: 12px;
}

.sf-search-title label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.sf-search-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.sf-search-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.7;
}

/* Input fields - modern style */
.sf-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(6, 3, 141, 0.12);
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    background: white;
    transition: all 0.3s ease;
}

.sf-form-control:focus {
    outline: none;
    border-color: #EF3340;
    box-shadow: 0 0 0 4px rgba(239, 51, 64, 0.08);
    background: #fff;
}

.sf-form-control:hover {
    border-color: rgba(6, 3, 141, 0.2);
}

/* Select boxes */
.sf-select-box {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2306038D' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Checkboxes - modern style */
.sf-radio-checkbox {
    margin-bottom: 12px;
    position: relative;
}

.sf-radio-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.sf-radio-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
}

.sf-radio-checkbox label:hover {
    background: rgba(6, 3, 141, 0.05);
    color: #333;
}

.sf-radio-checkbox label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid rgba(6, 3, 141, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sf-radio-checkbox input[type="checkbox"]:checked + label {
    background: rgba(239, 51, 64, 0.08);
    color: #EF3340;
    font-weight: 600;
}

.sf-radio-checkbox input[type="checkbox"]:checked + label::before {
    background: #EF3340;
    border-color: #EF3340;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='10' viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5L4.5 8.5L11 1.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Subcategories & Districts container */
#podkategorijeLista,
#distriktLista {
    margin-top: 12px;
    padding: 12px;
    background: rgba(6, 3, 141, 0.03);
    border-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
}

#podkategorijeLista::-webkit-scrollbar,
#distriktLista::-webkit-scrollbar {
    width: 4px;
}

#podkategorijeLista::-webkit-scrollbar-track,
#distriktLista::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

#podkategorijeLista::-webkit-scrollbar-thumb,
#distriktLista::-webkit-scrollbar-thumb {
    background: rgba(6, 3, 141, 0.3);
    border-radius: 10px;
}


/* ========================================
   ANIMATIONS & MICRO-INTERACTIONS
   ======================================== */

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sf-searchbar-area > li {
    animation: fadeInUp 0.3s ease forwards;
}

.sf-searchbar-area > li:nth-child(1) { animation-delay: 0.05s; }
.sf-searchbar-area > li:nth-child(2) { animation-delay: 0.1s; }
.sf-searchbar-area > li:nth-child(3) { animation-delay: 0.15s; }

/* Input focus animation */
.sf-form-control {
    position: relative;
}

.sf-form-control:focus {
    transform: translateY(-1px);
}

/* Checkbox pulse on check */
.sf-radio-checkbox input[type="checkbox"]:checked + label::before {
    animation: checkPulse 0.3s ease;
}

@keyframes checkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========================================
   LOADING STATE (Optional)
   ======================================== */

.sf-searchbar-box.loading {
    pointer-events: none;
    opacity: 0.6;
}

.sf-searchbar-box.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(6, 3, 141, 0.2);
    border-top-color: #06038D;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus visible for keyboard navigation */
.sf-form-control:focus-visible,
.sf-radio-checkbox label:focus-visible {
    outline: 2px solid #EF3340;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* CHECKBOX ALIGNMENT */
.sf-radio-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
    line-height: 1.4;
}

.sf-radio-checkbox label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-right: 10px;
    border: 2px solid rgba(6, 3, 141, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    vertical-align: middle;
}

.sf-radio-checkbox input[type="checkbox"]:checked + label {
    background: rgba(239, 51, 64, 0.08);
    color: #EF3340;
    font-weight: 600;
}

.sf-radio-checkbox input[type="checkbox"]:checked + label::before {
    background: #EF3340;
    border-color: #EF3340;
    background-repeat: no-repeat;
    background-position: center;
}


/* === END OF MODERN UTILITIES === */