/* Chaty Machovice – chalupybecva.cz. Barvy se mění podle ročního období (nastavuje site.js). */
:root {
  --bg: #F4EADF; --surface: #FFFAF4; --soft: #EAD8C4; --line: #DEC9B2;
  --ink: #2A1C13; --muted: #66503F; --accent: #9C4320; --accent-ink: #FFFFFF;
  --nav-bg: rgba(244,234,223,.94);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { opacity: .85; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.serif { font-family: var(--serif); }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; }
.section { padding-top: 80px; padding-bottom: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; cursor: pointer; }
.pill { border-radius: 999px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select { min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Navigace */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; }
.brand-sub { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; }
.nav-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.seasons { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--soft); }
.seasons button { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 13px; border: 0; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; background: transparent; color: var(--ink); }
.seasons button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* Úvod */
.hero { border-bottom: 1px solid var(--line); }
.hero-row { display: flex; flex-wrap: wrap; align-items: stretch; }
.hero-text { flex: 1 1 520px; min-width: 0; padding: clamp(36px, 5vw, 80px) clamp(20px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 5vw, 76px); line-height: 1.02; letter-spacing: -.01em; max-width: 14ch; }
.hero .lead { margin: 18px 0 0; max-width: 52ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.quick { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); max-width: 760px; }
.quick .field { flex: 1 1 140px; }
.quick .field.wide { flex: 2 1 220px; }
.quick .btn { flex: 1 1 160px; }
.hero-photo { flex: 1.25 1 560px; min-width: 0; margin: 0; position: relative; min-height: clamp(340px, 46vw, 780px); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(15,20,15,.75); color: #fff; font-size: 14px; font-weight: 600; }

.facts { border-bottom: 1px solid var(--line); background: var(--surface); }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 32px; padding-top: 22px; padding-bottom: 22px; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* Chaty */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.cottage img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cottage .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.cottage h3 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 600; }
.cottage .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cottage .price { font-weight: 600; white-space: nowrap; }
.cottage ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.cottage.featured { order: -1; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cottage.featured .muted { color: inherit; opacity: .9; }
.tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* Sezóna */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.sec-head p.muted { margin: 0; max-width: 46ch; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.tip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tip .body { padding: 18px 20px 22px; }
.tip h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; line-height: 1.25; }
.tip p { margin: 0; color: var(--muted); font-size: 15px; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.gallery figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Sauna a domek */
.features { display: flex; flex-wrap: wrap; gap: 22px; }
.feature { flex: 1 1 480px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.feature .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 600; }
.feature p { margin: 0; }
@media (max-width: 560px) { .feature { grid-template-columns: 1fr; } .feature img { min-height: 220px; } }

/* Ceník */
.year { padding: 20px; margin-bottom: 26px; overflow-x: auto; }
.year-grid { display: grid; grid-template-columns: repeat(12, minmax(48px, 1fr)); gap: 4px; min-width: 620px; }
.month { display: flex; flex-direction: column; gap: 6px; }
.month span { font-size: 13px; font-weight: 500; text-align: center; color: var(--muted); }
.month .bar { display: flex; height: 34px; border-radius: 6px; overflow: hidden; }
.month.now span { color: var(--accent); font-weight: 700; }
.month.now .bar { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg-zima { background: #3F6E9E; } .seg-mimo { background: #7E9C5C; } .seg-leto { background: #D99A2B; } .seg-svatky { background: #A8432A; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: 14px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 8px; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft); margin-bottom: 16px; }
.tabs button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 600; background: transparent; color: var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--surface); }
.price-wrap { overflow-x: auto; }
table.prices { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16px; }
table.prices th, table.prices td { padding: 14px 16px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; vertical-align: top; }
table.prices thead th { border-top: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
table.prices th:first-child, table.prices td:last-child { text-align: left; }
table.prices tbody th { font-weight: 600; }
table.prices tbody th small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
table.prices tr.active { background: var(--soft); }
.note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.info-cards .card { padding: 22px 24px; overflow: visible; }
.info-cards h3 { margin: 0 0 10px; font-size: 18px; }
.info-cards ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }

/* Kalkulačka */
.calc { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.calc-form { flex: 1 1 380px; display: flex; flex-direction: column; gap: 20px; padding: 26px; }
.calc-out { flex: 1 1 420px; padding: 26px; border-radius: 20px; background: var(--accent); color: var(--accent-ink); }
.choice { display: flex; flex-wrap: wrap; gap: 6px; }
.choice button { flex: 1 1 120px; min-height: 52px; padding: 6px 12px; border-radius: 12px; cursor: pointer; text-align: left; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.choice button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.choice b { display: block; } .choice small { font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 22px; cursor: pointer; }
.stepper output { min-width: 36px; text-align: center; font-size: 22px; font-weight: 600; }
.row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.total strong { font-family: var(--serif); font-size: 44px; font-weight: 600; font-variant-numeric: tabular-nums; }
.warn { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.18); font-size: 15px; }
.calc-out .btn { margin-top: 20px; width: 100%; min-height: 52px; background: var(--accent-ink); color: var(--accent); }

/* Recenze, okolí, kontakt */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.quotes .card { padding: 24px; }
.quotes p { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.dist { flex: 1 1 420px; border-top: 1px solid var(--line); }
.dist div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dist b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.okoli { display: flex; flex-wrap: wrap; gap: 26px; }
.okoli-photos { flex: 1 1 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.okoli-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.contact { display: flex; flex-wrap: wrap; gap: 22px; padding-bottom: 96px; }
.contact .card { flex: 1 1 420px; padding: 28px; overflow: visible; }
.contact .accent { flex: 1 1 340px; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); display: flex; flex-direction: column; gap: 14px; }
.contact .accent a.big { display: flex; align-items: center; min-height: 52px; padding: 0 18px; border-radius: 12px; background: var(--accent-ink); color: var(--accent); text-decoration: none; font-weight: 600; font-size: 18px; }
.contact .accent a.out { display: flex; align-items: center; min-height: 52px; padding: 0 18px; border-radius: 12px; border: 1px solid currentColor; text-decoration: none; font-weight: 600; }
.contact ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 26px; padding-bottom: 26px; font-size: 14px; color: var(--muted); }

/* Mobil: fotka chalup hned nahoře, hlavička neplave přes obsah */
@media (max-width: 900px) {
  .hero-photo { order: -1; flex-basis: 100%; min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .site-header { position: static; }
  .nav-tools .btn { display: none; }
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; }
  html { scroll-padding-top: 0; }
}
