/*!
Theme Name: eKultura Redesign
Author: eKultura
Version: 1.0
Text Domain: ekultura-redesign
Description: eKultura portal redesign theme
*/

/* Proxima Nova — službeni font prema Knjizi grafičkih standarda eKultura
   (iste datoteke kao u staroj mkek temi, woff2 + woff) */
@font-face {
  font-family: "Proxima Nova";
  src: url('fonts/proxima_nova_thin.woff2') format('woff2'),
       url('fonts/proxima_nova_thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url('fonts/proxima_nova_thin_italic.woff2') format('woff2'),
       url('fonts/proxima_nova_thin_italic.woff') format('woff');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url('fonts/proxima_nova_light.woff2') format('woff2'),
       url('fonts/proxima_nova_light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url('fonts/proxima_nova_regular.woff2') format('woff2'),
       url('fonts/proxima_nova_regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url('fonts/proxima_nova_semibold.woff2') format('woff2'),
       url('fonts/proxima_nova_semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url('fonts/proxima_nova_bold.woff2') format('woff2'),
       url('fonts/proxima_nova_bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url('fonts/proxima_nova_extrabold.woff2') format('woff2'),
       url('fonts/proxima_nova_extrabold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url('fonts/proxima_nova_black.woff2') format('woff2'),
       url('fonts/proxima_nova_black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand boje prema Knjizi grafickih standarda eKultura */
  --red-1: #AA212D;   /* Crvena 1 (PANTONE 7621 C) */
  --red-2: #C0282D;   /* Crvena 2 (PANTONE 7620 C) — primarna */
  --red-3: #EA3433;   /* Crvena 3 (PANTONE 179 C) */
  --red-4: #F16069;   /* Crvena 4 (PANTONE 709 C) */
  --black: #333333;   /* Crna (PANTONE 412 C) */
  --crimson: #C0282D;
  --crimson-hover: #AA212D;
  --dark: #333333;
  --charcoal: #333333;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gold: #F16069;
  --white: #fff;
  --border: #e5e5e5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

/* Lazy render za sekcije ispod folda */
.stats-bar, .search-preview, .explore, .living-portal,
.exhibitions, .social-section,
.inst-collections, .inst-featured,
.exh-highlights, .exh-quiz-section, .exh-share, .exh-related {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}
body {
  font-family: "Proxima Nova", 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

/* Form elementi ne nasljeđuju font automatski — izjednači s ostatkom stranice */
button, input, select, textarea { font-family: inherit; }

/* HEADER */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hamburger {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--crimson);
  border-radius: 1px;
}

/* NAV DRAWER */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--white);
  z-index: 201;
  padding: 32px 0;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-500);
  line-height: 1;
}

.nav-drawer-close:hover {
  color: var(--crimson);
}

.nav-drawer-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0 28px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.nav-drawer-logo em {
  color: var(--crimson);
  font-style: normal;
  font-weight: 400;
}

.nav-drawer a {
  display: block;
  padding: 14px 28px;
  color: var(--dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s, background 0.2s;
}

.nav-drawer a:hover {
  color: var(--crimson);
  background: var(--gray-50);
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--dark);
  text-decoration: none;
}

.logo em {
  color: var(--crimson);
  font-style: normal;
  font-weight: 400;
}
.logo-img {
  max-height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.lang-btn {
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--gray-500);
  transition: color .15s, background .15s;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}
.lang-btn.active {
  color: var(--dark);
  background: var(--gray-100);
  cursor: default;
  pointer-events: none;
}
.lang-btn:not(.active):hover { color: var(--crimson); }
.lang-sep { color: var(--border); font-size: 11px; }

/* Hrvojka (web-prevoditelj) jezični dropdown u headeru — jedini izbornik jezika
   (HR/EN gumbi su maknuti, prijevod ide preko Hrvojke) */
.hdr-translator-wrap { display: inline-flex; align-items: center; gap: 8px; }
.hdr-translator-label { font-size: 12px; color: var(--gray-500); white-space: nowrap; }
.hdr-translator { display: inline-flex; align-items: center; min-width: 50px; }
@media (max-width: 1100px) { .hdr-translator-label { display: none; } }

/* ── Dekorativni kvadrati na crvenim naslovnim trakama ───────────────
   Motiv s korica "Knjige grafičkih standarda" (bez teksta): translucentni
   kvadrati u nešto svjetlijim/tamnijim nijansama crvene, posloženi uz rubove
   trake. Primjenjuje se na sve crvene page-hero trake odjednom. */
.uk-hero, .zr-hero, .iop-hero, .op-hero,
.kt-hero, .iz-hero, .es-hero, .np-hero {
  position: relative;
  overflow: hidden;
}
.uk-hero > *, .zr-hero > *, .iop-hero > *, .op-hero > *,
.kt-hero > *, .iz-hero > *, .es-hero > *, .np-hero > * {
  position: relative;
  z-index: 1;
}
.uk-hero::before, .zr-hero::before, .iop-hero::before, .op-hero::before,
.kt-hero::before, .iz-hero::before, .es-hero::before, .np-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  /* svaki sloj = jedan kvadrat (svjetliji = bijela prozirnost, tamniji = crna) */
  background-image:
    linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)),
    linear-gradient(rgba(0,0,0,.06),       rgba(0,0,0,.06)),
    linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.05)),
    linear-gradient(rgba(0,0,0,.05),       rgba(0,0,0,.05)),
    linear-gradient(rgba(255,255,255,.045),rgba(255,255,255,.045));
  background-size: 260px 260px, 180px 180px, 210px 210px, 150px 150px, 120px 120px;
  background-position:
    left -70px top -90px,
    left 150px bottom -70px,
    right -60px top -70px,
    right 130px bottom -60px,
    right 300px top 28px;
}

/* Header prijava / Moja eKultura */
.hdr-account-wrap { position: relative; }
.hdr-account-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 20px; background: var(--white); color: var(--gray-700); font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; transition: border-color .2s, color .2s; max-width: 180px; }
.hdr-account-btn:hover { border-color: var(--crimson); color: var(--crimson); }
.hdr-account-ic { font-size: 14px; line-height: 1; }
.hdr-account-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-login-pop { position: absolute; top: calc(100% + 10px); right: 0; width: 280px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.12); padding: 18px 20px; z-index: 300; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.hdr-account-wrap:hover .hdr-login-pop, .hdr-account-wrap:focus-within .hdr-login-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.hdr-login-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.hdr-login-sub { font-size: 13px; color: var(--gray-500); line-height: 1.55; margin: 0 0 14px; }
.hdr-login-cta { display: block; text-align: center; padding: 10px; background: var(--crimson); color: #fff; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity .2s; }
.hdr-login-cta:hover { opacity: .88; color: #fff; }
.hdr-login-link { display: block; text-align: center; margin-top: 10px; font-size: 12.5px; color: var(--gray-500); text-decoration: none; }
.hdr-login-link:hover { color: var(--crimson); }
@media (max-width: 768px) {
  .hdr-account-name { display: none; }
  .hdr-account-btn { padding: 8px 10px; border-radius: 50%; }
  .hdr-login-pop { display: none; }
}

.header-social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 16px;
  border-right: 1px solid var(--border);
  font-size: 12px;
  color: var(--gray-500);
}

.header-social a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}

