/* ==========================================================================
   Chalupa pri uličke — Terchová
   Vizuál 1:1 podľa pôvodného WordPress webu (Astra + Elementor).
   ========================================================================== */

:root {
  --c-heading: #14261c;   /* nadpisy, tmavý text */
  --c-text: #4e5652;      /* základný text */
  --c-icon: #414141;      /* ikony, odkazy "Čítať viac" */
  --c-black: #000;
  --c-alt: #f4f6f4;       /* svetlo-zelenkavé pozadie sekcií */
  --c-white: #fff;
  --c-border: #eaeaea;
  --c-footer: #4b4f58;
  --c-card: #f4f4f4;      /* karty recenzií */
  --c-popup-icon: #69727d;

  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-head: "Merriweather", Georgia, serif;
  --f-nav: "Montserrat", system-ui, sans-serif;
  --f-ui: "Poppins", system-ui, sans-serif;

  --container: 1280px;    /* 1200 px obsah + 2 × 40 px okraj */
  --gutter: 40px;
  --radius: 8px;
  --h2: clamp(30px, 21.65px + 1.99vw, 42px);
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.8571;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-heading); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-black); }
p { margin: 0 0 17px; }
h1, h2, h3 { margin: 0; color: var(--c-heading); font-family: var(--f-head); font-weight: 700; }
button { font: inherit; cursor: pointer; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--c-black); color: var(--c-white); padding: 10px 16px; border-radius: 4px;
}
.skip-link:focus { top: 12px; color: var(--c-white); }
:focus-visible { outline: 2px solid var(--c-heading); outline-offset: 3px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  font-family: var(--f-ui); font-size: 16px; font-weight: 500; line-height: 1;
  padding: 15px 23px;
  border: 1px solid var(--c-black); border-radius: 6px;
  background: transparent; color: var(--c-heading);
  text-decoration: none;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn:hover, .btn:focus-visible { background: var(--c-black); border-color: var(--c-black); color: var(--c-white); }
.btn-outline { text-transform: uppercase; background: var(--c-alt); }

/* ==========================================================================
   Hlavička
   ========================================================================== */
.site-header {
  position: relative; z-index: 50;
  background: var(--c-white);
  border-bottom: 2px solid var(--c-border);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  min-height: 107px;
  display: flex; align-items: center;
}
.site-logo { flex: none; display: block; }
.site-logo img { width: 218px; }

.main-nav { margin-left: auto; display: flex; align-items: center; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; }
.menu a {
  display: block; padding: 0 17px; line-height: 94px;
  font-family: var(--f-nav); font-size: 17px; font-weight: 600;
  color: var(--c-black); text-transform: capitalize;
}
.menu a:hover { color: var(--c-text); }

.lang-switch { list-style: none; margin: 0 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.lang-switch a { display: block; line-height: 0; }
.lang-switch img { width: 16px; height: 11px; }

.btn-header {
  margin-left: 44px;
  font-family: var(--f-nav); font-size: 17px; font-weight: 500;
  padding: 15px 23px; border-color: var(--c-heading); color: var(--c-black);
  text-transform: capitalize;
}
.btn-header--mobile { display: none; }

.menu-toggle {
  display: none; margin-left: 16px;
  width: 44px; height: 44px; padding: 7px;
  border: 0; background: transparent; color: var(--c-black);
}
.menu-toggle svg { width: 30px; height: 30px; }
.menu-toggle__close { display: none; }

/* ==========================================================================
   Úvod (hero)
   ========================================================================== */
.section-alt { background: var(--c-alt); }

.hero .container { padding-top: 104px; padding-bottom: 104px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* nadpis + text sú spolu zvislo vycentrované voči fotke (ako v origináli) */
  grid-template-areas: ". media" "title media" "text media" ". media";
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: 7px;
}
.hero-title {
  grid-area: title;
  font-size: var(--h2); line-height: 1.3; letter-spacing: -1px;
  margin: 0 0 32px;
}
.hero-text { grid-area: text; }
.hero-text p { padding-right: 48px; margin: 0 0 20px; }
.hero-text p:last-of-type { margin-bottom: 37px; }
.hero-lead { font-weight: 500; color: var(--c-heading); }
.hero-media { grid-area: media; }

.hero-carousel {
  width: 86%; max-width: 516px;
  aspect-ratio: 1;
  overflow: hidden; border-radius: var(--radius);
  background: #dfe3df;
}
.hero-track { display: flex; height: 100%; will-change: transform; }
.hero-slide { flex: 0 0 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.counters {
  display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 20px;
  margin-top: 89px; text-align: center;
}
.counter-number {
  font-family: var(--f-ui); font-size: 48px; font-weight: 600; line-height: 1;
  color: var(--c-text);
}
.counter-title {
  font-family: var(--f-ui); font-size: 15px; font-weight: 600; line-height: 2.5;
  letter-spacing: 1px; text-transform: uppercase;
}

/* ==========================================================================
   Spoločné sekcie
   ========================================================================== */
.section .container { padding-top: 60px; padding-bottom: 60px; }
.section-title { font-size: var(--h2); line-height: 1.3; margin-bottom: 20px; }
.section-title.center { text-align: center; }
.section-sub { text-align: center; padding: 0 25%; margin: 0 0 40px; }

/* ---------- Vybavenie ---------- */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding-top: 44px; text-align: center;
}
.feature { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.feature .ico { font-size: 48px; color: var(--c-icon); }
.feature-title { font-size: 20px; line-height: 1.2; }

/* ---------- Galéria ---------- */
.gallery-section .section-title { margin-bottom: 40px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.g-item { display: block; overflow: hidden; border-radius: var(--radius); background: #e6e9e6; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.03); }
.g-1, .g-2, .g-5, .g-6 { aspect-ratio: 388 / 240; }
.g-3, .g-4 { position: relative; }            /* veľké fotky sa prispôsobia výške 2 malých */
.g-3 img, .g-4 img { position: absolute; inset: 0; }
.g-1 { grid-column: 1; grid-row: 1; }
.g-2 { grid-column: 1; grid-row: 2; }
.g-3 { grid-column: 2 / 4; grid-row: 1 / 3; }
.g-4 { grid-column: 1 / 3; grid-row: 3 / 5; }
.g-5 { grid-column: 3; grid-row: 3; }
.g-6 { grid-column: 3; grid-row: 4; }

/* ---------- Recenzie (Booking look) ---------- */
.reviews-section .container { padding-bottom: 70px; }
.reviews { position: relative; font-family: var(--f-ui); color: var(--c-black); }
.rv-viewport { overflow: hidden; margin: 0 8px; padding: 5px 0 1px; }
.rv-track { display: flex; transition: transform .5s ease; will-change: transform; }  /* karty v rade majú rovnakú výšku */
.rv-item { flex: 0 0 25%; padding: 0 8px; min-width: 0; }
.rv-inner {
  height: 100%;
  background: var(--c-card); border-radius: 12px; padding: 20px;
  font-size: 14px; line-height: 1.4;
}
.rv-header { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 12px; }
.rv-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  color: #fff; font-size: 18px; font-weight: 400; line-height: 1;
}
.rv-profile { flex: 1; min-width: 0; padding-right: 5px; }
.rv-name { font-size: 15px; font-weight: 600; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-date { font-size: 13px; line-height: 1.4; color: #767676; }
.rv-platform { width: 20px; height: 20px; flex: none; }
.rv-rating { display: flex; align-items: center; margin-bottom: 10px; }
.rv-stars { display: inline-flex; gap: 1px; margin-right: 8px; }
.rv-star { width: 17px; height: 17px; }
.rv-score { font-size: 15px; font-weight: 600; line-height: 17px; margin-right: 5px; }
.rv-verified { width: 17px; height: 17px; display: block; }
.rv-text {
  font-size: 15px; line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.rv-text.is-open { -webkit-line-clamp: unset; display: block; }
.rv-text strong { font-weight: 400; }
.rv-mood { width: 13px; height: 13px; display: inline-block; vertical-align: -1px; margin-right: 4px; }
.rv-pos { color: #2e9d4b; }
.rv-neg { color: #8a8a8a; }
.rv-more {
  border: 0; background: none; padding: 8px 0 0;
  font-family: var(--f-ui); font-size: 14px; color: #777;
}
.rv-more:hover { color: var(--c-black); text-decoration: underline; }
.rv-nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 30px; height: 30px; padding: 5px; border: 0; border-radius: 50%;
  background: var(--c-white); color: var(--c-black);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  display: grid; place-items: center;
}
.rv-nav svg { width: 18px; height: 18px; }
.rv-nav:hover { background: var(--c-black); color: var(--c-white); }
.rv-prev { left: 0; }
.rv-next { right: 0; }
.reviews-cta { text-align: center; margin-top: 40px; }

/* ---------- Kontaktné informácie ---------- */
.contact-section .container { padding-top: 50px; padding-bottom: 70px; }
.contact-section .section-title { margin-bottom: 48px; }
.info-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  column-gap: 40px;
}
.info-col { display: flex; flex-direction: column; gap: 30px; }
.info-col--first { padding-right: 40px; }
.info-box { display: flex; align-items: flex-start; gap: 16px; }
.info-box > .ico { font-size: 24px; color: var(--c-icon); margin-top: 1px; }
.info-title {
  font-size: 15px; line-height: 1.25; letter-spacing: 1px; text-transform: uppercase;
  margin: 0 0 8px;
}
.info-desc { margin: 0; }
.info-desc a { color: var(--c-heading); }
.info-desc a[href^="tel:"] { color: inherit; }

/* ---------- U nás budete mať blízko ---------- */
.nearby-section .container { padding-bottom: 100px; }
.nearby-section .section-title { margin-bottom: 64px; }
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.place-img { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; margin-bottom: 32px; }
.place-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.place-img:hover img { transform: scale(1.03); }
.place-title { font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.place-title a { color: inherit; }
.place-desc { margin: 0 0 28px; }
.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-ui); font-size: 16px; font-weight: 500; line-height: 1;
  color: var(--c-icon); text-transform: capitalize;
}
.link-more .ico { font-size: 16px; }
.link-more:hover { color: #131316; }

/* ---------- Ako sa k nám dostať ---------- */
.location-section .container { padding-top: 50px; padding-bottom: 80px; }
.location-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.location-head .section-title { letter-spacing: -1px; margin-bottom: 20px; }
.location-head p { margin: 0; }
.btn-nav { text-transform: capitalize; background: transparent; border-color: var(--c-icon); color: var(--c-black); flex: none; }
.btn-nav .ico { font-size: 16px; }
.map { line-height: 0; }
.map iframe { width: 100%; height: 400px; border: 0; }

/* ==========================================================================
   Päta
   ========================================================================== */
.site-footer { background: var(--c-alt); border-top: 3px solid var(--c-alt); }
.site-footer .container { padding-top: 40px; padding-bottom: 40px; min-height: 160px; display: flex; align-items: flex-start; justify-content: center; }
.copyright { margin: 0; font-size: 14px; line-height: 26px; color: var(--c-footer); text-align: center; }
.copyright a { color: inherit; }
.copyright a:hover { text-decoration: underline; }

/* ==========================================================================
   Popup "Možnosti rezervácie"
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .8);
  overflow-y: auto;
  animation: modal-fade .25s ease;
}
.modal-dialog {
  position: relative;
  width: 950px; max-width: 100%; margin: auto;
  background: var(--c-white);
  border-radius: 18px;
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
  padding: 17px 30px 28px;
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 28px; height: 28px; padding: 0; border: 0; background: none;
  color: var(--c-icon);
}
.modal-close svg { width: 28px; height: 28px; }
.modal-close:hover { color: var(--c-black); }
.modal-logo { width: 235px; }
.modal-title { font-size: var(--h2); line-height: 1.3; text-align: center; margin: 0 0 60px; }
.modal-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 40px; text-align: center; }
.modal-option { display: flex; flex-direction: column; align-items: center; }
.modal-option .ico { font-size: 50px; color: var(--c-popup-icon); margin-bottom: 15px; }
.modal-option > a { line-height: 0; }
.modal-option h3 { font-size: 32px; line-height: 1.3; margin-bottom: 14px; }
.modal-option h3 a { color: inherit; }
.modal-option p { margin: 0; word-break: break-word; }
.modal-option p a { color: var(--c-heading); }
.modal-option p a:hover { text-decoration: underline; }
body.modal-open { overflow: hidden; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Lightbox galérie
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 130;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .9);
  animation: modal-fade .25s ease;
}
.lightbox figure { margin: 0; max-width: calc(100vw - 140px); text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); margin: 0 auto; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.lightbox figcaption { color: rgba(255, 255, 255, .85); font-size: 15px; margin-top: 12px; }
.lb-btn {
  position: absolute; border: 0; background: none; color: rgba(255, 255, 255, .85);
  width: 48px; height: 48px; padding: 8px; display: grid; place-items: center;
}
.lb-btn:hover { color: #fff; }
.lb-btn svg { width: 32px; height: 32px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 26px; left: 24px; color: rgba(255, 255, 255, .7); font-size: 14px; }

/* ==========================================================================
   Responzivita
   ========================================================================== */
@media (max-width: 1180px) {
  .rv-item { flex-basis: 33.3333%; }
}

@media (max-width: 1024px) {
  /* hero: nadpis → obrázok → text (ako mobilná verzia originálu) */
  .hero .container { padding-top: 80px; padding-bottom: 80px; }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "media" "text";
    grid-template-rows: auto;
    row-gap: 0;
  }
  .hero-title { text-align: center; margin-bottom: 48px; }
  .hero-carousel { width: 100%; max-width: 640px; margin: 0 auto 48px; aspect-ratio: 1; }
  .hero-text { text-align: left; }
  .hero-text p { padding-right: 0; }
  .hero-text .btn { display: flex; width: max-content; margin: 0 auto; }
  .counters { margin-top: 64px; }
  .counter-title { font-size: 13px; }

  .section .container { padding-top: 80px; padding-bottom: 80px; }
  .section-sub { padding: 0 64px; }
  .info-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .info-col--first { grid-column: 1 / -1; padding-right: 0; }
  .reviews-section .container { padding-bottom: 40px; }
  .contact-section .container { padding-top: 56px; }
  .places { grid-template-columns: 1fr 1fr; row-gap: 56px; }
}

@media (max-width: 921px) {
  /* mobilná hlavička + off-canvas menu */
  .header-inner { min-height: 76px; padding: 0 20px; }
  .site-logo img { width: 150px; }
  .main-nav {
    position: fixed; inset: 0; z-index: 110;
    margin: 0; padding: 110px 32px 40px;
    background: var(--c-white);
    flex-direction: column; align-items: stretch; gap: 32px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
    overflow-y: auto;
  }
  .nav-open .main-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .menu { flex-direction: column; }
  .menu a { font-size: 32px; line-height: 1.3; padding: 14px 0; border-bottom: 1px solid var(--c-border); }
  .btn-header { display: none; }
  .btn-header--mobile { display: inline-flex; margin: 0; align-self: flex-start; }
  .lang-switch { margin-left: auto; gap: 12px; }
  .menu-toggle { display: grid; place-items: center; position: relative; z-index: 111; }
  .nav-open .menu-toggle__open { display: none; }
  .nav-open .menu-toggle__close { display: block; }
  .nav-open .site-logo, .nav-open .lang-switch { position: relative; z-index: 111; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 767px) {
  :root { --gutter: 24px; }
  .hero .container { padding-top: 64px; padding-bottom: 64px; }
  .hero-carousel { margin-bottom: 32px; }
  .hero-title { margin-bottom: 32px; }
  .counters { grid-template-columns: 1fr 1fr; row-gap: 32px; margin-top: 48px; }

  .section .container { padding-top: 64px; padding-bottom: 64px; }
  .section-sub { padding: 0; }
  .features { grid-template-columns: 1fr 1fr; row-gap: 40px; padding-top: 24px; }
  .feature-title { font-size: 17px; }

  .gallery { grid-template-columns: 1fr; gap: 20px; }
  .g-item { grid-column: auto !important; grid-row: auto !important; aspect-ratio: auto !important; position: static; }
  .g-item img { height: auto; position: static; }

  .rv-item { flex-basis: 100%; }
  .reviews-cta { margin-top: 28px; }
  .reviews-cta .btn { max-width: 100%; line-height: 1.35; text-align: center; }
  .rv-prev { left: -10px; }
  .rv-next { right: -10px; }
  .reviews-section .container { padding-bottom: 24px; }
  .contact-section .container { padding-top: 40px; }

  .info-grid { row-gap: 30px; column-gap: 20px; }
  .info-box { flex-direction: column; gap: 10px; }

  .places { grid-template-columns: 1fr; row-gap: 56px; }
  .place-img { margin-bottom: 24px; }

  .location-head { flex-direction: column; align-items: flex-start; }
  .map iframe { height: 340px; }

  .modal-dialog { padding: 17px 20px 28px; }
  .modal-logo { width: 170px; }
  .modal-title { margin-bottom: 32px; }
  .modal-options { grid-template-columns: 1fr; gap: 36px; }
  .modal-option h3 { font-size: 26px; }

  .lightbox figure { max-width: calc(100vw - 24px); }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

@media (max-width: 544px) {
  .menu a { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
