/* === RESET & TOKENS =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand palette */
  --accent: #c2a98a; /* sandstone – CTA & accents */
  --green-dark: #3c5a3c; /* pine dark */
  --green-mid: #7dae6a; /* pine mid */
  --sand-light: #f2eee8; /* warm boxes */
  --neutral-dark: #222222; /* base text */
  --neutral-70: #555555;
  --neutral-40: #999999;
  --white: #ffffff;

  /* Layout */
  --radius: 12px;
  --shadow-sm: 0 3px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.08);
  --max-w: 1200px;
  --max-w-narrow: 900px;

  /* Header */
  --header-h: clamp(56px, 7vw, 64px);
  --header-bg: rgba(255, 255, 255, 0.9);
  --header-border: #eee;

  /* Type scale (klidná, čitelná) */
  --fs-h1: clamp(2.3rem, 6vw, 3.6rem);
  --fs-h2: clamp(1.8rem, 4.4vw, 2.4rem);
  --fs-h3: clamp(1.15rem, 3vw, 1.4rem);
  --fs-p: clamp(1rem, 2vw, 1.05rem);

  /* Spacing */
  --section-pad: clamp(18px, 4vw, 28px);
  --stack-xxs: 6px;
  --stack-xs: 10px;
  --stack-sm: 14px;
  --stack-md: 20px;
  --stack-lg: 28px;
  --stack-xl: 36px;
}

svg {
  fill: none;
  stroke: var(--green-mid);
  stroke-width: 2;
}

/* === BASE ============================================= */
html,
body {
  height: 100%;
  color: var(--neutral-dark);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  scroll-behavior: smooth;
}

/* Typo: Lora for headings */
h1,
h2,
h3 {
  font-family: "Lora", serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

h1 {
  font-size: var(--fs-h1);
  margin-block: 0 var(--stack-sm);
}
h2 {
  font-size: var(--fs-h2);
  margin-block: 0 var(--stack-md);
  text-align: center;
}
h3 {
  font-size: var(--fs-h3);
  margin-block: 0 var(--stack-xs);
}

p {
  font-size: var(--fs-p);
  line-height: 1.6;
}

/* Links / focus */
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* === HEADER =========================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-pad);
  z-index: 999;
  border-bottom: 1px solid var(--header-border);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  color: #222;
}
.logo-icon {
  width: 28px;
  height: auto;
  display: block;
}
.nav {
  display: none;
} /* používáme jen hamburger */
.hamburger {
  display: block;
  background: none;
  border: none;
  color: var(--neutral-dark);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0; /* důležité pro odstranění vlastního tap highlightu */
  -webkit-tap-highlight-color: transparent; /* iOS fix */
}

/* CTA v headeru (když bys ho někdy vrátil) */
.cta-header {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  background: var(--accent);
  color: #222;
  font-weight: 600;
  text-decoration: none;
}
.cta-header:hover {
  filter: brightness(0.95);
}

/* === GENERIC SECTIONS ================================= */
.sec {
  min-height: 100vh;
  padding: clamp(48px, 8vw, 120px) var(--section-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  scroll-margin-top: var(--header-h);
}

/* === Nadpisy sekcí ======================================== */
.sec h2 {
  font-family: "Lora", serif;
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  text-align: center;
  color: var(--text-dark, #222);
  margin-bottom: 0.4em;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* Podnadpisy (sjednoceno napříč stránkou) */
.section-sub {
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 2.5em;
  line-height: 1.6;
}

/* kontajner pro obsah sekcí */
.wrapper {
  width: min(var(--max-w), 90%);
  margin: 0 auto;
}
/* Responzivní drobnost */
@media (max-width: 600px) {
  .sec h2 {
    font-size: 1.6rem;
  }
  .section-sub {
    font-size: 0.95rem;
    margin-bottom: 2em;
  }
}

/* === HERO ============================================= */
.hero-bg {
  background-image: url("../assets/img/uni_borovice.webp");
  background-size: cover;
  background-position: center top;
  background-attachment: scroll;
  background-repeat: no-repeat;
  position: relative;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.35)
  );
  mix-blend-mode: multiply;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);

  padding: 0 8px;
}
.hero-content h1 {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
#hero {
  height: 100vh;
  height: 100svh;
}

