/* ============================================================
   Chaloupka Pomněnka – hlavní styly
   Paleta: pomněnková modrá, krémová, teplé dřevo
   ============================================================ */

:root {
  --blue: #2b87e3;
  --blue-dark: #1b6ac2;
  --blue-light: #8ec8f5;
  --blue-pale: #e9f4fe;
  --cream: #fdfbf7;
  --cream-dark: #f0e9d8;
  --ink: #33312b;
  --ink-soft: #6b675d;
  --white: #ffffff;
  --gold: #f2a93b;
  --green: #35a568;
  --red: #e05d51;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(30, 95, 163, 0.13);
  --font-display: 'Raleway', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Rezervační kalendář – volno zeleně, obsazeno cihlově.
     Všechny odstíny na jednom místě, ať se dají doladit bez hledání po souboru. */
  --cal-free-bg:  #e9f6ee;   /* volný den */
  --cal-free-ink: #1c7a45;
  --cal-free-ln:  #bfe3cd;
  --cal-busy-a:   #fbeae8;   /* obsazeno – šrafování ze dvou tónů */
  --cal-busy-b:   #f4d8d4;
  --cal-busy-ink: #94483f;
  --cal-off-a:    #f3f0e8;   /* mimo výběr / minulost – neutrální */
  --cal-off-b:    #ece8dd;
  --cal-off-ink:  #8d8674;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }

/* SVG ikony */
.ico { display: inline-block; vertical-align: -0.18em; flex-shrink: 0; }

.section { padding: 90px 0; }
.section--alt { background: var(--white); }
.section-label {
  display: inline-block; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--blue); font-weight: 600; margin-bottom: 14px;
}
.section-title { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }
.section-lead { color: var(--ink-soft); max-width: 640px; font-size: 17px; }

/* ---------- Hlavička ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 14px 0; transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.is-scrolled {
  background: rgba(253, 251, 247, .92); backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(27,106,194,.10); padding: 8px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.is-scrolled .brand, .header--solid .brand { color: var(--ink); }
.brand-flower { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 19px; }
.brand-text small { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .8; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.btn) {
  text-decoration: none; color: var(--white); font-size: 15px; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
}
.is-scrolled .main-nav a:not(.btn), .header--solid .main-nav a:not(.btn) { color: var(--ink); }
.main-nav a:not(.btn):hover, .main-nav a.is-active { border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; color: var(--white); }
.is-scrolled .nav-toggle span, .header--solid .nav-toggle span { color: var(--ink); }

/* Stránky bez hero – tmavá hlavička */
.header--solid { position: sticky; background: var(--cream); box-shadow: 0 1px 0 rgba(27,106,194,.08); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px; font-size: 15px; font-weight: 600;
  text-decoration: none; border: 0; cursor: pointer; font-family: var(--font-body);
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn--primary {
  background: linear-gradient(135deg, #45a3f5, #2374d8); color: var(--white);
  box-shadow: 0 6px 20px rgba(43,135,227,.40);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #2b87e3, #1b6ac2); transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(43,135,227,.45);
}
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn--outline:hover { background: var(--blue-pale); }
.btn--nav { padding: 10px 22px; font-size: 14px; }
.btn--lg { padding: 16px 40px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  color: var(--white); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease-in-out; will-change: opacity, transform;
  /* Ken Burns běží nepřetržitě na všech fotkách (tam a zpět) – při prolnutí se nikdy nerestartuje */
  animation: heroKenBurns 18s ease-in-out infinite alternate;
}
.hero-bg img:nth-child(2) { animation-delay: -4s; }
.hero-bg img:nth-child(3) { animation-delay: -8s; }
.hero-bg img:nth-child(4) { animation-delay: -12s; }
.hero-bg img:nth-child(5) { animation-delay: -16s; }
.hero-bg img.is-active { opacity: 1; }
@keyframes heroKenBurns { from { transform: scale(1.03); } to { transform: scale(1.15); } }
.hero-bg::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16,45,78,.45) 0%, rgba(16,45,78,.22) 50%, rgba(13,38,66,.65) 100%);
}
.hero-content {
  position: relative; z-index: 2; max-width: 760px; padding-top: 80px;
  margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-eyebrow { font-size: 14px; letter-spacing: 3px; text-transform: uppercase; opacity: .9; margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); margin-bottom: 22px; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero p { font-size: 19px; max-width: 560px; margin-bottom: 34px; opacity: .95; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-dots { position: absolute; bottom: 76px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 9px; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.45); transition: background .3s, transform .3s; padding: 0;
}
.hero-dots button.is-active { background: var(--white); transform: scale(1.25); }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: var(--white); font-size: 26px; opacity: .7; animation: bounce 2s infinite; text-decoration: none; z-index: 2;
}
@keyframes bounce { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,10px);} }

