/*
 * BH IZLOG — Light mode CSS
 * Aktivira se kad <html data-theme="light">.
 * Kombinacija: attribute selektori za inline stilove + direktni CSS za elemente.
 */

/* ══════════════════════════════════════════════════════════════
   1. BODY & OSNOVA
   ══════════════════════════════════════════════════════════════ */
html[data-theme="light"] body {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* ══════════════════════════════════════════════════════════════
   2. BACKGROUNDS — inline style attribute selektori
   ══════════════════════════════════════════════════════════════ */

/* Najdublji tamni (#0d0f14, #080a0e, #0b0c10) → najsvjetlija površina */
html[data-theme="light"] [style*="background:#0d0f14"],
html[data-theme="light"] [style*="background: #0d0f14"],
html[data-theme="light"] [style*="background:#0d1017"],
html[data-theme="light"] [style*="background:#080a0e"],
html[data-theme="light"] [style*="background:#0b0c10"],
html[data-theme="light"] [style*="background:#0B0C10"],
html[data-theme="light"] [style*="background:#111318"],
html[data-theme="light"] [style*="background: #111318"],
html[data-theme="light"] [style*="background:#111520"],
html[data-theme="light"] [style*="background:#0f1014"],
html[data-theme="light"] [style*="background:#13151e"] {
  background: #f1f5f9 !important;
}

/* Površinski tamni (#1a1c24, #1e2028, #1e2035) → bijela površina */
html[data-theme="light"] [style*="background:#1a1c24"],
html[data-theme="light"] [style*="background: #1a1c24"],
html[data-theme="light"] [style*="background:#1e2028"],
html[data-theme="light"] [style*="background:#1e2035"] {
  background: #ffffff !important;
}

/* Srednji tamni (#2a2d38, #242630) */
html[data-theme="light"] [style*="background:#2a2d38"],
html[data-theme="light"] [style*="background: #2a2d38"],
html[data-theme="light"] [style*="background:#242630"],
html[data-theme="light"] [style*="background: #242630"],
html[data-theme="light"] [style*="background: rgb(36, 38, 48)"] {
  background: #e2e8f0 !important;
}

/* rgba bijele (overlay efekti na tamnoj pozadini) → ekvivalent na svjetloj */
html[data-theme="light"] [style*="rgba(255,255,255,.03)"] { background: rgba(0,0,0,.03) !important; }
html[data-theme="light"] [style*="rgba(255,255,255,.04)"] { background: rgba(0,0,0,.04) !important; }
html[data-theme="light"] [style*="rgba(255,255,255,.05)"] { background: rgba(0,0,0,.04) !important; }
html[data-theme="light"] [style*="rgba(255,255,255,.06)"] { background: rgba(0,0,0,.05) !important; }
html[data-theme="light"] [style*="rgba(255,255,255,.07)"] { background: rgba(0,0,0,.05) !important; }
html[data-theme="light"] [style*="rgba(255,255,255,.08)"] { background: rgba(0,0,0,.06) !important; }

/* ══════════════════════════════════════════════════════════════
   3. TEXT COLORS — inline style selektori
   ══════════════════════════════════════════════════════════════ */

/* Bijeli tekst → tamni */
html[data-theme="light"] [style*="color:white"],
html[data-theme="light"] [style*="color: white"],
html[data-theme="light"] [style*="color:#fff"],
html[data-theme="light"] [style*="color: #fff"],
html[data-theme="light"] [style*="color:#ffffff"],
html[data-theme="light"] [style*="color: #ffffff"],
html[data-theme="light"] [style*="color:#f5f5f4"],
html[data-theme="light"] [style*="color: #f5f5f4"],
html[data-theme="light"] [style*="color:#f9fafb"],
html[data-theme="light"] [style*="color: #f9fafb"],
html[data-theme="light"] [style*="color:#e5e7eb"],
html[data-theme="light"] [style*="color: #e5e7eb"],
html[data-theme="light"] [style*="color:#e8e6e3"],
html[data-theme="light"] [style*="color: #e8e6e3"],
html[data-theme="light"] [style*="color:#d6d3d1"],
html[data-theme="light"] [style*="color: #d6d3d1"],
html[data-theme="light"] [style*="color:#e2e0dc"],
html[data-theme="light"] [style*="color: #e2e0dc"],
html[data-theme="light"] [style*="color:#fafaf9"],
html[data-theme="light"] [style*="color: #fafaf9"] {
  color: #0f172a !important;
}

/* Sivi tekst - srednji tonovi */
html[data-theme="light"] [style*="color:#9ca3af"],
html[data-theme="light"] [style*="color: #9ca3af"] {
  color: #475569 !important;
}
html[data-theme="light"] [style*="color:#6b7280"],
html[data-theme="light"] [style*="color: #6b7280"] {
  color: #4b5563 !important;
}
html[data-theme="light"] [style*="color:#4b5563"],
html[data-theme="light"] [style*="color: #4b5563"] {
  color: #64748b !important;
}
html[data-theme="light"] [style*="color:#374151"],
html[data-theme="light"] [style*="color: #374151"] {
  color: #94a3b8 !important;
}
html[data-theme="light"] [style*="color:#d1d5db"],
html[data-theme="light"] [style*="color: #d1d5db"] {
  color: #475569 !important;
}
/* Svijetli amber akcent (na tamnoj pozadini čitljiv, na svijetloj slab kontrast) -> tamniji amber */
html[data-theme="light"] [style*="color:#fbbf24"],
html[data-theme="light"] [style*="color: #fbbf24"] {
  color: #b45309 !important;
}

/* ══════════════════════════════════════════════════════════════
   4. BORDERS — inline style selektori
   ══════════════════════════════════════════════════════════════ */
html[data-theme="light"] [style*="border:1px solid #2a2d38"],
html[data-theme="light"] [style*="border: 1px solid #2a2d38"],
html[data-theme="light"] [style*="border-top:1px solid #2a2d38"],
html[data-theme="light"] [style*="border-bottom:1px solid #2a2d38"],
html[data-theme="light"] [style*="border-left:1px solid #2a2d38"],
html[data-theme="light"] [style*="border-right:1px solid #2a2d38"],
html[data-theme="light"] [style*="border:1px solid #1f2129"],
html[data-theme="light"] [style*="border-top:1px solid #1f2129"],
html[data-theme="light"] [style*="border-bottom:1px solid #1f2129"] {
  border-color: #e2e8f0 !important;
}
html[data-theme="light"] [style*="border:1.5px dashed #2a2d38"] {
  border-color: #cbd5e1 !important;
}

/* rgba(255,255,255,...) borders */
html[data-theme="light"] [style*="border:1px solid rgba(255,255,255,.06)"],
html[data-theme="light"] [style*="border:1px solid rgba(255,255,255,.07)"],
html[data-theme="light"] [style*="border:1px solid rgba(255,255,255,.08)"] {
  border-color: rgba(0,0,0,.08) !important;
}

/* ══════════════════════════════════════════════════════════════
   5. NAVIGACIJA — direktni CSS (override i onmouseover stilove)
   ══════════════════════════════════════════════════════════════ */
html[data-theme="light"] nav {
  background: #ffffff !important;
  border-bottom-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
}

html[data-theme="light"] nav a {
  color: #374151 !important;
}

html[data-theme="light"] nav a:hover {
  color: #0f172a !important;
  background: rgba(0,0,0,.05) !important;
}

/* Active nav link */
html[data-theme="light"] nav a[style*="color:#f59e0b"] {
  color: #d97706 !important;
  background: rgba(245,158,11,.1) !important;
}

/* Logo tekst */
html[data-theme="light"] nav a span[style*="color:#f5f5f4"] {
  color: #0f172a !important;
}

/* Hamburger dugme */
html[data-theme="light"] #navToggle {
  border-color: #e2e8f0 !important;
  background: #f8fafc !important;
}
html[data-theme="light"] #navToggle svg { stroke: #374151 !important; }

