/* Poslovni adresar BiH */
:root {
  --navy: #143a7b; --navy-d: #0e2a5a; --navy-l: #e9eff9;
  --yel: #f6b500; --yel-d: #d99d00;
  --ink: #17202e; --muted: #5d6878; --line: #dfe4ec; --bg: #ffffff; --soft: #f4f6fa;
  --ok: #17803d; --err: #b42318; --warn: #a15c00;
  --call: #17803d;
  --r: 12px; --sh: 0 1px 2px rgba(16,24,40,.06), 0 2px 8px rgba(16,24,40,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-d); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 .8em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yel); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
:focus-visible { outline: 3px solid var(--yel); outline-offset: 2px; }

/* dugmad */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 1rem var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--navy); color: var(--navy); }
.btn-y { background: var(--yel); border-color: var(--yel); color: #1b1300; }
.btn-y:hover { background: var(--yel-d); border-color: var(--yel-d); color: #1b1300; }
.btn-call { background: var(--call); border-color: var(--call); color: #fff; }
.btn-call:hover { background: #10652f; border-color: #10652f; color: #fff; }
.btn-viber { background: #7360f2; border-color: #7360f2; color: #fff; }
.btn-wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn-viber:hover, .btn-wa:hover { color: #fff; filter: brightness(.92); }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 54px; padding: 12px 24px; font-size: 1.08rem; }

/* zaglavlje */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-t { font-size: 1.25rem; letter-spacing: -.02em; }
.logo-t b, .foot-logo b { font-weight: 800; }
.logo-t em, .foot-logo em { font-style: normal; font-weight: 800; color: #fff; background: var(--yel); color: #1b1300; border-radius: 5px; padding: 0 5px; margin-left: 4px; font-size: .8em; vertical-align: 2px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a:not(.btn) { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav a:not(.btn):hover, .nav a.on { background: var(--navy-l); color: var(--navy); }
.nav a.n-all { background: var(--navy); color: #fff; }
.nav a.n-all:hover, .nav a.n-all.on { background: var(--navy-d); color: #fff; }
@media (max-width: 640px) {
  .top { position: static; }
  .top-in { padding-top: 10px; padding-bottom: 10px; }
  .nav { width: 100%; justify-content: space-between; flex-wrap: nowrap; gap: 2px; overflow-x: auto; }
  .nav .n-contact { display: none; }
  .nav a:not(.btn) { padding: 8px 7px; font-size: .9rem; white-space: nowrap; }
  .nav .btn { min-height: 38px; padding: 6px 10px; font-size: .9rem; }
}
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 4px; }
.letters a { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; font-weight: 700; color: var(--ink); }
.letters a:hover { border-color: var(--navy); color: var(--navy); }
.letters a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.all-link { display: inline-block; margin-top: 12px; color: #fff; font-weight: 700; font-size: 1.05rem; }
.all-link:hover { color: var(--yel); }

/* hero i pretraga */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-d) 100%); color: #fff; padding: 48px 0 40px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; top: -40px; width: 340px; height: 340px; background: var(--yel); opacity: .12; transform: rotate(45deg); border-radius: 30px; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.lead { font-size: 1.15rem; color: #dbe5f5; max-width: 640px; }
.lead-s { font-size: 1.05rem; color: var(--muted); max-width: 760px; }
.search { display: grid; grid-template-columns: 1fr 220px auto; gap: 8px; background: #fff; padding: 8px; border-radius: 14px; box-shadow: var(--sh); border: 1px solid var(--line); max-width: 900px; margin: 16px 0 8px; }
.search input, .search select { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font: 1.05rem var(--font); color: var(--ink); background: #fff; }
.search input:focus, .search select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--navy-l); }
.search .btn { min-height: 50px; padding: 0 28px; font-size: 1.08rem; }
.search.big input, .search.big select, .search.big .btn { min-height: 58px; font-size: 1.12rem; }
@media (max-width: 720px) { .search { grid-template-columns: 1fr; } }
.quick { margin-top: 14px; color: #dbe5f5; font-size: .95rem; }
.quick a { color: #fff; display: inline-block; margin: 4px 6px 0 0; padding: 4px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; text-decoration: none; }
.quick a:hover { background: rgba(255,255,255,.12); }

/* sekcije */
.sec { padding: 40px 0; }
.sec-s { padding: 24px 16px 48px; }
.soft { background: var(--soft); }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sec-h a { font-weight: 600; text-decoration: none; }
.band { background: var(--soft); border-bottom: 1px solid var(--line); padding: 18px 0 14px; }
.band .search { margin-bottom: 4px; }
.h-ico { font-size: .9em; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.narrow-c { max-width: 820px; }

/* djelatnosti */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 600; min-height: 64px; }
.tile:hover { border-color: var(--navy); color: var(--navy); box-shadow: var(--sh); }
.tile .ico { font-size: 1.6rem; width: 44px; height: 44px; display: grid; place-items: center; background: var(--navy-l); border-radius: 10px; flex: none; }
.tile .t { flex: 1; line-height: 1.25; }
.tile .n { color: var(--muted); font-weight: 500; font-size: .9rem; }
.tiles.plain .tile { min-height: 52px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; }
.chip span { color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--navy); color: var(--navy); }

/* kartice firmi */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.pad { padding: 20px; }
.grid-firms { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.list-firms { display: grid; gap: 10px; }
.firm { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 14px; align-items: center; overflow: hidden; min-width: 0; }
.firm h3, .firm-cat, .firm-adr { overflow-wrap: anywhere; }
.firm-act .btn { min-width: 0; }
.firm-act .btn-call span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.firm.feat { border-color: var(--yel); box-shadow: 0 0 0 1px var(--yel) inset; background: #fffcf2; }
.firm-logo { width: 76px; height: 76px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; text-decoration: none; }
.firm-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ini { font-weight: 800; font-size: 1.5rem; color: var(--navy); background: var(--navy-l); width: 100%; height: 100%; display: grid; place-items: center; }
.firm-body { min-width: 0; }
.firm h3 { margin: 0 0 2px; }
.firm h3 a { text-decoration: none; color: var(--ink); }
.firm h3 a:hover { color: var(--navy); text-decoration: underline; }
.firm-cat { color: var(--navy); font-size: .92rem; font-weight: 600; margin: 0; }
.firm-adr { color: var(--muted); font-size: .92rem; margin: 2px 0 0; }
.firm-rate { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.firm-act { display: flex; flex-direction: column; gap: 6px; }
.firm-act .btn { min-height: 42px; padding: 8px 14px; font-size: .95rem; }
.grid-firms .firm { grid-template-columns: 64px minmax(0, 1fr); align-content: start; }
.grid-firms .firm-logo { width: 64px; height: 64px; }
.grid-firms .firm-act { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-self: end; }
@media (max-width: 640px) {
  .firm { grid-template-columns: 60px minmax(0, 1fr); }
  .firm-logo { width: 60px; height: 60px; }
  .firm-act { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .grid-firms { grid-template-columns: 1fr; }
}
.badge { display: inline-block; background: var(--yel); color: #1b1300; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-bottom: 4px; }
.stars { color: #c9ced6; letter-spacing: 1px; white-space: nowrap; }
.stars i { font-style: normal; }
.stars i.on { color: var(--yel); }

/* liste */
.list-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding-top: 16px; padding-bottom: 48px; align-items: start; }
.list-layout.no-side { grid-template-columns: 1fr; }
@media (max-width: 900px) { .list-layout { grid-template-columns: 1fr; } }
.count { color: var(--muted); margin: 0 0 8px; }
.side { padding: 16px; }
.side h2 { font-size: 1.05rem; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li a { display: flex; justify-content: space-between; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.side li a:hover, .side li a.on { background: var(--navy-l); color: var(--navy); }
.side li span { color: var(--muted); font-size: .9rem; }
.empty { padding: 24px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; }
.pager .on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* profil firme */
.firm-head { padding-bottom: 20px; }
.fh { display: flex; gap: 18px; align-items: center; }
.fh-logo { width: 110px; height: 110px; flex: none; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.fh-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.fh-logo .ini { font-size: 2.2rem; }
.fh h1 { margin-bottom: 4px; }
.tagline { color: var(--muted); margin: 0 0 4px; }
.fh-cats { margin: 0; font-weight: 600; }
.fh-cats a { text-decoration: none; }
.fh-rate { margin: 4px 0 0; }
.fh-rate a { text-decoration: none; color: var(--ink); }
@media (max-width: 560px) { .fh { align-items: flex-start; } .fh-logo { width: 76px; height: 76px; } .fh-logo .ini { font-size: 1.5rem; } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 560px) { .actions .btn { flex: 1 1 calc(50% - 8px); } .actions .btn-call { flex-basis: 100%; } }
.firm-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; padding-top: 20px; padding-bottom: 40px; align-items: start; }
.firm-main, .firm-side { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 900px) { .firm-layout { grid-template-columns: 1fr; } .firm-side { order: -1; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours td { text-align: right; }
.hours tr.today { font-weight: 700; background: var(--navy-l); }
.hours tr.today th, .hours tr.today td { font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.map { aspect-ratio: 16 / 9; background: var(--soft) repeating-linear-gradient(45deg, transparent 0 12px, rgba(20,58,123,.04) 12px 24px); border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; }
.prose p { max-width: 70ch; }
.review { border-top: 1px solid var(--line); padding: 12px 0; }
.rv-h { margin-bottom: 4px; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.rv-form { margin-top: 12px; }
.rv-form summary { list-style: none; display: inline-flex; }
.rv-form summary::-webkit-details-marker { display: none; }
.rv-form form { margin-top: 14px; }
.rate-in { border: 0; padding: 0; margin: 0 0 6px; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.rate-in legend { font-weight: 600; margin-bottom: 4px; float: left; width: 100%; }
.rate-in input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-in label { font-size: 2.2rem; color: #c9ced6; cursor: pointer; padding: 0 3px; line-height: 1; }
.rate-in input:checked ~ label, .rate-in label:hover, .rate-in label:hover ~ label { color: var(--yel); }
.rate-in input:focus-visible + label { outline: 3px solid var(--yel); }
.side-note { padding: 0 4px; }

/* forme */
.form { display: grid; gap: 14px; }
.form h2 { margin: 8px 0 0; }
.form label { display: grid; gap: 5px; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; border: 1px solid #c6cdd8; border-radius: 10px; padding: 10px 12px; font: 1.02rem var(--font); background: #fff; color: var(--ink); }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--navy-l); }
.form input[type=file] { min-height: 0; padding: 10px; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } }
.alert { padding: 12px 16px; border-radius: 10px; border: 1px solid; margin-bottom: 12px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert.ok { background: #eafaf0; border-color: #a6e0bb; color: #0d5a29; }
.alert.err { background: #fdf0ef; border-color: #f4b8b2; color: var(--err); }
.alert.warn { background: #fff7e6; border-color: #f3d08b; color: var(--warn); }
.big-ok { font-size: 1.1rem; padding: 20px; }

/* poziv na upis */
.cta { background: var(--navy); color: #fff; }
.cta h2 { color: #fff; }
.cta p { color: #dbe5f5; margin: 0; max-width: 620px; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

/* podnozje */
.foot { background: #0b1f44; color: #c3cee2; padding: 36px 0 18px; font-size: .95rem; }
.foot a { color: #fff; display: block; padding: 3px 0; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr; } }
.foot-logo { font-size: 1.2rem; color: #fff; }
.foot-h { color: #fff; font-weight: 700; margin-bottom: 6px; }
.foot-copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 14px; font-size: .85rem; }

/* galerija preko cijelog ekrana */
.lb { position: fixed; inset: 0; background: rgba(5,10,20,.92); display: flex; align-items: center; justify-content: center; z-index: 50; }
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; cursor: pointer; }
.lb-x { top: 14px; right: 14px; }
.lb-p { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-n { right: 10px; top: 50%; transform: translateY(-50%); }
