/* ============================================
   Pages — sekcije specifične za pojedine stranice
   ============================================ */

/* ============================================
   HERO — full-bleed slika + lijevi panel (#fbfaf8) s gradijent fade-om u sliku
   ============================================ */
.hero {
  position: relative;
  display: block;
  min-height: clamp(680px, 85vh, 840px);
  overflow: hidden;
  isolation: isolate;
  color: var(--text);
  background: #fafbf9;
  /* Hero ide ispod transparent headera */
  margin-top: calc(-1 * var(--hero-header-offset, var(--header-h)));
}

.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

/* Each slide stacks for crossfade transition */
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.7s var(--ease-out),
    visibility 0s 0.7s;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.7s var(--ease-out),
    visibility 0s 0s;
  z-index: 2;
}

/* IMAGE — full-bleed background, ispunjava cijeli hero */
.hero__slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}

.hero__slide-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transform: scale(1);
  transition: transform 8s ease-out;
}

.hero__slide.is-active .hero__slide-bg img {
  transform: scale(1.05);
}

/* Overlay nije potreban (gradijent panel preuzima ulogu) */
.hero__slide-overlay {
  display: none;
}

/* CONTENT — full width panel, content u lijevih ~60% (padding-right: 40%).
   ::before je gradijent koji počinje solid #fbfaf8 lijevo i fade-a u transparent
   prema desno, otkrivajući sliku. */
.hero__slide-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding-right: 40%;
  padding-top: calc(var(--hero-header-offset, var(--header-h)) + clamp(3rem, 6vw, 5rem));
  padding-bottom: calc(clamp(70px, 8vw, 120px) + clamp(1.5rem, 2.5vw, 2rem));
}

.hero__slide-content::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Vertikalni color-gradijent: gore #fafbf9 → dolje #f2f5ec */
  background: linear-gradient(
    to bottom,
    #fafbf9 0%,
    #f2f5ec 100%
  );
  /* Horizontalni alpha-mask: 0–30% solid, 30–54% fade-out, 54%+ totalno transparent. */
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 30%,
    rgba(0, 0, 0, 0) 54%
  );
  mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 30%,
    rgba(0, 0, 0, 0) 54%
  );
  pointer-events: none;
}

.hero__slide-content > * {
  width: 100%;
}

.hero__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 580px;
  width: 100%;
  /* Reset svega što je pretvorilo .hero__card u "pravu" karticu u prethodnim iteracijama */
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero__card > * {
  margin: 0;
  max-width: none;
}

/* EYEBROW PILL */
.hero__pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: rgba(168, 207, 56, 0.14);
  color: var(--brand-deep, #4a7a2c);
  border: 1px solid rgba(168, 207, 56, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
}

.hero__pill .icon {
  width: 16px;
  height: 16px;
  color: var(--brand-deep, #4a7a2c);
}

/* STAT TILES */
.hero__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.hero__tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-md, 12px);
  transition: transform var(--t-fast), box-shadow var(--t-fast),
    border-color var(--t-fast);
}

.hero__tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  border-color: var(--brand-soft, rgba(168, 207, 56, 0.45));
}

