:root {
    --green: #2f5d3a;
    --green-dark: #234a2d;
    --green-light: #4a7c54;
    --gold: #c9a227;
    --wood: #8a5a36;
    --bg: #f7f5f0;
    --bg-soft: #efe9dd;
    --ink: #2a2a26;
    --muted: #6f6b60;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .12);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
}

h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.2; margin: 0 0 .5em; }
h2.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; color: var(--green-dark); }
.section-sub { text-align: center; color: var(--muted); max-width: 680px; margin: -.3em auto 2.5em; font-size: 1.05rem; }
a { color: var(--green); }

.container { width: min(1140px, 92%); margin: 0 auto; }
section { padding: 84px 0; }
section.alt { background: var(--bg-soft); }



/* NAV */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 5%; background: rgba(35, 74, 45, .96);
    backdrop-filter: blur(6px); transition: padding .2s;
}
.nav .brand { color: #fff; font-family: Georgia, serif; font-size: 1.25rem; font-weight: bold; text-decoration: none; letter-spacing: .3px; }
.nav .brand span { color: var(--gold); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #ede7d9; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; transition: background .15s, color .15s; }
.nav-links a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.7rem; cursor: pointer; }

/* HERO */
.hero {
    min-height: 100vh; display: flex; align-items: flex-end; justify-content: center;
    text-align: center; color: #fff; position: relative; padding: 120px 5% 64px;
    background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, .42) 42%, rgba(0, 0, 0, .10) 72%), var(--hero) center/cover no-repeat;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); text-shadow: 0 3px 18px rgba(0, 0, 0, .4); }
.hero p { font-size: clamp(1.05rem, 2.5vw, 1.4rem); max-width: 720px; margin: .4em auto 1.6em; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.hero .badges { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hero .badge { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); padding: 10px 20px; border-radius: 999px; font-size: .95rem; }

/* BUTTONS */
.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; }
.btn-gold { background: var(--gold); color: #2a2410; box-shadow: var(--shadow-sm); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--green-dark); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-grid img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text p { margin: 0 0 1em; }
.equip { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.equip li { position: relative; padding-left: 26px; font-size: .96rem; }
.equip li::before { content: "✓"; position: absolute; left: 0; color: var(--green-light); font-weight: bold; }

/* ACTIVITIES */
.activities { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.activity-card { background: var(--white); border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow-sm); }
.activity-card h3 { color: var(--green-dark); }
.activity-card ul { margin: 0; padding-left: 20px; }
.activity-card li { margin: 6px 0; }

/* GALLERY */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.08); }

