/* ── Zuberec Bilingual Theme – Main Stylesheet ── */

:root {
  --forest: #2d4a2e;
  --pine:   #3a5c3b;
  --moss:   #4a7c4e;
  --sage:   #6a9e6e;
  --cream:  #f7f4ef;
  --warm:   #ede8df;
  --ink:    #1a1f1a;
  --mid:    #4a5249;
  --light:  #8a9889;
  --white:  #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NAV ── */
nav#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex; align-items: center;
  padding: 0 2.5rem; height: 64px; gap: 0;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--ink); flex-shrink: 0;
}
.nav-logo-box {
  width: 40px; height: 40px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border-radius: 4px;
}
.nav-logo-box img {
  width: 40px; height: 40px;
  object-fit: contain; display: block;
}
.nav-brand-text { line-height: 1.2; }
.nav-brand-text .univ {
  font-size: 1.00rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mid); display: block;
}
.nav-brand-text .facility {
  font-size: 0.72rem; font-weight: 500;
  color: var(--ink); display: block;
}

/* Language switcher */
.nav-lang {
  display: flex; align-items: center; gap: 0.35rem;
  margin-left: 1.5rem; flex-shrink: 0;
}
.lang-btn {
  background: none; border: 2px solid transparent;
  border-radius: 4px; padding: 2px; cursor: pointer;
  opacity: 0.55; transition: opacity 0.2s, border-color 0.2s;
  display: flex; align-items: center;
}
.lang-btn img { width: 26px; height: 18px; border-radius: 2px; display: block; }
.lang-btn:hover { opacity: 0.85; }
.lang-btn.active { opacity: 1; border-color: var(--forest); }

/* Nav links */
nav#nav .nav-links,
nav#nav ul.nav-links {
  margin-left: auto;
  display: flex; gap: 0; list-style: none; padding: 0;
}
nav#nav .nav-links li a,
nav#nav ul.nav-links li a,
nav#nav .menu li a {
  font-size: 1.0rem; font-weight: 400;
  padding: 0.4rem 0.7rem; color: var(--mid);
  text-decoration: none; border-radius: 6px;
  transition: background 0.2s, color 0.2s; display: block;
  white-space: nowrap;
}
nav#nav .nav-links li a:hover,
nav#nav ul.nav-links li a:hover,
nav#nav .menu li a:hover,
nav#nav ul.nav-links li.current-menu-item a { background: var(--warm); color: var(--forest); }

/* ── HERO ── */
.hero {
  position: relative; height: 100vh; min-height: 620px; overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  animation: slowZoom 20s ease-out forwards;
}
@keyframes slowZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.0); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.08) 100%);
}
.hero-card {
  position: absolute; bottom: 8%; left: 4%;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(8px);
  border-radius: 12px; padding: 2.2rem 2.4rem;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.14);
  animation: slideUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}
@keyframes slideUp {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}
.hero-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 600;
  color: var(--ink); line-height: 1.2; margin-bottom: 0.9rem;
}
.hero-card p {
  font-size: 0.88rem; line-height: 1.75;
  color: var(--mid); margin-bottom: 1.4rem;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; background: var(--forest); color: #fff;
  font-size: 0.82rem; font-weight: 500;
  padding: 0.65rem 1.5rem; border-radius: 50px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.25s, transform 0.2s; font-family: inherit;
}
.btn-primary:hover { background: var(--pine); transform: translateY(-1px); }
.btn-full { width: 100%; text-align: center; display: block; }

/* ── SECTIONS ── */
.section { padding: 5.5rem 4rem; }
.section-narrow { max-width: 960px; margin: 0 auto; }
.section-label {
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--moss); margin-bottom: 0.6rem; display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600; color: var(--ink);
  line-height: 1.2; margin-bottom: 1.4rem;
}
.section-body {
  font-size: 0.95rem; line-height: 1.85;
  color: var(--mid); margin-bottom: 1rem;
}
.bg-warm { background: var(--warm); }