.hero__tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(168, 207, 56, 0.16);
  color: var(--brand-deep, #4a7a2c);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__tile-icon .icon {
  width: 18px;
  height: 18px;
  color: var(--brand-deep, #4a7a2c);
}

.hero__tile-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* Stagger animation za content */
.hero__slide:not(.is-active) .hero__card > * {
  transform: translateY(20px);
  opacity: 0;
}

.hero__slide.is-active .hero__card > * {
  transform: translateY(0);
  opacity: 1;
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.hero__slide.is-active .hero__card > *:nth-child(1) { transition-delay: 0.15s; }
.hero__slide.is-active .hero__card > *:nth-child(2) { transition-delay: 0.25s; }
.hero__slide.is-active .hero__card > *:nth-child(3) { transition-delay: 0.35s; }
.hero__slide.is-active .hero__card > *:nth-child(4) { transition-delay: 0.45s; }
.hero__slide.is-active .hero__card > *:nth-child(5) { transition-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .hero__slide-bg img,
  .hero__slide.is-active .hero__card > * {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ============================================
   HERO NAV (dots) — dolje desno, IZNAD SVG vala
   ============================================ */
.hero__nav {
  position: absolute;
  /* Iznad vala (clamp 70-120px) + breathing room */
  bottom: clamp(90px, 10vw, 150px);
  right: clamp(1rem, 2vw, 2rem);
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  pointer-events: none;
  box-sizing: border-box;
}

.hero__nav > * {
  pointer-events: auto;
}

.hero__dots {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-pill);
  padding: var(--space-2);
}

.hero__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  border-radius: var(--r-pill);
  transition: all var(--t-base);
  min-width: 44px;
  height: 36px;
}

.hero__dot:hover {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
}

.hero__dot.is-active {
  background: var(--brand);
  color: var(--text);
  min-width: 56px;
}

.hero__counter {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: var(--ls-wider);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-pill);
  padding: var(--space-2) var(--space-4);
  height: 40px;
}

.hero__counter-current {
  color: var(--brand);
  font-size: var(--fs-md);
  font-variant-numeric: tabular-nums;
}

.hero__counter-total {
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.hero__counter-sep {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

/* Container width za nav */
.hero__nav.container {
  max-width: var(--container);
  padding-inline: var(--gutter);
}

/* ============================================
   HERO PROGRESS BAR
   ============================================ */
.hero__progress {
  position: absolute;
  /* Pokriva isti area kao hero wave (clamp 70-120px, bottom -1px) — path se
     poklapa s wave-main krivuljom pa progress "vijuga" zajedno s valom. */
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(70px, 8vw, 120px);
  z-index: 8;
  pointer-events: none;
}

.hero__progress-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__progress-track {
  fill: none;
  stroke: rgba(0, 0, 0, 0.08);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.hero__progress-fill {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(168, 207, 56, 0.5));
}

.hero[data-paused="true"] .hero__progress-fill {
  opacity: 0.5;
}

/* Single-slide mode — sakrij nav (progress ostaje vidljiv kao ambient animacija) */
.hero[data-single-slide="true"] .hero__nav {
  display: none;
}

/* Single slide — keep absolute (same layout model as multi-slide) but skip transition */
.hero[data-single-slide="true"] .hero__slide {
  position: absolute;
  inset: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

@media (max-width: 600px) {
  .hero__nav {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-3);
    padding-inline: var(--gutter);
  }

  .hero__counter {
    display: none;
  }

  .hero__dot {
    padding: var(--space-2) var(--space-3);
    min-width: 36px;
  }

  .hero__dot.is-active {
    min-width: 44px;
  }
}

/* Tekstovi — SPLIT layout, dark text on white. */
.hero__title {
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
  text-shadow: none;
}

.hero__title-accent {
  display: inline;
  color: var(--brand-deep, var(--brand));
  text-shadow: none;
}

.hero__lead {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  max-width: 480px;
  text-shadow: none;
}

.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Stari .hero__features blok je zamijenjen .hero__tiles — u DOM-u nije, ali ako
   bi se pojavio (legacy slide bez novog template-a), sakri ga. */
.hero__features {
  display: none;
}

/* "Ghost light" varijanta gumba — preko slike */
.btn--ghost-light {
  background: rgba(248, 250, 241, 0.08);
  color: var(--text-on-dark);
  border-color: rgba(248, 250, 241, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--ghost-light:hover {
  background: rgba(248, 250, 241, 0.18);
  border-color: rgba(248, 250, 241, 0.6);
  color: var(--text-on-dark);
}

/* Floating badge — donji desni kut, glassmorphism */
.hero__badge {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 290px;
  color: var(--text-on-dark);
}

.hero__badge .icon-circle {
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: var(--text);
  flex-shrink: 0;
}

.hero__badge .icon-circle .icon {
  width: 22px;
  height: 22px;
}

.hero__badge-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  color: var(--text-on-dark);
  margin-bottom: 2px;
}

.hero__badge-text span {
  font-size: var(--fs-xs);
  color: rgba(248, 250, 241, 0.75);
  line-height: 1.3;
}

/* ============================================
   HERO WAVE — organski prijelaz iz hero-a u sljedeću sekciju.
   Match s .page-hero__wave (iste path-ove i visine). Wave-main fill je bijel
   jer homepage ima bijelu locations sekciju odmah ispod (prije section--soft).
   ============================================ */
.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 7;
  height: clamp(70px, 8vw, 120px);
  pointer-events: none;
}

.hero__wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__wave-soft {
  fill: rgba(255, 255, 255, 0.62);
}

.hero__wave-main {
  fill: var(--bg, #FFFFFF);
}

/* Sekcija odmah ispod homepage hero-a (npr. locations) — blagi pull-up
   da se vizualno "uvuče" pod val. */
.hero + .section {
  position: relative;
  z-index: 8;
  margin-top: clamp(-28px, -2vw, -12px);
}

/* ---------- MOBILE / TABLET HERO (≤1024) — stacked layout; desktop (>1024) ne diramo ---------- */
@media (max-width: 1024px) {
  /* Hero: header ostaje sticky iznad u normalnom flow-u, slika kreće odmah na vrhu hero-a.
     Auto visina — diktira ju aktivni slide. */
  .hero.hero--full {
    min-height: 0;
    height: auto;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
    background: #fafbf9;
  }

  .hero__slides {
    position: relative;
    min-height: 0;
    height: auto;
  }

  /* Aktivni slide diktira visinu (relative). Neaktivni ostaju absolute (skriveni opacity:0). */
  .hero__slide.is-active {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
  }

  /* Single-slide: globalno position:absolute pobjeđuje .is-active — bez ovoga hero ima visinu 0 */
  .hero[data-single-slide="true"] .hero__slide {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* SLIKA GORE — fiksna visina, soft rounded bottom + bottom fade za smooth prelazak u kartice */
  .hero__slide-bg {
    position: relative;
    order: 1;
    inset: auto;
    flex: 0 0 auto;
    height: clamp(250px, 64vw, 360px);
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-top: 0;
  }

  .hero__slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .hero__slide-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(250, 251, 249, 0.05) 0%,
      rgba(250, 251, 249, 0.12) 45%,
      rgba(250, 251, 249, 0.82) 100%
    );
    pointer-events: none;
  }

  /* CONTENT KARTICA — overlap odozdo preko slike (negative margin-top) */
  .hero__slide-content {
    position: relative;
    order: 2;
    inset: auto;
    width: 100%;
    padding: 0 var(--gutter) clamp(70px, 16vw, 96px);
    margin-top: -42px;
    z-index: 4;
  }

  /* Stari desktop horizontalni mask — ugasi na mobile-u */
  .hero__slide-content::before {
    display: none;
  }

  /* Card sama (bijela glass) */
  .hero__card {
    max-width: none;
    width: 100%;
    padding: 1.4rem 1.1rem 1.25rem;
    border-radius: 28px;
    background: rgba(250, 251, 249, 0.94);
    border: 1px solid rgba(74, 122, 44, 0.1);
    box-shadow: 0 18px 50px rgba(30, 60, 20, 0.1);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    gap: 0;
  }

  /* Tipografija unutar kartice */
  .hero__pill {
    margin-bottom: 14px;
    min-height: 30px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero__title {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 18px;
    max-width: none;
  }

  /* CTA — full width pill stack */
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 18px;
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    border-radius: 999px;
  }

  .hero__actions .btn--lg {
    padding: 0.7rem 1.1rem;
    font-size: 0.95rem;
  }

  /* Benefit tiles — Opcija A (vertikalne kartice) */
  .hero__tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
  }

  .hero__tile {
    min-height: 54px;
    padding: 12px 14px;
    border-radius: 14px;
    gap: 0.7rem;
  }

  .hero__tile-icon {
    width: 32px;
    height: 32px;
  }

  .hero__tile-icon .icon {
    width: 16px;
    height: 16px;
  }

  .hero__tile-text {
    font-size: 0.85rem;
  }

  /* Slider nav (01 02 03) i counter sakriveni na mobile-u — slika+swipe je dovoljno */
  .hero__nav,
  .hero__counter {
    display: none;
  }

  /* Wave — niži profil na mobile-u */
  .hero__wave {
    height: 62px;
    bottom: -1px;
    z-index: 6;
  }

  .hero__wave .hero__wave-main {
    fill: var(--bg-soft, #F8FAF1);
  }

  /* Progress bar — slider pill je dovoljan indikator */
  .hero__progress {
    display: none;
  }

  /* Pull-up sljedeće sekcije ne forsiramo na mobile-u */
  .hero + .section {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .hero__badge {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    max-width: none;
  }
}

@media (max-width: 480px) {
  /* Sakriti badge na vrlo malim ekranima — ne bi se uklopilo */
  .hero__badge {
    display: none;
  }
}

/* ============================================
   PAGE HEADER (za unutarnje stranice)
   "Page intro" pattern — bez velike pozadinske slike, brand-strong i elegantan.
   .has-bg varijanta (s pozadinskom slikom) ostaje opt-in.
   ============================================ */
.page-header {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(168, 207, 56, 0.10) 0%,
      rgba(168, 207, 56, 0) 45%
    ),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Dekorativni "+" watermark u gornjem desnom kutu (pharmacy simbol) */
.page-header:not(.has-bg)::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 280px;
  height: 280px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23A8CF38' stroke-width='3' stroke-linecap='round'><path d='M50 15 v70 M15 50 h70'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.page-header > .container {
  position: relative;
  z-index: 1;
}

/* Brand vertikalna traka uz lijevi rub teksta */
.page-header:not(.has-bg) .page-header__inner {
  position: relative;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 3px solid var(--brand);
}

@media (max-width: 600px) {
  .page-header:not(.has-bg) .page-header__inner {
    padding-left: 0.75rem;
    border-left-width: 2px;
  }
  .page-header:not(.has-bg)::after {
    width: 180px;
    height: 180px;
    top: -30px;
    right: -30px;
  }
}

/* Opcionalna pozadina (inline --page-header-bg na stranici).
   Split-layout pattern (kao homepage hero, samo manja visina):
   – slika je full-width background sekcije,
   – ::before je color-gradient panel s horizontal mask fade-om udesno (otkriva sliku).
   Tekst ostaje DARK (panel ga drži čitljivim u lijevom dijelu). */
.page-header.has-bg {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(260px, 34vh, 360px);
  /* Pull pod transparent header (kao .hero na početnoj). Prvo padding-top
     uračunaj header height pa onda dodatni padding za breathing room. */
  margin-top: calc(-1 * var(--hero-header-offset, var(--header-h)));
  padding-top: calc(var(--hero-header-offset, var(--header-h)) + clamp(1rem, 2.5vw, 2rem));
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
  background-color: #fafbf9;
  background-image: var(--page-header-bg);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Color-gradient panel + horizontal mask fade (kao homepage hero) */
.page-header.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, #fafbf9 0%, #f2f5ec 100%);
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 30%,
    rgba(0, 0, 0, 0) 54%
  );
  mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 30%,
    rgba(0, 0, 0, 0) 54%
  );
  pointer-events: none;
}

/* "+" watermark (no-bg pattern) ne prikazuj kad ima sliku */
.page-header.has-bg::after {
  display: none;
}

/* Container override: full-width s padding-left poravnatim na container edge,
   padding-right 40% drži text u lijevoj polovici (matching hero). */
.page-header.has-bg > .container {
  max-width: none;
  margin-inline: 0;
  width: 100%;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding-right: 40%;
}

/* Brand left-bar i max-width za text panel */
.page-header.has-bg .page-header__inner {
  max-width: 580px;
  position: relative;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 3px solid var(--brand);
}

/* DARK tekst overrides (zamjenjuju stare bijele) */
.page-header.has-bg .breadcrumb,
.page-header.has-bg .breadcrumb a,
.page-header.has-bg .breadcrumb span {
  color: var(--text-muted);
  text-shadow: none;
}

.page-header.has-bg .breadcrumb a:hover {
  color: var(--brand-deep);
}

.page-header.has-bg .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brand-deep, var(--brand));
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  text-shadow: none;
}

.page-header.has-bg .eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.page-header.has-bg .page-header__title {
  color: var(--text);
  text-shadow: none;
}

.page-header.has-bg .page-header__lead {
  color: var(--text-muted);
  text-shadow: none;
}

/* Mobile — slika se sakriva, panel pokriva full širinu (mask off) */
@media (max-width: 768px) {
  .page-header.has-bg {
    min-height: 0;
    background-image: none;
    margin-top: calc(-1 * var(--hero-header-offset, var(--header-h-sm)));
    padding-top: calc(var(--hero-header-offset, var(--header-h-sm)) + clamp(1rem, 3vw, 1.5rem));
    padding-bottom: clamp(1.5rem, 4vw, 2rem);
  }

  .page-header.has-bg::before {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .page-header.has-bg > .container {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

.page-header__inner {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.page-header__breadcrumb {
  margin-bottom: var(--space-2);
}

/* Eyebrow s brand-line dekoracijom (samo na no-bg varijanti — na has-bg ostaje "čist") */
.page-header:not(.has-bg) .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brand-deep, var(--brand));
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.page-header:not(.has-bg) .eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.page-header__title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0;
}

.page-header__lead {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  max-width: 640px;
  margin: 0;
}

/* ============================================
   LOCATIONS GRID — 4 u redu na desktopu, 2x2 tablet, 1 mobile
   ============================================ */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

@media (max-width: 1100px) {
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (max-width: 560px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   LOCATION CARD
   ============================================ */
.location-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t-base) var(--ease-out);
  height: 100%;
  position: relative;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-soft);
}

/* Trenutna lokacija (na single-lf_pharmacy stranici) */
.location-card--current {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand), 0 8px 24px rgba(168, 207, 56, 0.18);
}

.location-card--current:hover {
  transform: none;
  box-shadow: 0 0 0 2px var(--brand), 0 12px 32px rgba(168, 207, 56, 0.28);
  border-color: var(--brand);
}

.location-card__here-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font-heading, inherit);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.location-card__here-badge svg {
  width: 14px;
  height: 14px;
}

/* Disabled CTA gumb (npr. "Trenutna lokacija") */
.btn.is-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.location-card__media {
  aspect-ratio: 16 / 10;
  background: var(--bg-accent);
  position: relative;
  overflow: hidden;
}

.location-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.location-card:hover .location-card__media img {
  transform: scale(1.05);
}

