/* ============================================================
   DIVOKÉ SLOVENSKO – Štýly pre detail destinácie (detail.css)
   ============================================================ */

/* ── DETAIL HERO ── */
.detail-hero {
  height: calc(100vh - var(--nav-h));
  min-height: 500px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-h));
  padding-top: var(--nav-h);
}

.detail-hero-bg {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(26,58,42,0.1) 0%,
    rgba(26,58,42,0.05) 35%,
    rgba(26,58,42,0.7) 70%,
    rgba(26,58,42,0.97) 100%
  );
}

.detail-hero-img {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}

.detail-hero-img img,
.detail-hero-img .img-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
  animation: heroZoom 12s ease forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.0); }
}

.detail-hero-content {
  position: relative; z-index: 2;
  padding: 0 64px 64px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.detail-region {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.detail-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 6.5vw, 90px);
  line-height: 1.0;
  color: var(--cream);
  margin-bottom: 22px;
}

.detail-hero-content h1 em { font-style: italic; color: var(--gold-light); }

.detail-meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.detail-meta-item {
  font-size: 14px;
  color: rgba(245,240,232,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-meta-item strong { color: var(--cream); font-weight: 500; }

.detail-scroll-hint {
  position: absolute;
  right: 48px; bottom: 64px; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: rgba(245,240,232,0.3);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}

.detail-scroll-bar {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(245,240,232,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── QUICK STATS ── */
.quick-stats {
  background: var(--forest);
  display: flex;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.qs-item {
  flex: 1;
  padding: 20px 24px;
  border-right: 1px solid rgba(245,240,232,0.07);
  display: flex; flex-direction: column; gap: 4px;
}

.qs-item:last-child { border-right: none; }

.qs-label {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.38);
}

.qs-val {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  color: var(--gold-light);
}

/* ── BODY LAYOUT ── */
.detail-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 48px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

/* ── MAIN CONTENT ── */
.detail-main { min-width: 0; }

.content-block { margin-bottom: 60px; }

.content-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--forest);
  margin-bottom: 18px;
  line-height: 1.2;
}

.content-block h2 em { font-style: italic; color: var(--forest-light); }

.content-block p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 16px;
}

.pull-quote {
  border-left: 3px solid var(--gold);
  margin: 32px 0;
  padding: 18px 24px;
  background: var(--cream-dark);
  border-radius: 0 2px 2px 0;
}

.pull-quote p {
  font-family: 'Playfair Display', serif;
  font-size: 20px !important;
  font-style: italic;
  color: var(--forest) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  font-weight: 400 !important;
}

.pull-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  font-style: normal;
}

/* ── GALÉRIA ── */
.gallery-block { margin-bottom: 60px; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 200px;
  gap: 8px;
  margin-top: 20px;
}

.gal-item {
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.gal-main { grid-row: 1 / 3; }

.gal-item img,
.gal-item .img-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gal-item:hover img,
.gal-item:hover .img-placeholder { transform: scale(1.05); }

.gal-overlay {
  position: absolute; inset: 0;
  background: rgba(26,58,42,0);
  transition: background 0.3s;
  display: flex; align-items: flex-end;
  padding: 12px;
}

.gal-item:hover .gal-overlay { background: rgba(26,58,42,0.3); }

.gal-overlay span {
  font-size: 12px;
  color: transparent;
  transition: color 0.3s;
  letter-spacing: 0.04em;
}

.gal-item:hover .gal-overlay span { color: rgba(245,240,232,0.9); }

.gallery-note {
  font-size: 12px !important;
  color: var(--stone) !important;
  margin-top: 10px !important;
  font-style: italic;
}

/* ── TIMELINE ── */
.timeline { margin-top: 24px; position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 28px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--cream-dark);
}

.t-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}

.t-dot {
  width: 16px; height: 16px;
  min-width: 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--forest-light);
  margin-top: 4px;
  position: relative; z-index: 1;
  margin-left: 21px;
}

.t-dot.gold { border-color: var(--gold); background: var(--gold); }

.t-year {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  color: var(--forest);
  margin-bottom: 4px;
}

.t-year span {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--gold);
  margin-left: 8px;
}

.t-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ── SIDEBAR ── */
.detail-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(26,58,42,0.07);
}

.info-card-head {
  background: var(--forest);
  padding: 14px 20px;
}

.info-card-head h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 500;
}

