@import url(fonts.css?v=medeo1);

/* ---------------------------------------------------------------- tokens (design/generator/lib.py) */
:root {
  --ink: #1C2420; --forest: #2F4A3F; --forest2: #3D5C4F; --cream: #F7F3EC; --sand: #EFE7DA; --sand2: #E6DCCB;
  --brass: #A8834A; --brass2: #806136; --brass-soft: #F1E6D3; --muted: #5C6059; --line: #DDD3C2; --white: #fff;
  --light: #E3C79A; --on-dark: rgba(255,255,255,.8); --on-dark2: rgba(255,255,255,.62); --error: #A4553F;
  --bk: #003580; --bk2: #009FE3;
  --head: 'Medeo Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;     /* headings: Medium, display cut by optical size */
  --sans: 'Medeo Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --logo: 'Playfair Display', Georgia, 'Times New Roman', serif;                          /* the THALIA wordmark only */
  --shadow: 0 10px 30px rgba(28,36,32,.07);
  --shadow-lg: 0 20px 60px rgba(28,36,32,.2);
  --r-control: 6px; --r-input: 8px; --r-card: 12px;      /* buttons, chips, tags · form fields · cards, photos, panels */
  --gutter: 20px;
  --section: clamp(56px, 7.8vw, 112px);
  --header: 72px;
}
@media (min-width: 760px) { :root { --gutter: 40px; --header: 88px; } }
@media (max-width: 359px) { :root { --gutter: 16px; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
picture { display: block; }
picture img { width: 100%; height: 100%; object-fit: cover; }
/* boxes with a fixed shape crop their photo */
.apt-card__photo picture, .trip__photo picture, .apt-gallery__item picture, .masonry__item picture { height: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; overflow-wrap: break-word; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-control); }
.skip:focus { top: 12px; }

.container { width: min(1200px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: var(--section); background: var(--cream); }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--forest { background: var(--forest); color: #fff; }
.cta-wrap { padding-top: 0; }
.page-body { padding-bottom: var(--section); }
.stack-56 > * + * { margin-top: clamp(40px, 4vw, 56px); }
.stack-48 > * + * { margin-top: clamp(32px, 3.4vw, 48px); }
.stack-32 > * + * { margin-top: 32px; }

/* ---------------------------------------------------------------- type */
.display, h1, .h1 { font-family: var(--head); letter-spacing: -.027em; }
.display { font-size: clamp(38px, 4.9vw, 70px); line-height: 1.06; letter-spacing: -.03em; }
.display--s { font-size: clamp(34px, 4.1vw, 58px); }
h1, .h1 { font-size: clamp(31px, 3.6vw, 52px); line-height: 1.1; }
/* a phone is narrower than some long words ("конфиденциальности", "Datenschutzerklärung"): hyphenate only those;
   without hyphenate-limit-chars (Safari) headings keep overflow-wrap rather than hyphens everywhere */
@supports (hyphenate-limit-chars: 15 6 5) {
  @media (max-width: 599px) { h1, h2, h3, .display { hyphens: auto; hyphenate-limit-chars: 15 6 5; } }
}
h2 { font-family: var(--head); font-size: clamp(28px, 2.9vw, 42px); line-height: 1.14; letter-spacing: -.024em; }
.h2-s { font-family: var(--head); font-size: clamp(26px, 2.5vw, 35px); line-height: 1.18; margin-bottom: 32px; }
h3, .h3 { font-family: var(--head); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.25; letter-spacing: -.015em; }
.h4 { font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1.4; }
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--muted); }
.lead--light { color: var(--on-dark); }
.small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.caption { font-size: 12px; line-height: 1.4; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: var(--brass2); }
.eyebrow--light { color: var(--light); }
.label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.section--forest .lead { color: var(--on-dark); }
.section--forest .eyebrow, .section--forest .label { color: var(--light); }

/* ---------------------------------------------------------------- buttons, chips, tags */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; border-radius: var(--r-control);
  font: 600 15px/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--s { padding: 11px 18px; }
.btn--l { padding: 19px 34px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brass2); color: #fff; }
.btn--primary:hover { background: #6E532E; }
.btn--dark { background: var(--forest); color: #fff; }
.btn--dark:hover { background: var(--forest2); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brass-soft); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn--booking { background: var(--bk); color: #fff; }
.btn--booking:hover { background: #00264f; }
.btn[disabled] { opacity: .6; cursor: progress; }
/* on a phone a long label (ru, de) wraps instead of pushing the page wider than the screen */
@media (max-width: 599px) { .btn { white-space: normal; text-align: center; } }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btns--links { align-items: center; gap: 12px 28px; }     /* a button and a text link */
.btns--center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .15s; }
.link-arrow--light { color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-control); background: #fff; border: 1px solid var(--line);
  font-size: 14px; line-height: 1.5; cursor: pointer; color: var(--ink); }
.chip .icon { color: var(--brass); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.chip--static { cursor: default; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 5px 10px; border-radius: var(--r-control); background: var(--brass-soft); color: var(--brass2);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; }
.booking-mark { font: 700 20px/1 var(--sans); }
.booking-mark b { color: var(--bk); }
.booking-mark i { color: var(--bk2); font-style: normal; }
.round-icon { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--brass-soft); color: var(--brass); }
.square-icon { flex: none; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-card); background: var(--brass-soft); color: var(--brass); }
.square-icon--s { width: 44px; height: 44px; border-radius: var(--r-input); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li + li { margin-top: 10px; }
.checks .icon { color: var(--forest); stroke-width: 2; margin-top: 3px; }
.note { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin-top: 16px; }

/* ---------------------------------------------------------------- logo */
.logo { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.logo .crest { color: var(--brass); }
.logo__text { display: flex; flex-direction: column; gap: 6px; }
.logo__name { font: 400 26px/1 var(--logo); letter-spacing: .23em; }
.logo__sub { font: 600 9.5px/1 var(--sans); letter-spacing: .25em; color: var(--brass); }
.logo--small { gap: 12px; }
.logo--small .logo__name { font-size: 22px; }
.logo--small .logo__sub { font-size: 8.5px; letter-spacing: .2em; }
.crest--light { color: var(--light); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header__in { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo { text-decoration: none; flex: none; }
.site-header__right { display: flex; align-items: center; gap: 16px; }
.site-header--over { position: absolute; left: 0; right: 0; background: none; border: 0; color: #fff; }
.site-header--over .logo { color: #fff; }
.site-header--over .logo .crest, .site-header--over .logo__sub { color: var(--light); }
.nav ul { display: flex; gap: 36px; }
@media (min-width: 1100px) and (max-width: 1279px) { .nav ul { gap: 24px; } }   /* the Russian menu fits from 1100 px */
.nav a { text-decoration: none; font-size: 15px; position: relative; padding-block: 8px; }
.nav a[aria-current="page"] { font-weight: 600; }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 50%; bottom: -2px; width: 18px; height: 2px; margin-left: -9px; background: var(--brass); }
.nav a:hover { color: var(--brass2); }
.site-header--over .nav a:hover { color: var(--light); }
.nav__book, .nav__langs { display: none; }
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; font-size: 15px; padding: 8px 4px; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-lg); padding: 8px; min-width: 160px; }
.lang ul a { display: block; padding: 9px 12px; border-radius: var(--r-control); text-decoration: none; font-size: 15px; }
.lang ul a:hover { background: var(--cream); }
.lang ul a[aria-current] { font-weight: 600; color: var(--brass2); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-control); border: 1px solid var(--line); background: none; place-items: center; cursor: pointer; padding: 0; }
.site-header--over .menu-toggle { border-color: rgba(255,255,255,.35); }
.menu-toggle__close { display: none; }

@media (max-width: 1099px) {
  .menu-toggle { display: inline-grid; }
  .nav { position: fixed; inset: 0; top: 0; z-index: -1; background: var(--forest); color: #fff; padding: calc(var(--header) + 16px) var(--gutter) 32px;
    display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font: 500 26px/1.2 var(--head); border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--light); font-weight: 400; }
  .nav__book { display: block; }
  .nav__langs { display: flex; gap: 8px; margin-top: 32px; }
  .nav__langs a { padding: 8px 16px; border-radius: var(--r-control); border: 1px solid rgba(255,255,255,.25); font-weight: 600; font-size: 14px; text-decoration: none; }
  .nav__langs a[aria-current] { background: #fff; color: var(--ink); border-color: #fff; }
  .menu-open .nav { visibility: visible; opacity: 1; }
  .menu-open .site-header { color: #fff; background: transparent; border-color: transparent; }
  .menu-open .site-header .logo { color: #fff; }
  .menu-open .site-header .logo .crest, .menu-open .site-header .logo__sub { color: var(--light); }
  .menu-open .menu-toggle { border-color: rgba(255,255,255,.35); }
  .menu-open .menu-toggle__open { display: none; }
  .menu-open .menu-toggle__close { display: block; }
  .menu-open { overflow: hidden; }
  .menu-open .lang, .menu-open [data-header-cta] { visibility: hidden; }
}
@media (max-width: 759px) {
  .site-header .logo .crest { width: 28px; height: 35px; }
  .site-header .logo__name { font-size: 20px; }
  .site-header .logo__sub { font-size: 8px; letter-spacing: .16em; }
  .site-header .logo { gap: 10px; }
  [data-header-cta], .lang summary .icon:last-child { display: none; }
  .site-header__right { gap: 8px; }
}
/* 320 px (iPhone SE 1, Display Zoom): logo, language and menu button only just fit */
@media (max-width: 359px) { .site-header__in { gap: 12px; } .site-header__right { gap: 4px; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; color: #fff; min-height: min(860px, 100svh); display: flex; isolation: isolate; background: var(--ink); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28,36,32,.45) 0%, rgba(28,36,32,.9) 100%); }
.hero__in { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: calc(var(--header) + clamp(40px, 9vw, 120px)) 0 56px; }
.hero__text { display: flex; flex-direction: column; gap: 24px; max-width: 900px; }
.hero__text .lead { max-width: 620px; }
.hero--page { min-height: 560px; }
.hero--page .hero__in { justify-content: flex-end; padding-bottom: 64px; }
.hero--page::after { background: linear-gradient(180deg, rgba(28,36,32,.2) 0%, rgba(28,36,32,.85) 100%); }

.bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 16px; align-items: end; background: #fff; color: var(--ink);
  border-radius: var(--r-card); padding: 20px 20px 20px 24px; box-shadow: var(--shadow-lg); }
@media (max-width: 999px) {
  .bar { grid-template-columns: 1fr 1fr; padding: 20px; }
  .bar .btn { grid-column: 1 / -1; }
}
/* two date fields side by side leave a phone ~70 px for the date: one field per row */
@media (max-width: 519px) { .bar { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.input { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-input); padding: 0 16px; position: relative; min-height: 52px; }
.input .icon { color: var(--brass); }
.input input, .input select { flex: 1; min-width: 0; border: 0; background: none; padding: 14px 0; outline: none; font-size: 16px; }
.input select { appearance: none; padding-right: 22px; cursor: pointer; }
.input .chev { position: absolute; right: 14px; color: var(--muted); pointer-events: none; }
.input:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(168,131,74,.15); }
textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r-input); padding: 14px 16px; background: #fff; font-size: 16px; resize: vertical; min-height: 110px; }
textarea:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px rgba(168,131,74,.15); }
.field.is-invalid .input, .field.is-invalid textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: 13px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-2--wide { grid-template-columns: minmax(0, 1fr) 220px; }
@media (max-width: 599px) { .row-2, .row-2--wide { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.5; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid var(--line); border-radius: var(--r-control); background: #fff; cursor: pointer; }
.check input:checked { background: var(--brass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--brass); }
.check.is-invalid input { border-color: var(--error); }
.check a { color: var(--brass2); }
.checks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
@media (max-width: 599px) { .checks-grid { grid-template-columns: 1fr; } }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper > span { flex: 1; font-weight: 600; }
.stepper button { width: 36px; height: 36px; border-radius: var(--r-control); border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.stepper input { width: 32px; text-align: center; border: 0; background: none; font-weight: 600; -moz-appearance: textfield; padding: 0; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--box { border: 1px solid var(--line); border-radius: var(--r-input); padding: 8px 12px 8px 16px; background: #fff; }
.steppers { border: 1px solid var(--line); border-radius: var(--r-input); padding: 16px; display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #F6E3DC; color: var(--error); border-radius: var(--r-input); padding: 14px 16px; font-size: 15px; }

/* ---------------------------------------------------------------- sections and cards */
.sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.sec-head--center { align-items: center; text-align: center; margin-inline: auto; }
.sec-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 56px; }
.sec-row .sec-head { flex: 1 1 520px; }
.stack-56 .sec-row, .stack-56 > .sec-head { margin-bottom: 0; }
.section > .container > .sec-head { margin-bottom: 48px; }

.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 999px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 679px) { .cards--3, .cards--2 { grid-template-columns: 1fr; } }

.apt-card { background: #fff; border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.apt-card__photo { position: relative; aspect-ratio: 384 / 250; display: block; overflow: hidden; }
.apt-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.apt-card__cat { color: var(--brass2); }
.apt-card h3 { font-size: 23px; }
.apt-card h3 a { text-decoration: none; }
.apt-card h3 a:hover { color: var(--brass2); }
.apt-card__meta { font-size: 14px; color: var(--muted); }
.apt-card__foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* a plain line under the cards instead of a coloured band */
.help-line { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--sand2); display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.help-line a { color: var(--brass2); font-weight: 600; }

/* a list of facts on hairlines: a name, a note under it, a value on the right (home: in the house, location) */
.info-list { border-top: 1px solid var(--line); }
.info-list li { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list li div { display: flex; flex-direction: column; gap: 2px; }
.info-list b { font-weight: 600; }
.info-list span { font-size: 14px; color: var(--muted); }
.info-list__value { flex: none; font-size: 14px; font-weight: 600; color: var(--brass2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.info-list li > .info-list__with-sign { flex-direction: row; align-items: center; gap: 12px; }
.info-list .parking-sign { flex: none; width: 24px; height: 24px; border-radius: var(--r-control); background: #2F5D8A; color: #fff; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; }
.info-list--dark, .info-list--dark li { border-color: rgba(255,255,255,.12); }
.info-list--dark b { color: #fff; }
.info-list--dark span { color: var(--on-dark2); }
.label + .info-list { margin-top: 10px; }

/* home: about — the heading across the page; the text and the facts beside a wide photo of the entrance */
.about__title { max-width: 1000px; margin-bottom: 48px; }
.about__grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 80px; align-items: start; }
.about__text { display: flex; flex-direction: column; gap: 24px; }
.about__text > p { color: var(--muted); }
.about__text > .lead { color: var(--ink); }
.about__photo { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 720 / 520; }
.about-facts { border-top: 1px solid var(--line); }
.about-facts li { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.about-facts b { flex: none; min-width: 6em; font-weight: 600; color: var(--ink); }
@media (max-width: 999px) { .about__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .about__photo { aspect-ratio: 4 / 3; } .about__title { margin-bottom: 32px; } }

/* home: in the house — facilities and house rules as two lists, as on our Booking.com page */
.house__grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 96px; align-items: start; }
.house__intro { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.house__intro h2 { color: #fff; }
.house__intro p { color: var(--on-dark); }
.house__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 999px) { .house__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 759px) { .house__lists { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* home: location */
.location__grid { display: grid; grid-template-columns: 640px minmax(0, 1fr); gap: 80px; align-items: center; }
.location__grid > div { display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 1099px) { .location__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* map: map-<lang>.png drawn at 2 px per metre, shown at half size; the house sits at --x / 60 % of the box */
.map { --x: 50%; position: relative; overflow: hidden; border-radius: var(--r-card); background: #F2EDE3; height: 440px; }
.map--square { aspect-ratio: 640 / 600; height: auto; max-height: 600px; }
.map__link { position: absolute; inset: 0; }
.map__img { position: absolute; inset: 0; }
.map__img img { position: absolute; width: 1300px; height: 750px; max-width: none; left: calc(var(--x) - 650px); top: calc(60% - 450px); object-fit: fill; }
.map__pin { position: absolute; right: calc(100% - var(--x) - 25px); top: calc(60% - 25px); display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 6px; background: #fff;
  border-radius: 999px; box-shadow: 0 6px 16px rgba(28,36,32,.2); pointer-events: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.map__p { width: 24px; height: 24px; border-radius: var(--r-control); background: #2F5D8A; color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.map__crest { width: 42px; height: 42px; border-radius: 999px; background: var(--brass2); color: #fff; display: grid; place-items: center; border: 2.5px solid #fff; }
.map__open { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; background: #fff; border-radius: var(--r-control);
  box-shadow: 0 4px 12px rgba(28,36,32,.15); font-weight: 600; font-size: 13px; text-decoration: none; }
.map__open .icon:last-child { color: var(--muted); }
.map__credit { position: absolute; right: 8px; bottom: 6px; font-size: 10px; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,.7); color: var(--muted); text-decoration: none; }
.map-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 759px) {
  /* the house right of centre, so the pin's label (it grows to the left) fits on a phone */
  .map, .map--square { --x: 62%; height: 320px; aspect-ratio: auto; border-radius: var(--r-card); }
  .map__crest { width: 34px; height: 34px; }
  .map__pin { right: calc(100% - var(--x) - 21px); top: calc(60% - 21px); font-size: 13px; }
}

/* home: trips and the call to action */
.trips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.trip { display: flex; flex-direction: column; gap: 10px; }
.trip__photo { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 282 / 280; margin-bottom: 4px; }
.trip > .label { color: var(--brass2); }
.trip h3 { font-size: 23px; }
.trip--more { padding-left: 24px; border-left: 1px solid var(--line); gap: 16px; align-self: start; }
.trip--more .link-arrow { margin-top: 4px; }
@media (max-width: 999px) {
  .trips { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .trips > * { scroll-snap-align: start; }
}
/* the house at night beside the text: no crest, nothing centred */
.cta { display: grid; grid-template-columns: 520px minmax(0, 1fr); gap: 64px; align-items: center; background: var(--sand); border-radius: var(--r-card); overflow: hidden; }
.cta__photo { position: relative; align-self: stretch; min-height: 440px; }
.cta__photo img { position: absolute; inset: 0; object-position: 50% 70%; }      /* a portrait photo fills the column, it does not set its height; the sign of the house is low in it */
.cta__in { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; padding: 48px 64px 48px 0; }
.cta .lead { max-width: 600px; }
@media (max-width: 899px) {
  .cta { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cta__photo { min-height: 0; aspect-ratio: 16 / 10; }
  .cta__in { padding: 24px 20px 28px; }
}

/* ---------------------------------------------------------------- inner pages */
.page-head { padding: 40px 0 48px; display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { max-width: 900px; }
.page-head .lead { max-width: 760px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs > * + *::before { content: '·'; margin-right: 10px; color: var(--line); }
.crumbs [aria-current] { color: var(--ink); }

/* accommodation */
.features { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.features li { display: flex; flex-direction: column; gap: 10px; }
.features h3, .tiles h3, .distances h3, .rooms h3 { font: 600 17px/1.4 var(--sans); }
@media (max-width: 999px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .features { grid-template-columns: 1fr 1fr; gap: 24px 16px; } }
.table-wrap { overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--line); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; }
.compare th, .compare td { text-align: left; padding: 18px 16px; vertical-align: middle; }
.compare thead th { background: var(--sand); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.compare th:first-child, .compare td:first-child { padding-left: 24px; }
.compare tbody tr + tr { border-top: 1px solid var(--line); }
.compare tbody th { font-weight: 600; }
.compare tbody th a { text-decoration: none; }
.compare tbody th a:hover { color: var(--brass2); }
.icon--yes { color: var(--forest); stroke-width: 2; }

/* apartment */
.apt-head { padding: 32px 0 40px; display: flex; flex-direction: column; gap: 16px; }
.apt-head__meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.apt-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 254px 254px; gap: 12px; }
.apt-gallery__item { position: relative; border-radius: var(--r-card); overflow: hidden; display: block; }
.apt-gallery__item--main { grid-row: span 2; }
.apt-gallery__item img { transition: transform .4s; }
.apt-gallery__item:hover img { transform: scale(1.03); }
.apt-gallery__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(28,36,32,.6); color: #fff; font-weight: 600; font-size: 15px; }
@media (max-width: 899px) {
  .apt-gallery { grid-template-columns: none; grid-template-rows: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .apt-gallery__item { aspect-ratio: 4 / 3; scroll-snap-align: center; }
  .apt-gallery__item--main { grid-row: auto; }
}
.apt-body { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 60px; align-items: start; padding: 40px 0 var(--section); }
.apt-content > section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.apt-content h2 { margin-bottom: 20px; }
.apt-content section > p { color: var(--muted); }
.apt-content section > p + p { margin-top: 16px; }
.rooms { display: grid; gap: 18px; }
.rooms li { display: flex; align-items: center; gap: 16px; }
.amenities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
.amenities li { display: flex; gap: 12px; align-items: flex-start; }
.amenities .icon { color: var(--brass); margin-top: 1px; }
@media (max-width: 599px) { .amenities { grid-template-columns: 1fr 1fr; gap: 14px 12px; font-size: 15px; } }
.rules { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: #fff; }
.rules > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 16px 20px; }
.rules > div + div { border-top: 1px solid var(--line); }
.rules dt { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.rules dt .icon { color: var(--brass); }
@media (max-width: 599px) { .rules > div { grid-template-columns: 1fr; gap: 4px; } .rules dd { padding-left: 30px; color: var(--muted); } }
.book-card { position: sticky; top: calc(var(--header) + 24px); background: #fff; border-radius: var(--r-card); padding: 28px; box-shadow: 0 16px 48px rgba(28,36,32,.1); display: flex; flex-direction: column; gap: 20px; }
.book-card > .small { margin-top: -16px; }
.book-card__booking { border: 1px solid var(--line); border-radius: var(--r-input); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.book-card__form { display: flex; flex-direction: column; gap: 14px; }
.book-card .caption { display: flex; gap: 8px; align-items: center; }
.or { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.option__top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
@media (max-width: 999px) { .apt-body { grid-template-columns: minmax(0, 1fr); } .book-card { position: static; } }

/* booking */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.option { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.option > h3 { margin-bottom: -14px; }
.option .btn { align-self: flex-start; margin-top: auto; }
.option--request { border: 2px solid var(--brass); }
.option--compact { padding: 24px; gap: 16px; }
.option--compact h3 { font-size: 20px; margin-bottom: -10px; }
.option--compact .btn { align-self: stretch; }
@media (max-width: 759px) { .options { grid-template-columns: 1fr; } .option { padding: 24px; } }
.request .sec-head { margin-bottom: 32px; }
.request__grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(300px, 1fr); gap: 40px; align-items: start; }
.request-form { display: flex; flex-direction: column; gap: 20px; }
.card { background: #fff; border-radius: var(--r-card); padding: 28px; border: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.card legend { float: left; width: 100%; padding: 0; margin-bottom: 0; }
.card legend + * { clear: both; }
.card__sub { margin-top: -12px; }
.request-form__send { display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.request-form__send .small { flex: 1 1 280px; }
.next-steps { position: sticky; top: calc(var(--header) + 24px); background: #fff; border-radius: var(--r-card); padding: 28px; box-shadow: 0 12px 40px rgba(28,36,32,.08); display: flex; flex-direction: column; gap: 18px; }
.next-steps ol { display: flex; flex-direction: column; gap: 18px; }
.next-steps li { display: flex; gap: 14px; }
.next-steps li div { display: flex; flex-direction: column; }
.next-steps .num { flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--brass); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.next-steps p { display: flex; gap: 10px; align-items: center; }
.next-steps .icon { color: var(--brass); }
@media (max-width: 999px) { .request__grid { grid-template-columns: minmax(0, 1fr); } .next-steps { position: static; } }
@media (max-width: 599px) { .card { padding: 20px; } }

/* sent */
.sent { display: grid; grid-template-columns: minmax(0, 640px) 440px; gap: 120px; padding-top: 72px; align-items: start; }
.sent__main { display: flex; flex-direction: column; gap: 24px; }
.sent__ok { width: 88px; height: 88px; border-radius: 999px; background: var(--forest); color: #fff; display: grid; place-items: center; }
.sent__ok .icon { stroke-width: 2.4; }
.sent__steps { background: #fff; border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.sent__steps li { display: flex; gap: 16px; align-items: center; }
.sent__steps li div { display: flex; flex-direction: column; }
.sent__steps .is-done .round-icon { background: var(--forest); color: #fff; }
.sent__summary { background: #fff; border-radius: var(--r-card); padding: 24px; box-shadow: 0 12px 40px rgba(28,36,32,.12); display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 999px) { .sent { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; } }

/* Karlovy Vary */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 38px/1.1 var(--head); letter-spacing: -.02em; }
.facts dd { font-size: 14px; color: var(--muted); margin-top: 6px; }
@media (max-width: 759px) { .facts { grid-template-columns: 1fr 1fr; } .facts dt { font-size: 32px; } }
.photo-card { display: flex; flex-direction: column; gap: 12px; }
.photo-card picture { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 384 / 320; }
.photo-card h3 { font-size: 23px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tiles li { background: #fff; border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.tiles .square-icon { width: 48px; height: 48px; border-radius: var(--r-input); }
@media (max-width: 999px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 519px) { .tiles { grid-template-columns: 1fr; } }

/* surroundings */
.distances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.distances li { background: #fff; border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.distances__top { display: flex; justify-content: space-between; align-items: center; color: var(--brass); }
.distances__top b { font: 500 24px/1.2 var(--head); color: var(--brass2); }
@media (max-width: 899px) { .distances { grid-template-columns: 1fr 1fr; } }
@media (max-width: 519px) { .distances { grid-template-columns: 1fr; } }
.trip-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.trip--photo { grid-column: span 4; }
.trip--photo .trip__photo { aspect-ratio: 384 / 220; }
.trip--photo h3 { font: 600 17px/1.4 var(--sans); }
.trip--text { grid-column: span 3; background: #fff; border-radius: var(--r-card); padding: 20px; min-height: 150px; align-items: flex-start; }
.trip--text h3 { font: 600 17px/1.4 var(--sans); }
@media (max-width: 999px) { .trip--photo { grid-column: span 6; } .trip--text { grid-column: span 4; } }
@media (max-width: 679px) { .trip--photo, .trip--text { grid-column: 1 / -1; } .trip--text { min-height: 0; } }
.ask { display: flex; align-items: center; gap: 16px 40px; flex-wrap: wrap; background: var(--forest); color: #fff; border-radius: var(--r-card); padding: 40px; }
.ask > div { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.ask p { color: var(--on-dark); }
@media (max-width: 599px) { .ask { padding: 28px; } }

/* gallery and lightbox */
.masonry { columns: 4 260px; column-gap: 16px; }
.masonry__item { display: block; margin-bottom: 16px; border-radius: var(--r-card); overflow: hidden; break-inside: avoid; }
.masonry__item img { height: auto; transition: transform .4s; }
.masonry__item:hover img { transform: scale(1.03); }
@media (max-width: 599px) { .masonry { columns: 2; column-gap: 10px; } .masonry__item { margin-bottom: 10px; border-radius: var(--r-input); } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,26,23,.96); color: #fff; display: grid; grid-template-rows: auto 1fr auto; padding: 16px; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; }
.lightbox::backdrop { background: rgba(20,26,23,.96); }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lightbox__count { font-size: 14px; color: var(--on-dark2); }
.lightbox__stage { display: grid; place-items: center; min-height: 0; position: relative; }
.lightbox__stage img { max-width: 100%; max-height: calc(100svh - 160px); width: auto; height: auto; object-fit: contain; border-radius: var(--r-input); }
.lightbox__caption { text-align: center; color: var(--on-dark); font-size: 15px; padding: 12px; }
.lightbox button { width: 48px; height: 48px; border-radius: var(--r-control); border: 1px solid rgba(255,255,255,.3); background: rgba(28,36,32,.4); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; margin-top: -24px; }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }

/* contact, privacy, 404 */
.contact { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 40px; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 24px; }
.info-card { background: #fff; border-radius: var(--r-card); padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.info-card li { display: flex; gap: 16px; }
.info-card li div { display: flex; flex-direction: column; gap: 4px; }
.info-card a { text-decoration: none; }
.info-card a:hover { color: var(--brass2); }
.company { padding: 0 8px; display: flex; flex-direction: column; gap: 10px; }
.how-to-book { background: #fff; border-radius: var(--r-card); padding: 40px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 24px; }
.how-to-book > .small { display: flex; gap: 10px; align-items: center; }
.how-to-book .icon { color: var(--brass); }
.options--compact { gap: 16px; }
@media (min-width: 1000px) and (max-width: 1199px) { .options--compact { grid-template-columns: minmax(0, 1fr); } }   /* beside the 460 px info column */
@media (max-width: 999px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .how-to-book, .info-card { padding: 24px; } }
.prose { max-width: 760px; }
.prose h2 { margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.not-found { padding-top: 80px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.not-found .crest { color: var(--brass); }
.not-found .lead { max-width: 560px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #fff; padding: 80px 0 40px; }
.site-footer .logo { color: #fff; }
.site-footer .logo .crest, .site-footer .logo__sub { color: var(--light); }
.site-footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer__brand { display: flex; flex-direction: column; gap: 24px; max-width: 320px; }
.site-footer__brand p { color: var(--on-dark2); font-size: 14px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 200px); gap: 48px; }
.site-footer__cols > div { display: flex; flex-direction: column; gap: 14px; }
.site-footer .label { color: var(--light); }
.site-footer ul { display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: var(--on-dark); }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.site-footer__contact li { display: flex; gap: 10px; }
.site-footer__contact .icon { color: var(--light); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-top: 24px; font-size: 12px; color: var(--on-dark2); }
.site-footer__langs { display: flex; gap: 16px; font-weight: 600; }
.site-footer__langs a, .site-footer__links a { text-decoration: none; }
.site-footer__langs a[aria-current] { color: #fff; }
.site-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer .credit { color: var(--light); }
.site-footer a:hover { color: #fff; }
@media (max-width: 999px) { .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; } }
@media (max-width: 599px) { .site-footer { padding-top: 56px; } .site-footer__cols { grid-template-columns: 1fr; gap: 32px; } }

/* mobile apartment bar */
.apt-bar { display: none; }
@media (max-width: 999px) {
  .apt-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(28,36,32,.1); border-top: 1px solid var(--line); }
  .apt-bar .btn { flex: 1; min-width: 0; padding: 13px 12px; }
  .page-apartment .site-footer { padding-bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