/* Malé hero podstránek */
.page-hero { position: relative; padding: 170px 0 80px; color: var(--white); overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,45,78,.55), rgba(16,45,78,.32)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 12px; text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.page-hero p { font-size: 18px; max-width: 620px; opacity: .93; }

/* ---------- Karty a mřížky ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow); transition: transform .25s;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-card .icon { color: var(--blue); margin-bottom: 16px; }
.feature-card h3 { font-size: 21px; margin-bottom: 10px; }
.feature-card p { color: var(--ink-soft); font-size: 15px; }

/* Atributy / vybavení */
.attr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 36px; }
.attr-item {
  display: flex; align-items: center; gap: 12px; background: var(--white);
  border: 1px solid var(--cream-dark); border-radius: 14px; padding: 14px 18px; font-size: 15px; font-weight: 500;
}
.attr-item .icon { display: inline-flex; color: var(--blue); }

/* Apartmány */
.apt-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s;
}
.apt-card:hover { transform: translateY(-6px); }
.apt-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.apt-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.apt-card:hover .apt-card-img img { transform: scale(1.06); }
.apt-card-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.apt-card-body h3 { font-size: 24px; }
.apt-floor { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.apt-card-body p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.apt-meta { display: flex; gap: 18px; font-size: 14px; color: var(--ink-soft); }
.apt-meta span { display: inline-flex; align-items: center; gap: 6px; }
.apt-price { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.apt-price small { font-size: 14px; color: var(--ink-soft); font-family: var(--font-body); }
.apt-card--disabled { position: relative; }
.apt-card--disabled .apt-card-img img { filter: grayscale(.85) brightness(.85); }
.apt-card--disabled:hover { transform: none; }
.apt-ribbon {
  position: absolute; top: 18px; left: -8px; background: var(--ink-soft); color: var(--white);
  padding: 7px 18px; font-size: 13px; font-weight: 600; border-radius: 0 999px 999px 0; z-index: 2;
}
.apt-ribbon--free { background: var(--green); }

/* ---------- Galerie ---------- */
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0; }
.gallery-filters button {
  padding: 9px 22px; border-radius: 999px; border: 0;
  background: var(--blue-pale); color: var(--blue-dark); font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); transition: background .2s, color .2s, transform .15s, box-shadow .2s;
}
.gallery-filters button.is-active, .gallery-filters button:hover {
  background: linear-gradient(135deg, #45a3f5, #2374d8); color: var(--white);
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(43,135,227,.35);
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item { border-radius: 14px; overflow: hidden; cursor: zoom-in; position: relative; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; font-size: 13px; color: var(--white);
  background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transition: opacity .3s;
}
.gallery-item:hover figcaption { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(20, 28, 36, .93);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 10px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: var(--white); border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; transition: background .2s;
}
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Wellness / střídavé bloky ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-img--map iframe { width: 100%; height: 100%; border: 0; display: block; }
.split h3 { font-size: 30px; margin-bottom: 16px; }
.split p { color: var(--ink-soft); margin-bottom: 12px; }

/* ---------- Rezervace ---------- */
.booking-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.booking-wrap--sticky-cal > .booking-panel:first-child { position: sticky; top: 90px; }
@media (max-width: 960px) {
  .booking-wrap--sticky-cal > .booking-panel:first-child { position: static; }
}
.booking-panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-header h3 { font-size: 20px; text-transform: capitalize; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--blue-pale); color: var(--blue-dark); font-size: 18px; cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.cal-nav button:hover { background: var(--blue); color: var(--white); transform: scale(1.08); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-soft); padding: 8px 0; text-transform: uppercase; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 14px; cursor: pointer;
  border: 1.5px solid var(--cal-free-ln); background: var(--cal-free-bg); color: var(--cal-free-ink); font-weight: 600;
  transition: background .15s, border-color .15s; user-select: none;
}
.cal-day:hover:not(.is-disabled):not(.is-empty) { border-color: var(--blue); }
.cal-day.is-empty { background: transparent; border-color: transparent; cursor: default; }
/* Volný den, který se ale zrovna nedá zvolit (vybírá se odjezd) – neutrálně, ne červeně */
.cal-day.is-disabled {
  color: var(--cal-off-ink); font-weight: 500;
  background: var(--cal-off-a); border-color: transparent;
  cursor: not-allowed; text-decoration: none;
}
.cal-day.is-selected { background: var(--blue); border-color: var(--blue); color: var(--white); font-weight: 600; }
.cal-day.is-range { background: var(--blue-pale); border-color: var(--blue-pale); color: var(--blue-dark); }
.cal-legend { display: flex; gap: 18px; margin-top: 16px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* Formuláře */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1.5px solid var(--cream-dark); border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; background: var(--white); color: var(--ink);
  transition: border-color .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--blue); }