/* Buttons – sjednocené */
.btn,
.cta-hero,
.cta-form {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  border: 0;

  margin-top: 20px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  background: var(--accent);
  color: #222;
  transition: filter 0.12s ease, transform 0.12s ease,
    background-color 0.12s ease;
}
.btn:active,
.cta-hero:active,
.cta-form:active {
  transform: translateY(1px);
}
.btn:hover,
.cta-hero:hover,
.cta-form:hover {
  filter: brightness(0.95);
  transform: scale(1.02);
}

/* Buttons - HERO trochu výraznější*/
.cta-hero {
  margin-top: 50px;
  background: var(--accent);
}

.cta-hero:hover {
  filter: brightness(1.05);
}

/* === SEKCE: Proč přijet k nám ========================= */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 1080px; /* přidáme – drží max 3 sloupce */
  margin: 0 auto; /* centrování gridu */
  gap: 24px;
}
.tile {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--sand-light);
  border: 1px solid #ddd;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.tile-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  opacity: 0.85;
}
.tile-text h3 {
  margin-bottom: var(--stack-xxs);
}
.tile-text p {
  color: var(--neutral-70);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* === SEKCE: Na co se těšit (dlaždice s fotem) ========= */

.loves-grid {
  display: grid;
  gap: 24px;
  width: min(1200px, 90%);
  margin: 0 auto;
}

/* max 3 sloupce na velkých displejích */
@media (min-width: 1100px) {
  .loves-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2 sloupce na středních */
@media (min-width: 700px) and (max-width: 1099px) {
  .loves-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 sloupec na mobilu */
@media (max-width: 699px) {
  .loves-grid {
    grid-template-columns: 1fr;
  }
}

.love-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 260px;
  display: flex;
  align-items: flex-end;
}

.love-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.72);
}

.love-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: var(--white);
}

.love-icon {
  min-width: 32px;
  min-height: 32px;

  width: 32px;
  height: 32px;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.love-icon img {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

/* === SEKCE: Podrobnosti ubytování ===================== */

.details-sec {
  background: var(--sand-light); /* jemný kontrast */
}

.details-sec .wrapper {
  width: min(1000px, 90%);
  margin: 0 auto;
}

.details-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

/* jednotlivý blok */
.details-sec .col {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 22px 22px 26px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

/* ikona nad názvem */
.details-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.details-icon img {
  width: 32px;
  height: 32px;
  opacity: 0.9;
}

/* nadpis kategorie */
.details-sec h3 {
  text-align: center;
  margin-bottom: 14px;
}

/* seznam */
.details-sec ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.details-sec li {
  position: relative;
  padding-left: 14px;
  color: var(--neutral-dark);
  font-size: 0.95rem;
}

.details-sec li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-dark);
  font-weight: bold;
}

/* === SEKCE: Okolí & aktivity ========================== */
.surroundings-sec .wrapper {
  width: min(var(--max-w-narrow), 90%);
}

/* podnadpis */

.surr-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
  justify-content: center;
  justify-items: center;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.surr-group h3 {
  margin-bottom: var(--stack-xs);
  font-weight: 600;
  font-size: 1.15rem;
}

/* no background / no box / natural */
.surr-group ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.surr-group li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--neutral-dark);
  padding-left: 14px;
  position: relative;
}

/* decent bullet */
.surr-group li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-dark);
  font-weight: bold;
}

/* odkaz na mapy.cz */
.surr-maplink {
  margin: var(--stack-md) 0 var(--stack-lg);
  text-align: center;
}

.surr-maplink a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.surr-maplink a:hover {
  border-color: var(--green-dark);
}