/* Mobile meni */
html[data-theme="light"] #mobileMenu {
  border-top-color: #e2e8f0 !important;
}
html[data-theme="light"] #mobileMenu a {
  color: #374151 !important;
}

/* Nav search input */
html[data-theme="light"] #navSearchInput {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}
html[data-theme="light"] #navSearchInput::placeholder { color: #94a3b8 !important; }

/* Autocomplete dropdown */
html[data-theme="light"] #navDrop {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.12) !important;
}
html[data-theme="light"] #navDrop a {
  border-bottom-color: #f1f5f9 !important;
  color: #0f172a !important;
}
html[data-theme="light"] #navDrop a:hover,
html[data-theme="light"] #navDrop a[style*="background:#0d0f14"],
html[data-theme="light"] #navDrop a[style*="background:#111318"] {
  background: #f8fafc !important;
}

/* Theme toggle dugme */
html[data-theme="light"] [data-theme-toggle] {
  border-color: #e2e8f0 !important;
  background: #f8fafc !important;
}
html[data-theme="light"] [data-theme-toggle]:hover {
  border-color: rgba(217,119,6,.4) !important;
  background: rgba(245,158,11,.08) !important;
}

/* Prijava dugme u navbaru */
html[data-theme="light"] nav a[href*="login.php"] {
  color: #374151 !important;
  border-color: #e2e8f0 !important;
  background: #f8fafc !important;
}
html[data-theme="light"] nav a[href*="login.php"]:hover {
  color: #0f172a !important;
  border-color: rgba(217,119,6,.4) !important;
}

