/* Analiza tražilica – izgled. Boje se mogu promijeniti u temi preko CSS varijabli na .at-modal / .at-trigger. */
.at-trigger, .at-modal, .at-hero {
  --at-accent: #ba0c2f;      /* crvena Poliklinike Analiza */
  --at-accent-2: #d63152;
  --at-tint: #fbf1f3;        /* svijetla ružičasta s weba */
  --at-tint-2: #f5e1e6;
  --at-ink: #16141a;
  --at-ink-2: #414042;
  --at-muted: #5b646e;      /* ≥ 4.8:1 i na ružičastoj podlozi (WCAG AA) */
  --at-line: #ece6e8;
  --at-bg: #fff;
  --at-bg-2: #faf8f9;
  --at-radius: 18px;
  --at-hl: rgba(186, 12, 47, .16);
  --at-font: "Arimo", Arial, Helvetica, sans-serif; /* font weba poliklinike (Postavke → Font tražilice) */
}

/* ---------- okidač (shortcode) ----------
   Dvije klase = jača specifičnost od resetova tema (npr. Hello Elementor: button{border:1px solid #c36…}). */
.at-trigger.analiza-trazilica-open {
  display: inline-flex; align-items: center; gap: 10px; box-sizing: border-box; margin: 0;
  font: inherit; font-family: var(--at-font); font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--at-muted); background: var(--at-bg);
  border: 1px solid #e3d9dc; border-radius: 999px; cursor: pointer; line-height: 1.2; box-shadow: 0 1px 2px rgba(22, 20, 26, .04);
  transition: border-color .15s, box-shadow .15s;
}
.at-trigger.analiza-trazilica-open:hover, .at-trigger.analiza-trazilica-open:focus, .at-trigger.analiza-trazilica-open:active {
  background: var(--at-bg); color: var(--at-muted); border-color: #ecc6cf; box-shadow: 0 4px 14px rgba(186, 12, 47, .08);
}
.at-trigger.analiza-trazilica-open:focus-visible { outline: 2px solid var(--at-accent); outline-offset: 2px; }
.at-trigger svg { color: var(--at-accent); flex: none; }
.at-trigger.at-trigger--input { width: 100%; max-width: 440px; min-height: 46px; padding: 10px 12px 10px 16px; text-align: left; }
.at-trigger--input .at-trigger__text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14.5px; }
.at-trigger__kbd { font: 600 11px/1 ui-monospace, Menlo, Consolas, monospace; background: var(--at-bg-2); border: 1px solid var(--at-line); border-radius: 6px; padding: 4px 7px; color: var(--at-muted); }
.at-trigger.at-trigger--icon { width: 44px; height: 44px; flex: none; justify-content: center; padding: 0; }
.at-auto { display: contents; }
.at-auto .at-trigger.at-trigger--icon { display: none; }
@media (max-width: 767px) {
  .at-auto .at-trigger.at-trigger--input { display: none; }
  .at-auto .at-trigger.at-trigger--icon { display: inline-flex; }
  .at-trigger__kbd { display: none; }
}

/* ---------- zaglavlje tražilice: [analiza_trazilica layout="hero"] ----------
   Jedan istaknuti element je polje (s primjerima upita koji se izmjenjuju); sve oko njega je mirno.
   Selektori s dvije-tri klase: jači od resetova tema (Hello Elementor button{…}, Elementor kit h2/p). */
.at-hero {
  position: relative; box-sizing: border-box; width: 100%; margin: 0; text-align: center; color: var(--at-ink); font-family: var(--at-font); line-height: 1.45;
  border-radius: 24px; padding: clamp(32px, 5.5vw, 64px) clamp(16px, 5vw, 56px) clamp(28px, 4.5vw, 48px);
  background: var(--at-tint); border: 1px solid #f3e1e5;
}
.at-hero--white { background: #fff; border-color: var(--at-line); }
.at-hero--none { background: transparent; border: 0; padding-left: 0; padding-right: 0; }
.at-hero *, .at-hero *::before, .at-hero *::after { box-sizing: border-box; }
.at-hero svg { display: block; flex: none; }
.at-hero__inner { max-width: 720px; margin: 0 auto; }
.at-hero p.at-hero__eyebrow { margin: 0 0 12px; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--at-accent); }
.at-hero .at-hero__title {
  max-width: none; margin: 0 0 12px; padding: 0; font-family: inherit; font-size: clamp(27px, 4.2vw, 42px); line-height: 1.12; font-weight: 700;
  letter-spacing: -.015em; text-transform: none; color: var(--at-ink); text-wrap: balance;
}
.at-hero p.at-hero__sub { margin: 0 auto 28px; max-width: 54ch; font-size: clamp(15px, 1.7vw, 17.5px); line-height: 1.5; color: var(--at-ink-2); text-wrap: pretty; }