.header-social a:hover {
  color: var(--crimson);
}

.search-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: var(--gray-500);
  transition: all 0.2s;
}

.search-icon:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

/* SEARCH OVERLAY */
.search-overlay {
  position: fixed;
  top: 69px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  padding: 16px 40px;
  display: none;
}

.search-overlay.open { display: block; }

.search-overlay-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-overlay-form {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
}

.search-overlay-close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.search-overlay-close:hover { color: var(--crimson); }

/* HERO SLIDER */
.hero-slider {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--crimson-hover);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 60px 80px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: all;
}

/* Promo banner slide (dvije slike s linkovima, prvi slide) */
.hero-slide-promo {
  padding: 0;
  background: #0d0b09;           /* tamna podloga (slike su gotovo crne) */
}
.homepage-banner-split {
  display: flex;
  width: 100%;
  height: 100%;
}
.homepage-banner-split .banner-half {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: #0d0b09;
}
.homepage-banner-split .banner-half img {
  width: 100%;
  height: 100%;
  object-fit: contain;          /* cijela slika vidljiva, bez izrezivanja */
  display: block;
  transition: transform 0.4s ease;
}
a.banner-half:hover img {
  transform: scale(1.03);
}
@media (max-width: 700px) {
  .homepage-banner-split { flex-direction: column; }
}

/* STATIČNI PROMO BANNER — kada je "Samo banner" uključeno, slider se uopće ne
   renderira: dvije slike jedna do druge, prirodna visina, bez izrezivanja.
   Preporuka: obje slike istih dimenzija (isti omjer) da se rubovi poravnaju. */
.promo-static {
  display: flex;
  width: 100%;
  background: var(--white);
}
.promo-static-half {
  flex: 1 1 50%;
  min-width: 0;
  display: block;
}
.promo-static-half img {
  display: block;
  width: 100%;
  height: auto;          /* prirodna visina — slika se nikad ne kropa */
  transition: transform 0.4s ease;
}
a.promo-static-half { overflow: hidden; }
a.promo-static-half:hover img { transform: scale(1.02); }
@media (max-width: 700px) {
  .promo-static { flex-direction: column; }
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-arrow-prev  { left: 24px; }
.hero-arrow-next  { right: 24px; }

/* HERO shared content */
.hero {
  position: relative;
  min-height: 520px;
  background: var(--crimson-hover);
  display: flex;
  align-items: center;
  padding: 60px 80px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--crimson);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--crimson-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.hero-dots span.active {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}

/* STATS BAR */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.2s, transform 0.2s;
}
a.stat-item:hover { background: var(--gray-50); transform: translateY(-2px); }
a.stat-item:hover .stat-label { color: var(--crimson); }

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* SEARCH PREVIEW */
.search-preview {
  background: #AA212D;
  padding: 56px 80px;
  text-align: center;
}

.search-preview h2 {
  font-size: 26px;
  margin-bottom: 8px;
  color: #fff;
}

.search-preview .sub {
  color: rgba(255,255,255,.75);
  font-size: 15px;
  margin-bottom: 28px;
}

.search-bar {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  background: var(--white);
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
  border-color: #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,.45), 0 0 0 4px rgba(255,255,255,.15);
}

.search-bar input {
  flex: 1;
  padding: 18px 24px;
  border: none;
  font-size: 17px;
  outline: none;
  background: transparent;
  color: var(--dark);
}

.search-bar input::placeholder { color: #aaa; }

.search-bar button {
  padding: 18px 36px;
  background: var(--crimson);
  color: var(--white);
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background .2s;
}
.search-bar button:hover { background: #7a1525; }

.search-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.search-tag {
  padding: 4px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 12px;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.search-tag:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

/* EXPLORE GRID */
.explore {
  padding: 64px 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 28px;
}

.section-header a {
  color: var(--crimson);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.explore-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--gray-200);
}

.explore-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.explore-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
  color: var(--white);
}

.explore-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 18px;
}

.explore-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.explore-card p {
  font-size: 12px;
  opacity: 0.8;
}

/* LIVING PORTAL */
.living-portal {
  padding: 64px 80px;
  background: var(--gray-50);
}

.living-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-top: 32px;
  align-items: start;
}

.living-main {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.living-main-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.living-main-header h3 {
  font-size: 18px;
}

.living-main-header .week-label {
  font-size: 12px;
  color: var(--gray-400);
  padding: 4px 10px;
  background: var(--gray-100);
  border-radius: 12px;
}

.living-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.living-item {
  background: var(--white);
  padding: 16px;
  text-align: center;
}

.living-item-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--gray-100);
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: 32px;
}

.living-item-title {
  font-size: 12px;
  font-weight: 600;
}

.living-item-date {
  font-size: 11px;
  color: var(--gray-400);
}