/* Layout: broj kao watermark u sredini, status preko njega, grad pill gore desno */
.location-card__media .ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  position: relative;
  text-align: center;
}

/* Veliki broj kao watermark — uvijek bijela, low opacity */
.location-card__num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(7rem, 17vw, 11rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  color: rgba(255, 255, 255, 0.22);
  transition: filter 0.6s var(--ease-out);
}

/* OPEN — pulsirajući glow */
.location-card.is-open .location-card__num {
  animation: num-glow-pulse 3.5s ease-in-out infinite;
}

@keyframes num-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.18)); }
  50%      { filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.35)); }
}

/* CLOSING SOON — yellow glow */
.location-card.is-closing-soon .location-card__num {
  filter: drop-shadow(0 0 16px rgba(255, 215, 90, 0.4));
  animation: none;
}

/* CLOSED — bez glow-a, malo prigušeniji */
.location-card.is-closed .location-card__num {
  color: rgba(255, 255, 255, 0.12);
  filter: none;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .location-card.is-open .location-card__num {
    animation: none;
  }
}

/* Info wrap — flatten u parent flex */
.location-card__media-info {
  display: contents;
}

/* Grad pill — apsolutno gore desno preko broja */
.location-card__city {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  padding: 0.4em 0.9em;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--r-pill);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  z-index: 3;
  backdrop-filter: blur(4px);
}

.location-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-grow: 1;
}

.location-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
}

.location-card__addr {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-snug);
}

.location-card__addr .icon {
  width: 16px;
  height: 16px;
  color: var(--brand-dark);
  margin-top: 2px;
  flex-shrink: 0;
}

.location-card__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.location-card__contact a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.location-card__contact a:hover {
  color: var(--brand-deep);
}

.location-card__contact .icon {
  width: 16px;
  height: 16px;
  color: var(--brand-dark);
}

.location-card__footer {
  margin-top: auto;
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  border-top: 1px solid var(--border);
}

.location-card__footer .btn {
  flex: 1 1 auto;
  white-space: nowrap;
}

/* Wolt gumb na kartici — istaknut, USIDREN odmah iznad footera (ista Y razina
   na svim karticama bez obzira na duljinu kontakt info). Footer ima
   `margin-top: auto` što normalno gura sebe na dno kad nema Wolta;
   kada Wolt postoji, on preuzima `auto` razmak, a footer slijedi prirodno. */
.location-card__wolt {
  margin-top: auto;
}

.location-card__wolt + .location-card__footer {
  margin-top: 0;
}

/* Wolt CTA — globalni stil u components.css (.wolt-cta, .wolt-cta--compact) */

/* ============================================
   PH — gradient placeholderi za location card media
   ============================================ */
.ph {
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,0.92);
  position: relative;
}
.ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.12) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.ph--green { background: linear-gradient(135deg, #A8CF38 0%, #7CC242 100%); }
.ph--deep  { background: linear-gradient(135deg, #4A7A2C 0%, #1F2A14 100%); }
.ph--warm  { background: linear-gradient(135deg, #C19660 0%, #8A6A40 100%); }
.ph--mint  { background: linear-gradient(135deg, #D9E9AC 0%, #A8CF38 100%); color: #1F2A14; }
.ph--soft  { background: linear-gradient(135deg, #F0DEC4 0%, #C19660 100%); color: #1F2A14; }

/* ============================================
   STATUS DISPLAY — centriran preko broja-watermarka
   ============================================ */
.status-display {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  pointer-events: none;
}

.status-display__dot {
  display: none;
}

/* Lime accent linija iznad labela */
.status-display__label {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: white;
  letter-spacing: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  line-height: 1;
  text-transform: uppercase;
  position: relative;
  padding-top: var(--space-3);
}

.status-display__label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  transition: background 0.5s var(--ease-out), width 0.5s var(--ease-out);
}

.location-card.is-closing-soon .status-display__label::before {
  background: #FFD75A;
}

.location-card.is-closed .status-display__label::before {
  background: rgba(255, 255, 255, 0.4);
  width: 24px;
}

.status-display--dark .status-display__label {
  color: rgba(31, 42, 20, 0.92);
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.4);
}

.location-card.is-closed .status-display--dark .status-display__label::before {
  background: rgba(31, 42, 20, 0.3);
}

.status-display__detail {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  margin-top: var(--space-2);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  line-height: 1.3;
  letter-spacing: 0;
}

.status-display--dark .status-display__detail {
  color: rgba(31, 42, 20, 0.7);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.4);
}

/* Tamna varijanta — za svjetle pozadine (mint/soft gradients) */
.status-display--dark .status-display__label {
  color: rgba(31, 42, 20, 0.92);
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.5);
}

.status-display--dark .status-display__detail {
  color: rgba(31, 42, 20, 0.7);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.4);
}

.status-display--dark .status-display__dot {
  background: var(--brand-deep);
}

/* OPEN state — pulse animation */
.location-card.is-open .status-display__dot::before,
.location-card.is-open .status-display__dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: white;
  opacity: 0.5;
  animation: status-pulse 1.8s ease-out infinite;
}

.location-card.is-open .status-display__dot::after {
  animation-delay: 0.9s;
}

.location-card.is-open.location-card .status-display--dark .status-display__dot::before,
.location-card.is-open.location-card .status-display--dark .status-display__dot::after {
  background: var(--brand-deep);
}

@keyframes status-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-card.is-open .status-display__dot::before,
  .location-card.is-open .status-display__dot::after {
    animation: none;
    display: none;
  }
}

/* CLOSING SOON — žuti warning indicator */
.location-card.is-closing-soon .status-display__dot {
  background: #FFD75A;
  box-shadow: 0 0 0 3px rgba(255, 215, 90, 0.3);
}

.location-card.is-closing-soon .status-display__dot::before,
.location-card.is-closing-soon .status-display__dot::after {
  background: #FFD75A;
}

.location-card.is-closing-soon .status-display__detail {
  color: #FFE89A;
  font-weight: 600;
}

.location-card.is-closing-soon .status-display--dark .status-display__detail {
  color: #B57F00;
}

/* CLOSED state — dim overlay + sivi tekst */
.location-card.is-closed .location-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 10, 0.5);
  z-index: 1;
  pointer-events: none;
}

.location-card.is-closed .ph__city {
  color: rgba(255, 255, 255, 0.7);
}

.location-card.is-closed .status-display__dot {
  background: rgba(255, 255, 255, 0.45);
}

.location-card.is-closed .status-display__label {
  color: rgba(255, 255, 255, 0.85);
}

.location-card.is-closed .status-display__detail {
  color: rgba(255, 255, 255, 0.7);
}

.location-card.is-closed .status-display--dark .status-display__dot {
  background: rgba(31, 42, 20, 0.4);
}

/* Pojačaj z-index ph__city da nije pod dim overlay-om */
.ph__city {
  z-index: 2;
}

.location-card__city {
  z-index: 3;
}

/* ============================================
   LOCATIONS MAP — Leaflet integration
   ============================================ */
.locations-map-wrap {
  margin-top: var(--space-12);
  position: relative;
}

.locations-map {
  width: 100%;
  height: 480px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--bg-soft);
  position: relative;
  z-index: 0;
}

@media (max-width: 768px) {
  .locations-map {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .locations-map {
    height: 340px;
  }
}

.locations-map__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  z-index: 1;
  pointer-events: none;
  transition: opacity var(--t-base);
}

.locations-map.is-loaded .locations-map__loading {
  opacity: 0;
  visibility: hidden;
}

.locations-map__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.locations-map__hint {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.locations-map__hint .icon {
  width: 16px;
  height: 16px;
  color: var(--brand-dark);
}

/* Custom marker — lime green s pharmacy ikonom */
.lf-marker-wrap {
  background: transparent !important;
  border: none !important;
}

.lf-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow:
    0 4px 14px rgba(31, 42, 20, 0.35),
    0 0 0 1px rgba(31, 42, 20, 0.08);
  position: relative;
  cursor: pointer;
  transition:
    transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base);
}

.lf-marker:hover,
.lf-marker.is-active {
  transform: scale(1.15);
  background: var(--brand-hover);
  box-shadow:
    0 8px 20px rgba(31, 42, 20, 0.4),
    0 0 0 4px rgba(168, 207, 56, 0.3);
}

.lf-marker svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.lf-marker::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--brand);
  border-right: 3px solid var(--bg);
  border-bottom: 3px solid var(--bg);
}

.lf-marker:hover::after,
.lf-marker.is-active::after {
  background: var(--brand-hover);
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: var(--r-lg) !important;
  box-shadow: var(--shadow-xl) !important;
  padding: 0 !important;
  border: 1px solid var(--border);
}

.leaflet-popup-content {
  margin: 0 !important;
  font-family: var(--font-body) !important;
  width: 260px !important;
}

.leaflet-popup-tip {
  background: var(--bg) !important;
  box-shadow: var(--shadow-md) !important;
}

.leaflet-popup-close-button {
  width: 28px !important;
  height: 28px !important;
  font-size: 22px !important;
  color: var(--text-muted) !important;
  padding: 2px !important;
  top: 4px !important;
  right: 6px !important;
}

.leaflet-popup-close-button:hover {
  color: var(--text) !important;
}

