:root {
  --ink: #15332d;
  --muted: #667a74;
  --sand: #f2ede4;
  --sun: #f1b84b;
  --mint: #cce7d8;
  --coral: #ec8b75;
  --white: #fffdf8;
  --line: rgba(21, 51, 45, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, Arial, sans-serif; line-height: 1.55; }
h1, h2, h3, p, figure { margin-top: 0; }
h1 { max-width: 850px; font-size: clamp(3.7rem, 9vw, 8.4rem); line-height: .86; letter-spacing: -.075em; }
h2 { max-width: 850px; font-size: clamp(2.4rem, 5vw, 5rem); line-height: .94; letter-spacing: -.06em; }
h3 { font-size: 2rem; letter-spacing: -.04em; }
a { color: inherit; }
button, input, select { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}
.eyebrow { margin-bottom: 12px; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.brand { display: inline-flex; flex-direction: column; color: inherit; font-size: 1.05rem; font-weight: 900; letter-spacing: .18em; line-height: 1; text-decoration: none; }
.brand small { margin-top: 5px; font-size: .5rem; letter-spacing: .2em; opacity: .72; }
.hero { position: relative; min-height: 94vh; padding: 24px max(24px, 5vw); color: white; background: linear-gradient(90deg, rgba(8, 35, 29, .88), rgba(8, 35, 29, .08)), url("https://www.e-chalupy.cz/foto/fantastic-6-7-f785-13d6-927079.jpg") center/cover; }
.page-hero { position: relative; min-height: 58vh; padding: 24px max(24px, 5vw); color: white; background: linear-gradient(90deg, rgba(8, 35, 29, .9), rgba(8, 35, 29, .18)), url("https://www.e-chalupy.cz/foto/fantastic-bf22-dee5-929228.jpg") center/cover; }
nav { display: flex; justify-content: space-between; align-items: center; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mobile-page-links { display: none; }
.language-links { display: flex; gap: 4px; margin-left: 8px; padding: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.45); border-radius: 999px; backdrop-filter: blur(12px); }
.language, .nav-link, .button { padding: 11px 18px; color: inherit; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.72); border-radius: 999px; text-decoration: none; backdrop-filter: blur(12px); }
.language { padding: 6px 9px; border: 0; background: transparent; font-size: .74rem; font-weight: 800; }
.language.active { color: var(--ink); background: var(--sun); }
.hero-copy { max-width: 950px; padding-top: 18vh; }
.hero-copy > p:not(.eyebrow) { max-width: 500px; font-size: 1.25rem; }
.page-hero-copy { max-width: 900px; padding-top: 12vh; }
.page-hero-copy h1 { max-width: 820px; font-size: clamp(3.2rem, 8vw, 6.8rem); }
.page-hero-copy > p:not(.eyebrow) { max-width: 660px; font-size: 1.18rem; }
.button { display: inline-block; margin-top: 12px; color: var(--ink); background: var(--sun); border-color: var(--sun); font-weight: 800; }
.hero-note { position: absolute; right: max(24px, 5vw); bottom: 30px; padding: 10px 14px; background: rgba(8,35,29,.55); border-radius: 999px; font-size: .8rem; backdrop-filter: blur(12px); }
main > section { padding: 96px max(24px, 7vw); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; color: white; background: var(--ink); }
.facts div { display: grid; }
.facts strong { color: var(--sun); font-size: 2.6rem; line-height: 1; }
.facts span { margin-top: 8px; opacity: .72; }
.intro { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8vw; align-items: end; }
.intro > p { max-width: 600px; font-size: 1.2rem; color: var(--muted); }
.gallery { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 34vw); gap: 12px; overflow-x: auto; padding-top: 0; scroll-snap-type: x mandatory; }
.gallery figure { position: relative; overflow: hidden; border-radius: 18px; scroll-snap-align: start; }
.gallery-open { display: block; width: 100%; padding: 0; overflow: hidden; background: transparent; border: 0; cursor: zoom-in; }
.gallery img { display: block; width: 100%; height: 240px; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.025); }
.gallery figcaption { position: absolute; left: 15px; bottom: 15px; padding: 7px 12px; color: white; background: rgba(8,35,29,.62); border-radius: 999px; font-size: .75rem; backdrop-filter: blur(10px); }
.gallery-more { position: absolute; right: calc(max(24px, 7vw) + 16px); bottom: 16px; padding: 11px 15px; background: white; border: 0; border-radius: 999px; font-weight: 700; cursor: pointer; }
.showcase-gallery { padding-bottom: 48px; }
.gallery-dialog { max-width: min(1120px, 94vw); max-height: 92vh; padding: 0; background: transparent; border: 0; }
.gallery-dialog::backdrop { background: rgba(8, 35, 29, .82); }
.gallery-dialog figure { position: relative; margin: 0; }
.gallery-dialog img { display: block; max-width: 100%; max-height: 92vh; object-fit: contain; background: var(--ink); }
.gallery-dialog figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 20px; color: white; background: linear-gradient(0deg, rgba(8,35,29,.78), rgba(8,35,29,0)); font-weight: 700; }
.gallery-close { position: fixed; top: 18px; right: 18px; z-index: 2; display: grid; width: 42px; height: 42px; place-items: center; color: var(--ink); background: white; border: 0; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.gallery-step { position: fixed; z-index: 2; top: 50%; display: grid; width: 50px; height: 50px; place-items: center; color: var(--ink); background: white; border: 0; border-radius: 50%; font-size: 2rem; cursor: pointer; transform: translateY(-50%); }
.gallery-step--prev { left: 18px; }
.gallery-step--next { right: 18px; }
.benefits { color: white; background: var(--ink); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1200px; margin: auto; }
.benefit-grid article { padding: 30px; border: 1px solid rgba(255,255,255,.15); border-radius: 22px; background: rgba(255,255,255,.04); }
.benefit-grid span { display: inline-grid; width: 42px; height: 42px; place-items: center; color: var(--ink); background: var(--sun); border-radius: 50%; font-weight: 900; }
.benefit-grid h3 { margin: 34px 0 12px; font-size: 1.5rem; }
.benefit-grid p { margin: 0; color: rgba(255,255,255,.68); }
.units { background: var(--sand); }
.section-heading { display: flex; flex-direction: column; align-items: center; max-width: 850px; margin: 0 auto 44px; text-align: center; }
.section-heading p:last-child { max-width: 620px; color: var(--muted); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cards article { position: relative; overflow: hidden; min-height: 330px; padding: 42px; background: var(--white); border: 1px solid var(--line); border-radius: 28px; }
.cards article p:not(.eyebrow) { max-width: 500px; color: var(--muted); }
.cards a { position: absolute; bottom: 38px; font-weight: 800; text-decoration: none; }
.unit-number { position: absolute; right: 22px; top: -28px; color: var(--sand); font-size: 10rem; font-weight: 900; line-height: 1; }
.calendar { background: var(--white); }
.video-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 6vw; align-items: center; color: white; background: #0b241f; }
.video-copy p:not(.eyebrow) { max-width: 520px; color: rgba(255,255,255,.7); font-size: 1.08rem; }
.video-frame { overflow: hidden; aspect-ratio: 16/9; border-radius: 26px; box-shadow: 0 28px 75px rgba(0,0,0,.3); }
.video-frame iframe, .video-frame video { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.content-page { background: white; }
.content-page-body { max-width: 920px; margin: 0 auto; color: var(--ink); font-size: 1.08rem; line-height: 1.72; }
.content-page-body p { margin: 0 0 1.05rem; }
.content-page-body strong { color: var(--leaf); }
.structured-page { display: grid; gap: 32px; background: #eef3ee; }
.structured-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1180px; margin: auto; }
.structured-section { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 38px rgba(21,51,45,.06); }
.structured-section h2 { margin-bottom: 12px; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.03em; }
.structured-section p:last-child { margin-bottom: 0; color: var(--muted); }
.structured-feature { display: grid; grid-template-columns: minmax(280px, 1.05fr) minmax(280px, .95fr); gap: 22px; align-items: stretch; max-width: 1180px; width: 100%; margin: auto; }
.structured-feature .trip-map { position: static; }
.structured-image { overflow: hidden; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 50px rgba(21,51,45,.08); }
.structured-image img { display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.structured-image figcaption { padding: 18px 22px; color: var(--muted); font-size: .92rem; font-weight: 700; }
.info-boxes { display: grid; gap: 16px; align-self: stretch; }
.info-box { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 50px rgba(21,51,45,.08); }
.info-box h3 { margin-bottom: 8px; font-size: 1.45rem; }
.info-box > p:not(.eyebrow) { margin-bottom: 16px; color: var(--muted); }
.info-list { display: grid; gap: 12px; }
.info-list-item { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.info-list-item strong { font-size: .98rem; }
.info-list-item p { margin: 0; color: var(--muted); }
.info-list-item span { color: var(--leaf); font-size: .86rem; font-weight: 900; }
.info-list-item a { color: var(--ink); font-size: .86rem; font-weight: 800; text-decoration: none; }
.structured-cards { max-width: 1180px; width: 100%; margin: auto; }
.trip-planner { background: #eef3ee; }
.trip-layout { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.45fr); gap: 22px; align-items: start; max-width: 1320px; margin: auto; }
.trip-map { position: sticky; top: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 50px rgba(21,51,45,.08); }
.trip-map iframe { display: block; width: 100%; height: 360px; border: 0; filter: saturate(.92) contrast(.98); }
.trip-map div { padding: 24px; }
.trip-map h3 { margin-bottom: 8px; font-size: 1.45rem; }
.trip-map p { color: var(--muted); }
.trip-map a { font-weight: 800; text-decoration: none; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 !important; }
.map-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 12px; color: var(--ink); background: var(--sand); border-radius: 999px; }
.trip-cards { display: grid; gap: 16px; }
.trip-card { display: grid; grid-template-columns: minmax(210px, .72fr) minmax(0, 1fr); min-height: 280px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 16px 42px rgba(21,51,45,.07); }
.trip-card img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; background: var(--sand); }
.trip-card-body { display: grid; align-content: start; gap: 14px; padding: 26px; }
.trip-card-topline { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.trip-card-topline span, .trip-card-topline strong { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 10px; border-radius: 999px; font-size: .76rem; font-weight: 900; line-height: 1; }
.trip-card-topline span { color: var(--ink); background: var(--sand); }
.trip-card-topline strong { color: white; }
.trip-card--easy .trip-card-topline strong { background: #2f7d57; }
.trip-card--medium .trip-card-topline strong { background: #b36b20; }
.trip-card--hard .trip-card-topline strong { background: #9b3d35; }
.trip-card--text { grid-template-columns: 1fr; min-height: 0; }
.trip-card h3 { margin: 0; font-size: 1.65rem; line-height: 1.04; }
.trip-card dl { display: grid; grid-template-columns: .62fr 1fr; gap: 10px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trip-card dl div { display: grid; gap: 2px; }
.trip-card dt { color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.trip-card dd { margin: 0; font-weight: 800; }
.trip-card p { margin: 0; color: var(--muted); }
.trip-card a { color: var(--ink); font-size: .86rem; font-weight: 800; text-decoration: none; }
.trip-card-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.calendar-shell { max-width: 1000px; margin: auto; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 55px rgba(21,51,45,.08); }
.calendar-tabs { display: flex; gap: 8px; margin-bottom: 24px; padding: 5px; background: var(--sand); border-radius: 999px; }
.calendar-tabs button { flex: 1; padding: 11px; color: var(--muted); background: transparent; border: 0; border-radius: 999px; cursor: pointer; }
.calendar-tabs button.active { color: white; background: var(--ink); }
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 1.15rem; }
.calendar-toolbar button { width: 40px; height: 40px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-day { min-height: 76px; padding: 9px; color: var(--ink); background: #f6f8f6; border: 1px solid transparent; border-radius: 12px; font-size: .82rem; text-align: left; cursor: pointer; }
.calendar-day.heading { min-height: auto; color: var(--muted); background: transparent; text-align: center; font-weight: 800; }
.calendar-day.free { background: #edf7f1; }
.calendar-day.partial { background: #fff5d8; }
.calendar-day.busy { color: #865444; background: #fae8e3; }
.calendar-day.selected { color: white; background: var(--ink); }
.calendar-day.departure { box-shadow: inset 0 0 0 3px var(--sun); }
.calendar-day:disabled { cursor: not-allowed; opacity: .56; }
.calendar-day.outside { opacity: .3; }
.calendar-day small { display: block; margin-top: 11px; font-size: .62rem; }
.legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 20px; color: var(--muted); font-size: .78rem; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.legend .free { background: var(--mint); }
.legend .partial { background: var(--sun); }
.legend .busy { background: var(--coral); }
.legend .selected { background: var(--ink); }
.calendar-reserve-link { display: inline-block; margin-top: 20px; padding: 11px 18px; color: var(--ink); background: var(--sun); border-radius: 999px; font-weight: 800; text-decoration: none; }
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; color: white; background: var(--ink); }
.booking h2 { max-width: 600px; }
.booking > div > p:not(.eyebrow) { max-width: 580px; color: rgba(255,255,255,.7); font-size: 1.1rem; }
form, label { display: grid; gap: 7px; }
form { gap: 14px; padding: 24px; color: var(--ink); background: white; border-radius: 20px; }
form small { color: var(--muted); }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, select, form button { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
form button { margin-top: 8px; color: var(--ink); background: var(--sun); border-color: var(--sun); font-weight: 800; cursor: pointer; }
.booking-form { gap: 12px; padding: 22px; }
.booking-form fieldset { margin: 0; padding: 0; border: 0; }
.booking-form legend { margin-bottom: 7px; font-weight: 700; }
.compact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.people-row { grid-template-columns: repeat(3, 1fr); }
.people-row label { gap: 3px; font-size: .78rem; }
.people-row input { padding: 9px 10px; }
.people-row small { font-size: .58rem; }
.unit-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.unit-option { position: relative; min-height: 78px; padding: 13px; background: #f5f7f5; border: 2px solid transparent; border-radius: 14px; cursor: pointer; }
.unit-option input { position: absolute; opacity: 0; pointer-events: none; }
.unit-option small { color: var(--muted); font-size: .68rem; }
.unit-option.selected { background: #edf7f1; border-color: var(--ink); }
.unit-check { position: absolute; top: 9px; right: 10px; display: grid; width: 22px; height: 22px; place-items: center; color: white; background: #d9dfdc; border-radius: 50%; font-size: .7rem; }
.unit-option.selected .unit-check { background: var(--ink); }
.booking-form details { padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; }
.booking-form summary { cursor: pointer; font-weight: 700; }
.details-grid { display: grid; gap: 10px; margin-top: 12px; }
.quote-box { display: grid; padding: 14px; background: var(--sand); border-radius: 14px; }
.quote-box span, .quote-box small { color: var(--muted); }
.quote-box strong { font-size: 1.45rem; }
.quote-box.ready { background: var(--mint); }
.quote-box.error { color: #7c3028; background: #fae8e3; }
.booking-form button:disabled { opacity: .45; cursor: not-allowed; }
.form-errors { padding: 10px; color: #7c3028; background: #fae8e3; border-radius: 10px; }
footer { display: flex; justify-content: space-between; align-items: center; padding: 28px max(24px, 7vw); }

@media (max-width: 760px) {
  h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  main > section { padding: 68px max(18px, 5vw); }
  .nav-link { display: none; }
  .nav-actions { gap: 0; }
  .language-links { margin-left: 0; }
  .mobile-page-links { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
  .mobile-page-links a { flex: 0 0 auto; padding: 8px 11px; color: inherit; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.55); border-radius: 999px; text-decoration: none; font-size: .86rem; font-weight: 800; backdrop-filter: blur(12px); }
  .language-links { gap: 2px; }
  .language { padding: 6px 7px; }
  .hero-note { left: 24px; right: auto; }
  .facts, .cards, .booking, .intro, .benefit-grid, .video-section { grid-template-columns: 1fr; }
  .trip-layout, .trip-card, .trip-card dl, .structured-sections, .structured-feature { grid-template-columns: 1fr; }
  .trip-map { position: static; }
  .trip-map iframe { height: 300px; }
  .trip-card img { min-height: 210px; max-height: 260px; }
  .compact-row, .unit-options { grid-template-columns: 1fr; }
  .people-row { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .gallery { grid-auto-columns: minmax(210px, 78vw); }
  .gallery img { height: 190px; }
  .gallery-more { right: 40px; }
  .gallery-step { width: 42px; height: 42px; }
  .calendar-shell { padding: 12px; }
  .calendar-tabs { display: grid; border-radius: 18px; }
  .calendar-day { min-height: 54px; padding: 5px; }
  .calendar-day small { display: none; }
  footer { gap: 20px; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .people-row { grid-template-columns: 1fr; }
  .calendar-day { min-height: 48px; }
}

.messages { position: fixed; z-index: 20; top: 15px; left: 50%; transform: translateX(-50%); padding: 10px 18px; color: var(--ink); background: var(--mint); border-radius: 999px; }
.guestbook-page { min-height: 100vh; padding: 5vw; background: var(--sand); }
.guestbook-card { max-width: 760px; margin: auto; padding: 40px; background: white; border-radius: 28px; }
.summary-list { display: grid; grid-template-columns: minmax(120px, .5fr) 1fr; gap: 10px 20px; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 700; }
.summary-button { margin-right: 18px; text-decoration: none; }
.summary-home { display: inline-block; margin-top: 18px; }
.errorlist { margin: 0; padding: 6px 10px; color: #7c3028; background: #fae8e3; border-radius: 8px; list-style: none; font-size: .8rem; }
.link-box { display: grid; gap: 10px; margin-top: 22px; padding: 16px; background: var(--sand); border-radius: 14px; }
.link-box input { background: white; }
.copy-link { width: auto; justify-self: start; padding: 10px 16px; color: white; background: var(--ink); border: 0; border-radius: 999px; cursor: pointer; }
.status-note { margin-top: 20px; padding: 12px 14px; color: var(--muted); background: var(--sand); border-radius: 12px; }
.payment-card { margin-top: 24px; padding: 18px; background: var(--sand); border-radius: 16px; }
.payment-table { width: 100%; margin-top: 14px; border-collapse: collapse; }
.payment-table th, .payment-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.payment-qr { display: grid; gap: 8px; justify-items: start; margin-top: 16px; }
.payment-qr img { width: 210px; max-width: 100%; background: white; border-radius: 12px; }
.payment-table-qr { display: block; width: 92px; max-width: 24vw; margin-bottom: 4px; background: white; border-radius: 8px; }
.cancel-form { margin-top: 20px; padding: 0; background: transparent; }
.cancel-form button { width: auto; color: #7c3028; background: #fae8e3; }
.guest-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.guest-list li { display: flex; justify-content: space-between; gap: 15px; padding: 12px; background: var(--sand); border-radius: 12px; }
.guest-list span, .guest-list small { display: block; }
.guestbook-progress { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.guestbook-progress span { padding: 8px 12px; background: var(--sand); border-radius: 999px; color: var(--muted); }
.guestbook-progress strong { color: var(--ink); }
.address-suggestions { display: grid; position: relative; z-index: 5; margin-top: -14px; padding: 6px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.address-suggestions[hidden] { display: none; }
.address-suggestions button { padding: 8px; color: var(--ink); background: white; border: 0; text-align: left; }
.foreign-stay-info { display: grid; gap: 4px; padding: 14px; background: var(--sand); border-radius: 12px; }
.foreign-stay-info[hidden] { display: none; }
#guest-form:not(.is-foreign) p:has([data-foreign-field]) { display: none; }