.living-sidebar {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.living-sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.living-sidebar-header h3 {
  font-size: 18px;
}

.living-sidebar-header p {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 4px;
}

.living-map {
  height: 200px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

/* Geoportal embed */
.geoportal-wrap {
  height: 430px;
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.geoportal-wrap iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}
.geoportal-fullscreen-btn {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(26,26,46,.85); color: #fff;
  padding: 5px 12px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
  text-decoration: none; letter-spacing: .02em;
  transition: background .2s;
}
.geoportal-fullscreen-btn:hover { background: #C0282D; color: #fff; }

/* Geoportal na search stranici */
.srch-geoportal {
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.srch-geoportal iframe {
  width: 100%; height: 700px; border: none; display: block;
}
.srch-geoportal-footer {
  background: #f8f8f8;
  padding: 8px 14px;
  font-size: 12px; color: #666;
  display: flex; justify-content: space-between; align-items: center;
}
.srch-geoportal-footer a { color: #C0282D; text-decoration: none; font-weight: 600; }

.living-region-list {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 8px;
}

.living-region {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}

.living-region:last-child {
  border-bottom: none;
}

.living-region-count {
  font-size: 11px;
  color: var(--gray-400);
  padding: 2px 8px;
  background: var(--gray-100);
  border-radius: 10px;
}

.living-region {
  text-decoration: none;
  color: var(--dark);
}

.living-region-arrow {
  font-size: 13px;
  color: var(--gray-400);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.living-region:hover { color: var(--crimson); }
.living-region:hover .living-region-arrow { color: var(--crimson); transform: translateX(3px); }

.living-item {
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.living-item:hover { background: var(--gray-50); }

.living-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.living-map {
  height: 200px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--border);
}

.living-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.6;
}

.living-map-placeholder a {
  color: var(--crimson);
  text-decoration: underline;
}

/* EXHIBITIONS */
.exhibitions {
  padding: 64px 80px;
}

.exhibition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.exhibition-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.exhibition-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.exhibition-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.exhibition-card-img {
  aspect-ratio: 16/9;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 14px;
  position: relative;
}

.exhibition-card:first-child .exhibition-card-img {
  aspect-ratio: auto;
  min-height: 280px;
}

.exhibition-badge-360 {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.exhibition-card-body {
  padding: 24px;
}

.exhibition-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(155,27,48,0.08);
  color: var(--crimson);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.exhibition-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.exhibition-card:first-child h3 {
  font-size: 26px;
}

.exhibition-card p {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.exhibition-meta {
  font-size: 12px;
  color: var(--gray-400);
}

/* SOCIAL SECTION */
.social-section {
  padding: 64px 80px;
  background: var(--gray-50);
  text-align: center;
}

.social-feeds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px auto 0;
  max-width: 1060px;
  text-align: left;
}

.social-feed-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.social-feed-header {
  
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
}

.social-feed-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.social-feed-icon--fb { background: #1877f2; }
.social-feed-icon--ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }

.social-feed-follow {
  margin-left: auto;
  font-size: 12px;
  color: var(--crimson);
  text-decoration: none;
  font-weight: 600;
}
.social-feed-follow:hover { text-decoration: underline; }

.fb-page-wrap {
  padding: 0;
  min-height: 400px;
  display: flex;
  align-items: flex-start;
}
.fb-page-wrap .fb-page { width: 100%; }

.ig-placeholder {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.ig-placeholder-inner {
  text-align: center;
  color: #888;
}
.ig-placeholder-icon { font-size: 2.5rem; margin-bottom: 16px; }
.ig-placeholder-inner p { font-size: .9rem; line-height: 1.65; margin: 0 0 20px; color: #666; }
.ig-visit-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(45deg,#f09433,#dc2743,#bc1888);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  transition: opacity .2s;
}
.ig-visit-btn:hover { opacity: .85; color: #fff; }

/* staro — ostaje radi kompatibilnosti */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin: 32px 0;
}
.insta-item {
  aspect-ratio: 1;
  background: var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); font-size: 20px;
}

@media (max-width: 768px) {
  .social-feeds-grid { grid-template-columns: 1fr; }
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.social-link {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.social-link:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

/* FOOTER */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 48px 80px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  font-size: 14px;
}

.footer-brand .logo {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 12px;
}
/* Footer logo (bijela "eKULTURA" varijanta). Slika ima tamnu podlogu pa
   mix-blend-mode: lighten stapa tu podlogu s tamnom podlogom footera
   (#333) — vidi se samo logotip, bez vidljivog pravokutnika. */
.footer-logo { margin-bottom: 16px; }
.footer-logo .logo-img {
  max-height: 38px;
  mix-blend-mode: lighten;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 280px;
}

.footer h4 {
  color: var(--white);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer a {
  display: block;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.footer-eu {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* EU sufinanciranje – bijela traka na dnu (isti sadržaj/slike kao stara tema) */
.footer-eu-bar {
  background: #fff;
  padding: 24px 80px;
  border-top: 1px solid #eee;
}

.footer-eu-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  text-decoration: none;
}

.footer-eu-text {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  max-width: 360px;
  text-align: left;
}

.footer-eu-logo {
  display: block;
  width: auto;
}

.footer-eu-bar .eu-flag { height: 56px; }
.footer-eu-bar .eu-opkk { height: 56px; }
.footer-eu-bar .eu-esif { height: 70px; }

@media (max-width: 760px) {
  .footer-eu-bar { padding: 20px 24px; }
  .footer-eu-inner { justify-content: center; gap: 24px; }
  .footer-eu-text { max-width: none; text-align: center; flex-basis: 100%; }
  .footer-eu-bar .eu-flag,
  .footer-eu-bar .eu-opkk { height: 44px; }
  .footer-eu-bar .eu-esif { height: 54px; }
}

/* SEARCH PAGE */
.search-main {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  min-height: calc(100vh - 200px);
}

.search-sidebar {
  background: var(--white);
  padding: 20px;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-header {
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.filter-option {
  padding: 8px 0;
  font-size: 13px;
}

.filter-option a {
  color: var(--gray-600);
  text-decoration: none;
  display: block;
  padding: 6px 0;
}

.filter-option a:hover {
  color: var(--crimson);
}

.filter-option.active a {
  color: var(--crimson);
  font-weight: 600;
}

.search-results {
  background: var(--white);
  padding: 20px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.result-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.result-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.result-img {
  width: 100%;
  height: 180px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 24px;
  overflow: hidden;
}

.result-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-body {
  padding: 12px;
}

.result-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* ITEM PAGE */
.item-hero {
  padding: 40px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

.item-hero a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 13px;
}

.item-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.item-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.item-download {
  margin-top: 16px;
  padding: 12px 24px;
  background: var(--crimson);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.item-download:hover {
  background: var(--crimson-hover);
}

.item-meta h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.meta-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.meta-key {
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-600);
}

.meta-val {
  font-size: 13px;
  color: var(--gray-700);
}

/* ── INSTITUTIONS LIST ── */
.instlist-header { background: var(--gray-50); border-bottom: 1px solid var(--border); padding: 48px 80px 32px; }
.instlist-header h1 { font-size: 32px; margin-bottom: 6px; }
.instlist-header p  { color: var(--gray-500); font-size: 15px; }

.instlist-grid-section { padding: 40px 80px 64px; }
.instlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.instlist-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
}
.instlist-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.09); }

.instlist-card-banner {
  height: 100px;
  background: #AA212D;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.instlist-card-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

.instlist-card-body { padding: 16px; display: flex; gap: 12px; align-items: flex-start; }

.instlist-card-logo {
  width: 52px; height: 52px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
  margin-top: -28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.instlist-card-logo img { width: 100%; height: 100%; object-fit: contain; }

.instlist-card-info { flex: 1; min-width: 0; }
.instlist-card-info h3 { font-size: 14px; font-weight: 700; margin-bottom: 3px; line-height: 1.3; }
.instlist-card-type { font-size: 11px; color: var(--gray-500); margin-bottom: 2px; }
.instlist-card-loc  { font-size: 11px; color: var(--gray-400); }
.instlist-card-count { font-size: 11px; color: var(--crimson); font-weight: 600; margin-top: 4px; }

/* Kontakt podaci institucije (adresa, telefon, web, e-mail) */
.instlist-contact { list-style: none; margin: 0; padding: 14px 16px 16px; border-top: 1px solid var(--gray-100); display: flex; flex-direction: column; gap: 7px; }
.instlist-contact li { font-size: 12px; line-height: 1.45; color: var(--gray-600); }
.instlist-contact .ic-label { font-weight: 700; color: var(--gray-700); }
.instlist-contact a.ic-val { color: var(--crimson); text-decoration: none; word-break: break-word; }
.instlist-contact a.ic-val:hover { text-decoration: underline; }

.instlist-empty { text-align: center; padding: 80px 20px; color: var(--gray-400); }

/* ── INSTITUTION DETAIL ── */
.inst-breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 80px;
  font-size: 12px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 8px;
}
.inst-breadcrumb a { color: var(--gray-500); text-decoration: none; }
.inst-breadcrumb a:hover { color: var(--crimson); }
.inst-hero { background: var(--white); border-bottom: 1px solid var(--border); }

.inst-hero-banner {
  height: 240px;
  background: #AA212D;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); font-size: 14px;
  position: relative; overflow: hidden;
}
.inst-hero-banner::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Ccircle cx='30' cy='30' r='2' fill='rgba(255,255,255,0.05)'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

.inst-hero-content {
  display: flex; align-items: flex-start; gap: 24px;
  padding: 0 80px; margin-top: -44px; position: relative;
}

.inst-logo {
  width: 100px; height: 100px;
  background: var(--white);
  border: 3px solid var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; flex-shrink: 0; overflow: hidden;
}
.inst-logo img { width: 100%; height: 100%; object-fit: contain; }

.inst-info { padding-top: 52px; padding-bottom: 20px; flex: 1; }
.inst-info h1 { font-size: 28px; margin-bottom: 4px; }
.inst-type     { font-size: 13px; color: var(--gray-500); margin-bottom: 4px; }
.inst-location { font-size: 13px; color: var(--gray-400); }

.inst-actions { padding-top: 52px; display: flex; gap: 8px; flex-shrink: 0; }
.inst-btn-primary  { padding: 9px 18px; background: var(--crimson); color: var(--white); border: none; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.2s; }
.inst-btn-primary:hover { background: var(--crimson-hover); }
.inst-btn-secondary { padding: 9px 18px; background: var(--white); color: var(--gray-600); border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.2s; }
.inst-btn-secondary:hover { border-color: var(--crimson); color: var(--crimson); }

.inst-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-bottom: 1px solid var(--border); }
.inst-stat { background: var(--white); padding: 24px; text-align: center; }
.inst-stat-number { font-size: 32px; font-weight: 700; color: var(--crimson); letter-spacing: -0.5px; }
.inst-stat-label  { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.inst-main {
  max-width: 1200px; margin: 0 auto; padding: 40px 80px;
  display: grid; grid-template-columns: 1fr 320px; gap: 40px;
}

.inst-about { background: var(--white); border-radius: 12px; border: 1px solid var(--border); padding: 28px; margin-bottom: 28px; }
.inst-about h2 { font-size: 20px; margin-bottom: 12px; }
.inst-about-text { font-size: 14px; color: var(--gray-600); line-height: 1.75; }
.inst-about-text p { margin-bottom: 12px; }

.inst-collections h2, .inst-featured h2 { font-size: 20px; margin-bottom: 16px; }
.inst-collections { margin-bottom: 28px; }
.inst-featured    { margin-bottom: 28px; }

.inst-coll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inst-coll-card { background: var(--white); border-radius: 10px; border: 1px solid var(--border); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.2s; display: block; }
.inst-coll-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.inst-coll-img { height: 100px; background: var(--gray-100); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: var(--gray-300); font-size: 28px; }
.inst-coll-body { padding: 14px; }
.inst-coll-body h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.inst-coll-body p  { font-size: 12px; color: var(--gray-500); }
.inst-coll-meta { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--gray-100); font-size: 11px; color: var(--gray-400); }

.inst-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.inst-feat-item { background: var(--white); border-radius: 10px; border: 1px solid var(--border); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.2s; }
.inst-feat-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.inst-feat-img { aspect-ratio: 1; background: var(--gray-100); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: var(--gray-300); font-size: 24px; }
.inst-feat-body { padding: 10px; }
.inst-feat-body h4 { font-size: 12px; line-height: 1.3; font-weight: 600; }
.inst-feat-body p  { font-size: 10px; color: var(--gray-400); margin-top: 2px; }

/* Sidebar */
.inst-btn-more {
  display: inline-block;
  padding: 9px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--crimson);
  text-decoration: none;
  transition: all 0.2s;
}
.inst-btn-more:hover { background: var(--crimson); color: var(--white); border-color: var(--crimson); }

.inst-coll-link { color: var(--crimson); font-size: 11px; }

.inst-side-exh-list { }

.inst-contact-val { color: var(--gray-600); font-size: 13px; }
.inst-contact-val a { color: var(--crimson); text-decoration: none; }
.inst-contact-val a:hover { text-decoration: underline; }

.inst-map-footer {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--gray-500);
  border-top: 1px solid var(--border);
}
.inst-map-footer a { color: var(--crimson); text-decoration: none; }

.inst-hours-closed { color: var(--gray-400); }

.inst-side-card { background: var(--white); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; margin-bottom: 20px; }
.inst-side-card-head { padding: 14px 20px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.inst-side-card-body { padding: 16px 20px; }

.inst-contact-row { display: flex; gap: 12px; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--gray-100); align-items: flex-start; }
.inst-contact-row:last-child { border-bottom: none; }
.inst-contact-icon { width: 20px; text-align: center; color: var(--gray-400); flex-shrink: 0; }
.inst-contact-row a { color: var(--crimson); text-decoration: none; }
.inst-contact-row a:hover { text-decoration: underline; }

.inst-map-box { height: 180px; }
.inst-map-placeholder { height: 80px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--gray-500); padding: 16px; }
.inst-map-label { padding: 10px 16px; font-size: 12px; color: var(--gray-500); border-top: 1px solid var(--border); }
.inst-map-label a { color: var(--crimson); text-decoration: none; }

.inst-side-exhibitions { padding: 8px 0; }
.inst-side-exh { display: flex; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--gray-100); text-decoration: none; color: inherit; transition: background 0.15s; }
.inst-side-exh:last-child { border-bottom: none; }
.inst-side-exh:hover { background: var(--gray-50); }
.inst-side-exh-img { width: 60px; height: 44px; background: var(--gray-100); border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--gray-300); font-size: 14px; overflow: hidden; background-size: cover; background-position: center; }
.inst-side-exh-info h5 { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.inst-side-exh-info span { font-size: 11px; color: var(--gray-400); }

.inst-hours-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; border-bottom: 1px solid var(--gray-100); }
.inst-hours-row:last-child { border-bottom: none; }
.inst-hours-time { font-weight: 600; }

/* ── VIRTUAL EXHIBITIONS PAGE ── */
.ve-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  padding: 48px 80px 32px;
}

.ve-header-inner h1 { font-size: 32px; margin-bottom: 6px; }
.ve-header-inner p  { color: var(--gray-500); font-size: 15px; }

.ve-filters {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 69px;
  z-index: 50;
}

.ve-filters-inner {
  padding: 0 80px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ve-filters-inner::-webkit-scrollbar { display: none; }

.ve-filter-tab {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ve-filter-tab:hover { color: var(--dark); }
.ve-filter-tab.active { color: var(--crimson); border-bottom-color: var(--crimson); }

.ve-filter-count {
  font-size: 11px;
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 1px 7px;
  border-radius: 10px;
}

.ve-filter-tab.active .ve-filter-count {
  background: rgba(155,27,48,0.1);
  color: var(--crimson);
}

.ve-grid-section { padding: 48px 80px 64px; }

.ve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ve-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--white);
}

.ve-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.ve-card-img {
  aspect-ratio: 16/9;
  background: var(--charcoal);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ve-card-placeholder { font-size: 40px; }

.ve-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.ve-card-body { padding: 20px; flex: 1; }

.ve-card-tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--crimson);
  font-weight: 600;
  margin-bottom: 8px;
}

.ve-card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.ve-card-body p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 12px;
}

.ve-card-meta {
  font-size: 12px;
  color: var(--gray-400);
}

.ve-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.ve-page-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-600);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.ve-page-btn:hover { border-color: var(--crimson); color: var(--crimson); }
.ve-page-btn.active { background: var(--crimson); color: var(--white); border-color: var(--crimson); }

.ve-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-400);
  font-size: 16px;
}