.lf-popup {
  padding: var(--space-4) var(--space-5) var(--space-4);
}

.lf-popup__city {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: var(--space-1);
}

.lf-popup__title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--space-2) 0;
  line-height: 1.2;
}

.lf-popup__addr {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.lf-popup__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: var(--space-3);
}

.lf-popup__phone svg {
  width: 14px;
  height: 14px;
}

.lf-popup__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--brand);
  color: var(--text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-top: var(--space-2);
  transition: background var(--t-fast);
}

.lf-popup__cta:hover {
  background: var(--brand-hover);
  color: var(--text);
}

.lf-popup__cta svg {
  width: 14px;
  height: 14px;
}

/* Highlight animation kad se klikne marker */
.location-card.is-highlighted {
  animation: pulse-highlight 1.4s var(--ease-out);
}

@keyframes pulse-highlight {
  0%, 100% {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
  }
  30% {
    box-shadow:
      0 0 0 6px rgba(168, 207, 56, 0.35),
      var(--shadow-lg);
    transform: translateY(-6px);
  }
}

/* ============================================
   SERVICES SECTION (na početnoj i savjetovanjima)
   ============================================ */
.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  height: 100%;
  transition: all var(--t-base) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-md);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.service-card__desc {
  color: var(--text-muted);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  flex-grow: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--brand-deep);
  margin-top: auto;
}

.service-card__link .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--t-base);
}

.service-card:hover .service-card__link .icon {
  transform: translateX(4px);
}

/* ============================================
   "OFFER + ADVICE" PAIR (početna)
   Dvije strane: lijevo akcija, desno savjeti
   ============================================ */
.offer-advice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

@media (max-width: 880px) {
  .offer-advice {
    grid-template-columns: 1fr;
  }
}

.feature-block {
  padding: var(--space-10);
  border-radius: var(--r-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.feature-block--brand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--text);
}

.feature-block--accent {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-warm) 100%);
  color: var(--text);
}

.feature-block__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--r-md);
}

.feature-block--accent .feature-block__icon {
  background: var(--bg);
}

.feature-block__title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  color: inherit;
}

.feature-block__desc {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  max-width: 440px;
  color: inherit;
  opacity: 0.85;
}

.feature-block__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
  font-weight: 700;
  font-size: var(--fs-base);
  color: inherit;
  border-bottom: 2px solid currentColor;
  align-self: flex-start;
  padding-bottom: 4px;
  transition: gap var(--t-base);
}

.feature-block__cta:hover {
  gap: var(--space-3);
  color: inherit;
}

.feature-block__cta .icon {
  width: 18px;
  height: 18px;
}

/* Decorative shape on feature blocks */
.feature-block::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* ============================================
   ARTICLE / SAVJET CARD
   ============================================ */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t-base);
  height: 100%;
  /* Cijela kartica je <a> link */
  color: inherit;
  text-decoration: none;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
  color: inherit;
}

.article-card__media {
  aspect-ratio: 16 / 10;
  background: var(--bg-accent);
  position: relative;
  overflow: hidden;
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.article-card:hover .article-card__media img {
  transform: scale(1.06);
}

.article-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-grow: 1;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-weight: 600;
}

.article-card__meta .badge {
  margin: 0;
}

.article-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: var(--lh-snug);
  color: var(--text);
  margin: 0;
}

.article-card__excerpt {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.article-card__footer {
  margin-top: auto;
  padding-top: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-deep);
}

.article-card__footer .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--t-base);
}

.article-card:hover .article-card__footer .icon {
  transform: translateX(4px);
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partner-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-8);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: all var(--t-base);
}

.partner-card:hover {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-md);
}

@media (max-width: 720px) {
  .partner-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.partner-card__logo {
  width: 100px;
  height: 100px;
  background: var(--bg-warm);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-deep);
  font-size: var(--fs-lg);
  text-align: center;
  padding: var(--space-2);
  line-height: 1.1;
}

@media (max-width: 720px) {
  .partner-card__logo {
    margin: 0 auto;
  }
}

.partner-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 0 0 var(--space-1) 0;
}

.partner-card__loc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.partner-card__desc {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

/* ============================================
   STATS SECTION (početna)
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding: var(--space-10);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
}

@media (max-width: 720px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    padding: var(--space-6);
  }
}

@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--text) 100%);
  border-radius: var(--r-2xl);
  color: var(--text-on-dark);
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

.cta-banner__title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-4);
  color: var(--text-on-dark);
  position: relative;
}

.cta-banner__lead {
  font-size: var(--fs-md);
  color: rgba(248, 250, 241, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  position: relative;
}

.cta-banner__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

@media (max-width: 480px) {
  .cta-banner__actions {
    flex-direction: column;
  }
  .cta-banner__actions .btn {
    width: 100%;
  }
}

/* Outline gumb na tamnoj CTA pozadini — default svijetli tekst; hover tamniji tekst na svijetloj podlozi */
.cta-banner .btn--outline {
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-banner .btn--outline:hover,
.cta-banner .btn--outline:focus-visible {
  background: var(--bg-accent);
  border-color: var(--brand);
  color: var(--text);
}

.cta-banner .btn--outline:focus-visible {
  outline: 2px solid var(--brand-soft);
  outline-offset: 2px;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  max-width: 480px;
  margin-left: auto;
  background: var(--text);
  color: var(--text-on-dark);
  padding: var(--space-5);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-toast);
  font-size: var(--fs-sm);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: slide-up 0.4s var(--ease-out);
}

.cookie-banner h4 {
  color: var(--brand);
  font-size: var(--fs-base);
  margin-bottom: var(--space-2);
}

.cookie-banner p {
  color: rgba(248, 250, 241, 0.8);
  margin-bottom: var(--space-4);
  line-height: var(--lh-relaxed);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ============================================
   PHARMACY SINGLE — detalj ljekarne
   ============================================ */

/* Page header s velikim brojem 01-04 */
.pharmacy-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: center;
}

.pharmacy-header__num {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--brand);
  flex-shrink: 0;
}

.pharmacy-header__content {
  min-width: 0;
}

.pharmacy-header__addr {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-md);
  color: var(--text-muted);
  margin-top: var(--space-3);
  margin-bottom: 0;
}

.pharmacy-header__addr .icon {
  color: var(--brand-dark);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .pharmacy-header {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .pharmacy-header__num {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }
}

/* Hero image / gradient stripe */
.pharmacy-hero {
  height: clamp(280px, 35vw, 440px);
  overflow: hidden;
  position: relative;
}

.pharmacy-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pharmacy-hero .ph {
  position: absolute;
  inset: 0;
}

/* Detail layout — info lijevo, mapa desno */
.pharmacy-detail {
  gap: var(--space-10);
}

@media (max-width: 880px) {
  .pharmacy-detail {
    gap: var(--space-8);
  }
}

/* Pharmacy info column */
.pharmacy-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.pharmacy-section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin: 0;
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--brand-soft);
  letter-spacing: var(--ls-tight);
}

/* Status pločica */
.pharmacy-status {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pharmacy-status__top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pharmacy-status__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  position: relative;
}

.pharmacy-status__label {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
  line-height: 1;
  color: var(--text);
}

.pharmacy-status__detail {
  font-size: var(--fs-base);
  color: var(--text-muted);
  font-weight: 500;
  padding-left: 24px; /* alignment s dot-om */
}

/* OPEN state */
.pharmacy-info.is-open .pharmacy-status,
.location-card.is-open .pharmacy-status {
  background: var(--bg-accent);
  border-color: var(--brand-soft);
}

.pharmacy-info.is-open .pharmacy-status__dot,
[data-working-hours].is-open .pharmacy-status__dot {
  background: var(--brand);
}

.pharmacy-info.is-open .pharmacy-status__dot::before,
.pharmacy-info.is-open .pharmacy-status__dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.4;
  animation: status-pulse 2s ease-out infinite;
}

.pharmacy-info.is-open .pharmacy-status__dot::after {
  animation-delay: 1s;
}

.pharmacy-info.is-open .pharmacy-status__label {
  color: var(--brand-deep);
}

/* CLOSING SOON */
.pharmacy-info.is-closing-soon .pharmacy-status {
  background: rgba(255, 215, 90, 0.12);
  border-color: rgba(255, 215, 90, 0.5);
}

.pharmacy-info.is-closing-soon .pharmacy-status__dot {
  background: #E8A93A;
}

.pharmacy-info.is-closing-soon .pharmacy-status__label {
  color: #8A5E10;
}

/* CLOSED */
.pharmacy-info.is-closed .pharmacy-status {
  background: var(--bg-soft);
  opacity: 0.85;
}

.pharmacy-info.is-closed .pharmacy-status__label {
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .pharmacy-info.is-open .pharmacy-status__dot::before,
  .pharmacy-info.is-open .pharmacy-status__dot::after {
    animation: none;
    display: none;
  }
}

/* Kontakt liste */
.pharmacy-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pharmacy-contact__row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-fast);
}

.pharmacy-contact__row:hover {
  background: var(--bg-soft);
  border-color: var(--brand-soft);
  transform: translateX(2px);
  color: var(--text);
}

.pharmacy-contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-accent);
  border-radius: 50%;
  color: var(--brand-dark);
  flex-shrink: 0;
}

