/* ============================================
   Pages — sekcije specifične za pojedine stranice
   ============================================ */

/* ============================================
   HERO — full-bleed slideshow s overlay-om
   ============================================ */
.hero {
  position: relative;
  display: block;
  min-height: clamp(620px, 84vh, 800px);
  overflow: hidden;
  isolation: isolate;
  color: var(--text-on-dark);
  margin-top: calc(-1 * var(--header-h));
}

.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

/* Each slide takes the full hero area */
.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 1s var(--ease-out),
    visibility 0s 1s;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 1s var(--ease-out),
    visibility 0s 0s;
  z-index: 2;
}

/* Slide background — Ken Burns slow zoom + parallax buffer */
.hero__slide-bg {
  position: absolute;
  top: -25%;
  left: 0;
  right: 0;
  height: 150%;
  z-index: -2;
  overflow: hidden;
  will-change: transform;
}

.hero__slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transform: scale(1);
  transition: transform 11s linear;
}

.hero__slide.is-active .hero__slide-bg img {
  transform: scale(1.06);
}

/* Slide overlay (gradient) — clone of old .hero__overlay */
.hero__slide-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(15, 25, 10, 0.55) 0%,
      rgba(15, 25, 10, 0.20) 14%,
      transparent 24%
    ),
    linear-gradient(
      100deg,
      rgba(15, 25, 10, 0.92) 0%,
      rgba(20, 35, 15, 0.78) 28%,
      rgba(25, 40, 18, 0.45) 55%,
      rgba(31, 50, 20, 0.15) 80%,
      rgba(31, 50, 20, 0.05) 100%
    ),
    linear-gradient(
      180deg,
      transparent 60%,
      rgba(74, 122, 44, 0.35) 100%
    );
}

/* Slide content — container širine, tekst limitiran zbog readability */
.hero__slide-content {
  position: relative;
  padding-block: clamp(4rem, 10vw, 7rem);
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

.hero__slide-content > * {
  max-width: 640px;
}

/* Stagger animation za slide content */
.hero__slide:not(.is-active) .hero__slide-content > * {
  transform: translateY(24px);
  opacity: 0;
}

.hero__slide.is-active .hero__slide-content > * {
  transform: translateY(0);
  opacity: 1;
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.hero__slide.is-active .hero__slide-content > *:nth-child(1) { transition-delay: 0.25s; }
.hero__slide.is-active .hero__slide-content > *:nth-child(2) { transition-delay: 0.35s; }
.hero__slide.is-active .hero__slide-content > *:nth-child(3) { transition-delay: 0.45s; }
.hero__slide.is-active .hero__slide-content > *:nth-child(4) { transition-delay: 0.55s; }
.hero__slide.is-active .hero__slide-content > *:nth-child(5) { transition-delay: 0.65s; }

@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .hero__slide-bg img,
  .hero__slide.is-active .hero__slide-content > * {
    transition: none !important;
  }
  .hero__slide.is-active .hero__slide-bg img {
    transform: none;
  }
}

/* ============================================
   HERO NAV (dots) — dolje desno, container širine
   ============================================ */
.hero__nav {
  position: absolute;
  bottom: clamp(2rem, 5vw, 3.5rem);
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  pointer-events: none;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  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;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 4;
  overflow: hidden;
}

.hero__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-hover) 100%);
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--brand);
}

.hero[data-paused="true"] .hero__progress-fill {
  opacity: 0.5;
}

/* Single-slide mode — sakrij nav i progress */
.hero[data-single-slide="true"] .hero__nav,
.hero[data-single-slide="true"] .hero__progress {
  display: none;
}