/* polje: izgleda kao pravo polje za upis, cijelo je gumb koji otvara tražilicu */
.at-trigger.at-trigger--hero.analiza-trazilica-open {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 680px; min-height: 68px; margin: 0 auto; padding: 8px 8px 8px 22px;
  font: inherit; font-size: 17px; font-weight: 400; text-align: left; text-transform: none; letter-spacing: normal; white-space: nowrap; color: #5f6670;
  background: #fff; border: 2px solid #ecc6cf; border-radius: 999px; cursor: text; box-shadow: 0 18px 40px -28px rgba(186, 12, 47, .6);
}
.at-trigger.at-trigger--hero.analiza-trazilica-open:hover, .at-trigger.at-trigger--hero.analiza-trazilica-open:focus, .at-trigger.at-trigger--hero.analiza-trazilica-open:active {
  background: #fff; color: #5f6670; border-color: var(--at-accent); box-shadow: 0 18px 40px -26px rgba(186, 12, 47, .7);
}
.at-trigger.at-trigger--hero.analiza-trazilica-open:focus-visible { outline: 3px solid var(--at-accent); outline-offset: 3px; }
.at-hero__icon { display: flex; color: var(--at-accent); }
.at-trigger--hero .at-trigger__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-hero__ex { display: inline-block; color: var(--at-ink); font-weight: 600; }
.at-hero__ex.is-out { opacity: 0; transform: translateY(-6px); }
.at-hero__ex.is-in { opacity: 0; transform: translateY(6px); transition: none; }
.at-hero__go {
  display: inline-flex; align-items: center; flex: none; height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--at-accent); color: #fff; font-size: 16px; font-weight: 600;
}
.at-trigger--hero:hover .at-hero__go { background: #a00a28; }

/* često traženo */
.at-hero__chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; }
.at-hero__lbl { font-size: 14px; color: var(--at-muted); margin-right: 2px; }
.at-hero button.at-hero__chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; margin: 0; padding: 8px 15px; border: 1px solid #efd6dc; border-radius: 999px;
  background: #fff; color: var(--at-ink-2); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  text-transform: none; letter-spacing: normal; box-shadow: none; cursor: pointer;
}
.at-hero button.at-hero__chip:hover, .at-hero button.at-hero__chip:focus { background: #fff; color: var(--at-accent); border-color: var(--at-accent-2); }
.at-hero button.at-hero__chip:focus-visible { outline: 2px solid var(--at-accent); outline-offset: 2px; }
.at-hero button.at-hero__chip.at-hero__chip--areas { color: var(--at-accent); font-weight: 600; border-color: #e8b9c4; }
.at-hero button.at-hero__chip--areas svg { color: var(--at-accent); }
.at-hero--white button.at-hero__chip, .at-hero--none button.at-hero__chip { background: var(--at-bg-2); }
.at-hero p.at-hero__stats { margin: 22px 0 0; font-size: 14px; line-height: 1.5; color: var(--at-muted); }
.at-hero__stats b { font-weight: 700; color: var(--at-ink-2); font-variant-numeric: tabular-nums; }

/* preko cijele širine stranice na velikim ekranima (width="full", zadano): izlazi iz sekcije Elementora do rubova prozora.
   --at-sbw = širina trake za pomicanje (postavlja trazilica.js), da ne nastane vodoravno pomicanje. */
@media (min-width: 1025px) {
  /* pomak s left (ne s marginom): blok teme (npr. Twenty Twenty-Five) margine sadržaja postavljaju na auto !important */
  .at-hero.at-hero--full {
    width: calc(100vw - var(--at-sbw, 0px)); max-width: none; margin-left: 0; margin-right: 0;
    left: calc(50% - (100vw - var(--at-sbw, 0px)) / 2);
    border-radius: 0; border-width: 1px 0; padding: 84px 32px 76px;
  }
  .at-hero--full.at-hero--none { border: 0; }
  .at-hero--full .at-hero__inner { max-width: 920px; } /* naslov u jednom redu */
  .at-hero--full .at-hero__chips { max-width: 760px; margin-left: auto; margin-right: auto; }
  .at-hero--full.at-hero--left .at-hero__chips { margin-left: 0; }
  .at-hero--full .at-hero__title { font-size: clamp(36px, 3.2vw, 48px); }
  .at-hero--full.at-hero--left .at-hero__inner { max-width: 1140px; margin: 0 auto; }
  .at-hero--full.at-hero--left .at-hero__inner > * { max-width: 720px; }
}

/* lijevo poravnanje (npr. uz sliku u Elementoru) */
.at-hero--left { text-align: left; }
.at-hero--left .at-hero__inner { margin: 0; }
.at-hero--left p.at-hero__sub { margin-left: 0; }
.at-hero--left .at-trigger.at-trigger--hero.analiza-trazilica-open { margin: 0; }
.at-hero--left .at-hero__chips { justify-content: flex-start; }
@media (max-width: 600px) {
  .at-hero { border-radius: 20px; }
  .at-hero p.at-hero__sub { margin-bottom: 22px; }
  .at-trigger.at-trigger--hero.analiza-trazilica-open { min-height: 60px; padding: 6px 6px 6px 16px; gap: 10px; font-size: 16px; }
  .at-hero__go { height: 46px; padding: 0 18px; font-size: 15px; }
  .at-hero__chips { gap: 6px; }
  .at-hero button.at-hero__chip:not(.at-hero__chip--areas):nth-of-type(n+5) { display: none; } /* na mobitelu 4 prijedloga + područja */
  .at-hero__lbl { flex-basis: 100%; margin: 0 0 2px; }
  .at-hero--left .at-hero__lbl { flex-basis: auto; }
}
@media (max-width: 359px) { .at-hero__go { padding: 0 14px; } }
@media (prefers-reduced-motion: no-preference) {
  .at-trigger--hero, .at-hero__chip, .at-hero__go { transition: border-color .15s, box-shadow .15s, color .15s, background-color .15s; }
  .at-hero__ex { transition: opacity .28s ease, transform .28s ease; }
}

/* ---------- modal: osnova i zaštita od stilova teme ---------- */
html.at-lock, html.at-lock body { overflow: hidden !important; }
html.at-lock { scrollbar-gutter: stable; }
.at-modal[hidden] { display: none !important; }
.at-modal { position: fixed; inset: 0; z-index: 2147483000; font-family: var(--at-font); color: var(--at-ink); line-height: 1.45; font-size: 15px; -webkit-font-smoothing: antialiased; }
.at-modal *, .at-modal *::before, .at-modal *::after { box-sizing: border-box; }
.at-modal .at-sr, .at-modal .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.at-modal a { font-family: inherit; color: inherit; text-decoration: none; }
.at-modal h3 { font-family: inherit; text-transform: none; letter-spacing: normal; }
.at-modal button { font-family: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; margin: 0; line-height: 1.2; white-space: normal; height: auto; min-width: 0; }
/* Hello Elementor: button{white-space:nowrap} – bez ovoga se dugi nazivi područja ne lome nego izlaze iz pločice */
.at-modal :focus-visible { outline: 2px solid var(--at-accent); outline-offset: 2px; }
.at-modal .at-input:focus-visible { outline: none; }
.at-modal .at-ico { flex: none; display: block; }
.at-panel:focus { outline: none; }

.at-backdrop { position: absolute; inset: 0; background: rgba(22, 12, 16, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.at-panel {
  position: relative; margin: 7vh auto 0; width: min(800px, calc(100% - 32px)); max-height: 84vh;
  display: flex; flex-direction: column; background: var(--at-bg); border-radius: var(--at-radius);
  box-shadow: 0 32px 90px -20px rgba(40, 8, 18, .38), 0 0 0 1px rgba(40, 8, 18, .05); overflow: hidden;
}

/* ---------- traka za upit ---------- */
.at-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 20px; margin: 0; border-bottom: 1px solid var(--at-line); }
.at-bar__icon { color: var(--at-accent); display: flex; }
.at-modal .at-input {
  flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important;
  font-family: inherit; font-weight: 500; font-size: 19px; line-height: 1.3; color: var(--at-ink); padding: 10px 0 !important; margin: 0; height: auto;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.at-modal .at-input::placeholder { color: #767d87; font-weight: 400; opacity: 1; }
.at-input::-webkit-search-cancel-button { display: none; }
.at-modal button.at-clear {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: #f1eef0; color: var(--at-ink-2); cursor: pointer;
}
.at-modal button.at-clear[hidden] { display: none; }
.at-modal button.at-clear:hover, .at-modal button.at-clear:focus { background: var(--at-tint-2); color: var(--at-accent); border: 0; }
.at-modal button.at-close {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--at-muted);
  font-weight: 500; font-size: 13.5px; padding: 8px 10px; border-radius: 10px; cursor: pointer;
}
.at-modal button.at-close:hover, .at-modal button.at-close:focus { background: var(--at-bg-2); color: var(--at-ink); border: 0; }
.at-modal kbd { font: 600 11px/1 ui-monospace, Menlo, Consolas, monospace; background: var(--at-bg-2); border: 1px solid var(--at-line); border-radius: 6px; padding: 3px 6px; color: var(--at-muted); }

/* ---------- status ---------- */
.at-status { padding: 12px 20px 0; font-size: 13.5px; color: var(--at-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.at-status:empty { padding: 0; }
.at-status b { color: var(--at-ink); font-weight: 600; }
.at-note { flex-basis: 100%; background: #fdf6e7; color: #74510a; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.at-warn { color: #8a5200; }
.at-muted { color: var(--at-muted); }
.at-modal button.at-back {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--at-line); background: var(--at-bg); color: var(--at-ink-2);
  border-radius: 999px; padding: 6px 12px 6px 10px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.at-modal button.at-back:hover, .at-modal button.at-back:focus { border-color: #ecc6cf; background: var(--at-tint); color: var(--at-accent); }

/* ---------- rezultati ---------- */
.at-results { overflow-y: auto; overscroll-behavior: contain; padding: 6px 12px 18px; -webkit-overflow-scrolling: touch; }
.at-group { padding-top: 10px; }
.at-group + .at-group { border-top: 1px solid var(--at-line); margin-top: 8px; }
.at-modal h3.at-gh {
  display: flex; align-items: center; gap: 10px; margin: 6px 8px 6px; padding: 0;
  font-size: 12.5px; line-height: 1.3; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--at-ink-2);
}
.at-gh__ico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--at-tint); color: var(--at-accent); }
.at-gh__n { font-size: 11.5px; letter-spacing: 0; font-weight: 600; color: var(--at-muted); background: var(--at-bg-2); border: 1px solid var(--at-line); border-radius: 999px; padding: 1px 8px; }
.at-gh__sub { margin-left: auto; font-size: 11.5px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--at-muted); }
.at-list { display: flex; flex-direction: column; gap: 2px; }

.at-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; padding: 12px 14px; border-radius: 14px; }
.at-row--link { cursor: pointer; }
.at-row--link:hover, .at-row.is-sel { background: var(--at-tint); }
.at-row.is-sel { box-shadow: inset 0 0 0 2px var(--at-accent); }
.at-row__main { min-width: 0; }
.at-modal .at-name { font-weight: 600; font-size: 15.5px; line-height: 1.35; color: var(--at-ink); overflow-wrap: anywhere; }
/* cijeli red je klikabilan (link na nazivu se razvlači preko reda); ostali linkovi u redu ostaju iznad njega */
.at-modal .at-row--link a.at-name::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.at-modal .at-row--link a.at-name:focus-visible { outline: none; }
.at-modal .at-row--link a.at-name:focus-visible::after { box-shadow: inset 0 0 0 2px var(--at-accent); }
.at-modal .at-name--plain { cursor: default; }
.at-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 5px; font-size: 12.5px; color: var(--at-muted); }
.at-tag { display: inline-block; font-size: 11px; line-height: 1; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: #f1f2f4; color: #4b5260; white-space: nowrap; }
.at-tag--panel, .at-tag--paket { background: var(--at-tint-2); color: var(--at-accent); }
.at-tag--genetika { background: #eef1fb; color: #3d4f9a; }
.at-tag--strucno, .at-tag--kampanja { background: #f4f1ea; color: #6b5a2e; }
.at-sub { font-size: 13.5px; color: var(--at-muted); margin-top: 5px; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.at-sub__k { font-weight: 600; color: var(--at-ink-2); }
.at-clamp1 { -webkit-line-clamp: 1; }
.at-inp { -webkit-line-clamp: 3; }
.at-modal a.at-inl, .at-modal a.at-link { position: relative; z-index: 1; color: var(--at-ink-2); text-decoration: underline; text-decoration-color: #d9c7cc; text-underline-offset: 3px; }
.at-modal a.at-inl:hover, .at-modal a.at-link:hover { color: var(--at-accent); text-decoration-color: var(--at-accent); }
.at-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 7px; font-size: 13px; font-weight: 600; }
.at-modal a.at-link { display: inline-flex; align-items: center; min-height: 28px; text-decoration: none; color: var(--at-accent); position: relative; z-index: 1; }
.at-modal a.at-link::after { content: " \2192"; }
.at-row__side { display: flex; align-items: center; gap: 10px; align-self: start; padding-top: 1px; }
.at-price { font-weight: 700; font-size: 15px; color: var(--at-ink); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.at-price del { color: var(--at-muted); font-weight: 500; font-size: 13px; margin-right: 6px; }
.at-price ins { text-decoration: none; color: var(--at-accent); }
.at-chev { color: #9a9296; display: flex; transition: transform .15s, color .15s; }
.at-row--link:hover .at-chev, .at-row.is-sel .at-chev { color: var(--at-accent); transform: translateX(2px); }
.at-modal mark { background: linear-gradient(transparent 58%, var(--at-hl) 58%); color: inherit; padding: 0; border-radius: 0; }

.at-loc { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--at-ink-2); }
.at-loc__i { display: flex; align-items: flex-start; gap: 8px; }
.at-loc__i .at-ico { color: var(--at-muted); margin-top: 2px; }

.at-modal button.at-more {
  display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 2px 8px; border: 0; background: transparent; color: var(--at-accent);
  font-weight: 600; font-size: 13.5px; padding: 8px 10px; cursor: pointer; border-radius: 10px;
}
.at-modal button.at-more:hover, .at-modal button.at-more:focus { background: var(--at-tint); color: var(--at-accent); border: 0; }

/* ---------- početno stanje: često traženo i područja ---------- */
.at-home { padding: 6px 8px 4px; }
.at-home__sec { margin-top: 14px; }
.at-modal h3.at-h { margin: 0 0 10px; padding: 0; font-size: 12.5px; line-height: 1.3; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--at-ink-2); }
.at-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.at-modal button.at-chip {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--at-line); background: var(--at-bg); color: var(--at-ink);
  border-radius: 999px; padding: 8px 14px 8px 11px; font-weight: 500; font-size: 14px; cursor: pointer;
}
.at-modal button.at-chip .at-ico { color: var(--at-muted); }
.at-modal button.at-chip:hover, .at-modal button.at-chip:focus { border: 1px solid #ecc6cf; background: var(--at-tint); color: var(--at-ink); }
.at-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 8px; }
.at-modal .at-cat__head h3.at-h { margin: 0; }
.at-modal button.at-cat__all {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 12px 6px 10px; white-space: nowrap; cursor: pointer;
  border: 1px solid #ecc6cf; border-radius: 999px; background: var(--at-bg); color: var(--at-accent); font-size: 13.5px; font-weight: 600;
}
.at-modal button.at-cat__all:hover, .at-modal button.at-cat__all:focus { border: 1px solid var(--at-accent); background: var(--at-tint); color: var(--at-accent); }
.at-cat__n { font-size: 12px; font-weight: 600; color: var(--at-muted); font-variant-numeric: tabular-nums; }
.at-cat__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; }
.at-cat__lbl { font-size: 13px; font-weight: 500; color: var(--at-muted); }
.at-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.at-modal button.at-seg__b {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; white-space: nowrap; border: 1px solid var(--at-line); background: var(--at-bg);
  color: var(--at-ink-2); border-radius: 999px; padding: 6px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.at-modal button.at-seg__b:hover, .at-modal button.at-seg__b:focus { border: 1px solid #ecc6cf; background: var(--at-tint); color: var(--at-ink); }
.at-modal button.at-seg__b[aria-pressed="true"], .at-modal button.at-seg__b[aria-pressed="true"]:hover, .at-modal button.at-seg__b[aria-pressed="true"]:focus {
  border: 1px solid var(--at-accent); background: var(--at-accent); color: #fff;
}
.at-seg__n { font-size: 12px; font-weight: 600; color: var(--at-muted); font-variant-numeric: tabular-nums; }
.at-modal button.at-seg__b[aria-pressed="true"] .at-seg__n { color: #fff; opacity: .85; }

/* pločice područja: cijeli naziv uvijek vidljiv (lomi se u više redova), ispod kratko što je unutra i broj panela */
.at-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 8px; }
.at-modal button.at-area {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; height: auto; min-height: 0; text-align: left; white-space: normal; overflow-wrap: anywhere;
  border: 1px solid var(--at-line); background: var(--at-bg); color: var(--at-ink); border-radius: 14px; padding: 12px 14px; cursor: pointer; font-weight: 400; font-size: 14px; line-height: 1.3;
}
.at-modal button.at-area:hover, .at-modal button.at-area:focus { border: 1px solid #ecc6cf; background: var(--at-tint); color: var(--at-ink); box-shadow: 0 6px 18px -10px rgba(186, 12, 47, .35); }
.at-area__ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--at-tint); color: var(--at-accent); }
.at-modal button.at-area:hover .at-area__ico, .at-modal button.at-area:focus .at-area__ico { background: var(--at-bg); }
.at-area__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.at-area__name { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--at-ink); }
.at-area__d { font-size: 13px; line-height: 1.35; color: var(--at-muted); margin-top: 2px; }
.at-area__n { font-size: 12.5px; font-weight: 600; color: var(--at-accent); margin-top: 5px; }

/* zaglavlje pregleda područja */
.at-areahead { padding: 10px 8px 2px; }
.at-areahead__d { margin: 0 0 10px; font-size: 14px; line-height: 1.4; color: var(--at-ink-2); }
.at-areahead .at-cat__bar { margin-bottom: 4px; }

.at-empty { display: flex; gap: 14px; align-items: flex-start; background: var(--at-bg-2); border: 1px solid var(--at-line); border-radius: 16px; padding: 16px 18px; margin: 12px 8px 0; font-size: 14px; color: var(--at-ink-2); }
.at-empty p { margin: 0; }
.at-empty__t { font-weight: 600; color: var(--at-ink); margin-bottom: 4px !important; }
.at-empty__ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--at-tint); color: var(--at-accent); }

.at-foot { display: flex; gap: 18px; justify-content: flex-end; padding: 10px 20px; border-top: 1px solid var(--at-line); font-size: 12px; color: var(--at-muted); background: var(--at-bg-2); }
.at-foot kbd { margin-right: 3px; }

/* ---------- mobitel ---------- */
@media (max-width: 767px) {
  .at-panel { margin: 0; width: 100%; max-height: none; height: 100%; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); box-shadow: none; }
  .at-bar { padding: 8px 8px 8px 16px; }
  .at-modal .at-input { font-size: 17px; }
  .at-modal button.at-close kbd { display: none; }
  .at-modal button.at-close { min-height: 44px; padding: 10px 12px; }
  .at-status { padding: 10px 16px 0; }
  .at-results { padding: 4px 6px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .at-row { padding: 12px 10px; gap: 4px 12px; }
  .at-chev { display: none; }
  .at-modal button.at-area { padding: 12px; gap: 11px; }
  .at-area__ico { width: 34px; height: 34px; border-radius: 10px; }
  .at-modal button.at-seg__b { min-height: 40px; padding: 8px 14px; }
  .at-modal button.at-cat__all { min-height: 40px; }
  .at-foot { display: none; }
  .at-modal button.at-chip, .at-modal button.at-back { min-height: 40px; }
  .at-modal a.at-link { min-height: 36px; } /* dodirni cilj (WCAG 2.5.8) */
}

@media (prefers-reduced-motion: no-preference) {
  .at-modal:not([hidden]) .at-backdrop { animation: at-fade .18s ease-out; }
  .at-modal:not([hidden]) .at-panel { animation: at-rise .2s cubic-bezier(.2, .8, .2, 1); }
  .at-row, .at-chip, .at-area, .at-more, .at-seg__b { transition: background-color .12s, border-color .12s, box-shadow .12s; }
}
@keyframes at-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes at-rise { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
/* ponuda pregleda područja kad je upisan njegov naziv */
.at-modal button.at-chip.at-area-hint { padding: 6px 12px 6px 10px; font-size: 13px; font-weight: 600; color: var(--at-accent); border-color: #ecc6cf; background: var(--at-tint); }
.at-modal button.at-chip.at-area-hint .at-ico { color: var(--at-accent); }