.pharmacy-contact__icon .icon {
  width: 18px;
  height: 18px;
}

.pharmacy-contact__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-subtle);
  white-space: nowrap;
}

.pharmacy-contact__value {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  text-align: right;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .pharmacy-contact__row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-1) var(--space-3);
  }
  .pharmacy-contact__icon {
    grid-row: 1 / span 2;
  }
  .pharmacy-contact__value {
    grid-column: 2;
    text-align: left;
  }
  .pharmacy-contact__label {
    grid-column: 2;
  }
}

/* Mapa */
.pharmacy-map-wrap {
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
}

.pharmacy-map {
  width: 100%;
  height: clamp(360px, 50vw, 520px);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  position: relative;
  cursor: pointer;
}

.pharmacy-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pharmacy-map__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  pointer-events: none;
}

.pharmacy-map__placeholder .icon {
  width: 32px;
  height: 32px;
  color: var(--brand-dark);
}

.pharmacy-map[data-loaded="true"] .pharmacy-map__placeholder {
  display: none;
}

@media (max-width: 880px) {
  .pharmacy-map-wrap {
    position: static;
  }
}

/* ============================================
   PROMO TABLE — mjesečna lista popusta
   ============================================ */
.promo-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg);
  box-shadow: var(--shadow-md);
}

.promo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.promo-table thead {
  background: var(--bg-soft);
}

.promo-table th {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-strong);
  white-space: nowrap;
}

.promo-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.promo-table tbody tr {
  transition: background var(--t-fast);
}

.promo-table tbody tr:hover {
  background: var(--bg-soft);
}

.promo-table tbody tr:last-child td {
  border-bottom: none;
}

.promo-table__date {
  width: 1%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.promo-table__brand {
  color: var(--text);
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.promo-table__discount {
  min-width: 10rem;
  white-space: normal;
  vertical-align: top;
}

.promo-discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-md);
  line-height: 1.35;
  color: var(--brand-deep);
  background: var(--bg-accent);
  padding: 0.2em 0.6em;
  border-radius: var(--r-pill);
  font-variant-numeric: tabular-nums;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Uža tablica / kartice — wrap je vjerojatniji → mekši radius (bez container query) */
@media (max-width: 1024px) {
  .promo-discount {
    border-radius: var(--r-md);
    align-items: flex-start;
  }
}

.promo-table__note {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-style: italic;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 1025px) {
  .promo-table__brand {
    min-width: 12rem;
  }
}

@media (max-width: 1024px) and (min-width: 721px) {
  .promo-table-wrap {
    overflow-x: visible;
  }
}

@media (max-width: 720px) {
  .promo-table-wrap {
    overflow-x: visible;
  }

  .promo-table thead { display: none; }
  .promo-table, .promo-table tbody, .promo-table tr, .promo-table td {
    display: block;
    width: 100%;
  }
  .promo-table tr {
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) 0;
  }
  .promo-table td {
    display: grid;
    grid-template-columns: 4.75rem minmax(0, 1fr);
    column-gap: var(--space-3);
    row-gap: 0.15rem;
    align-items: start;
    padding: var(--space-2) var(--space-5);
    border: none;
  }
  .promo-table td[data-label]::before {
    content: attr(data-label) ":";
    display: block;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin-right: 0;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--text-subtle);
    white-space: nowrap;
  }
  .promo-table td > * {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    max-width: 100%;
    justify-self: start;
  }

  .promo-table__date {
    white-space: normal;
    width: auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .promo-table__brand {
    margin-top: 0;
    margin-bottom: 0;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .promo-table__brand strong {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .promo-table__discount {
    white-space: normal;
    width: auto;
    min-width: 0;
  }
  .promo-discount {
    width: fit-content;
    max-width: 100%;
    vertical-align: top;
  }
  .promo-table__note {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ============================================
   ANIMATIONS (intersection observer reveals)
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   SAVJETI — paginacija (glavna lista bloga)
   ============================================ */
.lf-pagination {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-12);
}

.lf-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.lf-pagination .page-numbers li {
  margin: 0;
  list-style: none;
}

.lf-pagination .page-numbers a,
.lf-pagination .page-numbers li > span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    border-color var(--t-fast),
    background var(--t-fast),
    color var(--t-fast);
}

.lf-pagination .page-numbers a:hover,
.lf-pagination .page-numbers a:focus-visible {
  border-color: var(--brand);
  background: transparent;
  color: var(--brand-dark);
  outline: none;
}

.lf-pagination .page-numbers a.prev,
.lf-pagination .page-numbers a.next {
  min-width: 2.5rem;
  padding: 0 0.65rem;
}

.lf-pagination .page-numbers span.current,
.lf-pagination .page-numbers span.page-numbers.current {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
}

.lf-pagination .page-numbers span.dots {
  border-color: transparent;
  background: transparent;
  font-weight: 500;
  color: var(--text-muted);
  min-width: auto;
  padding: 0 0.25rem;
}

.lf-pagination .page-numbers span.prev,
.lf-pagination .page-numbers span.next,
.lf-pagination .page-numbers .page-numbers.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.lf-pagination__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lf-pagination__icon .icon {
  width: 1.125rem;
  height: 1.125rem;
}

/* ============================================
   SINGLE BLOG POST — čitljivost sadržaja (samo savjeti)
   ============================================ */

/* hero → slika i slika → sadržaj: isti razmak (--section-y-sm), bez dvostrukog section paddinga */
body.single-post .page-header + .section.section--sm {
  padding-block: var(--section-y-sm) 0;
}

body.single-post .page-header + .section.section--sm + .section {
  padding-top: var(--section-y-sm);
}

body.single-post .entry-content {
  font-size: var(--fs-md);
  margin-top: 0;
}

body.single-post .entry-content p,
body.single-post .entry-content li {
  line-height: var(--lh-loose);
}

/* ============================================
   PHARMACY PROFILE — single-lf_pharmacy.php (business profile layout)
   ============================================ */

/* ---------- HERO ---------- */
.pharmacy-profile-hero {
  position: relative;
  overflow: hidden;
  /* Header je is-static is-scrolled na single-lf_pharmacy (bez transparent) — hero ide
     normalno ispod headera, ne pulla pod njega. */
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 86% 26%, rgba(168, 207, 56, 0.13), transparent 34%),
    linear-gradient(180deg, #fafbf9 0%, #f2f5ec 100%);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

.pharmacy-profile-hero::after {
  content: "+";
  position: absolute;
  right: 4vw;
  top: 18%;
  font-family: var(--font-heading);
  font-size: clamp(120px, 14vw, 240px);
  line-height: 1;
  color: rgba(168, 207, 56, 0.08);
  font-weight: 700;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.pharmacy-profile-hero__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}

.pharmacy-profile-hero__breadcrumb {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pharmacy-profile-hero__breadcrumb .breadcrumb-sep {
  margin: 0 0.4em;
  color: var(--border-strong);
}

.pharmacy-profile-hero__identity {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 44px);
  margin-top: var(--space-2);
}

.pharmacy-profile-hero__number {
  color: var(--brand);
  font-family: var(--font-heading);
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.8;
  font-weight: 800;
  letter-spacing: -0.08em;
  flex-shrink: 0;
}

.pharmacy-profile-hero__heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.pharmacy-profile-hero__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 26px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pharmacy-profile-hero__title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.pharmacy-profile-hero__addr {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.pharmacy-profile-hero__addr .icon {
  width: 18px;
  height: 18px;
  color: var(--brand-deep);
  flex-shrink: 0;
}

.pharmacy-profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* ---------- HERO QUICK CARD ---------- */
.pharmacy-profile-hero__quick {
  position: relative;
  z-index: 3;
  align-self: center;
  width: 100%;
  padding: 1.75rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 70px rgba(30, 60, 20, 0.13);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pharmacy-profile-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Status dot — klase na [data-working-hours] (JS) i .pharmacy-profile-hero__quick (PHP + JS sync) */
.pharmacy-profile-hero__status-dot {
  position: relative;
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.pharmacy-profile-hero.is-open .pharmacy-profile-hero__status,
.pharmacy-profile-hero__quick.is-open .pharmacy-profile-hero__status {
  color: var(--brand-deep);
}

.pharmacy-profile-hero.is-open .pharmacy-profile-hero__status-dot,
.pharmacy-profile-hero__quick.is-open .pharmacy-profile-hero__status-dot {
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(168, 207, 56, 0.2);
}

.pharmacy-profile-hero.is-open .pharmacy-profile-hero__status-dot::before,
.pharmacy-profile-hero.is-open .pharmacy-profile-hero__status-dot::after,
.pharmacy-profile-hero__quick.is-open .pharmacy-profile-hero__status-dot::before,
.pharmacy-profile-hero__quick.is-open .pharmacy-profile-hero__status-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.45;
  animation: status-pulse 2s ease-out infinite;
}

.pharmacy-profile-hero.is-open .pharmacy-profile-hero__status-dot::after,
.pharmacy-profile-hero__quick.is-open .pharmacy-profile-hero__status-dot::after {
  animation-delay: 1s;
}

.pharmacy-profile-hero.is-closing-soon .pharmacy-profile-hero__status,
.pharmacy-profile-hero__quick.is-closing-soon .pharmacy-profile-hero__status {
  color: #8a5e10;
}

.pharmacy-profile-hero.is-closing-soon .pharmacy-profile-hero__status-dot,
.pharmacy-profile-hero__quick.is-closing-soon .pharmacy-profile-hero__status-dot {
  background: #e8a93a;
  box-shadow: 0 0 0 5px rgba(232, 169, 58, 0.22);
}

.pharmacy-profile-hero.is-closed .pharmacy-profile-hero__status-dot,
.pharmacy-profile-hero__quick.is-closed .pharmacy-profile-hero__status-dot {
  background: #9a9aa0;
}

@media (prefers-reduced-motion: reduce) {
  .pharmacy-profile-hero.is-open .pharmacy-profile-hero__status-dot::before,
  .pharmacy-profile-hero.is-open .pharmacy-profile-hero__status-dot::after,
  .pharmacy-profile-hero__quick.is-open .pharmacy-profile-hero__status-dot::before,
  .pharmacy-profile-hero__quick.is-open .pharmacy-profile-hero__status-dot::after {
    animation: none;
    display: none;
  }
}

.pharmacy-profile-hero__quick-headline {
  display: block;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--text);
  font-weight: 700;
}

.pharmacy-profile-hero__quick-headline:empty {
  display: none;
}

.pharmacy-profile-hero__quick-range {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pharmacy-profile-hero__quick-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--text);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: transform var(--t-fast), background var(--t-fast);
}

.pharmacy-profile-hero__quick-phone:hover {
  background: var(--brand-hover, var(--brand-deep));
  color: #fff;
  transform: translateY(-1px);
}

.pharmacy-profile-hero__quick-phone .icon {
  width: 18px;
  height: 18px;
}

/* ---------- ANCHOR NAV (sticky) ---------- */
.pharmacy-anchor-nav {
  position: sticky;
  top: var(--site-header-offset, var(--hero-header-offset, var(--header-h)));
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
  touch-action: pan-y;
}

.pharmacy-anchor-nav__inner {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
}

.pharmacy-anchor-nav__inner::-webkit-scrollbar {
  display: none;
}

.pharmacy-anchor-nav a {
  white-space: nowrap;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--t-fast), color var(--t-fast);
  flex-shrink: 0;
}

.pharmacy-anchor-nav a:hover {
  background: var(--bg-accent);
  color: var(--brand-deep);
}

.pharmacy-anchor-nav a.is-active {
  background: var(--brand);
  color: var(--text);
}

/* Single ljekarna: anchor flush ispod sticky headera (bez shadow “rupe”) */
body.single-lf_pharmacy .site-header.is-scrolled,
body.single-lf_pharmacy .site-header.is-static {
  box-shadow: 0 1px 2px rgba(30, 45, 20, 0.05);
}

body.single-lf_pharmacy .pharmacy-anchor-nav {
  top: var(--site-header-offset, var(--header-h));
  margin-top: 0;
}

/* ---------- PROFILE GRID ---------- */
.pharmacy-profile {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: #ffffff;
  /* Anchor scroll offset — header + sticky anchor traka (JS sync visine) */
  scroll-margin-top: calc(
    var(--site-header-offset, var(--hero-header-offset, var(--header-h)))
    + var(--pharmacy-anchor-nav-h, 52px)
  );
}

.pharmacy-profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.pharmacy-profile__main > .pharmacy-block + .pharmacy-block {
  margin-top: clamp(2.5rem, 4.5vw, 3.5rem);
}

.pharmacy-profile__sidebar {
  position: sticky;
  top: calc(
    var(--site-header-offset, var(--hero-header-offset, var(--header-h)))
    + var(--pharmacy-anchor-nav-h, 52px)
  );
}

/* Anchor scroll offset za sve sekcije */
.pharmacy-block,
#mapa {
  scroll-margin-top: calc(
    var(--site-header-offset, var(--hero-header-offset, var(--header-h)))
    + var(--pharmacy-anchor-nav-h, 52px)
  );
}

.pharmacy-block__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.pharmacy-block__text {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--text);
}