/* ── EXHIBITION CARD LINK ── */
.exhibition-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ── SINGLE EXHIBITION PAGE ── */
.exh-hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  background: #333333;
  background-size: cover;
  background-position: center;
}

.exh-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(10,5,8,0.82) 100%);
}

.exh-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.exh-hero-title {
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.exh-hero-crown {
  font-size: 56px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 30px rgba(212,168,67,0.35));
}

.exh-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(212,168,67,0.35);
  border-radius: 20px;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.exh-hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.exh-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
  line-height: 1.6;
}

.exh-hero-location {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 32px;
}

.exh-hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.exh-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.exh-btn-gold:hover { background: #c49a38; }

.exh-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.exh-btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

.exh-hero-badge360 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.07);
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.exh-hero-badge360 strong { color: var(--gold); }

.exh-hero h1 strong { color: var(--gold); font-weight: 700; }

/* About */
.exh-about {
  padding: 72px 80px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.exh-about h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

.exh-about-content {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.8;
  text-align: left;
}

.exh-about-content p { margin-bottom: 16px; }

/* Sadržaj iz uređivača (the_content) — slike i tekst ispravno formatirani */
.exh-about-content img {
  max-width: 100%;
  height: auto !important;   /* spriječi izduženje — čuva omjer slike (beat block/plugin CSS) */
  border-radius: 8px;
}
.exh-about-content figure {
  margin: 24px 0;
  max-width: 100%;
}
.exh-about-content figure img { margin: 0 auto; }
/* Gutenberg "Columns" / "Media & Text" — kolone ne smiju rastezati sliku po visini */
.exh-about-content .wp-block-columns { align-items: flex-start; }
.exh-about-content .wp-block-column { align-self: flex-start; }
.exh-about-content .wp-block-image { margin: 24px 0; }
.exh-about-content .wp-block-image img { width: auto; max-width: 100%; }
.exh-about-content figcaption {
  font-size: 13px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 8px;
}
.exh-about-content img.alignleft  { float: left;  margin: 6px 24px 16px 0; }
.exh-about-content img.alignright { float: right; margin: 6px 0 16px 24px; }
.exh-about-content img.aligncenter,
.exh-about-content .aligncenter { margin-left: auto; margin-right: auto; }
.exh-about-content h2 { font-size: 24px; margin: 32px 0 14px; color: var(--dark); text-align: left; }
.exh-about-content h3 { font-size: 20px; margin: 28px 0 12px; color: var(--dark); }
.exh-about-content h4 { font-size: 17px; margin: 22px 0 10px; color: var(--dark); }
.exh-about-content ul,
.exh-about-content ol { margin: 0 0 16px 1.4em; padding: 0; }
.exh-about-content li { margin-bottom: 8px; line-height: 1.7; }
.exh-about-content a { color: var(--crimson); text-decoration: underline; }
.exh-about-content blockquote {
  border-left: 3px solid var(--crimson);
  margin: 24px 0;
  padding: 8px 20px;
  background: var(--gray-50);
  font-style: italic;
  color: var(--gray-600);
}
.exh-about-content iframe { max-width: 100%; }
.exh-about-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.exh-about-content td,
.exh-about-content th { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }

.exh-credits {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.exh-credit { text-align: center; }

.exh-credit-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  margin-bottom: 6px;
}

/* Highlights */
.exh-highlights {
  padding: 64px 80px;
  background: var(--gray-50);
}

.exh-highlights h2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
}

