/* ==========================================================================
   Roubenka Šumava
   ========================================================================== */

:root {
  --cream: #f7f2e9;
  --ink: #193527;
  --accent: #bd5d3c;
  --accent-dark: #a94e31;
  --line: #f3dfba;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  font-family: var(--serif);
  color: var(--ink);
}

/* ---------- Hero: posuvník léto / zima ---------- */

.hero { min-height: 100svh; padding: 0; }

.hero-frame {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
  background: #253f33;
  isolation: isolate;
}

.season {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.season--winter {
  background-image: linear-gradient(90deg, rgba(10, 26, 20, .28), transparent 52%), url("roubenka-zima.jpg");
}

.season--summer {
  width: 50%;
  background-image: linear-gradient(90deg, rgba(10, 26, 20, .27), transparent 52%), url("roubenka-leto.jpg");
  border-right: 2px solid var(--line);
  will-change: width;
}

.season--summer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 42, 29, .14), transparent 65%);
  pointer-events: none;
}

.copy {
  position: absolute;
  z-index: 7;
  left: clamp(28px, 6vw, 90px);
  bottom: clamp(38px, 7vw, 95px);
  max-width: 590px;
  color: #fff;
  text-shadow: 0 2px 20px #06150ecc;
}

.eyebrow {
  margin: 0 0 15px;
  font: 700 12px/1.3 var(--sans);
  letter-spacing: .22em;
}

.copy h1 {
  max-width: 530px;
  margin: 0;
  font-size: clamp(48px, 6vw, 92px);
  line-height: .95;
  letter-spacing: -.055em;
}

.copy p {
  max-width: 405px;
  margin: 23px 0 0;
  font-family: var(--sans);
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.55;
}

.copy a {
  display: inline-flex;
  margin-top: 28px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font: 700 14px var(--sans);
  letter-spacing: .02em;
  box-shadow: 0 8px 20px #0003;
}

.season-label {
  position: absolute;
  z-index: 4;
  bottom: 32px;
  padding: 9px 13px;
  border: 1px solid #ffffff88;
  border-radius: 999px;
  background: #0b211889;
  color: #fff;
  font: 700 11px var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.summer-label { left: 32px; }
.winter-label { right: 32px; }

.divider {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--line);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px #0002;
}

.handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #17382bdd;
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 28px #0005;
  font: 700 21px var(--sans);
  letter-spacing: 5px;
}

.handle::before { content: "‹"; }
.handle::after  { content: "›"; }

/* průhledný posuvník přes celý hero */
.slider {
  position: absolute;
  z-index: 6;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.slider:focus-visible {
  opacity: 1;
  outline: 3px solid var(--line);
  outline-offset: -3px;
}

/* WebP pro prohlížeče, které image-set umí; ostatní zůstanou u JPG výše */
@supports (background-image: image-set(url("a.webp") type("image/webp"))) {
  .season--winter { background-image: linear-gradient(90deg, rgba(10, 26, 20, .28), transparent 52%), image-set(url("roubenka-zima.webp") type("image/webp"), url("roubenka-zima.jpg") type("image/jpeg")); }
  .season--summer { background-image: linear-gradient(90deg, rgba(10, 26, 20, .27), transparent 52%), image-set(url("roubenka-leto.webp") type("image/webp"), url("roubenka-leto.jpg") type("image/jpeg")); }
}

/* ---------- Společné prvky sekcí ---------- */

.content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 112px 32px;
  font-family: var(--sans);
}

.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-title {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.055em;
}

/* ---------- O roubence ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 90px;
  align-items: start;
  margin-top: 42px;
}

.intro-copy { font-size: 18px; line-height: 1.7; color: #426052; }
.intro-copy p { margin: 0 0 20px; }

.amenities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d9d0bf;
  border-radius: 18px;
  background: #d9d0bf;
}

.amenity { min-height: 118px; padding: 25px; background: #fcf9f3; color: var(--ink); }
.amenity strong { display: block; margin-bottom: 7px; font: 700 17px var(--serif); }
.amenity span { font-size: 14px; line-height: 1.5; color: #587062; }

/* ---------- Galerie ---------- */

