/* Hotel Jugend. System fonts only: no third-party requests on page load. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --paper: #fbf7f1;
  --paper-alt: #f3ebdf;
  --card: #fffdf9;
  --ink: #2a211c;
  --ink-soft: #62564d;
  --brick: #7f3528;
  --brick-dark: #5f261c;
  --gold: #a97f35;
  --line: #e2d7c7;
  --cream: #fbf3e6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 68px;
  --max: 1180px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
h2 { font-size: clamp(30px, 4.2vw, 44px); letter-spacing: -0.005em; }
h3 { font-size: 21px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--paper-alt); }
.section__head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 52px); }
.section__head > p:last-child:not(.kicker) { margin-top: 12px; color: var(--ink-soft); }
.kicker { margin-bottom: 10px; color: var(--brick); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.skip { position: fixed; top: -60px; left: 12px; z-index: 3000; padding: 10px 18px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border: 1px solid var(--brick); border-radius: 2px;
  background: var(--brick); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.25;
  text-align: center; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--brick-dark); border-color: var(--brick-dark); }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--brick-dark); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--brick-dark); }
.btn--outline { background: transparent; color: var(--brick); }
.btn--outline:hover { color: #fff; }
.btn--small { padding: 9px 16px; font-size: 14px; }
.link-arrow { color: var(--brick); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { color: var(--brick-dark); }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--nav-h); color: #fff; transition: background .25s, color .25s, box-shadow .25s; }
.nav::before { content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; background: linear-gradient(rgba(25, 16, 12, .6), transparent); transition: opacity .25s; }
.nav.scrolled, .nav.menu-open { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav.scrolled::before, .nav.menu-open::before { opacity: 0; }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(100% - 40px, 1320px); height: 100%; margin-inline: auto; }
.nav__logo { font-family: var(--serif); font-size: 23px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav__links { display: flex; gap: clamp(14px, 1.7vw, 26px); }
.nav__links a { font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav__right { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: inline-grid; place-items: center; min-width: 40px; min-height: 38px; padding: 0 10px; border: 1px solid currentColor; border-radius: 2px; font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none; }
.nav__book { white-space: nowrap; }
.nav__burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
.nav__burger span { display: block; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(92vh, 860px); overflow: hidden; background: #3b2a24; color: #fff; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 16, 12, .62) 0%, rgba(25, 16, 12, .28) 48%, rgba(25, 16, 12, 0) 72%), linear-gradient(180deg, rgba(25, 16, 12, 0) 38%, rgba(25, 16, 12, .72) 100%); }
.hero__inner { position: relative; z-index: 1; width: min(100% - 40px, var(--max)); margin: 0 auto; padding: 120px 0 104px; }
.eyebrow { margin-bottom: 8px; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.hero h1 { font-size: clamp(54px, 9vw, 104px); letter-spacing: -0.015em; line-height: 1; }
.hero__lead { max-width: 560px; margin: 16px 0 26px; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero__score { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.score { display: inline-grid; place-items: center; min-width: 42px; height: 38px; padding: 0 6px; background: var(--cream); color: var(--brick-dark); font-family: var(--serif); font-size: 19px; font-weight: 700; border-radius: 2px; }

/* Availability finder */
.finder {
  position: relative; z-index: 5; display: grid; grid-template-columns: auto 1fr 1fr .6fr auto; align-items: end; gap: 14px;
  width: min(100% - 40px, var(--max)); margin: -52px auto 0; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(42, 33, 28, .13);
}
.finder__title { align-self: center; padding-right: 8px; font-size: 22px; white-space: nowrap; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.field input, .field select { width: 100%; height: 47px; padding: 0 10px; border: 1px solid #b9ab98; border-radius: 2px; background: #fff; }
.finder .btn { height: 47px; padding-block: 0; white-space: nowrap; }

/* Intro */
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.intro h2 { margin-bottom: 18px; }
.intro p + p { margin-top: 14px; }
.intro__grid > div > p:not(.kicker) { color: var(--ink-soft); }
.intro__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.stats { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--ink-soft); font-size: 14px; }
.stats dd { color: var(--brick); font-family: var(--serif); font-size: 32px; line-height: 1.15; }

/* Rooms */
.rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.room { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); }
.room__media { position: relative; }
.room__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 62%; }
.room__size { position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; background: rgba(42, 33, 28, .86); color: #fff; font-size: 14px; font-weight: 600; }
.room__body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 20px 20px 22px; }
.chips { display: flex; flex: 1; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.chips li { padding: 3px 10px; background: var(--paper-alt); color: var(--ink-soft); font-size: 13.5px; line-height: 1.45; }
.note { max-width: 860px; margin: 34px auto 0; color: var(--ink-soft); font-size: 15.5px; text-align: center; }

/* Gallery */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 8px; }
.tile { position: relative; display: block; overflow: hidden; padding: 0; border: 0; background: var(--paper-alt); cursor: zoom-in; }
.tile--wide { grid-column: span 2; grid-row: span 2; }
.tile--tall { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
.tile:focus-visible { outline-offset: -3px; z-index: 1; }

.lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; background: rgba(18, 12, 9, .95); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(18, 12, 9, .95); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: min(100% - 130px, 1280px); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); object-fit: contain; }
.lightbox figcaption { font-size: 15px; text-align: center; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; background: rgba(255, 255, 255, .12); border: 0; border-radius: 2px; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { top: 50%; left: 14px; transform: translateY(-50%); }
.lightbox__next { top: 50%; right: 14px; transform: translateY(-50%); }

/* Amenities */
.amenities { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.amenity { padding: 24px 18px; background: var(--card); }
.amenity svg { width: 28px; height: 28px; margin-bottom: 12px; fill: none; stroke: var(--brick); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.amenity h3 { margin-bottom: 4px; font-size: 18.5px; }
.amenity p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; }

/* Location */
.location { display: grid; grid-template-columns: 1.25fr 1fr; align-items: start; gap: clamp(28px, 4vw, 52px); }
.map { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-alt); }
.map > img, .map iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.map__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; background: rgba(25, 16, 12, .48); color: #fff; font-size: 14.5px; text-align: center; }
.places h3 { margin-bottom: 6px; }
.places ul { margin-bottom: 24px; }
.places li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.dist { flex: none; color: var(--ink-soft); font-size: 14.5px; }
.places__note { margin: -12px 0 14px; color: var(--ink-soft); font-size: 14px; }

/* Reviews */
.summary { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(24px, 5vw, 64px); padding: 26px clamp(20px, 3vw, 36px); background: var(--card); border: 1px solid var(--line); }
.summary__score { display: flex; flex-direction: column; align-items: center; min-width: 124px; }
.summary__num { color: var(--brick); font-family: var(--serif); font-size: 56px; font-weight: 600; line-height: 1; }
.summary__label { margin-top: 6px; font-weight: 600; }
.summary__count { color: var(--ink-soft); font-size: 14px; }
.summary__bars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 36px; }
.bar { display: grid; grid-template-columns: minmax(118px, auto) 1fr 32px; align-items: center; gap: 10px; font-size: 14.5px; }
.bar__track { height: 5px; background: var(--line); }
.bar__track span { display: block; height: 100%; background: var(--brick); }
.bar__value { font-weight: 600; text-align: right; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0 40px; }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 24px; background: var(--brick); color: #fff; }
.quote blockquote { font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.quote figcaption { font-size: 14.5px; font-weight: 600; }
.quote figcaption::before { content: "\2014\00a0"; }
.reviews__controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 16px; font-size: 15px; }
.reviews__controls select { height: 40px; padding: 0 8px; border: 1px solid #b9ab98; border-radius: 2px; background: #fff; }
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; gap: 16px; }
.review { padding: 20px; background: var(--card); border: 1px solid var(--line); overflow-wrap: anywhere; }
.review header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review__score { flex: none; display: grid; place-items: center; width: 36px; height: 36px; background: var(--brick); color: #fff; font-weight: 700; font-size: 15px; }
.review__who { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
.review__who small { color: var(--ink-soft); font-size: 13px; }
.review time { flex: none; color: var(--ink-soft); font-size: 13px; }
.review p { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.55; }
.review p + p { margin-top: 6px; }
.review__good::before, .review__bad::before { position: absolute; left: 0; font-weight: 700; }
.review__good::before { content: "+"; color: #2f6b45; }
.review__bad::before { content: "\2212"; color: var(--brick); }
.reviews__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 26px; margin-top: 30px; }

/* House rules */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 56px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--serif); font-size: 18.5px; font-weight: 500; line-height: 1.3; }
.facts dd { color: var(--ink-soft); font-size: 15.5px; }