.price-summary { background: var(--blue-pale); border-radius: 14px; padding: 20px 24px; margin: 18px 0; }
.price-summary .row { display: flex; justify-content: space-between; font-size: 15px; padding: 4px 0; }
.price-summary .row--total { border-top: 1.5px solid var(--blue-light); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 18px; }

/* FAQ */
.faq-item {
  background: var(--cream); border: 1px solid var(--cream-dark); border-radius: 14px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--blue); flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 22px 18px; color: var(--ink-soft); font-size: 15px; }

/* Právní stránky */
.legal { max-width: 780px; }
.legal h2 { font-size: 22px; margin: 34px 0 12px; }
.legal h3 { font-size: 17px; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15px; }
.legal ul { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.legal-updated { margin-top: 36px; font-size: 13.5px; font-style: italic; }

/* Flash zprávy */
.flash { max-width: 1180px; margin: 90px auto -60px; padding: 15px 22px; border-radius: 12px; font-size: 15px; }
.flash--success { background: #dcf5e5; color: #177a43; border: 1px solid #a9e3bf; }
.flash--error { background: #fde2df; color: #c03a2f; border: 1px solid #f3b7b0; }
.flash--info { background: var(--blue-pale); color: var(--blue-dark); border: 1px solid var(--blue-light); }

/* Odznaky stavů */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.badge--nova { background: #ffefc9; color: #9a6a10; }
.badge--potvrzena { background: #dcf5e5; color: #177a43; }
.badge--stornovana { background: #fde2df; color: #c03a2f; }
.badge--dokoncena { background: var(--blue-pale); color: var(--blue-dark); }

/* CTA pás */
.cta-band { position: relative; padding: 100px 0; color: var(--white); text-align: center; overflow: hidden; }
.cta-band-bg { position: absolute; inset: 0; }
.cta-band-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band-bg::after { content: ''; position: absolute; inset: 0; background: rgba(20, 52, 90, .68); }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; opacity: .92; }

/* Patička */
.site-footer { background: #1f3a56; color: #c8d2db; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 0.9fr 1.1fr; gap: 32px; padding: 64px 24px; }
.footer-grid p { white-space: nowrap; }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; font-family: var(--font-body); }
.site-footer a { color: #8ec8f5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { font-size: 14px; line-height: 2; }
.brand--footer { color: var(--white); font-family: var(--font-display); font-size: 19px; margin-bottom: 14px; }
.footer-tagline { max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; }

/* ---------- Animace ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* Odhalení při scrollu */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Nájezd ze stran */
.reveal-left, .reveal-right { opacity: 0; transition: opacity .8s ease, transform .8s ease; }
.reveal-left { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal-left.is-visible, .reveal-right.is-visible { opacity: 1; transform: none; }

/* Postupné naskakování dětí (karty, atributy, galerie…) */
.reveal-stagger > * { opacity: 0; }
.reveal-stagger.is-visible > * { opacity: 1; animation: fadeUp .65s ease backwards; }
.reveal-stagger.is-visible > *:nth-child(1)  { animation-delay: .00s; }
.reveal-stagger.is-visible > *:nth-child(2)  { animation-delay: .07s; }
.reveal-stagger.is-visible > *:nth-child(3)  { animation-delay: .14s; }
.reveal-stagger.is-visible > *:nth-child(4)  { animation-delay: .21s; }
.reveal-stagger.is-visible > *:nth-child(5)  { animation-delay: .28s; }
.reveal-stagger.is-visible > *:nth-child(6)  { animation-delay: .35s; }
.reveal-stagger.is-visible > *:nth-child(7)  { animation-delay: .42s; }
.reveal-stagger.is-visible > *:nth-child(8)  { animation-delay: .49s; }
.reveal-stagger.is-visible > *:nth-child(9)  { animation-delay: .56s; }
.reveal-stagger.is-visible > *:nth-child(10) { animation-delay: .63s; }
.reveal-stagger.is-visible > *:nth-child(11) { animation-delay: .70s; }
.reveal-stagger.is-visible > *:nth-child(12) { animation-delay: .77s; }
.reveal-stagger.is-visible > *:nth-child(n+13) { animation-delay: .84s; }

/* Úvodní animace hero textu */
.hero-content > * { animation: fadeUp .9s ease backwards; }
.hero-content > *:nth-child(1) { animation-delay: .25s; }
.hero-content > *:nth-child(2) { animation-delay: .45s; }
.hero-content > *:nth-child(3) { animation-delay: .65s; }
.hero-content > *:nth-child(4) { animation-delay: .85s; }

/* Úvodní animace textu podstránek */
.page-hero .container > * { animation: fadeUp .8s ease backwards; }
.page-hero .container > *:nth-child(1) { animation-delay: .15s; }
.page-hero .container > *:nth-child(2) { animation-delay: .30s; }
.page-hero .container > *:nth-child(3) { animation-delay: .45s; }

/* Mikrointerakce */
.btn:active { transform: scale(.97); }
.attr-item { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.attr-item:hover { transform: translateY(-3px); border-color: var(--blue-light); box-shadow: 0 8px 22px rgba(43,135,227,.14); }
.faq-item { transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item:hover { border-color: var(--blue-light); }
.footer-grid a, .site-footer a { transition: color .2s ease; }

/* Šetrný režim – vypnout animace pro uživatele, kteří je nechtějí */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-stagger > *,
  .hero-content > *, .page-hero .container > * {
    opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
  }
  .hero-bg img { animation: none !important; }
}

/* ---------- Responzivita ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .booking-wrap { grid-template-columns: 1fr; }
  .split--reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column; padding: 24px; gap: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a:not(.btn) { color: var(--ink) !important; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; padding: 44px 24px; }
  .footer-grid p { white-space: normal; }
  .footer-bottom .container { flex-direction: column; gap: 6px; text-align: center; }
}

/* ============================================================
   Rezervační kalendář – dny výměny hostů, nápovědy, legenda
   Rezervace 14.–16. 8. obsazuje NOCI 14. a 15. Den 16. 8. je dnem odjezdu:
   do check-outu obsazený, od check-inu volný → kreslíme ho půlený.
   ============================================================ */

.cal-day { position: relative; overflow: hidden; }
.cal-day .d { position: relative; z-index: 2; }

/* Minulost – neutrálně, není to obsazeno, jen už to prošlo */
.cal-day.is-past {
  background: var(--cal-off-a);
  border-color: transparent;
  color: var(--cal-off-ink);
  font-weight: 500;
  text-decoration: line-through;
}

/* Obsazeno – cihlová se šrafováním.
   Šrafování je tam schválně: kdo nerozliší červenou od zelené, pozná obsazený
   den podle struktury plochy, ne podle barvy. */
.cal-day.is-busy {
  background: repeating-linear-gradient(45deg, var(--cal-busy-a), var(--cal-busy-a) 4px, var(--cal-busy-b) 4px, var(--cal-busy-b) 8px);
  border-color: transparent;
  color: var(--cal-busy-ink);
  font-weight: 600;
  text-decoration: none;
}

/* Půlené dny – volná zelená plocha, obsazená polovina cihlová */
.cal-day.is-half-am,
.cal-day.is-half-pm,
.cal-day.is-turnover {
  background: var(--cal-free-bg);
  border-color: var(--cal-free-ln);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.cal-day.is-half-am::before,
.cal-day.is-half-pm::before,
.cal-day.is-turnover::before,
.cal-day.is-turnover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(45deg, var(--cal-busy-a), var(--cal-busy-a) 4px, var(--cal-busy-b) 4px, var(--cal-busy-b) 8px);
}
/* dopoledne obsazeno (hosté odjíždějí), odpoledne volno */
.cal-day.is-half-am::before { clip-path: polygon(0 0, 100% 0, 0 100%); }
/* dopoledne volno, odpoledne obsazeno (přijíždějí noví hosté) */
.cal-day.is-half-pm::before { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
/* odjezd i příjezd v jeden den – obě poloviny obsazené, s dělicí čárou */
.cal-day.is-turnover::before { clip-path: polygon(0 0, 96% 0, 0 96%); }
.cal-day.is-turnover::after  { clip-path: polygon(100% 4%, 100% 100%, 4% 100%); }

.cal-day.is-tooshort { opacity: .45; }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--blue-light); }
.cal-day.is-selected,
.cal-day.is-selected.is-half-am,
.cal-day.is-selected.is-half-pm,
.cal-day.is-selected.is-turnover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  font-weight: 700;
}
.cal-day.is-selected::before,
.cal-day.is-selected::after { display: none; }

.cal-hint {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
  min-height: 20px;
}
.cal-hint--warn {
  color: var(--red);
  font-weight: 600;
}
.cal-note {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--blue-pale);
  border-radius: 10px;
  padding: 10px 13px;
}
.cal-legend .lg { width: 15px; height: 15px; border-radius: 4px; display: inline-block; border: 1px solid var(--cream-dark); }
.cal-legend .lg--free { background: var(--cal-free-bg); border-color: var(--cal-free-ln); }
.cal-legend .lg--busy { background: repeating-linear-gradient(45deg, var(--cal-busy-a), var(--cal-busy-a) 3px, var(--cal-busy-b) 3px, var(--cal-busy-b) 6px); border-color: var(--cal-busy-b); }
.cal-legend .lg--half { background: linear-gradient(to bottom right, var(--cal-busy-b) 0 49%, var(--cal-free-bg) 51% 100%); border-color: var(--cal-free-ln); }
.cal-legend .lg--sel { background: var(--blue); border-color: var(--blue); }

.price-summary .row small { font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.price-summary #fromLabel small,
.price-summary #toLabel small { display: block; font-size: 11.5px; color: var(--ink-soft); }
.price-note { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; margin-top: 8px; }
.price-note--error { color: var(--red); font-weight: 600; }
.page-hero-note { font-size: 14px; opacity: .9; margin-top: 8px; }

/* ---------- Zákaz psů a další varovné atributy ---------- */

/* Jediné červené upozornění na webu – v rezervačním formuláři, kde host
   potvrzuje podmínky. Jinde se zákaz psů uvádí normálním textem. */
.notice-nopets {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fdf1ef;
  border: 1px solid rgba(224, 93, 81, .4);
  border-radius: 12px;
  padding: 11px 14px;
  color: #8f342b;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.notice-nopets .ico { color: var(--red); flex-shrink: 0; }
.notice-nopets strong { font-weight: 600; }

/* ---------- Povinná volba varianty pobytu (s wellness / bez wellness) ---------- */

.wellness-choice {
  border: 0;
  padding: 0;
  margin: 18px 0 22px;
}
.wellness-choice legend {
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.wellness-choice-lead {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 12px;
}

.wopt { display: block; cursor: pointer; margin-bottom: 10px; }
/* Nativní přepínač schováme, ale necháme ho dostupný z klávesnice i pro čtečky */
.wopt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.wopt-box {
  display: block;
  border: 2px solid var(--line, #e6e1d6);
  border-radius: 14px;
  padding: 13px 15px 14px;
  background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.wopt:hover .wopt-box { border-color: var(--blue-light); }
.wopt input:checked + .wopt-box {
  border-color: var(--blue);
  background: var(--blue-pale);
  box-shadow: 0 2px 10px rgba(43, 135, 227, .12);
}
.wopt input:focus-visible + .wopt-box { outline: 2px solid var(--blue); outline-offset: 2px; }

.wopt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}
.wopt-name {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  /* Místo na kolečko přepínače, které kreslíme sami */
  padding-left: 26px;
  position: relative;
}
.wopt-name::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid #c9c3b5;
  background: #fff;
  box-sizing: border-box;
}
.wopt input:checked + .wopt-box .wopt-name::before {
  border-color: var(--blue);
  border-width: 5px;
}
.wopt-price {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--blue-dark);
  white-space: nowrap;
}
.wopt-price small { font-size: 12.5px; font-weight: 400; color: var(--ink-soft); }
.wopt-desc {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-left: 26px;
}

.wellness-choice-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 8px 0 0;
}
.wellness-choice.is-chosen .wellness-choice-note { color: var(--green); }

@media (max-width: 420px) {
  .wopt-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .wopt-price { padding-left: 26px; }
}

/* Drobná poznámka v kartě apartmánu – bez barvy, jen jemně */
.apt-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.apt-note .ico { color: var(--ink-soft); }


/* ---------- Tablety (768–1180 px) ---------- */

@media (min-width: 681px) and (max-width: 1180px) {
  .container { padding: 0 32px; }
  .section { padding: 64px 0; }
}

@media (min-width: 681px) and (max-width: 1024px) {
  /* Rezervace: kalendář nad formulářem, oba na plnou šířku */
  .booking-wrap,
  .booking-wrap--sticky-cal { grid-template-columns: 1fr; gap: 28px; }
  .booking-wrap--sticky-cal > .booking-panel:first-child { position: static; }
  .booking-panel aside,
  aside.booking-panel { position: static !important; }

  .cal-day { font-size: 16px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .attr-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Dotyková zařízení – pohodlnější cíle */
@media (pointer: coarse) {
  .cal-day { min-height: 46px; }
  .btn { min-height: 46px; }
  .form-field input,
  .form-field textarea { min-height: 46px; font-size: 16px; } /* 16 px = iOS nezvětšuje stránku */
}

/* ============================================================
   Aktivity v okolí – karty s fotkou a sekce „pěšky od chaloupky“
   ============================================================ */


.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 28px;
}
.activity-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.activity-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--blue-pale); }
.activity-media img { width: 100%; height: 100%; object-fit: cover; }
.activity-media--placeholder {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.75), transparent 55%),
    linear-gradient(135deg, var(--blue-pale), #dff0ff 60%, #f3ece0);
}
.activity-placeholder-icon { color: var(--blue); opacity: .55; }
.activity-credit {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(20, 32, 44, .62); color: #fff;
  font-size: 10.5px; line-height: 1.3;
  padding: 3px 7px; border-radius: 6px;
  max-width: 80%;
}

.activity-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.activity-meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue); font-weight: 600;
}
.activity-body h3 { font-size: 20px; }
.activity-body p { color: var(--ink-soft); font-size: 14.8px; line-height: 1.65; }
.activity-link { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.activity-link:hover { text-decoration: underline; }

@media (min-width: 681px) and (max-width: 1024px) {
  .activity-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .activity-grid { grid-template-columns: 1fr; }
}

/* Tablet: navigace se nesmí lámat do dvou řádků */
@media (min-width: 961px) and (max-width: 1180px) {
  .main-nav { gap: 16px; }
  .main-nav a:not(.btn) { font-size: 14.5px; white-space: nowrap; }
  .btn--nav { padding-left: 18px; padding-right: 18px; }
  .brand-text strong { font-size: 17px; }
}

/* Sekce „Co máte hned za dveřmi“ – stejné karty jako u tipů na výlety,
   jen o něco kompaktnější (kratší texty, čtyři vedle sebe). */
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.activity-card--compact .activity-media { aspect-ratio: 16 / 10; }
.activity-card--compact .activity-body { padding: 16px 18px 20px; gap: 6px; }
.activity-card--compact .activity-body h3 { font-size: 18px; }
.activity-card--compact .activity-body p { font-size: 14.2px; }

@media (min-width: 681px) and (max-width: 1024px) {
  .nearby-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nearby-grid { grid-template-columns: 1fr; }
}