/* PRICES */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 2rem; }
.price-card { background: var(--white); border-radius: var(--radius); padding: 34px 28px; text-align: center; box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold); }
.price-card h3 { color: var(--green-dark); margin-bottom: .2em; }
.price-card .period { color: var(--muted); font-size: .92rem; }
.price-card .price { font-size: 2.1rem; font-weight: 800; color: var(--green); margin: .3em 0 0; font-family: Georgia, serif; }
.price-card .unit { color: var(--muted); font-size: .9rem; }
.notes { max-width: 820px; margin: 0 auto; }
.notes li { margin: 8px 0; color: #555; font-size: .95rem; }

/* STEPS */
.steps { counter-reset: step; max-width: 820px; margin: 0 auto; list-style: none; padding: 0; }
.steps li { position: relative; padding: 6px 0 22px 58px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; background: var(--green); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: bold; font-family: Georgia, serif; }

/* CALENDAR (1:1 s wellness-chalupa.cz - barvy natvrdo, nezavisle na zdejsi palete) – design v3 */
.calendar-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.cal-month {
    background: #fff; 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);
}
.cal-month h4 {
    text-align: center; margin: 0 0 12px; color: #124a68;
    font-family: Georgia, 'Times New Roman', serif; font-size: 1.08rem; letter-spacing: .02em;
}
table.cal { width: 100%; border-collapse: collapse; }
table.cal th { font-size: .7rem; color: #8195a3; padding: 3px 0 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
table.cal th:nth-child(6), table.cal th:nth-child(7) { color: #b28a1e; }
table.cal td { text-align: center; padding: 2.5px; }
.day { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; font-size: .85rem; user-select: none; position: relative; }
.day.free { background: #d6eefa; color: #124a68; cursor: pointer; transition: background .15s, color .15s, transform .12s; }
.day.free:hover { background: #4bb6e6; 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 jako volne */
.day.full.cal-pre,
.day.arrival.cal-pre,
.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); }
}
.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) { .day.cal-hit { animation: none; } }
.day.full { background: #e9b9b0; color: #7a3326; }
.day.arrival { background: linear-gradient(to bottom right, #d6eefa 50%, #e9b9b0 50%); color: #20303a; }
.day.departure { background: linear-gradient(to bottom right, #e9b9b0 50%, #d6eefa 50%); color: #20303a; cursor: pointer; }
.day.departure:hover { background: linear-gradient(to bottom right, #e9b9b0 50%, #4bb6e6 50%); }
.day.past { color: #c4c0b6; }
.day.blank { visibility: hidden; }
.day.sel { background: var(--gold) !important; color: #2a2410 !important; font-weight: bold; }
.day.inrange { background: #f3e4ad !important; color: #5a4a13 !important; }
.legend { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 22px 0; font-size: .92rem; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }

/* RESERVATION FORM */
.res-form { max-width: 760px; margin: 30px auto 0; background: var(--white); padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 5px; color: #444; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 13px; border: 1px solid #d8d2c4; border-radius: 9px; font: inherit; background: #fcfbf8; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--green-light); box-shadow: 0 0 0 3px rgba(74, 124, 84, .15); }
.selected-dates { background: var(--bg-soft); padding: 12px 16px; border-radius: 9px; margin-bottom: 16px; font-size: .95rem; }
.selected-dates strong { color: var(--green-dark); }

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

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-card p { margin: .4em 0; }
.contact-card .big { font-size: 1.4rem; font-weight: bold; color: var(--green-dark); font-family: Georgia, serif; }
.map-embed { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: var(--radius); }

/* NEIGHBOUR */
.neighbour { background: var(--green-dark); color: #fff; text-align: center; padding: 56px 5%; }
.neighbour a.btn { margin-top: 1rem; }
.neighbour-photo { width: 320px; max-width: 80%; height: 180px; object-fit: cover; border-radius: 14px; margin: 0 auto 1.4rem; display: block; box-shadow: 0 10px 28px rgba(0,0,0,.35); border: 3px solid rgba(255,255,255,.85); }

/* LAST MINUTE */
.lastminute { background: linear-gradient(135deg, #2f5d3a, #1c3a24); color: #fff; text-align: center; }
.lm-tag { display: inline-block; background: var(--gold); color: #2a2410; padding: 6px 18px; border-radius: 999px; font-weight: 700; font-size: .85rem; margin-bottom: 1rem; }
.lastminute h2 { color: #fff; font-size: clamp(1.4rem, 3.5vw, 2.1rem); max-width: 760px; margin: 0 auto; }
.lm-discount { font-size: clamp(2.6rem, 8vw, 4.4rem); font-weight: 800; color: var(--gold); font-family: Georgia, serif; margin: .15em 0 .35em; text-shadow: 0 3px 16px rgba(0, 0, 0, .3); }
.countdown { display: inline-flex; align-items: flex-start; gap: 10px; margin: 1rem 0 1.8rem; }
.cd-box { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; padding: 12px 6px 9px; min-width: 80px; }
.cd-num { display: block; font-size: 2.3rem; font-weight: 800; font-family: Georgia, serif; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-lbl { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .5px; opacity: .8; margin-top: 6px; }
.cd-sep { font-size: 2.1rem; line-height: 1.4; opacity: .45; }
.lm-hint { display: none; color: var(--gold); font-weight: 800; font-size: 1.1rem; letter-spacing: .6px; text-transform: uppercase; margin: -.4rem 0 1.5rem; }
@media (max-width: 600px) {
    .countdown { gap: 5px; }
    .cd-box { min-width: 60px; padding: 9px 3px 7px; }
    .cd-num { font-size: 1.6rem; }
    .cd-lbl { font-size: .6rem; }
    .cd-sep { font-size: 1.5rem; }
}

/* TRIPS / SKI */
.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.trip-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--green-light); }
.trip-card h3 { font-size: 1.15rem; color: var(--green-dark); }
.trip-card p { margin: 0; color: #555; font-size: .95rem; }
.ski-list { list-style: none; padding: 0; max-width: 620px; margin: 26px auto 0; }
.ski-list li { display: flex; justify-content: space-between; padding: 12px 4px; border-bottom: 1px dashed #d8d2c4; }
.ski-list .dist { color: var(--gold); font-weight: bold; }

/* FOOTER */
footer { background: #1c2c20; color: #cdd6cf; text-align: center; padding: 40px 5%; }
footer a { color: var(--gold); }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .92); display: none; align-items: center; justify-content: center; z-index: 100; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); user-select: none; }
.lb-close { position: absolute; top: 18px; right: 28px; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: .8; transition: opacity .15s; z-index: 3; }
.lb-close:hover { opacity: 1; }
.lb-arrow {
    position: absolute; top: 0; bottom: 0; width: 12%; min-width: 64px; border: 0; cursor: pointer;
    background: transparent; color: #fff; font-size: 2.6rem; display: flex; align-items: center;
    opacity: .65; transition: opacity .15s, background .15s; z-index: 2;
}
.lb-arrow:hover { opacity: 1; background: linear-gradient(var(--dir, 90deg), rgba(0,0,0,.35), transparent); }
.lb-prev { left: 0; justify-content: flex-start; padding-left: 22px; --dir: 90deg; }
.lb-next { right: 0; justify-content: flex-end; padding-right: 22px; --dir: 270deg; }
.lb-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; background: rgba(0, 0, 0, .45); padding: 5px 16px; border-radius: 999px; font-size: .9rem; z-index: 2; }
@media (max-width: 600px) {
    .lb-arrow { font-size: 2rem; min-width: 48px; }
}

/* RESPONSIVE */
@media (max-width: 860px) {
    .nav-links { position: fixed; top: 60px; right: 0; flex-direction: column; background: var(--green-dark); width: 240px; padding: 14px; gap: 2px; transform: translateX(110%); transition: transform .25s; height: calc(100vh - 60px); }
    .nav-links.open { transform: translateX(0); }
    .nav-toggle { display: block; }
    .about-grid, .activities, .contact-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .price-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .equip { grid-template-columns: 1fr; }
}

/* =========================================================
   ZIMNI VARIANTA – ladi k zasnezene chalupe (02.jpg):
   chladna modra obloha + snih/bila + teple drevo (zlata)
   ========================================================= */
body.season-zima {
    --green: #3a6a8c;        /* primarni = ocelova modra misto zelene */
    --green-dark: #2a506b;
    --green-light: #5b8fb0;
    --gold: #c9a227;         /* zlata zustava jako teply drevo/slunce akcent */
    --bg: #eef4f9;           /* chladne bila */
    --bg-soft: #dde9f2;
    --ink: #21303b;
    --muted: #5d6f7b;
}

/* napevno zadane zelene plochy prebijeme na modre */
body.season-zima .nav { background: rgba(28, 56, 78, .96); }
body.season-zima footer { background: #16252f; color: #cdd9e2; }
body.season-zima .lastminute { background: linear-gradient(135deg, #34607f, #1e3b50); }
body.season-zima .day.free { background: #e3eef6; color: #2a506b; }
body.season-zima .ski-list li { border-bottom-color: #cdddea; }
body.season-zima .ski-list .dist { color: var(--green); }
body.season-zima .price-card .price { color: var(--green); }

/* zimni hero: ztmaveni JEN dole (kvuli textu), zbytek fotky cisty bez mlhy */
body.season-zima .hero {
    background: linear-gradient(to top, rgba(12, 26, 38, .85) 0%, rgba(12, 26, 38, .35) 28%, transparent 52%), var(--hero) center/cover no-repeat;
}

/* padajici snih – jen v zime a JEN v uvodni fotce (hero) */
.hero > div { position: relative; z-index: 3; }   /* text nad snehem */
.snow { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.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) { .snow { display: none; } }