.info-rows { padding: 4px 0; }

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 20px;
  border-bottom: 1px solid var(--cream-dark);
  gap: 12px;
}

.info-row:last-child { border-bottom: none; }

.ik { font-size: 12px; color: var(--stone); }
.iv { font-size: 13px; color: var(--ink); font-weight: 500; text-align: right; }
.iv.gold { color: var(--gold); }
.iv.green { color: var(--forest-light); }

.tag-cloud {
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 2px;
  background: var(--cream-dark);
  color: var(--stone-dark);
}

.tag.green {
  background: rgba(74,140,92,0.1);
  color: var(--forest-mid);
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(8,8,6,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lb-content {
  max-width: 90vw;
  max-height: 85vh;
  font-size: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
}

.lb-close {
  position: absolute;
  top: 28px; right: 36px;
  font-size: 26px;
  color: rgba(245,240,232,0.5);
  cursor: pointer;
  background: none;
  border: none;
  font-family: sans-serif;
  transition: color 0.2s;
}

.lb-close:hover { color: var(--gold-light); }

.lb-caption {
  position: absolute;
  bottom: 28px;
  font-size: 13px;
  color: rgba(245,240,232,0.4);
  letter-spacing: 0.05em;
}

/* ── SIMILAR ── */
.similar-section { background: var(--white); }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── NÁROČNOSŤ – HORY ── */
.difficulty-rating {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  line-height: 1;
}

.difficulty-mountain {
  width: 18px;
  height: 18px;
  transition: color 0.2s;
}

.difficulty-mountain.active  { color: var(--gold-light); }
.difficulty-mountain.inactive { color: rgba(245,240,232,0.15); }

/* V sidebar — tmavšie pozadie */
.info-row .difficulty-mountain { width: 16px; height: 16px; }
.info-row .difficulty-mountain.inactive { color: var(--cream-dark); }

/* V quick-stats lište */
.qs-val .difficulty-mountain { width: 20px; height: 20px; }
.qs-val .difficulty-mountain.inactive { color: rgba(245,240,232,0.15); }

/* ── HODNOTENIE – HVIEZDIČKY ── */
.star-rating {
  display: inline-flex;
  gap: 2px;
  line-height: 1;
}

.star {
  font-size: 16px;
  transition: color 0.2s;
}

.star.filled { color: var(--gold-light); }
.star.empty  { color: rgba(245,240,232,0.2); }

/* V sidebar info-card — tmavšie pozadie, iná farba prázdnych */
.info-row .star.empty { color: var(--cream-dark); }
.info-row .star { font-size: 15px; }

/* V quick-stats lište */
.qs-val .star { font-size: 18px; }
.qs-val .star.empty { color: rgba(245,240,232,0.15); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .detail-body {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 24px;
  }
  .detail-sidebar { position: static; }
  .detail-hero-content { padding: 0 24px 48px; }
  .detail-scroll-hint { right: 24px; }
  .quick-stats { flex-wrap: wrap; }
  .qs-item { min-width: 50%; }
  .gallery-grid { grid-template-rows: 220px 160px; }
}

@media (max-width: 768px) {
  /* Fotografia — nezobrazuje sa roztiahnutá, ale orezaná z centra */
  .detail-hero {
    height: 70vh;
    min-height: 420px;
  }

  .detail-hero-img img,
  .detail-hero-img .img-placeholder {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
  }

  /* Nadpis destinácie — menší na mobile */
  .detail-hero-content h1 {
    font-size: clamp(30px, 8vw, 46px);
    margin-bottom: 14px;
  }

  .detail-region {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .detail-meta-row { gap: 12px; }
  .detail-meta-item { font-size: 13px; }

  /* Scroll hint — skrytý na mobile */
  .detail-scroll-hint { display: none; }

  /* Quick stats — menší text */
  .qs-val { font-size: 15px; }
  .qs-label { font-size: 10px; }
  .qs-item { padding: 16px 16px; }
}

@media (max-width: 480px) {
  .detail-hero {
    height: 65vh;
    min-height: 380px;
  }

  .detail-hero-content { padding: 0 16px 32px; }

  .detail-hero-content h1 {
    font-size: clamp(26px, 7.5vw, 36px);
  }

  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gal-main { grid-row: auto; }
  .gal-item { height: 220px; }

  .qs-item { min-width: 50%; padding: 14px 12px; }
  .qs-val { font-size: 14px; }
}