/* ---------- KONTAKT REDOVI (cijeli red klikabilan) ---------- */
.pharmacy-contact {
  display: grid;
  gap: 0.75rem;
}

.pharmacy-contact__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-md, 12px);
  background: var(--bg-soft, #F8FAF1);
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast),
    transform var(--t-fast);
}

.pharmacy-contact__row:hover {
  background: #ffffff;
  border-color: var(--brand-soft, rgba(168, 207, 56, 0.45));
  transform: translateY(-1px);
}

.pharmacy-contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(168, 207, 56, 0.18);
  color: var(--brand-deep);
  flex-shrink: 0;
}

.pharmacy-contact__icon .icon {
  width: 20px;
  height: 20px;
}

.pharmacy-contact__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.pharmacy-contact__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pharmacy-contact__value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.pharmacy-contact__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform var(--t-fast), color var(--t-fast);
}

.pharmacy-contact__arrow .icon {
  width: 18px;
  height: 18px;
}

.pharmacy-contact__row:hover .pharmacy-contact__arrow {
  color: var(--brand-deep);
  transform: translateX(2px);
}

/* ---------- HOURS CARD (s is-today highlight) ---------- */
.pharmacy-hours-card {
  background: var(--bg-soft, #F8FAF1);
  border-radius: var(--r-lg, 16px);
  padding: 1.25rem 1.5rem;
}

.pharmacy-hours-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pharmacy-hours-card .hours__row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  font-size: 0.95rem;
  color: var(--text);
}

.pharmacy-hours-card .hours__day {
  font-weight: 600;
  color: var(--text-muted);
}

.pharmacy-hours-card .hours__time {
  font-weight: 600;
}

.pharmacy-hours-card .hours__row.is-closed .hours__time {
  color: var(--text-muted);
  font-style: italic;
}

.pharmacy-hours-card .hours__row.is-today {
  background: rgba(168, 207, 56, 0.16);
  color: var(--brand-deep);
}

.pharmacy-hours-card .hours__row.is-today .hours__day,
.pharmacy-hours-card .hours__row.is-today .hours__time {
  color: var(--brand-deep);
  font-weight: 800;
}

.pharmacy-hours-card .hours__today-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--text);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pharmacy-hours-card__note {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(168, 207, 56, 0.18);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- USLUGE LIST ---------- */
.pharmacy-services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pharmacy-services-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-md, 12px);
  background: var(--bg-soft, #F8FAF1);
  font-weight: 500;
}

.pharmacy-services-list__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--brand-deep);
  flex-shrink: 0;
}

.pharmacy-services-list__check .icon {
  width: 22px;
  height: 22px;
}