/* Closing call to action + contact */
.cta { position: relative; overflow: hidden; background: var(--brick-dark); color: #fff; text-align: center; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(50, 22, 15, .78); }
.cta__inner { position: relative; z-index: 1; width: min(100% - 40px, 820px); margin-inline: auto; padding: clamp(64px, 9vw, 104px) 0; }
.cta__lead { margin: 10px 0 24px; font-size: 18px; }
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-top: 32px; font-size: 15.5px; }
.contact a { text-underline-offset: 3px; }

.footer { padding: 26px 0; background: var(--ink); color: #e9dfd2; font-size: 14.5px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 26px; }
.footer__name { font-family: var(--serif); font-size: 19px; color: #fff; }
.footer__links { display: flex; gap: 18px; }
.footer__links a { text-underline-offset: 3px; }

.sticky-book { display: none; }

/* Responsive */
@media (max-width: 1240px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column; gap: 0; position: fixed; inset: var(--nav-h) 0 auto;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto; padding: 8px 20px 18px; background: var(--paper); color: var(--ink); box-shadow: 0 14px 24px rgba(42, 33, 28, .16);
  }
  .nav__links.open a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__burger { display: flex; }
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .finder { grid-template-columns: 1fr 1fr .6fr auto; }
  .finder__title { grid-column: 1 / -1; }
  .amenities { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
  .intro__grid, .location { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr; }
  .summary__score { align-items: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 0; }
  .nav__book { display: none; }
  .hero { min-height: 620px; min-height: min(88svh, 720px); }
  .hero > img { object-position: 30% 40%; }
  .hero__inner { padding: 96px 0 82px; }
  .hero__actions .btn { width: 100%; }
  .finder { grid-template-columns: 1fr 1fr; margin-top: -44px; padding: 18px 16px; }
  .field--short, .finder .btn { grid-column: 1 / -1; }
  .field input, .field select { padding: 0 8px; font-size: 16px; }
  .rooms, .reviews, .summary__bars { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 6px; }
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .amenity { padding: 18px 14px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .reviews__controls { justify-content: space-between; }
  .lightbox figure { max-width: 100%; padding: 0 8px; }
  .lightbox img { max-height: calc(100dvh - 170px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
  .lightbox__prev { left: calc(50% - 56px); }
  .lightbox__next { right: calc(50% - 56px); }
  .footer { padding-bottom: 86px; }
  .footer__row { flex-direction: column; text-align: center; }
  .sticky-book {
    position: fixed; right: 12px; bottom: 12px; left: 12px; z-index: 900; display: block;
    box-shadow: 0 8px 22px rgba(42, 33, 28, .32); opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .sticky-book.is-visible { opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 380px) {
  .amenities { grid-template-columns: 1fr; }
  .places li { flex-direction: column; gap: 0; }
}

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

@media print {
  .nav, .finder, .sticky-book, .map, .lightbox { display: none; }
}