.surr-map-ico {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

/* panorama */
.surr-hero {
  width: 100%;
  height: 36vh;
  border-radius: var(--radius);
  margin-bottom: var(--stack-lg);
  background-image: url("../assets/img/uni_surr.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-md);
}

@media (max-width: 700px) {
  .surr-hero {
    height: 26vh;
  }
}

@media (max-width: 800px) {
  .surr-groups {
    grid-template-columns: 1fr;

    justify-items: start;
  }
}

/* === SEKCE: Fotogalerie =============================== */
.gallery-sec .wrapper {
  width: min(1200px, 90%);
  margin: 0 auto;
  text-align: center;
}

/* container */
.gallery-swiper {
  width: 100%;
  height: 60vh;
  border-radius: var(--radius);
}

/* single slide */
.gallery-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* než ořezávání */
  /*background: #000;  černé letterbox okraje vypadají pro foto nejlépe */
  /*padding: 12px;  mírný „rám“ */
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease;
}

/* jemná premium animace – když je kurzor nad */
.gallery-swiper img:hover {
  transform: scale(1.015);
}

.gallery-note {
  margin-top: var(--stack-sm);
  margin-bottom: var(--stack-lg);
  color: var(--neutral-70);
  font-size: 0.8rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

/* === SEKCE: Ceny a pobyty ============================= */
.pricing-sec .wrapper {
  width: min(var(--max-w-narrow), 90%);
}

.price-table {
  display: grid;
  gap: 22px;
  margin-bottom: 20px;
}
.price-item {
  background: var(--sand-light);
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.price-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.price-item span {
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--neutral-70);
}
.price-val {
  margin: 6px 0;
  font-size: 1.35rem;
  font-weight: 700;
}
.note {
  font-size: 0.9rem;
  color: var(--neutral-70);
}
.avg {
  text-align: center;
  margin: 16px 0;
  font-weight: 500;
}
.perobject {
  text-align: center;
  margin: 6px 0 20px;
  color: var(--neutral-70);
  font-size: 0.9rem;
}

/* === Kontakt – čistá verze bez formuláře ================= */
.contact-sec .wrapper {
  width: min(620px, 90%);
  margin: 0 auto;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(194, 169, 138, 0.45); /* zjemněný --accent */
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-ico {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.9;
}

.contact-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-text a {
  text-decoration: none;
  font-weight: 600;
  color: var(--green-dark);
}

.contact-text a:hover {
  text-decoration: underline;
}

.contact-note {
  text-align: center;
  margin-top: var(--stack-sm);
  font-size: 0.85rem;
  color: var(--neutral-70);
}

/* === FOOTER (2 sloupce, příběh) ======================= */
.site-footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 80px 0 40px;
}
.footer-wrapper {
  width: min(var(--max-w), 90%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.footer-col-left h3 {
  font-family: "Lora", serif;
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.footer-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}
.footer-story {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.8);
}
.backtop a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
}
.backtop a:hover {
  text-decoration: underline;
}

.footer-col-right h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-list img {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}
.footer-list a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-list a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 50px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 200;
  opacity: 0.5;
}

@media (max-width: 800px) {
  .footer-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* === MOBILE PANEL (hamburger) ======================== */
.mobile-panel {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100svh;
  background: var(--white);
  border-left: 1px solid #ddd;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
  padding: calc(var(--header-h) + 16px) 20px 20px;
  transition: right 0.28s ease;
  z-index: 9999;
}
.mobile-panel.open {
  right: 0;
}
.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--neutral-dark);
}
.mobile-nav a {
  display: block;
  margin-bottom: 18px;
  text-decoration: none;
  color: var(--neutral-dark);
  font-size: 1rem;
}

.mobile-panel-cta {
  position: sticky;
  bottom: 0;
  width: 100%;
  background: var(--accent);
  padding: 14px 0;
  text-align: center;
  margin-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}
.mobile-panel-cta a {
  font-weight: 600;
  color: #222;
  text-decoration: none;
  display: block;
  width: 100%;
}

/* === RESPONSIVE TWEAKS =============================== */
@media (max-width: 900px) {
  .gallery-swiper {
    height: 50vh;
  }
  .tiles {
    gap: 16px;
  }
  .loves-grid {
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .gallery-swiper {
    height: 45vh;
  }
  .cta-hero,
  .cta-form {
    padding: 12px 22px;
  }
  .tile,
  .price-item {
    padding: 16px;
  }
}

/* === REDUCED MOTION ================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
  .mobile-panel {
    transition: none;
  }
  .btn,
  .cta-hero,
  .cta-form {
    transition: none;
  }
}

/* === ANImace loga======= */
.logo-icon {
  transition: transform 0.16s ease;
  transform-origin: center;
}

.logo:hover .logo-icon {
  transform: scale(1.1);
}

.logo-icon:active {
  transform: scale(0.96);
}

.snapper.no-snap {
  scroll-snap-type: none !important;
}