/* ══════════════════════════════════════════════════════════════
   6. FOOTER
   ══════════════════════════════════════════════════════════════ */
html[data-theme="light"] footer {
  background: #e8edf5 !important;
  border-top-color: #dde3ed !important;
}
html[data-theme="light"] footer h4 { color: #1e293b !important; }
html[data-theme="light"] footer a  { color: #64748b !important; }
html[data-theme="light"] footer a:hover { color: #d97706 !important; }
html[data-theme="light"] footer p  { color: #64748b !important; }

/* Bottom bar footera */
html[data-theme="light"] footer [style*="border-top:1px solid #2a2d38"] {
  border-top-color: #dde3ed !important;
}

/* Pre-footer banner zona */
html[data-theme="light"] [style*="background:#111318"][style*="border-top"] {
  background: #edf0f5 !important;
  border-top-color: #dde3ed !important;
}

/* ══════════════════════════════════════════════════════════════
   7. FORME I INPUTI
   ══════════════════════════════════════════════════════════════ */
html[data-theme="light"] input:not([type=color]):not([type=checkbox]):not([type=radio]):not([type=range]),
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}
html[data-theme="light"] input:focus:not([type=color]):not([type=checkbox]):not([type=radio]),
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245,158,11,.12) !important;
  background: #ffffff !important;
}
html[data-theme="light"] ::placeholder { color: #94a3b8 !important; }

/* ══════════════════════════════════════════════════════════════
   8. TAILWIND UTILITY KLASE
   ══════════════════════════════════════════════════════════════ */
html[data-theme="light"] .bg-\[\#111318\]  { background: #f1f5f9 !important; }
html[data-theme="light"] .bg-\[\#1a1c24\]  { background: #ffffff !important; }
html[data-theme="light"] .bg-\[\#1A1C24\]  { background: #ffffff !important; }
html[data-theme="light"] .bg-\[\#1e2028\]  { background: #ffffff !important; }
html[data-theme="light"] .bg-\[\#1E2028\]  { background: #ffffff !important; }
html[data-theme="light"] .bg-\[\#0d0f14\]  { background: #e8edf5 !important; }
html[data-theme="light"] .bg-\[\#0b0c10\]  { background: #e8edf5 !important; }

html[data-theme="light"] .text-white       { color: #0f172a !important; }
html[data-theme="light"] .text-gray-100    { color: #1e293b !important; }
html[data-theme="light"] .text-gray-200    { color: #334155 !important; }
html[data-theme="light"] .text-gray-300    { color: #475569 !important; }
html[data-theme="light"] .text-gray-400    { color: #475569 !important; }
html[data-theme="light"] .text-gray-500    { color: #64748b !important; }
html[data-theme="light"] .text-gray-600    { color: #64748b !important; }
html[data-theme="light"] .text-gray-700    { color: #94a3b8 !important; }

html[data-theme="light"] .border-gray-700,
html[data-theme="light"] .border-gray-800,
html[data-theme="light"] .border-gray-900  { border-color: #e2e8f0 !important; }

html[data-theme="light"] .divide-gray-800 > * + * { border-color: #e2e8f0 !important; }

/* Tailwind bg-gray classes */
html[data-theme="light"] .bg-gray-800  { background: #f1f5f9 !important; }
html[data-theme="light"] .bg-gray-700  { background: #e2e8f0 !important; }
html[data-theme="light"] .bg-gray-900  { background: #e8edf5 !important; }

/* ══════════════════════════════════════════════════════════════
   9. KARTICE / SURFACE ELEMENTI
   ══════════════════════════════════════════════════════════════ */

/* Box-shadow prilagodba (tamni shadow se loše vidi na tamnoj podlozi, na svjetloj je ok) */
html[data-theme="light"] [style*="box-shadow:0 "] {
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06) !important;
}

/* rgba(0,0,0,...) shadows — ostaviti nepromijenjene, izgledaju dobro na light */

/* ══════════════════════════════════════════════════════════════
   10. LEAFLET MAPA
   ══════════════════════════════════════════════════════════════ */
html[data-theme="light"] .leaflet-container { background: #e8edf5 !important; }
html[data-theme="light"] .leaflet-tile-pane { filter: none !important; }
html[data-theme="light"] .leaflet-popup-content-wrapper {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.15) !important;
}
html[data-theme="light"] .leaflet-popup-tip { background: #ffffff !important; }
html[data-theme="light"] .leaflet-popup-content small,
html[data-theme="light"] .leaflet-popup-close-button {
  color: #475569 !important;
}
html[data-theme="light"] .leaflet-control-zoom a {
  background: #ffffff !important;
  color: #374151 !important;
  border-color: #e2e8f0 !important;
}
html[data-theme="light"] #firma-mapa * { transition: none !important; }

/* ══════════════════════════════════════════════════════════════
   11. SCROLLBAR
   ══════════════════════════════════════════════════════════════ */
html[data-theme="light"] ::-webkit-scrollbar-track { background: #f1f5f9; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ══════════════════════════════════════════════════════════════
   12. SPECIFIČNI KOMPONENTI
   ══════════════════════════════════════════════════════════════ */

/* Kartica firme (.firma-card) - definisana kao PRAVA CSS klasa u <style>
   bloku svake stranice (firme.php i sl.), ne kao inline stil, pa je
   attribute selektori gore ne mogu uhvatiti. Bez ovoga tekst (već
   flipovan u tamnu boju generičkim pravilima) ostaje nevidljiv na
   i dalje tamnoj kartici. */
html[data-theme="light"] .firma-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
html[data-theme="light"] .logo-placeholder {
  background: #f1f5f9 !important;
}
html[data-theme="light"] .f-input {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}
html[data-theme="light"] .f-input::placeholder { color: #94a3b8 !important; }
html[data-theme="light"] .bc-link { color: #64748b !important; }

/* "Istaknute firme" karusel na početnoj (index.php) - iste prave CSS klase */
html[data-theme="light"] .ist-card {
  background: #ffffff !important;
  border-color: rgba(217,119,6,.25) !important;
}
html[data-theme="light"] .ist-logo,
html[data-theme="light"] .ist-btn {
  background: #f8fafc !important;
}

/* profil_firme.php - prave CSS klase (ne inline stilovi) */
html[data-theme="light"] .pf-nav {
  background: #ffffff !important;
  border-bottom-color: #e2e8f0 !important;
}
html[data-theme="light"] .pf-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

/* uporedi.php - tabela poređenja firmi, prave CSS klase */
html[data-theme="light"] .col-head {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html[data-theme="light"] .row-val {
  background: #ffffff !important;
  color: #334155 !important;
  border-top-color: #e2e8f0 !important;
  border-bottom-color: #e2e8f0 !important;
}

/* Ad placeholder oznaka */
html[data-theme="light"] .ad-slot-label {
  background: #f1f5f9 !important;
}

/* kategorije.php, kontakt.php, o-nama.php - prave CSS klase (ne inline stilovi) */
html[data-theme="light"] .kat-card,
html[data-theme="light"] .info-card,
html[data-theme="light"] .card,
html[data-theme="light"] .stat-box {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
html[data-theme="light"] .kat-title {
  color: #0f172a !important;
}

/* privatnost.php, uvjeti.php - .prose-dark klasa (ne inline stilovi) */
html[data-theme="light"] .prose-dark h2 {
  color: #0f172a !important;
  border-bottom-color: #e2e8f0 !important;
}
html[data-theme="light"] .prose-dark p,
html[data-theme="light"] .prose-dark li {
  color: #475569 !important;
}
html[data-theme="light"] .prose-dark strong {
  color: #1e293b !important;
}
html[data-theme="light"] .prose-dark ul li::before {
  color: #b45309 !important;
}

/* Žuti akcent (#facc15) - isti problem kao #fbbf24, slab kontrast na svijetloj pozadini */
html[data-theme="light"] [style*="color:#facc15"],
html[data-theme="light"] [style*="color: #facc15"],
html[data-theme="light"] .text-yellow-300,
html[data-theme="light"] .text-yellow-400,
html[data-theme="light"] .text-yellow-500 {
  color: #a16207 !important;
}
html[data-theme="light"] .text-orange-400 {
  color: #c2410c !important;
}

/* Admin input klasa */
html[data-theme="light"] .admin-input {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

/* Stat cards */
html[data-theme="light"] .stat-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Tab badges, pill elements */
html[data-theme="light"] [style*="border-radius:100px"][style*="rgba(245,158,11"] {
  background: rgba(217,119,6,.12) !important;
  border-color: rgba(217,119,6,.3) !important;
}

/* Horizontalne linije / dividers */
html[data-theme="light"] [style*="height:1px"][style*="#2a2d38"],
html[data-theme="light"] [style*="height:1px"][style*="#1f2129"] {
  background: #e2e8f0 !important;
}
html[data-theme="light"] hr { border-color: #e2e8f0 !important; }

/* Sjenke na karticama s dark background */
html[data-theme="light"] [style*="background:#1a1c24"][style*="border-radius"] {
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04) !important;
}

/* ══════════════════════════════════════════════════════════════
   14. RGB EKVIVALENTI — kad JavaScript dirne .style na elementu
   (npr. el.style.display='flex'), browser prepiše CIJELI style
   atribut i pretvori hex boje u rgb(...) format. Tada attribute
   selektori koji traže "#hex" više ne pogađaju. Ovi rgb() dupli
   pokrivaju isti slučaj za JS-kontrolisane elemente (cookie traka,
   modali, dropdown meniji koji se otvaraju/zatvaraju preko JS-a).
   ══════════════════════════════════════════════════════════════ */
html[data-theme="light"] [style*="background: rgb(13, 15, 20)"],
html[data-theme="light"] [style*="background: rgb(8, 10, 14)"],
html[data-theme="light"] [style*="background: rgb(11, 12, 16)"],
html[data-theme="light"] [style*="background: rgb(17, 19, 24)"],
html[data-theme="light"] [style*="background: rgb(17, 21, 32)"],
html[data-theme="light"] [style*="background: rgb(15, 16, 20)"],
html[data-theme="light"] [style*="background: rgb(19, 21, 30)"] {
  background: #f1f5f9 !important;
}
html[data-theme="light"] [style*="background: rgb(26, 28, 36)"],
html[data-theme="light"] [style*="background: rgb(30, 32, 40)"],
html[data-theme="light"] [style*="background: rgb(30, 32, 53)"] {
  background: #ffffff !important;
}
html[data-theme="light"] [style*="background: rgb(42, 45, 56)"] {
  background: #e2e8f0 !important;
}
html[data-theme="light"] [style*="border-top: 1px solid rgb(42, 45, 56)"],
html[data-theme="light"] [style*="border: 1px solid rgb(42, 45, 56)"],
html[data-theme="light"] [style*="border-color: rgb(42, 45, 56)"] {
  border-color: #e2e8f0 !important;
}
html[data-theme="light"] [style*="color: rgb(255, 255, 255)"],
html[data-theme="light"] [style*="color: rgb(245, 245, 244)"],
html[data-theme="light"] [style*="color: rgb(249, 250, 251)"],
html[data-theme="light"] [style*="color: rgb(229, 231, 235)"] {
  color: #0f172a !important;
}
html[data-theme="light"] [style*="color: rgb(156, 163, 175)"] { color: #475569 !important; }
html[data-theme="light"] [style*="color: rgb(107, 114, 128)"] { color: #4b5563 !important; }
html[data-theme="light"] [style*="color: rgb(75, 85, 99)"]    { color: #64748b !important; }
html[data-theme="light"] [style*="color: rgb(55, 65, 81)"]    { color: #94a3b8 !important; }

/* ══════════════════════════════════════════════════════════════
   15. UVIJEK-TAMNI BRENDIRANI ELEMENTI — pozadina im je gradient
   ili slika pa je CSS selektori ne mogu uhvatiti; zato im tekst
   MORA ostati svijetao u oba moda, inače je nečitljiv (taman na
   tamnom). Ovo mora doći NAKON gore navedenih generičkih pravila
   da bi ih ispravno poništilo.
   ══════════════════════════════════════════════════════════════ */
html[data-theme="light"] .ad-badge {
  color: #fff !important;
}
html[data-theme="light"] #nl-popup h3,
html[data-theme="light"] #nl-popup p,
html[data-theme="light"] #nl-popup label,
html[data-theme="light"] #nl-popup input,
html[data-theme="light"] #nl-popup #nl-success p:first-of-type {
  color: #fff !important;
}
html[data-theme="light"] #nl-popup p,
html[data-theme="light"] #nl-popup label {
  color: #9ca3af !important;
}
html[data-theme="light"] #nl-popup > div {
  background: #111318 !important;
}
html[data-theme="light"] #nl-popup input {
  background: #1a1c24 !important;
  border-color: #2a2d38 !important;
}
/* Lightbox foto pregled - uvijek taman preko cijelog ekrana, dugme za zatvaranje mora ostati svijetlo */
html[data-theme="light"] #lightbox button {
  color: #fff !important;
}

/* Dekorativna SVG silueta grada na početnoj (hero sekcija) - tvrdo kodirane tamne boje
   u gradijentima koje CSS ne moze promijeniti, pa se sakriva u light modu. */
html[data-theme="light"] #hero-skyline-bg {
  display: none !important;
}

/* Baneri (oglasi) - ako admin uploaduje posebnu light-mode verziju slike, prikaži nju
   umjesto tamne. Ako light verzija ne postoji, ostaje prikazana zadana (dark) slika. */
html[data-theme="light"] .bh-banner-img-light {
  display: block !important;
}
html[data-theme="light"] picture.bh-banner-pic:has(.bh-banner-img-light) .bh-banner-img-dark {
  display: none !important;
}

/* kategorije.php zaglavlje - tamni gradient koji obicni attribute selektori ne mogu uhvatiti
   (traže ravnu boju, ne linear-gradient funkciju), pa se posebno mapira ovdje. */
html[data-theme="light"] [style*="linear-gradient(180deg,#1a1c24 0%,#111318 100%)"] {
  background: linear-gradient(180deg,#f8fafc 0%,#f1f5f9 100%) !important;
}
/* b2b.php hero zaglavlje - isti problem, drugi gradient */
html[data-theme="light"] [style*="linear-gradient(135deg,#0d0f14 0%,#111318 50%,#0d0f14 100%)"] {
  background: linear-gradient(135deg,#f8fafc 0%,#f1f5f9 50%,#f8fafc 100%) !important;
}
/* profil_firme.php "Pošaljite upit" kartica - isti problem, treći gradient */
html[data-theme="light"] [style*="linear-gradient(145deg,#1a1c24,#1e2030)"] {
  background: linear-gradient(145deg,#ffffff,#f8fafc) !important;
}

/* ══════════════════════════════════════════════════════════════
   13. TRANZICIJA — samo strukturalni elementi, ne mapa
   ══════════════════════════════════════════════════════════════ */
html[data-theme="light"] body,
html[data-theme="light"] nav,
html[data-theme="light"] footer,
html[data-theme="light"] header,
html[data-theme="light"] main {
  transition: background-color .2s ease, color .15s ease, border-color .2s ease;
}

/* Dark → light prelaz za inline-style elemente (dodaje se CSS tranzicija svuda osim mape) */
html[data-theme="light"] *:not(#firma-mapa):not(#firma-mapa *):not(.leaflet-container):not(.leaflet-container *) {
  transition: background-color .2s ease, color .15s ease, border-color .2s ease;
}