/* ---------- MAP CARD (sticky desno) ---------- */
.pharmacy-map-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg, 18px);
  padding: 1.25rem;
  box-shadow: 0 12px 40px rgba(30, 60, 20, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pharmacy-map-card__head h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.pharmacy-map-card__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pharmacy-map-card .pharmacy-map {
  border-radius: var(--r-md, 14px);
  overflow: hidden;
  height: 320px;
}

.pharmacy-map-card__cta {
  margin-top: 0;
}

/* ---------- MOBILE — Pharmacy profile (tablet 960 → stacking) ---------- */
@media (max-width: 960px) {
  .pharmacy-profile-hero__container,
  .pharmacy-profile__grid {
    grid-template-columns: 1fr;
  }

  .pharmacy-profile-hero__quick,
  .pharmacy-profile__sidebar {
    position: static;
  }

  .pharmacy-profile-hero__quick {
    margin-top: var(--space-4);
  }

  .pharmacy-profile__sidebar {
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
  }

  .pharmacy-profile-hero::after {
    display: none;
  }
}

/* ---------- MOBILE — Pharmacy profile (≤768px) — clean stack, full-width pill CTA ---------- */
@media (max-width: 768px) {
  .pharmacy-profile-hero {
    padding-top: clamp(1.5rem, 5vw, 2.5rem);
    padding-bottom: clamp(1.75rem, 5vw, 2.75rem);
  }

  .pharmacy-profile-hero__breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.85rem;
  }

  .pharmacy-profile-hero__identity {
    align-items: flex-start;
    gap: 1rem;
    margin-top: var(--space-1);
  }

  .pharmacy-profile-hero__number {
    font-size: 3.75rem;
    line-height: 0.85;
  }

  .pharmacy-profile-hero__heading {
    gap: 0.4rem;
  }

  .pharmacy-profile-hero__badge {
    font-size: 0.65rem;
    min-height: 22px;
    padding: 0 0.7rem;
  }

  .pharmacy-profile-hero__title {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    line-height: 1.05;
  }

  .pharmacy-profile-hero__addr {
    font-size: 0.92rem;
  }

  .pharmacy-profile-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 1.25rem;
  }

  .pharmacy-profile-hero__actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 50px;
    border-radius: 999px;
  }

  .pharmacy-profile-hero__actions .btn--lg {
    padding: 0.7rem 1.1rem;
    font-size: 0.95rem;
  }

  /* Quick info card — full-width clean kartica */
  .pharmacy-profile-hero__quick {
    padding: 1.25rem 1.1rem;
    border-radius: 22px;
    margin-top: 1.25rem;
  }

  .pharmacy-profile-hero__quick-headline {
    font-size: 1.2rem;
  }

  .pharmacy-profile-hero__quick-phone {
    min-height: 50px;
    font-size: 0.95rem;
  }

  /* Anchor nav — horizontal scroll affordance + centriranje aktivne stavke */
  .pharmacy-anchor-nav {
    overflow: hidden;
    isolation: isolate;
  }

  .pharmacy-anchor-nav__inner {
    gap: 0.35rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    scroll-padding-inline: 1.5rem;
    scroll-snap-type: x proximity;
  }

  .pharmacy-anchor-nav::before,
  .pharmacy-anchor-nav::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36px;
    pointer-events: none;
    z-index: 31;
    opacity: 1;
    transition: opacity 0.2s ease;
  }

  .pharmacy-anchor-nav::before {
    left: 0;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.72) 45%,
      transparent 100%
    );
  }

  .pharmacy-anchor-nav::after {
    right: 0;
    background: linear-gradient(
      270deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.72) 45%,
      transparent 100%
    );
  }

  .pharmacy-anchor-nav:not(.has-horizontal-scroll)::before,
  .pharmacy-anchor-nav:not(.has-horizontal-scroll)::after {
    opacity: 0;
  }

  .pharmacy-anchor-nav.is-at-scroll-start::before {
    opacity: 0;
  }

  .pharmacy-anchor-nav.is-at-scroll-end::after {
    opacity: 0;
  }

  .pharmacy-anchor-nav a {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    scroll-snap-align: center;
  }

  .pharmacy-anchor-nav a.is-active {
    color: var(--brand-deep);
    box-shadow: 0 0 0 1px rgba(74, 122, 44, 0.2);
  }

  .pharmacy-profile,
  .pharmacy-block,
  #mapa {
    scroll-margin-top: calc(
      var(--site-header-offset, var(--hero-header-offset, var(--header-h-sm)))
      + var(--pharmacy-anchor-nav-h, 52px)
    );
  }

  /* Profile content blockovi — manji naslovi, kompaktniji rastriri */
  .pharmacy-block__title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
  }

  .pharmacy-block + .pharmacy-block,
  .pharmacy-profile__main > .pharmacy-block + .pharmacy-block {
    margin-top: 2rem;
  }

  .pharmacy-contact__row {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    padding: 0.85rem 1rem;
    gap: 0.85rem;
  }

  .pharmacy-contact__icon {
    width: 40px;
    height: 40px;
  }

  .pharmacy-contact__value {
    font-size: 0.95rem;
  }

  .pharmacy-services-list {
    grid-template-columns: 1fr;
  }

  .pharmacy-hours-card {
    padding: 1rem 1.1rem;
  }

  .pharmacy-hours-card .hours__row {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    padding: 0.55rem 0.55rem;
    font-size: 0.9rem;
  }

  .pharmacy-map-card {
    padding: 1rem;
  }

  .pharmacy-map-card .pharmacy-map {
    height: 240px;
  }
}

/* ============================================
   PAGE HERO — moderniji split layout (Ljekarne stranica)
   – Lijevo: veliki naslov + CTA na svjetlom panelu (gradient overlay).
   – Desno: glass info-kartica s dinamičkom listom ljekarni i live statusom.
   – Dolje: SVG wave organski prijelaz prema sljedećoj sekciji.
   ============================================ */
.page-hero {
  position: relative;
  display: block;
  min-height: clamp(620px, 78vh, 780px);
  overflow: hidden;
  isolation: isolate;
  background: #fafbf9;
  /* Hero ide ispod transparent headera — sadržaj se spušta padding-topom unutar containera. */
  margin-top: calc(-1 * var(--hero-header-offset, var(--header-h)));
  color: var(--text);
}

/* Diskretni dot-pattern dekoracija lijevo */
.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(140px, 22vh, 220px);
  width: clamp(180px, 18vw, 260px);
  height: clamp(280px, 36vh, 400px);
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(circle, rgba(168, 207, 56, 0.55) 1.5px, transparent 1.8px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to right, #000, transparent 80%);
  mask-image: linear-gradient(to right, #000, transparent 80%);
}

/* Veliki suptilni "+" dolje lijevo */
.page-hero::after {
  content: "+";
  position: absolute;
  left: clamp(16px, 2vw, 32px);
  bottom: clamp(110px, 14vw, 180px);
  z-index: 2;
  font-family: var(--font-heading);
  font-size: clamp(80px, 10vw, 130px);
  line-height: 1;
  font-weight: 700;
  color: rgba(168, 207, 56, 0.12);
  pointer-events: none;
  user-select: none;
}

/* Pozadinska slika — full-bleed cover */
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.page-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

/* Overlay — soft fade desno + zelenkasti tint + bottom fade za wave */
.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 8% 68%,
      rgba(168, 207, 56, 0.16) 0%,
      rgba(168, 207, 56, 0.08) 26%,
      rgba(168, 207, 56, 0) 48%
    ),
    linear-gradient(
      90deg,
      rgba(250, 251, 249, 0.98) 0%,
      rgba(250, 251, 249, 0.92) 30%,
      rgba(250, 251, 249, 0.58) 52%,
      rgba(250, 251, 249, 0.18) 72%,
      rgba(250, 251, 249, 0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(250, 251, 249, 0.18) 0%,
      rgba(250, 251, 249, 0) 52%,
      rgba(250, 251, 249, 0.72) 100%
    );
}