/* Single slide also doesn't need slide transition */
.hero[data-single-slide="true"] .hero__slide {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@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 — light varijanta */
.hero .eyebrow {
  color: var(--brand);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero__title {
  font-size: var(--fs-hero);
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  font-weight: 800;
  margin-bottom: var(--space-6);
  color: var(--text-on-dark);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero__title-accent {
  position: relative;
  display: inline-block;
  color: var(--brand);
  text-shadow: 0 2px 16px rgba(74, 122, 44, 0.5);
}

.hero__title-accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.35em;
  background: rgba(149, 201, 61, 0.35);
  z-index: -1;
  border-radius: var(--r-sm);
}

.hero__lead {
  font-size: var(--fs-md);
  color: rgba(248, 250, 241, 0.92);
  line-height: var(--lh-relaxed);
  max-width: 560px;
  margin-bottom: var(--space-8);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(248, 250, 241, 0.18);
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: rgba(248, 250, 241, 0.88);
  font-weight: 500;
}

.hero__feature .icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

/* "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;
}

/* ---------- Mobile adjustments ---------- */
@media (max-width: 768px) {
  /*
   * Isti layout kao desktop: .hero ima veliku min-visinu; .hero__slides + slajd
   * (inset:0) + overlay prate tu visinu. Paginacija ostaje position:absolute
   * unutar .hero (na slici); padding-bottom na sadržaju ostavlja trak za dots.
   */
  .hero,
  .hero__slides {
    min-height: clamp(720px, 100vh, 900px);
    min-height: clamp(780px, 112dvh, 1020px);
  }

  .hero {
    display: block;
    margin-top: calc(-1 * var(--header-h-sm));
  }

  .hero__slides {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .hero__slide {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: calc(var(--header-h-sm) + var(--space-5));
  }

  .hero__slide-bg img {
    object-position: 60% center;
  }

  .hero__slide-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(15, 25, 10, 0.55) 0%,
        rgba(20, 35, 15, 0.7) 35%,
        rgba(15, 25, 10, 0.92) 100%
      );
  }

  /* Slideshow: rezerva za dots + progress; dinamičnije ovisno o broju feature redova */
  .hero:not([data-single-slide='true']) .hero__slide-content {
    padding-top: clamp(1rem, 3vw, 1.75rem);
    padding-bottom: clamp(6.25rem, 20vw, 9.25rem);
  }

  .hero:not([data-single-slide='true']) .hero__slide-content:not(:has(.hero__features .hero__feature)) {
    padding-bottom: clamp(5.25rem, 15vw, 7.25rem);
  }

  .hero:not([data-single-slide='true']) .hero__slide-content:has(.hero__features > .hero__feature:only-child) {
    padding-bottom: clamp(5.75rem, 17vw, 8rem);
  }

  .hero:not([data-single-slide='true']) .hero__slide-content:has(.hero__features > .hero__feature:nth-child(2):last-child) {
    padding-bottom: clamp(6.25rem, 19vw, 8.75rem);
  }

  .hero:not([data-single-slide='true']) .hero__slide-content:has(.hero__features > .hero__feature:nth-child(3)) {
    padding-bottom: clamp(8.25rem, 27vw, 11.5rem);
  }

  .hero[data-single-slide='true'] .hero__slide-content {
    padding-top: clamp(1rem, 3vw, 1.75rem);
    padding-bottom: clamp(3rem, 8vw, 5rem);
  }

  .hero__nav {
    justify-content: center;
    bottom: clamp(2.75rem, 9vw, 4rem);
    z-index: 6;
    gap: var(--space-2);
  }

  .hero__progress {
    z-index: 6;
  }

  .hero__nav .hero__dot {
    min-width: 38px;
    height: 32px;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }

  .hero__nav .hero__dot.is-active {
    min-width: 46px;
  }

  .hero__features {
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
  }

  .hero__feature {
    flex-basis: 100%;
  }

  .hero__title {
    font-size: clamp(2.25rem, 8vw, 3rem);
  }

  /* CTA gumbi puna širina na uskim ekranima */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
  }

  .hero[data-single-slide='true'],
  .hero[data-single-slide='true'] .hero__slides {
    min-height: clamp(600px, 88vh, 780px);
    min-height: clamp(620px, 92dvh, 820px);
  }
}

@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-header {
  background: var(--bg-soft);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
}

/* Opcionalna pozadina (inline --page-header-bg na stranici) */
.page-header.has-bg {
  background-color: var(--bg-soft);
  background-image: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.78) 45%,
      rgba(255, 255, 255, 0.7) 100%
    ),
    var(--page-header-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-header__inner {
  max-width: 800px;
}

.page-header__breadcrumb {
  margin-bottom: var(--space-4);
}

.page-header__title {
  font-size: var(--fs-5xl);
  line-height: 1.1;
  margin-bottom: var(--space-4);
  font-weight: 800;
}

.page-header__lead {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  max-width: 640px;
}

/* ============================================
   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%;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-soft);
}

.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;
}

/* ============================================
   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, #95C93D 0%, #6FAA3F 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%, #95C93D 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(149, 201, 61, 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(149, 201, 61, 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 {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  width: 1%;
}

.promo-table__brand {
  color: var(--text);
  width: auto;
  min-width: 280px;
  font-weight: 600;
}

.promo-table__discount {
  white-space: nowrap;
  width: 1%;
}

.promo-discount {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--brand-deep);
  background: var(--bg-accent);
  padding: 0.2em 0.6em;
  border-radius: var(--r-pill);
  font-variant-numeric: tabular-nums;
}

.promo-table__note {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-style: italic;
}

@media (max-width: 720px) {
  .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 {
    padding: var(--space-1) var(--space-5);
    border: none;
  }
  .promo-table td[data-label]::before {
    content: attr(data-label) ": ";
    display: inline-block;
    min-width: 80px;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--text-subtle);
    margin-right: var(--space-2);
  }
  .promo-table__brand {
    margin-top: var(--space-1);
    margin-bottom: var(--space-1);
  }
}

/* ============================================
   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: var(--bg);
  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);
  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)
   ============================================ */
body.single-post .entry-content {
  font-size: var(--fs-md);
}

body.single-post .entry-content p,
body.single-post .entry-content li {
  line-height: var(--lh-loose);
}
