/* ============================================================
   DIVOKÉ SLOVENSKO – Globálny štýl
   Verzia: 1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500&display=swap');

/* ── PREMENNÉ ── */
:root {
  --forest:        #1a3a2a;
  --forest-mid:    #2d5a40;
  --forest-light:  #4a8c5c;
  --moss:          #7ab87a;
  --cream:         #f5f0e8;
  --cream-dark:    #ede5d4;
  --stone:         #8a7e6e;
  --stone-dark:    #5a5040;
  --gold:          #c9a84c;
  --gold-light:    #e8c96a;
  --ink:           #1c1a16;
  --text-muted:    #6b6258;
  --white:         #fdfaf5;
  --nav-h:         72px;
  --max-w:         1200px;
  --radius:        3px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: var(--forest);
  overscroll-behavior: none;
}
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  padding-top: 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── NAVIGÁCIA ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(26,58,42,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: rgba(245,240,232,0.7);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold-light);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--gold);
  color: var(--forest) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--gold-light) !important; }
.nav-cta::after { display: none !important; }

/* Hamburger (mobil) */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 101;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Hamburger → X animácia */
.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── PAGE HERO (zdieľaný komponent pre podstránky) ── */
.page-hero {
  position: relative;
  background: var(--forest);
  padding: calc(var(--nav-h) + 56px) 48px 72px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 70% 50%, rgba(74,140,92,0.12) 0%, transparent 70%),
    linear-gradient(160deg, rgba(26,58,42,1) 0%, rgba(45,90,64,0.9) 100%);
}

.page-hero-content {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.5vw, 62px);
  color: var(--cream);
  line-height: 1.12;
  margin-bottom: 14px;
}

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

.page-hero p {
  font-size: 17px;
  color: rgba(245,240,232,0.6);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.7;
}

/* ── FOOTER ── */
.footer {
  background: var(--forest);
  padding: 64px 48px 36px;
  border-top: 1px solid rgba(201,168,76,0.15);
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(245,240,232,0.4);
  line-height: 1.7;
  font-weight: 300;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 13px;
  color: rgba(245,240,232,0.45);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid rgba(245,240,232,0.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(245,240,232,0.25);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(245,240,232,0.35);
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--gold-light); }

/* ── SPOLOČNÉ KOMPONENTY ── */

/* Sekcia */
.section { padding: 88px 48px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

/* Hlavička sekcie */
.section-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-light);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 42px);
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-title em {
  font-style: italic;
  color: var(--forest-light);
}

.section-lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
  max-width: 540px;
}

/* Tlačidlá */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gold);
  color: var(--forest);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--forest);
  color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--cream); }

.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(245,240,232,0.4);
  color: var(--cream);
}
.btn-outline-light:hover {
  background: rgba(245,240,232,0.1);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* Karty destinácií */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--cream-dark);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(26,58,42,0.13);
  border-color: rgba(26,58,42,0.15);
}

.card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-img img { transform: scale(1.06); }

.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(26,58,42,0.88);
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 2px;
}

.card-body { padding: 22px 20px 26px; }

.card-region {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--forest-light);
  margin-bottom: 6px;
}

.card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  color: var(--forest);
  margin-bottom: 10px;
  line-height: 1.25;
}

.card-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--cream-dark);
  padding-top: 14px;
}

.card-meta span {
  font-size: 12px;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Placeholder obrázok */
.img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--forest-mid) 0%, var(--forest-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  opacity: 0.6;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.45);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .current { color: var(--gold-light); }

/* Animácie pri scrolle */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONZIVITA ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 0 24px; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(26,58,42,0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    border-bottom: 1px solid rgba(201,168,76,0.2);
    z-index: 99;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-burger { display: flex; }

  .section { padding: 64px 24px; }

  .page-hero { padding: calc(var(--nav-h) + 32px) 24px 48px; }

  .footer { padding: 48px 24px 28px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(245,240,232,0.07);
    margin-bottom: 0;
  }
  .footer-brand img { margin-bottom: 0; height: 32px; flex-shrink: 0; }
  .footer-brand p { margin: 0; max-width: 260px; font-size: 12px; }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root { --nav-h: 60px; }
  .nav-logo img { height: 34px; }
  .nav { padding: 0 16px; }
  .footer { padding: 40px 16px 24px; }
  .section { padding: 48px 16px; }
}
/* ── WORDPRESS EDITOR BLOKY ── */
.detail-main h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--forest);
  margin: 40px 0 16px;
  line-height: 1.2;
}

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

.detail-main h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--forest);
  margin: 28px 0 10px;
}

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

.detail-main ul {
  margin: 16px 0 16px 20px;
}

.detail-main ul li {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 8px;
}

.detail-main figure {
  margin: 28px 0;
}

.detail-main figure img {
  width: 100%;
  border-radius: 3px;
}

.detail-main figcaption {
  font-size: 12px;
  color: var(--stone);
  margin-top: 8px;
  font-style: italic;
}

.detail-main .wp-block-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 28px 0;
}

.detail-main .wp-block-gallery figure {
  margin: 0;
}

/* ── TIMELINE ZOZNAM (guličky) ── */
.detail-main ul {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  position: relative;
}

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

.detail-main ul li {
  padding-left: 36px;
  position: relative;
  margin-bottom: 24px;
}

.detail-main ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--forest-light);
  background: var(--cream);
}

/* Párne guličky = plné zlaté */
.detail-main ul li:nth-child(odd)::before {
  background: var(--gold);
  border-color: var(--gold);
}

/* ── OVERSCROLL FARBA (biely pás pri scrollovaní mimo stránky) ── */
/* Dole stránky = footer je tmavý, tak nastavíme html na forest */
/* Hore stránky = nav je tiež tmavý, takže forest sedí všade */
html {
  background-color: var(--forest) !important;
}

/* WordPress niekedy nastaví vlastnú background farbu cez inline style alebo body class */
body.home,
body.page,
body.single,
body.archive,
body.blog {
  background-color: var(--cream);
}
.form-error {
  background: #fdf2f2;
  border: 1px solid rgba(180,50,50,0.25);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #b43232;
  margin-top: 12px;
}