/* Bez slike — overlay i dot-pattern smiju ostati, ali olakšaj overlay (nema slike za pojačati) */
.page-hero:not(.has-bg) .page-hero__overlay {
  background:
    radial-gradient(
      circle at 92% 14%,
      rgba(168, 207, 56, 0.14) 0%,
      rgba(168, 207, 56, 0) 50%
    ),
    linear-gradient(180deg, #fafbf9 0%, #f2f5ec 100%);
}

/* Container layout — split 1fr / 340px (kartica desno) */
.page-hero__container {
  position: relative;
  z-index: 3;
  min-height: clamp(560px, 72vh, 700px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  padding-top: calc(var(--hero-header-offset, var(--header-h)) + clamp(1.5rem, 3vw, 2.5rem));
  padding-bottom: calc(clamp(70px, 8vw, 120px) + clamp(1rem, 2vw, 1.5rem));
}

/* Bez kartice — content sam zauzima cijelu širinu, manji min-height */
.page-hero--no-card .page-hero__container {
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(440px, 60vh, 580px);
  align-items: flex-start;
}

.page-hero--no-card {
  min-height: clamp(500px, 64vh, 640px);
}

.page-hero__content {
  max-width: 680px;
  animation: heroContentIn 0.7s var(--ease-out) both;
}

.page-hero__breadcrumb {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.page-hero__breadcrumb .breadcrumb-sep {
  margin: 0 0.4em;
  color: var(--border-strong);
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-hero__eyebrow span {
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
}

.page-hero__title {
  margin: 0;
  max-width: 680px;
  color: var(--text);
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.page-hero__title em {
  display: inline-block;
  font-style: normal;
  color: var(--brand-deep);
}

.page-hero__lead {
  max-width: 560px;
  margin: 1.4rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.6;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* "White glass" gumb — secondary varijanta za dark text na svijetloj/slikovnoj podlozi */
.btn--white {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border: 1px solid rgba(74, 122, 44, 0.14);
  box-shadow: 0 12px 34px rgba(34, 50, 24, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn--white:hover {
  background: #ffffff;
  border-color: rgba(74, 122, 44, 0.28);
  color: var(--brand-deep);
}

/* Glass info-kartica desno */
.page-hero__info-card {
  position: relative;
  z-index: 4;
  align-self: center;
  width: min(100%, 340px);
  padding: 1.75rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 28px 80px rgba(24, 46, 18, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  animation: heroCardIn 0.8s var(--ease-out) 0.12s both;
}

.page-hero__info-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 12px 28px rgba(168, 207, 56, 0.32);
  margin-bottom: 1.25rem;
}

.page-hero__info-icon .icon {
  width: 26px;
  height: 26px;
  color: #ffffff;
}

.page-hero__info-title {
  display: block;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.page-hero__info-sub {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.page-hero__info-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.page-hero__info-card .page-hero__info-text + * {
  margin-top: 1rem;
}

.page-hero__info-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-hero__info-list li {
  font-weight: 500;
  font-size: 0.95rem;
}

.page-hero__info-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  transition: color var(--t-fast);
}

.page-hero__info-list a:hover {
  color: var(--brand-deep);
}

.page-hero__info-list-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--brand-deep);
}

.page-hero__info-list-pin .icon {
  width: 16px;
  height: 16px;
}

.page-hero__today {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(74, 122, 44, 0.14);
}

.page-hero__today-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(168, 207, 56, 0.18);
  color: var(--brand-deep);
  flex-shrink: 0;
}

.page-hero__today-icon .icon {
  width: 18px;
  height: 18px;
}

.page-hero__today.is-open .page-hero__today-icon {
  background: var(--brand);
  color: #ffffff;
}

.page-hero__today-text strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.page-hero__today-text span {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* SVG wave dolje — organski prijelaz */
.page-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 5;
  height: clamp(70px, 8vw, 120px);
  pointer-events: none;
}

.page-hero__wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.page-hero__wave-soft {
  fill: rgba(250, 251, 249, 0.62);
}

.page-hero__wave-main {
  fill: #fafbf9;
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroCardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Page hero — Tablet (≤1024px) — manji min-height za no-card varijante ---------- */
@media (max-width: 1024px) {
  .page-hero--no-card {
    min-height: clamp(380px, 50vh, 500px);
  }

  .page-hero--no-card .page-hero__container {
    min-height: clamp(320px, 44vh, 440px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__content,
  .page-hero__info-card {
    animation: none !important;
  }
}

/* Sekcija odmah ispod hero-a — prati wave (mali negative pull-up). */
.section--after-hero {
  position: relative;
  z-index: 6;
  background: #fafbf9;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

/* ---------- Page hero — Mobile (≤768px) — slika gore + content card overlap ---------- */
@media (max-width: 768px) {
  .page-hero {
    min-height: 0;
    height: auto;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
    background: #fafbf9;
    display: flex;
    flex-direction: column;
  }

  /* Sakri velike dekoracije (dot-pattern + plus) — premale stranice */
  .page-hero::before,
  .page-hero::after {
    display: none;
  }

  /* SLIKA GORE — fiksna visina, soft rounded bottom + fade za smooth prijelaz u kartice */
  .page-hero.has-bg .page-hero__bg {
    position: relative;
    inset: auto;
    order: 1;
    flex: 0 0 auto;
    height: clamp(200px, 52vw, 300px);
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 0;
  }

  .page-hero.has-bg .page-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .page-hero.has-bg .page-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(250, 251, 249, 0.05) 0%,
      rgba(250, 251, 249, 0.12) 45%,
      rgba(250, 251, 249, 0.82) 100%
    );
    pointer-events: none;
  }

  /* Stari teški overlay nije potreban (slika ima vlastiti fade) */
  .page-hero.has-bg .page-hero__overlay {
    display: none;
  }

  /* No-bg varijanta — clean stacked, gradient overlay je dovoljan */
  .page-hero:not(.has-bg) .page-hero__overlay {
    background: linear-gradient(180deg, #fafbf9 0%, #f2f5ec 100%);
  }

  /* CONTAINER — order: 2, overlap odozgo preko slike (negative margin-top) */
  .page-hero__container {
    position: relative;
    order: 2;
    z-index: 4;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: 0 var(--gutter) clamp(60px, 12vw, 84px);
    margin-top: -42px;
  }

  /* Bez slike — content kreće odmah na vrhu hero-a (header sticky iznad) */
  .page-hero:not(.has-bg) .page-hero__container {
    margin-top: 0;
    padding-top: clamp(2rem, 6vw, 3rem);
    padding-bottom: clamp(2rem, 6vw, 3rem);
  }

  .page-hero:not(.has-bg) .page-hero__content {
    padding: 1.25rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(74, 122, 44, 0.08);
    max-width: none;
  }

  /* CONTENT CARD — bijela glass kartica preko donjeg dijela slike */
  .page-hero.has-bg .page-hero__content {
    padding: 1.4rem 1.1rem 1.25rem;
    border-radius: 28px;
    background: rgba(250, 251, 249, 0.94);
    border: 1px solid rgba(74, 122, 44, 0.1);
    box-shadow: 0 18px 50px rgba(30, 60, 20, 0.1);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    max-width: none;
  }

  .page-hero__breadcrumb {
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
  }

  .page-hero__eyebrow {
    margin-bottom: 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .page-hero__title {
    font-size: clamp(1.85rem, 8vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
  }

  .page-hero__lead {
    font-size: 1rem;
    line-height: 1.55;
    margin-top: 0.85rem;
  }

  /* CTA full-width pill stack */
  .page-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 1.25rem;
  }

  .page-hero__actions .btn {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    border-radius: 999px;
  }

  .page-hero__actions .btn--lg {
    padding: 0.7rem 1.1rem;
    font-size: 0.95rem;
  }

  /* INFO KARTICA — full-width ispod content kartice, čisti glass look */
  .page-hero__info-card {
    width: 100%;
    margin: 0;
    padding: 1.5rem 1.25rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(74, 122, 44, 0.08);
    box-shadow: 0 18px 50px rgba(30, 60, 20, 0.08);
  }

  .page-hero__info-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
  }

  .page-hero__info-icon .icon {
    width: 22px;
    height: 22px;
  }

  .page-hero__info-title {
    font-size: 1.25rem;
  }

  .page-hero__info-list {
    gap: 0.55rem;
  }

  .page-hero__info-list a {
    font-size: 0.95rem;
  }

  /* Wave manji */
  .page-hero__wave {
    height: 56px;
    z-index: 6;
  }

  /* Pull-up sljedeće sekcije ne forsiramo na mobile-u */
  .page-hero + .section,
  .section--after-hero {
    margin-top: 0;
    padding-top: clamp(1.5rem, 5vw, 2.5rem);
  }
}

/* ============================================
   MEDIA — archive /mediji/ (kartice + filter pills)
   ============================================ */

/* ---------- Filter pills ---------- */
.media-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.media-filter__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast),
    border-color var(--t-fast);
}

.media-filter__pill:hover {
  background: #ffffff;
  border-color: var(--brand-soft, rgba(168, 207, 56, 0.45));
  color: var(--brand-deep);
}

.media-filter__pill.is-active {
  background: var(--brand);
  color: var(--text);
  border-color: var(--brand);
}

.media-filter__pill .icon {
  width: 16px;
  height: 16px;
}

.media-filter__count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
}

.media-filter__pill.is-active .media-filter__count {
  color: rgba(31, 42, 20, 0.7);
}

/* ---------- Grid ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.85rem);
}

@media (max-width: 960px) {
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Card ---------- */
.media-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg, 16px);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(30, 60, 20, 0.04);
  transition: transform var(--t-fast), box-shadow var(--t-base),
    border-color var(--t-fast);
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(30, 60, 20, 0.12);
  border-color: var(--brand-soft, rgba(168, 207, 56, 0.5));
}

.media-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

/* Media (image / placeholder) */
.media-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f0f5e3 0%, #e6efd3 100%);
  overflow: hidden;
}

.media-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}

.media-card:hover .media-card__media img {
  transform: scale(1.04);
}

/* Placeholder (kad nema og:image) — brand gradient + ikona + source naziv */
.media-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--brand-deep);
  background: linear-gradient(135deg, rgba(168, 207, 56, 0.18), rgba(74, 122, 44, 0.08));
}

.media-card__placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand-deep);
  box-shadow: 0 4px 14px rgba(30, 60, 20, 0.08);
}

.media-card__placeholder-icon .icon {
  width: 28px;
  height: 28px;
}

.media-card__placeholder-source {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--brand-deep);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

/* Play badge za video */
.media-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform var(--t-fast), background var(--t-fast);
  z-index: 2;
}

.media-card:hover .media-card__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--brand);
  color: var(--text);
}

.media-card__play .icon {
  width: 22px;
  height: 22px;
  margin-left: 4px; /* optical center kompenzacija za play trokut */
}

/* Body */
.media-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1.4rem;
  flex-grow: 1;
}

.media-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.media-card__source {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Type badge — boja po tipu */
.media-card__type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
  background: var(--bg-soft);
  color: var(--text);
}

.media-card__type-badge .icon,
.media-card__type-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.media-type--article .media-card__type-badge {
  background: rgba(154, 154, 160, 0.16);
  color: #4a4a4a;
}

.media-type--video .media-card__type-badge {
  background: rgba(168, 207, 56, 0.22);
  color: var(--brand-deep);
}

.media-type--interview .media-card__type-badge {
  background: rgba(193, 150, 96, 0.22);
  color: #8b5e2b;
}

.media-type--podcast .media-card__type-badge {
  background: rgba(120, 90, 200, 0.18);
  color: #5a3da3;
}

.media-card__date {
  margin-left: auto;
  color: var(--text-muted);
  text-transform: capitalize;
}

.media-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.media-card__excerpt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.media-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.9rem;
  padding-top: 0.25rem;
  transition: gap var(--t-fast);
}

.media-card__cta .icon {
  width: 14px;
  height: 14px;
  transition: transform var(--t-fast);
}

.media-card:hover .media-card__cta {
  gap: 0.65rem;
}

.media-card:hover .media-card__cta .icon {
  transform: translate(2px, -2px);
}

/* Empty state */
.media-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: clamp(2.5rem, 6vw, 4rem) 1rem;
  text-align: center;
  color: var(--text-muted);
}

/* Pagination — /mediji override (margin-top) */
.section--after-hero .lf-pagination {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* ---------- Media archive — Mobile (≤768px) ---------- */
@media (max-width: 768px) {
  .media-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: 0.85rem;
    margin-bottom: clamp(1.25rem, 4vw, 1.75rem);
  }

  .media-filter::-webkit-scrollbar {
    display: none;
  }

  .media-filter__pill {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .media-card__body {
    padding: 1rem 1rem 1.15rem;
    gap: 0.5rem;
  }

  .media-card__title {
    font-size: 1.05rem;
  }

  .media-card__excerpt {
    font-size: 0.88rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .media-card__placeholder-icon {
    width: 48px;
    height: 48px;
  }

  .media-card__placeholder-icon .icon {
    width: 22px;
    height: 22px;
  }

  .media-card__play {
    width: 48px;
    height: 48px;
  }

  .media-card__play .icon {
    width: 18px;
    height: 18px;
    margin-left: 3px;
  }
}