.gallery-section { margin-top: 120px; padding: 92px 0; background: #17382b; }
.gallery-inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.gallery-section .section-kicker { color: #e6b570; }
.gallery-section .section-title { color: #fff; }

.gallery-lead {
  max-width: 570px;
  margin: 20px 0 38px;
  color: #cbd7cf;
  font-size: 17px;
  line-height: 1.65;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 18px;
}

.gallery-card {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #0e2018;
  cursor: zoom-in;
}

.gallery-card:focus-visible { outline: 3px solid #e6b570; outline-offset: 4px; }

.gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

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

.gallery-card--summer        { grid-column: span 7; grid-row: span 2; }
.gallery-card--interior,
.gallery-card--bedroom       { grid-column: span 5; }
.gallery-card--garden,
.gallery-card--garden-detail,
.gallery-card--winter        { grid-column: span 4; }

.gallery-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 8px 12px;
  border: 1px solid #ffffff66;
  border-radius: 999px;
  background: #102219bb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.more-photos { display: inline-flex; margin-top: 28px; color: #fff; font-weight: 700; text-decoration: none; }
.more-photos:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Kontakt ---------- */

.contact-section { max-width: 1240px; margin: 0 auto; padding: 118px 32px 128px; }

.contact-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 24px;
  background: #eadfcd;
}

.contact-card .section-title { max-width: 620px; }
.contact-copy { margin: 24px 0 0; max-width: 530px; color: #476052; font-size: 17px; line-height: 1.65; }
.contact-links { display: grid; align-content: center; gap: 17px; }

.contact-link { padding: 18px 0; border-bottom: 1px solid #cbbba5; color: var(--ink); text-decoration: none; }

.contact-link small {
  display: block;
  margin-bottom: 4px;
  color: #746d63;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.contact-link strong { font-size: 19px; }
.contact-link strong a { color: inherit; text-decoration: none; }
.contact-link strong a:hover { text-decoration: underline; text-underline-offset: 4px; }

.contact-link--phone strong { display: block; width: max-content; }
.contact-link--reservation { padding-bottom: 0; border-bottom: 0; }

.phone-or {
  display: block;
  margin: 2px 0;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
}

.reservation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 16px 21px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.reservation-button:hover { background: var(--accent-dark); }

/* ---------- Patička ---------- */

.footer { padding: 30px 32px; background: #0f261b; color: #cbd7cf; font: 13px var(--sans); }
.footer-inner { max-width: 1176px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; }
.footer a { color: #fff; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #06150eed;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 24px 70px #0008;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 48px;
  height: 48px;
  border: 1px solid #ffffff88;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 400 34px/1 var(--sans);
  cursor: pointer;
}

.lightbox-close:hover { background: var(--accent); }

/* ---------- Mobil ---------- */

@media (max-width: 700px) {
  .hero-frame { min-height: 620px; }
  .handle { top: 30%; }

  .copy { left: 25px; right: 25px; bottom: 96px; pointer-events: none; }
  .copy a { pointer-events: auto; }
  .copy h1 { font-size: 56px; }

  .season-label { bottom: 28px; }
  .summer-label { left: 22px; }
  .winter-label { right: 22px; }

  .content,
  .contact-section { padding: 76px 22px; }
  .contact-section { padding-bottom: 80px; }

  .intro-grid,
  .contact-card { grid-template-columns: 1fr; gap: 34px; }

  .amenity { min-height: 102px; padding: 20px; }

  .gallery-section { margin-top: 0; padding: 74px 0; }
  .gallery-inner { padding: 0 22px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 13px; }

  /* oprava: dřív měly karty na mobilu nulovou výšku a galerie byla prázdná */
  .gallery-card,
  .gallery-card--summer,
  .gallery-card--interior,
  .gallery-card--bedroom,
  .gallery-card--garden,
  .gallery-card--garden-detail,
  .gallery-card--winter { grid-column: auto; grid-row: auto; min-height: 290px; }

  .contact-card { padding: 34px 25px; border-radius: 18px; }

  .footer { padding: 25px 22px; }
  .footer-inner { display: block; }
  .footer-inner span { display: block; margin-top: 9px; }
}
