﻿/* Dynamicke komponenty (kalendar + rezervacni pruvodce) vsazene do puvodniho YOOtheme designu.
   Jen scoped tridy – zadne globalni body/section/nav, aby se nerozbil puvodni vzhled. */
:root {
    --green: #1d8ec0; --green-dark: #124a68; --green-light: #4bb6e6;
    --gold: #c9a227; --bg-soft: #e4eff6; --white: #fff; --ink: #20303a; --muted: #5f7280;
    --radius: 14px; --shadow: 0 10px 30px rgba(0,0,0,.12); --shadow-sm: 0 4px 14px rgba(0,0,0,.08);
}

/* tlacitka (vlastni, .btn nekoliduje s UIkit .uk-button) */
.wch-dyn .btn { display: inline-block; cursor: pointer; border: 0; font: inherit; padding: 13px 30px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: transform .12s, box-shadow .12s, background .15s; }
.wch-dyn .btn-green { background: var(--green); color: #fff; }
.wch-dyn .btn-green:hover { background: var(--green-dark); }
.wch-dyn .btn-gold { background: var(--gold); color: #2a2410; box-shadow: var(--shadow-sm); }
.wch-dyn .btn-block { display: block; width: 100%; text-align: center; }

/* CALENDAR – design v3 */
.wch-dyn .calendar-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.wch-dyn .cal-month {
    background: var(--white); border-radius: 18px; padding: 18px 16px 16px;
    box-shadow: 0 2px 6px rgba(18,74,104,.06), 0 14px 34px rgba(18,74,104,.10);
    border: 1px solid rgba(18,74,104,.07);
}
.wch-dyn .cal-month h4 {
    text-align: center; margin: 0 0 12px; color: var(--green-dark);
    font-family: Georgia, 'Times New Roman', serif; font-size: 1.08rem; letter-spacing: .02em;
}
.wch-dyn table.cal { width: 100%; border-collapse: collapse; }
.wch-dyn table.cal th { font-size: .7rem; color: #8195a3; padding: 3px 0 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.wch-dyn table.cal th:nth-child(6), .wch-dyn table.cal th:nth-child(7) { color: #b28a1e; }
.wch-dyn table.cal td { text-align: center; padding: 2.5px; }
.wch-dyn .day { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; font-size: .85rem; user-select: none; }
.wch-dyn .day.free { background: #d6eefa; color: #124a68; cursor: pointer; transition: background .15s, color .15s, transform .12s; }
.wch-dyn .day.free:hover { background: var(--green-light); color: #fff; transform: scale(1.12); }

/* === Animace v3: obsazene terminy priletaji a praskaji na castice (canvas engine v site.js) === */
/* Obsazene dny pred priletem: vypadaji modre jako volne */
.wch-dyn .day.full.cal-pre,
.wch-dyn .day.arrival.cal-pre,
.wch-dyn .day.departure.cal-pre {
    background: #d6eefa !important;
    color: #124a68 !important;
    font-weight: 400 !important;
}
/* Dosednuti – squash & stretch (jen transform, GPU friendly) */
@keyframes calHit {
    0%   { transform: scale(1.32); }
    38%  { transform: scale(.8, .76); }
    72%  { transform: scale(1.1, 1.06); }
    100% { transform: scale(1); }
}
.wch-dyn .day.cal-hit { animation: calHit .3s cubic-bezier(.34,1.4,.64,1) both; z-index: 5; }
/* Letici cip – jeden fixed div na termin, jen transform+opacity */
.cal-chip {
    position: fixed; z-index: 9997; pointer-events: none;
    background: linear-gradient(145deg, #ef8d7d, #d96a56 55%, #b8453a);
    border-radius: 9px; box-shadow: 0 6px 18px rgba(150,45,30,.45);
    will-change: transform, opacity; opacity: 0;
}
.cal-chip-arrival { clip-path: polygon(100% 0, 100% 100%, 0 100%); border-radius: 0 0 9px 0; }
.cal-chip-departure { clip-path: polygon(0 0, 100% 0, 0 100%); border-radius: 9px 0 0 0; }
/* Sdilene platno castic pres cely viewport */
#cal-anim-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9998; }

@media (prefers-reduced-motion: reduce) { .wch-dyn .day.cal-hit { animation: none; } }
.wch-dyn .day.full { background: #e9b9b0; color: #7a3326; }
.wch-dyn .day.arrival { background: linear-gradient(to bottom right, #d6eefa 50%, #e9b9b0 50%); color: #20303a; cursor: pointer; }
.wch-dyn .day.arrival:hover { background: linear-gradient(to bottom right, var(--green-light) 50%, #e9b9b0 50%); }
.wch-dyn .day.departure { background: linear-gradient(to bottom right, #e9b9b0 50%, #d6eefa 50%); color: #20303a; cursor: pointer; }
.wch-dyn .day.departure:hover { background: linear-gradient(to bottom right, #e9b9b0 50%, var(--green-light) 50%); }
.wch-dyn .day.past { color: #c4c0b6; }
.wch-dyn .day.blank { visibility: hidden; }
.wch-dyn .day.sel { background: var(--gold) !important; color: #2a2410 !important; font-weight: bold; }
.wch-dyn .day.inrange { background: #f3e4ad !important; color: #5a4a13 !important; }
.wch-dyn .legend { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 22px 0; font-size: .92rem; color: #4a5763; }
.wch-dyn .legend span { display: inline-flex; align-items: center; gap: 8px; }
.wch-dyn .legend i { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }

/* FORM POLE */
.wch-dyn .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wch-dyn .field { margin-bottom: 16px; }
.wch-dyn .field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 5px; color: #444; }
.wch-dyn .field input, .wch-dyn .field textarea { width: 100%; padding: 11px 13px; border: 1px solid #cdd9e2; border-radius: 9px; font: inherit; background: #fbfdff; }
.wch-dyn .field input:focus, .wch-dyn .field textarea:focus { outline: 0; border-color: var(--green-light); box-shadow: 0 0 0 3px rgba(29,142,192,.15); }
.wch-dyn .selected-dates { background: var(--bg-soft); padding: 12px 16px; border-radius: 9px; margin-bottom: 16px; font-size: .95rem; }
.wch-dyn .selected-dates strong { color: var(--green-dark); }

/* ALERTY */
.wch-dyn .alert { padding: 14px 18px; border-radius: 10px; margin: 0 auto 18px; max-width: 960px; }
.wch-dyn .alert-success { background: #dff3e2; color: #205a2c; border: 1px solid #b6dcbd; }
.wch-dyn .alert-error { background: #fae2dd; color: #842c1c; border: 1px solid #e6bdb3; }
.wch-dyn .errors { color: #a33; font-size: .9rem; margin: 8px 0 0; padding-left: 18px; }

/* JEDNOSTRANKOVA REZERVACE (bila karta) */
.wch-dyn .res-form { width: min(880px, 100%); margin: 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; color: var(--ink); }
.wch-dyn .res-form .btn-block { margin-top: 8px; }

/* REZERVACNI PRUVODCE */
.wch-dyn .wizard { width: min(960px, 100%); margin: 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 30px 26px; color: var(--ink); }
.wch-dyn .wiz-progress { display: flex; list-style: none; padding: 0; margin: 0 0 28px; }
.wch-dyn .wiz-progress li { flex: 1; text-align: center; position: relative; color: var(--muted); font-size: .9rem; font-weight: 600; }
.wch-dyn .wiz-progress li .wn { display: block; width: 38px; height: 38px; line-height: 38px; margin: 0 auto 8px; border-radius: 50%; background: var(--bg-soft); color: var(--muted); font-weight: 800; transition: .2s; position: relative; z-index: 1; }
.wch-dyn .wiz-progress li::before { content: ""; position: absolute; top: 19px; left: -50%; width: 100%; height: 3px; background: var(--bg-soft); z-index: 0; }
.wch-dyn .wiz-progress li:first-child::before { display: none; }
.wch-dyn .wiz-progress li.active { color: var(--green-dark); }
.wch-dyn .wiz-progress li.active .wn { background: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.wch-dyn .wiz-progress li.done { color: var(--green); }
.wch-dyn .wiz-progress li.done .wn { background: var(--green-light); color: #fff; }
.wch-dyn .wiz-progress li.done::before, .wch-dyn .wiz-progress li.active::before { background: var(--green-light); }
.wch-dyn .wiz-step { display: none; animation: wizfade .25s ease; }
.wch-dyn .wiz-step.is-active { display: block; }
@keyframes wizfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wch-dyn .wiz-h { text-align: center; color: var(--green-dark); margin-bottom: .3rem; }
.wch-dyn .wiz-help { text-align: center; color: var(--muted); margin: 0 0 1.4rem; }
.wch-dyn .wiz-err { color: #b4281e; font-weight: 600; text-align: center; min-height: 1.2em; margin: 10px 0 0; }
.wch-dyn .wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.wch-dyn .btn-outline { background: transparent; border: 2px solid var(--green); color: var(--green); }
.wch-dyn .btn-outline:hover { background: var(--green); color: #fff; }
.wch-dyn .counters { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.wch-dyn .counter { background: var(--bg-soft); border-radius: var(--radius); padding: 20px 26px; text-align: center; min-width: 200px; }
.wch-dyn .counter .c-lbl { display: block; font-weight: 700; color: var(--green-dark); margin-bottom: 12px; font-size: 1.05rem; }
.wch-dyn .c-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; }
.wch-dyn .c-btn { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.4rem; font-weight: 700; cursor: pointer; line-height: 1; }
.wch-dyn .c-btn:hover { background: var(--green-dark); }
.wch-dyn .c-ctrl input { width: 56px; text-align: center; font-size: 1.3rem; font-weight: 800; border: 0; background: transparent; color: var(--ink); -moz-appearance: textfield; }
.wch-dyn .c-ctrl input::-webkit-outer-spin-button, .wch-dyn .c-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wch-dyn .wiz-summary { border: 1px solid var(--bg-soft); border-radius: var(--radius); overflow: hidden; background: #fff; }
.wch-dyn .wiz-summary .row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--bg-soft); }
.wch-dyn .wiz-summary .row:last-child { border-bottom: 0; }
.wch-dyn .wiz-summary .row span:first-child { color: var(--muted); }
.wch-dyn .wiz-summary .row span:last-child { font-weight: 700; color: var(--ink); text-align: right; }

/* Header fotka se nastavuje dynamicky z administrace (Setting::heroImage),
   zimni/letni varianta automaticky podle sezony – viz inline style v headeru. */

/* Padajici snih v zimnim headeru (jako u Chalupy U Jelena) */
.wch-header-photo > .uk-position-relative { position: relative; z-index: 2; }
.wch-header-photo .snow { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.wch-header-photo .snow span { position: absolute; top: -24px; color: #fff; text-shadow: 0 0 4px rgba(120,160,190,.6); animation: snowfall linear infinite; }
@keyframes snowfall {
    0%   { transform: translateY(-24px) translateX(0) rotate(0deg); opacity: 0; }
    10%  { opacity: .9; }
    100% { transform: translateY(100vh) translateX(40px) rotate(360deg); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) { .wch-header-photo .snow { display: none; } }

/* Header foto pod hlavnim menu – roztazena na cely displej (mobilne bezpecne svh) */
.wch-header-photo { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; position: relative; }
/* animovana sipka "scrolluj dolu" – 90° chevron z CSS borders */
.wch-scroll-arrow {
    position: absolute; left: 50%; margin-left: -10px;
    width: 20px; height: 20px;
    border-left: 3px solid rgba(255,255,255,.85); border-bottom: 3px solid rgba(255,255,255,.85);
    transform: rotate(-45deg); text-decoration: none;
    animation: wchScroll 1.8s ease-in-out infinite;
}
@keyframes wchScroll { 0%,100% { bottom: 56px; opacity: .5; } 50% { bottom: 50px; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wch-scroll-arrow { animation: none; bottom: 56px; } }

/* MODERNI VYLETY + SJEZDOVKY – kartova mrizka (sdileny styl) */
.wch-trips { margin-top: 10px; }
.wch-trip {
    background: #fff; border-radius: 16px; padding: 12px 24px 10px; height: 100%;
    box-shadow: 0 10px 28px rgba(0,0,0,.16); border-top: 4px solid #1d96cc;
    display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease;
}
.wch-trip:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(0,0,0,.26); }
.wch-trip h4 { margin: 0 0 8px; color: #143a52; font-size: 1.12rem; font-family: Georgia, serif; line-height: 1.25; }
.wch-trip-km {
    display: inline-block; background: #e4f5fb; color: #0e7fa8;
    font-size: .73rem; font-weight: 700; padding: 2px 9px;
    border-radius: 999px; margin-bottom: 12px;
}
.wch-trip p { margin: 0 0 16px; color: #5b6b76; font-size: .93rem; line-height: 1.6; flex: 1; }
.wch-trip-link { align-self: flex-start; color: #1d96cc; font-weight: 700; text-decoration: none; font-size: .9rem; }
.wch-trip-link:hover { text-decoration: underline; }
.wch-ski-cards .wch-trip { padding-top: 4px; padding-bottom: 2px; }
.wch-ski-cards .wch-trip-km { margin-bottom: 2px; }

/* DB galerie grid (lightbox je nativni UIkit) */
.wch-gallery a { display: block; overflow: hidden; border-radius: 8px; }
.wch-gallery img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .4s; }
.wch-gallery a:hover img { transform: scale(1.07); }

/* WELLNESS SEKCE (prevzato z /wellness) */
.wch-wellness-hero {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, #1a3a2a 0%, #2d6045 60%, #1a4a35 100%);
}
.wch-wellness-hero .uk-container { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.wch-wlns-h1 { color: #fff; font-family: Georgia, serif; font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0 0 10px; text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.7); }
.wch-wlns-sub { color: #fff; font-size: 1.15rem; letter-spacing: .04em; text-shadow: 0 1px 10px rgba(0,0,0,.6); margin: 0; }
.wch-wlns-gallery-section { background: #f7f5f0; padding: 50px 0; }
.wch-wlns-grid a { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 4/3; }
.wch-wlns-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.wch-wlns-grid a:hover img { transform: scale(1.06); }
.wch-wlns-text-section { background: #fff; padding: 50px 0 60px; }
.wch-wlns-inner { max-width: 820px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; color: #2a2a26; }
.wch-wlns-inner h2, .wch-wlns-inner h3 { color: #1a3a2a; font-family: Georgia, serif; }
.wch-wlns-inner h2 { font-size: 1.6rem; margin-bottom: 22px; }
.wch-wlns-icons { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; margin: 40px 0 0; text-align: center; }
.wch-wlns-icons span { display: block; color: #2d6045; font-weight: 700; font-size: .95rem; }

/* LAST MINUTE countdown */
.lm-tag { display: inline-block; background: transparent; color: #fff; padding: 6px 18px; border-radius: 999px; font-weight: 700; font-size: 1.15rem; margin-bottom: 1rem; }
.lm-discount { font-size: clamp(2.6rem, 8vw, 4.4rem); font-weight: 800; font-family: Georgia, serif; margin: .15em 0 .35em; }
.countdown { display: flex; flex-wrap: nowrap; justify-content: center; align-items: flex-start; gap: 14px; margin: 1.2rem 0 1.8rem; }
.cd-box { background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.45); border-radius: 14px; padding: 14px 10px 10px; min-width: 90px; color: #fff; }
.cd-num { display: block; font-size: 3rem; font-weight: 800; font-family: Georgia, serif; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-lbl { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; opacity: .85; margin-top: 7px; }
.cd-sep { font-size: 2.8rem; line-height: 1.35; color: #fff; opacity: .7; align-self: flex-start; padding-top: 14px; }
.lm-hint { display: none; color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: .6px; text-transform: uppercase; margin: -.4rem 0 1.5rem; }
@media (max-width: 600px) {
    .countdown { gap: 7px; } .cd-box { min-width: 68px; padding: 10px 5px 8px; }
    .cd-num { font-size: 2.1rem; } .cd-lbl { font-size: .62rem; } .cd-sep { font-size: 1.8rem; padding-top: 10px; }
}

/* MOBILE: zrus vynucenou plnou vysku obrazovky na UIkit sekcich */
@media (max-width: 959px) {
    [uk-height-viewport],
    [data-uk-height-viewport] {
        min-height: 0 !important;
        height: auto !important;
    }
}

/* MOBILE: oprav pretekani formulare rezervace */
@media (max-width: 639px) {
    .wch-dyn .res-form { padding: 16px; }
    .wch-dyn .wizard { padding: 16px 14px 14px; }
    .wch-dyn .form-row { grid-template-columns: 1fr; }
    .wch-dyn .calendar-wrap { grid-template-columns: 1fr; }
}

/* Hero: skryj roztrhany papir u uk-section-overlap ktery presakuje nad pruhledne menu */
.uk-section-primary.uk-section-overlap::before,
.uk-section-primary.uk-section-overlap::after {
    display: none !important;
}

