/* ══════════════════════════════════════════════════════════════
   FENWEB.SK – Realizácie + Lightbox CSS
   ══════════════════════════════════════════════════════════════ */

/* ── Tab prepínač (realizácie) ───────────────────────────────── */
.tab-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tab-row .tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--stone, #C8BFB0);
  background: transparent;
  color: var(--ink2, #3D3A35);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}
.tab-row .tab:hover   { border-color: var(--navy); color: var(--navy); }
.tab-row .tab.on      { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── Realizácie grid (prehľad) ───────────────────────────────── */
.real-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.real-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.06); transition: box-shadow .25s, transform .25s; }
.real-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.12); transform: translateY(-3px); }

.real-img-wrap { display: block; position: relative; overflow: hidden; aspect-ratio: 3/2; }
.real-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.real-card:hover .real-img-wrap img { transform: scale(1.04); }

.real-overlay {
  position: absolute; inset: 0;
  background: rgba(13,40,64,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: .25s;
}
.real-card:hover .real-overlay { opacity: 1; }
.real-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #fff;
  padding: 10px 20px; border-radius: 50px;
  font-size: 13px; font-weight: 700;
}

.real-body   { padding: 18px 20px 22px; }
.real-meta   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.real-tag    { background: var(--goldlt, #FEF2D8); color: var(--navy); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
.real-year   { font-size: 13px; color: var(--ink3, #706B62); }
.real-title  { font-size: 17px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.real-title a { color: var(--navy); text-decoration: none; }
.real-title a:hover { color: var(--gold); }
.real-perex  { font-size: 13.5px; color: var(--ink3); line-height: 1.6; margin: 0 0 12px; }
.real-place  { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink3); }
.real-place i { color: var(--gold); font-size: 12px; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
/* (presunuté: styling celého breadcrumb-u je teraz v main.css v17,
   variant pre svetlé pozadia je dostupný cez .breadcrumb-wrap parent
   alebo .breadcrumb-light class. Realizácie už používajú default dark
   variant priamo v hero/navy header sekcii.)
*/

/* ── Realizácia hero cover ───────────────────────────────────── */
.real-hero {
  height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.real-hero-ov {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,40,64,.88) 0%, rgba(13,40,64,.5) 70%, transparent 100%);
  display: flex; align-items: flex-end;
  padding-bottom: 48px;
}
.real-tag-lg { display: inline-block; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 50px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; }
.real-hero h1 { color: #fff; font-size: clamp(24px,4vw,42px); font-weight: 800; margin: 0 0 14px; }
.real-hero-meta { display: flex; gap: 20px; flex-wrap: wrap; color: rgba(255,255,255,.7); font-size: 13.5px; }
.real-hero-meta i { color: var(--goldb); margin-right: 5px; }

/* ── Realizácia layout (popis + galéria) ─────────────────────── */
.real-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.real-desc h2, .real-gallery h2 {
  font-size: 20px; font-weight: 700;
  color: var(--navy); margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--linen, #EDE8DF);
}
.real-desc p { font-size: 15px; line-height: 1.75; color: var(--ink2); }
.real-info-box {
  margin-top: 20px;
  background: var(--cream, #F8F5F0);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px; color: var(--ink2);
}
.real-info-box strong { color: var(--navy); }

/* ── Galéria grid ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
  gap: 8px;
}
.gal-item {
  position: relative; overflow: hidden; border-radius: 8px;
  cursor: pointer; border: none; padding: 0;
  background: var(--linen);
}
.gal-item-big {
  grid-column: span 3;
  grid-row: span 2;
  height: 360px;
}
.gal-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .35s;
}
.gal-item:hover img { transform: scale(1.06); }
.gal-zoom {
  position: absolute; inset: 0;
  background: rgba(13,40,64,.4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
  opacity: 0; transition: .25s;
}
.gal-item:hover .gal-zoom { opacity: 1; }
.gal-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ── LIGHTBOX ────────────────────────────────────────────────── */
.lb {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.lb[style*="flex"] { display: flex !important; }
.lb-bg {
  position: absolute; inset: 0;
  background: rgba(5, 15, 30, .92);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lb-wrap {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  max-width: 1100px; width: 100%;
  gap: 12px;
}
.lb-img-wrap {
  flex: 1; text-align: center;
}
.lb-img {
  max-height: 82vh; max-width: 100%;
  width: auto; height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  object-fit: contain;
  transition: opacity .2s;
}
.lb-img.lb-loading { opacity: 0; }
.lb-alt {
  margin-top: 12px;
  color: rgba(255,255,255,.6);
  font-size: 13px; line-height: 1.5;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.lb-counter {
  position: absolute; top: -36px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.lb-close {
  position: absolute; top: -44px; right: 0;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; transition: .2s;
}
.lb-close:hover { background: rgba(255,255,255,.25); }
.lb-prev, .lb-next {
  flex-shrink: 0;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; transition: .22s;
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); transform: scale(1.08); }
.lb-prev:focus-visible, .lb-next:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media(max-width: 900px) {
  .real-layout { grid-template-columns: 1fr; gap: 32px; }
  .real-hero { height: 300px; }
  .real-hero-ov { padding-bottom: 28px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gal-item-big { grid-column: span 2; height: 280px; }
}
@media(max-width: 600px) {
  .real-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .gal-item-big { height: 240px; }
  .lb-wrap { gap: 6px; }
  .lb-prev, .lb-next { width: 38px; height: 38px; font-size: 13px; }
  .lb-img { max-height: 70vh; }
}