/* ── ABOUT ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start; margin-top: 3rem;
}
.about-photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.about-photos img {
  width: 100%; border-radius: 8px;
  aspect-ratio: 4/3; object-fit: cover;
  transition: transform 0.4s, box-shadow 0.4s;
}
.about-photos img:hover { transform: scale(1.02); box-shadow: 0 12px 36px rgba(0,0,0,0.14); }
.about-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.about-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 600;
  color: var(--ink); margin-bottom: 1rem; line-height: 1.3;
}

/* ── STATS ── */
.stat-row { display: flex; gap: 0.75rem; margin-top: 1.6rem; }
.stat-pill {
  background: var(--forest); color: #fff;
  border-radius: 8px; padding: 0.9rem 1.2rem;
  text-align: center; flex: 1;
}
.stat-pill--pine { background: var(--pine); }
.stat-pill--moss { background: var(--moss); }
.stat-pill .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 600; display: block;
}
.stat-pill .lbl { font-size: 0.62rem; color: rgba(255,255,255,0.75); }

/* ── SERVICES ── */
.sluzby-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; margin-top: 2.5rem;
}
.sluzby-left ul {
  list-style: none; display: flex;
  flex-direction: column; gap: 0; margin-top: 1rem;
}
.sluzby-left ul li {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.95rem; color: var(--mid);
  padding: 0.65rem 0; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.sluzby-left ul li::before {
  content: ''; width: 7px; height: 7px;
  border-radius: 50%; background: var(--moss); flex-shrink: 0;
}
.sluzby-right { display: flex; flex-direction: column; gap: 1.8rem; }
.attraction-group h4 {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 0.6rem;
  padding-bottom: 0.4rem; border-bottom: 2px solid var(--moss);
}
.attraction-group ul { list-style: none; }
.attraction-group ul li { margin-bottom: 0.3rem; }
.attraction-group ul li a {
  font-size: 0.88rem; color: var(--mid);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: color 0.2s;
}
.attraction-group ul li a::after { content: '↗'; font-size: 0.68rem; opacity: 0.45; }
.attraction-group ul li a:hover { color: var(--forest); }

/* ── LEISURE ── */
.volny-cas-img {
  width: 100%; border-radius: 12px;
  aspect-ratio: 21/7; object-fit: cover;
  margin-top: 2rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* ── TRAILS ── */
.trasy-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1rem; margin-top: 2rem;
}
.trasy-card {
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 10px; padding: 1.4rem;
  text-decoration: none; color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  display: flex; align-items: center; gap: 0.8rem;
}
.trasy-card:hover {
  border-color: var(--moss);
  box-shadow: 0 8px 24px rgba(42,74,46,0.1);
  transform: translateY(-2px);
}
.trasy-card .icon {
  width: 38px; height: 38px; background: var(--warm);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.trasy-card span { font-size: 0.88rem; color: var(--mid); }

/* ── GALLERY ── */
.gallery-masonry {
  columns: 4;
  column-gap: 0.6rem;
  margin-top: 2rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 0.6rem;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.gallery-item .gallery-thumb-media {
  width: 100%; display: block;
  object-fit: cover; cursor: pointer;
  border-radius: 8px;
  transition: transform 0.4s, box-shadow 0.4s;
}
.gallery-item:nth-child(3n+1) .gallery-thumb-media { aspect-ratio: 4/3; }
.gallery-item:nth-child(3n+2) .gallery-thumb-media { aspect-ratio: 3/4; }
.gallery-item:nth-child(3n)   .gallery-thumb-media { aspect-ratio: 1/1; }
.gallery-item .gallery-thumb-media:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
  z-index: 2; position: relative;
}
.gallery-item--video video.gallery-thumb-media { background: #1b1b1b; }
.gallery-play-badge {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; padding-left: 0.2rem;
  pointer-events: none;
  transition: transform 0.25s, background 0.25s;
  z-index: 3;
}
.gallery-item--video:hover .gallery-play-badge {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(0,0,0,0.75);
}
.gallery-placeholder {
  background: var(--warm); border-radius: 8px; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--light); width: 100%;
}
.gallery-empty-msg {
  text-align: center; color: var(--light);
  font-size: 0.9rem; padding: 2.5rem 0; margin-top: 2rem;
  background: var(--warm); border-radius: 8px;
}
/* Multiple galleries: tabs + panels */
.gallery-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0 0;
}
.gallery-tab-btn {
  padding: 0.55rem 1.3rem; border-radius: 50px;
  font-size: 0.84rem; font-weight: 400; font-family: inherit;
  cursor: pointer; border: 1.5px solid transparent; transition: all 0.2s;
  background: transparent;
}
.gallery-tab-btn.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.gallery-tab-btn:not(.active) { color: var(--mid); border-color: rgba(0,0,0,0.15); }
.gallery-tab-btn:not(.active):hover { border-color: var(--forest); color: var(--forest); }
.gallery-panel { display: none; }
.gallery-panel.active { display: block; }
/* Load more */
.gallery-load-more {
  text-align: center; margin-top: 2rem;
}
.gallery-remaining-count {
  font-size: 0.78rem; opacity: 0.7; margin-left: 0.3rem;
}
/* Total count */
.gallery-total {
  text-align: center; margin-top: 1rem;
  font-size: 0.78rem; color: var(--light); letter-spacing: 0.08em;
}
.gallery-total strong { color: var(--forest); font-weight: 600; }

/* ── PRICING ── */
.cennik-tabs { display: flex; gap: 0.5rem; margin: 1.5rem 0 2rem; }
.cennik-tab {
  padding: 0.55rem 1.3rem; border-radius: 50px;
  font-size: 0.84rem; font-weight: 400; font-family: inherit;
  cursor: pointer; border: 1.5px solid transparent; transition: all 0.2s;
}
.cennik-tab.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.cennik-tab:not(.active) { color: var(--mid); border-color: rgba(0,0,0,0.15); }
.cennik-tab:not(.active):hover { border-color: var(--forest); color: var(--forest); }
.cennik-note { font-size: 0.82rem; color: var(--mid); margin-bottom: 0.4rem; line-height: 1.6; }
.cennik-note--warning { color: #c0392b; font-weight: 500; }
.cennik-table {
  width: 100%; border-collapse: collapse;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}
.cennik-table thead { background: var(--forest); color: #fff; }
.cennik-table thead th {
  padding: 1rem 1.5rem; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; text-align: left;
}
.cennik-table thead th:last-child { text-align: right; }
.cennik-table tbody tr { border-bottom: 1px solid rgba(0,0,0,0.05); transition: background 0.2s; }
.cennik-table tbody tr:last-child { border-bottom: none; }
.cennik-table tbody tr:hover { background: var(--warm); }
.cennik-table td { padding: 0.95rem 1.5rem; font-size: 0.9rem; color: var(--mid); }
.cennik-table td:last-child { text-align: right; font-weight: 500; color: var(--forest); font-size: 1rem; }

/* ── CONTACT ── */
.kontakt-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; margin-top: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.78rem; font-weight: 500; color: var(--ink); }
.form-group input,
.form-group textarea {
  border: 1.5px solid rgba(0,0,0,0.12); border-radius: 8px;
  padding: 0.7rem 0.9rem; font-size: 0.88rem;
  font-family: inherit; color: var(--ink);
  background: #fff; transition: border-color 0.2s; outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--moss); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-message {
  margin-bottom: 1rem; padding: 0.75rem 1rem;
  border-radius: 8px; font-size: 0.85rem; display: none;
}
.form-message.success { background: #e8f5e9; color: #2e7d32; display: block; }
.form-message.error   { background: #fce4ec; color: #c62828; display: block; }
.kontakt-info { background: var(--warm); border-radius: 12px; overflow: hidden; }
.kontakt-map  { height: 220px; position: relative; overflow: hidden; }
.kontakt-map iframe { width: 100%; height: 100%; border: none; }
.map-open-btn {
  position: absolute; top: 10px; left: 10px;
  background: #fff; border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px; padding: 0.4rem 0.8rem;
  font-size: 0.75rem; color: var(--mid);
  text-decoration: none; display: flex; align-items: center; gap: 0.3rem;
  transition: box-shadow 0.2s;
}
.map-open-btn:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.kontakt-details { padding: 1.5rem 1.8rem; }
.kontakt-details h4 { font-size: 0.95rem; font-weight: 500; color: var(--ink); margin-bottom: 0.9rem; }
.kontakt-details p  { font-size: 0.85rem; line-height: 1.9; color: var(--mid); }
.kontakt-details a  { color: var(--forest); text-decoration: none; }
.kontakt-details a:hover { text-decoration: underline; }
.maps-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 0.8rem; font-size: 0.82rem;
  color: var(--forest); text-decoration: none; font-weight: 500;
}
.maps-link:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer#footer {
  background: #151c16; color: rgba(255,255,255,0.75);
  padding: 3.5rem 4rem 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; align-items: flex-start; gap: 0.8rem; }
.footer-logo-box {
  width: 36px; height: 36px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; flex-shrink: 0;
}
.footer-logo-box img {
  width: 36px; height: 36px;
  object-fit: contain; display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-brand-text .univ {
  font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); display: block;
}
.footer-brand-text strong {
  font-size: 0.82rem; font-weight: 500;
  display: block; color: rgba(255,255,255,0.85); line-height: 1.3;
}
.footer-col h4 {
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.84rem; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: color 0.2s;
}
.footer-col ul li a:hover { color: rgba(255,255,255,0.9); }
.footer-col p { font-size: 0.84rem; line-height: 1.9; color: rgba(255,255,255,0.55); }
.footer-col p a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-col p a:hover { color: #fff; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom span { font-size: 0.72rem; color: rgba(255,255,255,0.3); }

/* ── LIGHTBOX ── */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.93); z-index: 500;
  align-items: center; justify-content: center;
  gap: 1rem; padding: 1rem;
}
.lightbox.open { display: flex; }
.lb-content {
  display: flex; flex-direction: column;
  align-items: center; max-width: 90vw; max-height: 92vh;
}
.lb-content img,
.lb-content video {
  max-width: 100%; max-height: 80vh;
  border-radius: 8px; object-fit: contain;
  transition: opacity 0.25s ease;
  display: block;
}
#lb-video { background: #000; display: none; }
.lb-footer {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; margin-top: 0.75rem; padding: 0 0.25rem;
}
.lb-caption {
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  font-family: 'DM Sans', sans-serif; flex: 1;
}
.lb-counter {
  font-size: 0.78rem; color: rgba(255,255,255,0.4);
  font-family: 'DM Sans', sans-serif; white-space: nowrap;
  margin-left: 1rem;
}
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  color: #fff; font-size: 2.2rem; cursor: pointer;
  background: none; border: none; line-height: 1; opacity: 0.6;
  transition: opacity 0.2s; z-index: 10;
}
.lightbox-close:hover { opacity: 1; }
/* Prev / Next */
.lb-nav {
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: 3.5rem; line-height: 1;
  opacity: 0.6; transition: opacity 0.2s, transform 0.2s;
  padding: 0 0.5rem; flex-shrink: 0; user-select: none;
  -webkit-user-select: none;
}
.lb-nav:hover { opacity: 1; }
.lb-prev:hover { transform: translateX(-3px); }
.lb-next:hover { transform: translateX(3px); }
@media (max-width: 600px) {
  .lb-nav { font-size: 2.5rem; padding: 0 0.2rem; }
  .lb-content img { max-height: 70vh; }
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── WP ADMIN BAR ── */
.admin-bar nav#nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar nav#nav { top: 46px; } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav#nav .nav-links li a,
  nav#nav ul.nav-links li a { padding: 0.4rem 0.5rem; font-size: 0.75rem; }
}
@media (max-width: 1100px) {
  .gallery-masonry { columns: 3; }
}
@media (max-width: 860px) {
  .section { padding: 3.5rem 1.5rem; }
  nav#nav { padding: 0 1.2rem; }
  nav#nav .nav-links,
  nav#nav ul.nav-links { display: none; }
  .about-grid, .sluzby-grid, .kontakt-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 2; }
  .trasy-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-card { left: 3%; right: 3%; max-width: 100%; bottom: 5%; }
  .stat-row { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .trasy-grid { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 1; }
  .cennik-tabs { flex-direction: column; }
}