.exh-highlights-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.exh-highlight-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow 0.2s;
  cursor: default;
}

.exh-highlight-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.exh-highlight-img {
  aspect-ratio: 1;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--gray-300);
  overflow: hidden;
}

.exh-highlight-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exh-highlight-body { padding: 16px; }
.exh-highlight-body h4 { font-size: 13px; margin-bottom: 4px; }
.exh-highlight-body p  { font-size: 11px; color: var(--gray-500); }

/* Interactive Quiz */
.exh-quiz-section {
  background: var(--crimson);
  padding: 64px 80px;
}

.exh-quiz-header { text-align: center; margin-bottom: 40px; }
.exh-quiz-header h2 { font-size: 32px; color: var(--white); margin-bottom: 10px; }
.exh-quiz-header p  { color: rgba(255,255,255,0.75); font-size: 16px; }

.exh-quiz-body {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.exh-quiz-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 24px;
}

.exh-quiz-question {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.exh-quiz-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.exh-quiz-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.exh-quiz-answer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: var(--white);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}

.exh-quiz-answer:hover:not(:disabled) {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.exh-quiz-answer:disabled { cursor: default; }

.exh-quiz-answer.correct {
  background: rgba(34,197,94,0.25);
  border-color: #22c55e;
}

.exh-quiz-answer.wrong {
  background: rgba(239,68,68,0.25);
  border-color: #ef4444;
}

.exh-quiz-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.exh-quiz-answer.correct .exh-quiz-letter { background: #22c55e; }
.exh-quiz-answer.wrong   .exh-quiz-letter { background: #ef4444; }

.exh-quiz-feedback {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
}

.fb-correct { background: rgba(34,197,94,0.2); color: #86efac; }
.fb-wrong   { background: rgba(239,68,68,0.2);  color: #fca5a5; }

.exh-quiz-result {
  text-align: center;
  padding: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
}

.exh-quiz-score {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.exh-quiz-retry {
  padding: 12px 32px;
  background: var(--white);
  color: var(--crimson);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: inherit;
}

.exh-quiz-retry:hover { background: var(--gray-100); }

/* Share */
.exh-share {
  padding: 64px 80px;
  text-align: center;
  background: var(--gray-50);
  border-top: 1px solid var(--border);
}

.exh-share h2 { font-size: 28px; margin-bottom: 8px; }
.exh-share > p { color: var(--gray-500); margin-bottom: 32px; }

.exh-share-card {
  max-width: 480px;
  margin: 0 auto 32px;
  background: var(--charcoal);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
}

.exh-share-card-img {
  height: 180px;
  background: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 22px;
  overflow: hidden;
}

.exh-share-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exh-share-card-body { padding: 20px; color: var(--white); }
.exh-share-card-body h4 { font-size: 15px; margin-bottom: 6px; }
.exh-share-card-body p  { font-size: 12px; color: rgba(255,255,255,0.5); }

/* Practical */
.exh-practical {
  padding: 64px 80px;
  background: var(--gray-50);
  border-top: 1px solid var(--border);
}

.exh-practical-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.exh-practical h2 {
  font-size: 28px;
  margin-bottom: 28px;
}

.exh-info-row {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.exh-info-row:last-child { border-bottom: none; }

.exh-info-label {
  width: 150px;
  flex-shrink: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.exh-info-value { font-weight: 500; }

.exh-map {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.exh-map-placeholder {
  width: 100%;
  min-height: 280px;
  border-radius: 12px;
  background: var(--gray-100);
  border: 1px dashed var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.7;
  padding: 24px;
}

.exh-map-placeholder a { color: var(--crimson); }

/* Share */
.exh-share {
  padding: 64px 80px;
  text-align: center;
  background: var(--gray-50);
  border-top: 1px solid var(--border);
}

.exh-share h2 { font-size: 28px; margin-bottom: 8px; }
.exh-share p  { color: var(--gray-500); margin-bottom: 28px; }

.exh-share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.exh-share-btn {
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}

.exh-share-btn:hover { border-color: var(--crimson); color: var(--crimson); }

/* Related */
.exh-related {
  padding: 64px 80px;
}

.exh-related h2 { font-size: 28px; margin-bottom: 32px; }

.exh-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.exh-related-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.exh-related-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

.exh-related-img {
  aspect-ratio: 16/9;
  background: var(--gray-200);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 13px;
}

.exh-related-body { padding: 20px; }

.exh-related-tag {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--crimson);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-weight: 600;
}

.exh-related-body h4 { font-size: 16px; margin-bottom: 6px; }
.exh-related-body p  { font-size: 13px; color: var(--gray-500); }

@media (max-width: 900px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .instagram-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ══════════════════════════════════════════
   SEARCH PAGE (osearch)
══════════════════════════════════════════ */
.srch-header {
  background: var(--red-1);
  padding: 28px 40px;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
/* Isti dekorativni kvadratni pattern kao na crvenim naslovnim trakama */
.srch-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)),
    linear-gradient(rgba(0,0,0,.06),       rgba(0,0,0,.06)),
    linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.05)),
    linear-gradient(rgba(0,0,0,.05),       rgba(0,0,0,.05)),
    linear-gradient(rgba(255,255,255,.045),rgba(255,255,255,.045));
  background-size: 260px 260px, 180px 180px, 210px 210px, 150px 150px, 120px 120px;
  background-position:
    left -70px top -90px, left 150px bottom -70px,
    right -60px top -70px, right 130px bottom -60px, right 300px top 28px;
}
.srch-header > * { position: relative; z-index: 1; }
.srch-header .srch-meta { color: rgba(255,255,255,.9); }
.srch-header .srch-meta strong { color: #fff; }
/* aktivni tab na crvenoj podlozi — bijeli pill s crvenim tekstom */
.srch-header .srch-tab.active { background: #fff; color: var(--red-1); border-color: #fff; }

.srch-bar-wrap {
  max-width: 900px; margin: 0 auto;
  display: flex; background: var(--white);
  border: 2px solid var(--border); border-radius: 12px; overflow: hidden;
  transition: border-color 0.2s;
}
.srch-bar-wrap:focus-within { border-color: var(--crimson); }
.srch-bar-wrap input { flex: 1; padding: 14px 20px; border: none; font-size: 16px; outline: none; }
.srch-bar-wrap button { padding: 14px 28px; background: var(--crimson); color: var(--white); border: none; font-size: 14px; font-weight: 600; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; }

.srch-meta { max-width: 900px; margin: 12px auto 0; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--gray-500); flex-wrap: wrap; gap: 8px; }

.srch-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.srch-tab { padding: 5px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; border: 1px solid var(--border); background: var(--white); color: var(--gray-600); text-decoration: none; transition: all 0.2s; }
.srch-tab.active { background: var(--crimson); color: var(--white); border-color: var(--crimson); }
.srch-tab:hover:not(.active) { border-color: var(--crimson); color: var(--crimson); }

.srch-main { display: grid; grid-template-columns: 300px 1fr; max-width: 1400px; margin: 0 auto; min-height: calc(100vh - 160px); }

/* Sidebar */
.srch-sidebar { background: var(--white); border-right: 1px solid var(--border); padding: 20px; overflow-y: auto; }

.srch-fg { margin-bottom: 20px; }
.srch-fg-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; user-select: none; }
.srch-fg-arrow { color: var(--gray-400); font-size: 12px; }
.srch-fg-body { padding: 10px 0; }

.srch-map-box { height: 180px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.srch-map-placeholder { height: 180px; background: var(--gray-100); border-radius: 8px; border: 1px dashed var(--gray-300); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: var(--gray-400); flex-direction: column; gap: 4px; line-height: 1.5; }

/* Timeline */
.srch-timeline { padding: 4px 0; }
.srch-histogram { display: flex; align-items: flex-end; gap: 2px; height: 32px; margin-bottom: 8px; }
.srch-bar { flex: 1; background: var(--gray-200); border-radius: 2px 2px 0 0; min-height: 2px; }
.srch-range-wrap { position: relative; height: 20px; margin: 4px 0; }
.srch-range { width: 100%; position: absolute; top: 0; left: 0; -webkit-appearance: none; height: 6px; background: transparent; outline: none; pointer-events: all; }
.srch-range::-webkit-slider-runnable-track { height: 6px; background: var(--gray-200); border-radius: 3px; }
.srch-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 2px solid var(--crimson); margin-top: -5px; cursor: pointer; }
.srch-range-labels { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--crimson); margin-top: 4px; }
.srch-apply-year { margin-top: 8px; width: 100%; padding: 7px; background: var(--crimson); color: var(--white); border: none; border-radius: 6px; font-size: 12px; cursor: pointer; }

.srch-filter-search { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; margin-bottom: 6px; outline: none; }

.srch-fo { padding: 5px 0; font-size: 13px; }
.srch-fo a { color: var(--gray-600); text-decoration: none; }
.srch-fo a:hover { color: var(--crimson); }
.srch-fo.active a { color: var(--crimson); font-weight: 600; }
.srch-fo img { width: 20px; height: 20px; object-fit: cover; border-radius: 3px; vertical-align: middle; margin-right: 6px; }
.srch-fo-left { display: flex; align-items: center; gap: 8px; }
.srch-cb { width: 16px; height: 16px; border: 1.5px solid var(--gray-300); border-radius: 3px; flex-shrink: 0; }
.srch-cb.checked { background: var(--crimson); border-color: var(--crimson); }
.srch-fcount { font-size: 11px; color: var(--gray-400); padding: 1px 6px; background: var(--gray-100); border-radius: 8px; flex-shrink: 0; }

.srch-clear { display: block; width: 100%; padding: 9px; background: none; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--gray-500); cursor: pointer; text-align: center; text-decoration: none; margin-top: 8px; transition: all 0.2s; }
.srch-clear:hover { border-color: var(--crimson); color: var(--crimson); }

/* Results */
.srch-results { padding: 20px 24px; }

.srch-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.srch-toolbar-left { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.srch-active-filter { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: rgba(155,27,48,0.08); color: var(--crimson); border-radius: 16px; font-size: 11px; font-weight: 500; }
.srch-af-x { cursor: pointer; font-weight: 700; text-decoration: none; color: var(--crimson); }
.srch-toolbar-right { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.srch-sort { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; outline: none; background: var(--white); cursor: pointer; }
.srch-view-btns { display: flex; gap: 4px; }
.srch-view-btn { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 14px; background: var(--white); color: var(--gray-400); transition: all 0.2s; }
.srch-view-btn.active { background: var(--crimson); color: var(--white); border-color: var(--crimson); }

.srch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.srch-list-view { grid-template-columns: 1fr; }
.srch-list-view .srch-card { display: flex; flex-direction: row; }
.srch-list-view .srch-card-img { width: 140px; flex-shrink: 0; aspect-ratio: auto; min-height: 100px; }

.srch-card { background: var(--white); border-radius: 10px; border: 1px solid var(--border); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.15s, transform 0.15s; display: block; }
.srch-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.srch-card-img { aspect-ratio: 4/3; background: var(--gray-100); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.srch-card-img img { width: 100%; height: 100%; object-fit: cover; }
.srch-card-noimg { font-size: 32px; color: var(--gray-300); }
.srch-card-badge { position: absolute; bottom: 8px; left: 8px; padding: 2px 8px; background: rgba(0,0,0,0.6); color: var(--white); border-radius: 10px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.srch-card-body { padding: 12px; }
.srch-card-inst { font-size: 11px; color: var(--crimson); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; font-weight: 600; }
.srch-card-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.35; color: var(--dark); }
.srch-card-desc { font-size: 12px; color: var(--gray-500); line-height: 1.4; margin-bottom: 6px; }
.srch-card-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--gray-400); border-top: 1px solid var(--gray-100); padding-top: 6px; margin-top: 4px; flex-wrap: wrap; }
.srch-source-tag { display: inline-block; padding: 1px 6px; border-radius: 8px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.srch-source-tag.omeka { background: #dbeafe; color: #1e40af; }
.srch-source-tag.wp    { background: #d1fae5; color: #065f46; }

.srch-pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.srch-page-btn { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; text-decoration: none; background: var(--white); color: var(--gray-600); transition: all 0.2s; }
.srch-page-btn:hover { border-color: var(--crimson); color: var(--crimson); }
.srch-page-btn.active { background: var(--crimson); color: var(--white); border-color: var(--crimson); }

.srch-export { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); margin-top: 12px; font-size: 12px; color: var(--gray-500); }
.srch-export-btns { display: flex; gap: 8px; }
.srch-export-btn { padding: 6px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 11px; background: var(--white); cursor: pointer; color: var(--gray-600); transition: all 0.2s; font-family: inherit; }
.srch-export-btn:hover { border-color: var(--crimson); color: var(--crimson); }

.srch-empty { text-align: center; padding: 80px 20px; color: var(--gray-400); }
.srch-empty div { font-size: 48px; margin-bottom: 16px; }
.srch-empty h3 { font-size: 20px; margin-bottom: 8px; color: var(--dark); }

/* ══════════════════════════════════════════
   ITEM PAGE
══════════════════════════════════════════ */
.ipage { background: var(--gray-50); min-height: 100vh; }
.item-error { padding: 60px; text-align: center; }
.item-error a { color: var(--crimson); }

.ipage-breadcrumb { background: var(--white); border-bottom: 1px solid var(--border); }
.ipage-breadcrumb-inner { max-width: 860px; margin: 0 auto; padding: 12px 40px; font-size: 13px; display: flex; align-items: center; gap: 8px; color: var(--gray-400); }
.ipage-breadcrumb-inner a { color: var(--gray-500); text-decoration: none; }
.ipage-breadcrumb-inner a:hover { color: var(--crimson); }

.ipage-title-wrap { background: var(--red-1); border-bottom: none; padding: 36px 0 30px; position: relative; overflow: hidden; }
.ipage-title-inner { max-width: 860px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }
.ipage-institution { display: inline-block; font-size: 12px; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-bottom: 8px; opacity: .95; }
.ipage-title-inner h1 { font-size: 28px; font-weight: 700; line-height: 1.25; margin-bottom: 8px; color: #fff; }
.ipage-subtitle { font-size: 14px; color: rgba(255,255,255,.78); }

/* Kvadratni pattern na crvenim trakama: naslov predmeta + homepage search */
.ipage-title-wrap::before, .search-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)),
    linear-gradient(rgba(0,0,0,.06),       rgba(0,0,0,.06)),
    linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.05)),
    linear-gradient(rgba(0,0,0,.05),       rgba(0,0,0,.05)),
    linear-gradient(rgba(255,255,255,.045),rgba(255,255,255,.045));
  background-size: 260px 260px, 180px 180px, 210px 210px, 150px 150px, 120px 120px;
  background-position:
    left -70px top -90px, left 150px bottom -70px,
    right -60px top -70px, right 130px bottom -60px, right 300px top 28px;
}
.search-preview { position: relative; overflow: hidden; }
.search-preview > * { position: relative; z-index: 1; }

.ipage-media-wrap { background: #111; position: relative; }
.ipage-model-wrap { position: relative; }
.ipage-model-controls { position: absolute; bottom: 16px; right: 16px; z-index: 10; }
.ipage-dl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--crimson); color: var(--white); border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.2s; }
.ipage-dl-btn:hover { background: var(--crimson-hover); }

.ipage-media-thumbs { display: flex; gap: 8px; padding: 12px 20px; background: #333333; overflow-x: auto; scrollbar-width: none; }
.ipage-media-thumbs::-webkit-scrollbar { display: none; }
.ipage-thumb-btn { flex-shrink: 0; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #333; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s; font-size: 20px; color: rgba(255,255,255,0.6); }
.ipage-thumb-btn.active { border-color: var(--crimson); }
.ipage-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.ipage-gallery { background: #111; }
.ipage-gallery-main { display: flex; align-items: center; justify-content: center; min-height: 480px; }
.ipage-gallery-main img { max-width: 100%; max-height: 560px; object-fit: contain; display: block; }
.ipage-gallery-thumbs { display: flex; gap: 8px; padding: 12px 20px; background: #333333; overflow-x: auto; scrollbar-width: none; }
.ipage-gallery-thumbs::-webkit-scrollbar { display: none; }
.ipage-gthumb { width: 64px; height: 64px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: #333; cursor: pointer; flex-shrink: 0; padding: 0; }
.ipage-gthumb.active { border-color: var(--crimson); }
.ipage-gthumb img { width: 100%; height: 100%; object-fit: cover; }

.ipage-no-media { min-height: 300px; background: #111; display: flex; align-items: center; justify-content: center; font-size: 48px; color: #444; }

.ipage-meta-wrap { background: var(--white); padding: 40px 0; border-top: 1px solid var(--border); }
.ipage-meta-inner { max-width: 860px; margin: 0 auto; padding: 0 40px; }
.ipage-desc { font-size: 16px; line-height: 1.75; color: var(--gray-600); margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.ipage-meta-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.ipage-meta-table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ipage-meta-row { display: grid; grid-template-columns: 160px 1fr; border-bottom: 1px solid var(--gray-100); }
.ipage-meta-row:last-child { border-bottom: none; }
.ipage-meta-key { padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--gray-500); background: var(--gray-50); }
.ipage-meta-val { padding: 12px 16px; font-size: 13px; color: var(--dark); }
.ipage-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ipage-tag { padding: 3px 10px; background: var(--gray-100); border-radius: 12px; font-size: 12px; color: var(--gray-600); text-decoration: none; transition: all 0.2s; }
.ipage-tag:hover { background: rgba(155,27,48,0.1); color: var(--crimson); }

@media (max-width: 900px) {
  .srch-main { grid-template-columns: 1fr; }
  .srch-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .srch-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .explore-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .search-main { grid-template-columns: 1fr; }
  .item-layout { grid-template-columns: 1fr; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   SINGLE POST (Izdvojeno / vijesti)
   ============================================================ */
.sp-article { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.sp-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.sp-hero.sp-hero-img {
  position: relative; padding: 0; border: none; margin: 0 0 32px;
  min-height: 360px; display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  border-radius: 0 0 16px 16px; overflow: hidden;
  max-width: 1100px; margin-left: auto; margin-right: auto;
}
.sp-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 60%, transparent 100%); }
.sp-hero-inner { position: relative; z-index: 1; padding: 40px; max-width: 820px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.sp-hero.sp-hero-img .sp-hero-inner { color: #fff; }
.sp-hero.sp-hero-img .sp-back, .sp-hero.sp-hero-img .sp-meta { color: rgba(255,255,255,.85); }
.sp-back { display: inline-block; font-size: 14px; color: var(--crimson); text-decoration: none; margin-bottom: 16px; font-weight: 600; }
.sp-back:hover { text-decoration: underline; }
.sp-cat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.sp-hero:not(.sp-hero-img) .sp-cat { color: var(--crimson); }
.sp-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; margin: 0 0 14px; font-weight: 700; }
.sp-meta { font-size: 14px; color: var(--gray-500); }
.sp-body { max-width: 820px; margin: 0 auto; padding: 0 24px; font-size: 17px; line-height: 1.8; color: var(--gray-700); }
.sp-body p { margin-bottom: 18px; }
.sp-pagelinks { margin: 24px 0; font-weight: 600; }
.sp-tags { max-width: 820px; margin: 28px auto 0; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-tag { font-size: 13px; color: var(--gray-500); background: var(--gray-100); padding: 4px 12px; border-radius: 20px; }
.sp-share { max-width: 820px; margin: 32px auto 0; padding: 24px 24px 0; border-top: 1px solid var(--border); display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.sp-share > span { font-size: 14px; font-weight: 600; color: var(--gray-600); }
.sp-share-btn { font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--gray-600); cursor: pointer; text-decoration: none; transition: all .2s; }
.sp-share-btn:hover { border-color: var(--crimson); color: var(--crimson); }
.sp-related { max-width: 1100px; margin: 64px auto 0; padding: 48px 24px 72px; border-top: 1px solid var(--border); }
.sp-related > h2 { font-size: 24px; margin: 0 0 28px; text-align: center; }
.sp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sp-related-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.sp-related-card:hover { box-shadow: 0 6px 20px rgba(155,27,48,.12); transform: translateY(-2px); }
.sp-related-img { aspect-ratio: 16/9; background: var(--gray-100); overflow: hidden; }
.sp-related-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-related-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.sp-related-body { padding: 16px 18px 20px; }
.sp-related-cat { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--crimson); }
.sp-related-body h3 { font-size: 15px; line-height: 1.4; margin: 6px 0 8px; }
.sp-related-date { font-size: 12px; color: var(--gray-400); }

/* ============================================================
   RESPONSIVE — tablet i mobitel
   ============================================================ */
@media (max-width: 900px) {
  .footer { grid-template-columns: 1fr 1fr; padding: 40px 32px; gap: 28px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .sp-related-grid { grid-template-columns: 1fr 1fr; }
  .exh-highlights-grid { grid-template-columns: repeat(3, 1fr); }
  /* Virtualne izložbe — 2 stupca na tabletu */
  .exhibition-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Header */
  .header { padding: 10px 18px; }
  .header-social { display: none; }              /* socijalne ikone idu u footer/drawer */
  .header-right { gap: 10px; }
  .search-icon { width: 40px; height: 40px; font-size: 17px; }
  .search-overlay { padding: 14px 18px; }

  /* Globalno smanji bočni padding na sekcijama (80px/64px/56px -> 20px) */
  .stats-bar, .search-preview, .explore, .living-portal,
  .exh-highlights, .exh-quiz-section, .exh-share, .exh-related,
  .exh-about, .exh-practical, .exh-hero,
  .ve-grid-section, .ve-header, .ve-filters,
  .instlist-header, .instlist-grid-section,
  .inst-hero, .inst-body, .search-main,
  .social-feeds, .footer-eu-bar { padding-left: 20px; padding-right: 20px; }

  /* Hero slider */
  .hero-slider { height: 420px; }
  .hero-slide { padding: 40px 22px; }
  .hero-slide h1 { font-size: 26px; }
  .hero-slide p { font-size: 14px; }
  .hero-ctas { flex-wrap: wrap; gap: 10px; }
  .hero-arrow { width: 36px; height: 36px; font-size: 20px; }
  .hero-arrow-prev { left: 10px; } .hero-arrow-next { right: 10px; }

  /* Stats / search */
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
  .search-preview h2 { font-size: 22px; }

  /* Univerzalno: višestupčani gridovi -> jedan/dva stupca */
  .explore-grid, .living-grid, .living-portal-grid,
  .ve-grid, .instlist-grid, .inst-coll-grid, .inst-feat-grid,
  .results-grid, .exh-related-grid, .iz-grid,
  .exhibition-grid { grid-template-columns: 1fr !important; }
  .exh-highlights-grid { grid-template-columns: repeat(2, 1fr); }

  /* Virtualne izložbe (homepage) — istaknuta kartica se slaže okomito */
  .exhibitions { padding: 48px 20px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
  .section-header h2 { font-size: 22px; }
  .exhibition-grid { gap: 18px; margin-top: 24px; }
  .exhibition-card:first-child { grid-column: auto; display: block; }
  .exhibition-card:first-child .exhibition-card-img { aspect-ratio: 16/9; min-height: 0; }
  .exhibition-card:first-child h3 { font-size: 20px; }
  .exhibition-card h3 { font-size: 18px; }
  .exhibition-card-body { padding: 18px; }

  /* Exhibition single */
  .exh-hero { padding: 56px 20px; min-height: auto; }
  .exh-hero h1 { font-size: 28px; }
  .exh-hero-ctas { flex-wrap: wrap; gap: 10px; }
  .exh-about { padding: 48px 20px; }
  .exh-practical-inner { grid-template-columns: 1fr !important; gap: 28px; }
  .exh-credits { flex-direction: column; gap: 20px; }

  /* Single post */
  .sp-hero.sp-hero-img { min-height: 280px; }
  .sp-hero-inner { padding: 28px 20px; }
  .sp-body { font-size: 16px; }
  .sp-related-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer { grid-template-columns: 1fr 1fr; padding: 36px 24px; }
  .footer-eu-inner { justify-content: center; gap: 24px; }
}

@media (max-width: 480px) {
  .footer { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .exh-highlights-grid { grid-template-columns: 1fr; }
  .hero-slide h1 { font-size: 22px; }
  .hero-slider { height: 380px; }
  .lang-switcher { font-size: 11px; }
  .logo, .nav-drawer-logo { font-size: 18px; }
  .homepage-banner-split { flex-direction: column; }
  .sp-hero h1 { font-size: 22px; }
}
