/* WG Suite tenant pages (DE/EN/FR). Mobile first. System fonts only, no requests to third parties.
   Palette from the flat itself: graphite, white walls, the green of the terrace and garden. */
:root {
  --paper: #fafaf8;
  --surface: #ffffff;
  --ink: #22272b;
  --ink-2: #4a535a;
  --muted: #687177;
  --line: #e2e5e2;
  --accent: #2e5e4e;
  --accent-strong: #234a3d;
  --accent-tint: #e7efea;
  --accent-ink: #ffffff;
  --amber: #8a5a00;
  --amber-tint: #fbf1dc;
  --danger: #a3302a;
  --danger-tint: #f8e5e3;
  --ok-tint: #e7efea;
  --font: "Avenir Next", Avenir, "Segoe UI Variable Text", "Segoe UI", "Roboto Flex", Roboto, "Helvetica Neue",
    system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4.5vw, 32px);
  --wide: 1140px;
  --r-s: 10px;
  --r-m: 18px;
  --ease: cubic-bezier(.2, .65, .25, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181c1f; --surface: #20262a; --ink: #eceeed; --ink-2: #c4cbc7; --muted: #98a29d; --line: #30383c;
    --accent: #8fc7ae; --accent-strong: #aad7c2; --accent-tint: #1f302a; --accent-ink: #0f1f19;
    --amber: #f0c068; --amber-tint: #33290f; --danger: #f2958c; --danger-tint: #3a2220; --ok-tint: #1f302a;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font); font-kerning: normal; -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 600; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 1.35rem + 3.4vw, 3.5rem); line-height: 1.05; letter-spacing: -.024em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 1.95rem); line-height: 1.15; letter-spacing: -.016em; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .88rem; }
.break { overflow-wrap: anywhere; }

/* ---------- frame ---------- */
.top, main, .foot { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.wordmark { display: block; width: auto; height: 22px; }
.wordmark-roof { stroke: var(--accent); }
@media (min-width: 720px) { .wordmark { height: 24px; } }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; }
.langs a { display: grid; place-items: center; min-width: 44px; min-height: 36px; padding: 0 8px; border-radius: 9px;
  color: var(--ink-2); font-size: .85rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.langs a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 72px; padding-top: 28px; padding-bottom: 40px;
  border-top: 1px solid var(--line); font-size: .92rem; }
.foot a { color: var(--muted); display: inline-block; padding: 6px 0; }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 22px; border-radius: 12px; border: 1.5px solid var(--accent); background: transparent;
  color: var(--accent); font: 600 1rem/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { color: var(--accent-strong); border-color: var(--accent-strong); background: var(--accent-tint); }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.button.danger { border-color: var(--danger); color: var(--danger); }
.button.danger:hover { background: var(--danger-tint); }

/* ---------- listing: intro ---------- */
.intro { display: grid; gap: 22px; margin-top: 4px; }
.hero-photo { margin: 0 calc(-1 * var(--gutter)); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.hero-photo figcaption, .strip figcaption { color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: 8px; }
.hero-photo figcaption { padding: 0 var(--gutter); }
.place, .eyebrow { color: var(--ink-2); font-size: .95rem; margin-bottom: .55em; }
.lead { font-size: 1.1rem; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.from { font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: .8em; }
.cta { margin-bottom: 1.4em; }
.key-facts { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.key-facts li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line);
  color: var(--ink-2); font-variant-numeric: tabular-nums; }
.key-facts svg { flex: none; color: var(--accent); }

@media (min-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-top: 12px; }
  .hero-photo { margin: 0; }
  .hero-photo img { aspect-ratio: 5 / 4; border-radius: var(--r-m); }
  .hero-photo figcaption { padding: 0; }
  .intro-text { padding-bottom: 6px; }
  .intro h1 { font-size: clamp(2.2rem, 1.1rem + 1.9vw, 2.9rem); }
}

/* ---------- sections ---------- */
.block { margin: 56px 0; }
.page-head { margin: 28px 0 32px; }
.section-head { display: grid; gap: 4px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 62ch; }

/* ---------- rooms: one row per room, priced like a list, not a deck of cards ---------- */
.room-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.room { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main price" "main state" "actions actions";
  gap: 4px 16px; padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.room-main { grid-area: main; min-width: 0; }
.room h3 { margin: 0 0 4px; }
.room-meta { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0; color: var(--ink-2); font-size: .95rem; }
.room-note { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.room-price { grid-area: price; margin: 0; text-align: right; font-variant-numeric: tabular-nums; line-height: 1.25; }
.room-price strong { display: block; font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.room-price span { display: block; color: var(--muted); font-size: .8rem; }
.room-state { grid-area: state; margin: 0; justify-self: end; display: inline-flex; align-items: center; gap: 7px;
  font-size: .86rem; color: var(--ink-2); text-align: right; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.state-reserved .dot { background: var(--amber); }
.state-reserved .room-state { color: var(--amber); }
.state-let .dot { background: var(--muted); }
.state-let .room-main, .state-let .room-price { opacity: .55; }
.room-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; margin: 12px 0 0; font-size: .92rem; }
.room-actions .button { min-height: 44px; }

@media (max-width: 479px) {
  .room-actions { flex-direction: column-reverse; align-items: stretch; }
  .room-actions .button { width: 100%; }
  .room-actions > :not(.button) { text-align: center; }
}
@media (min-width: 900px) {
  .room { grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, 1fr) auto;
    grid-template-areas: "main price state actions"; align-items: center; padding: 22px 12px; }
  .room-price, .room-state { text-align: left; justify-self: start; }
  .room-actions { margin: 0; justify-content: flex-end; flex-wrap: nowrap; }
}
@media (hover: hover) and (min-width: 900px) { .room:hover { background: var(--surface); } }

/* ---------- photos: swipe strip on phones, columns on large screens ---------- */
.strip { list-style: none; display: flex; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.strip li { flex: none; scroll-snap-align: start; }
.strip figure { margin: 0; }
.strip img { height: min(66vw, 440px); width: auto; max-width: none; border-radius: var(--r-s); background: var(--line); }
.strip figcaption { max-width: 34ch; }
@media (min-width: 1000px) {
  .strip { display: block; columns: 3; column-gap: 20px; margin: 0; padding: 0; overflow: visible; }
  .strip li { break-inside: avoid; margin-bottom: 22px; }
  .strip img { width: 100%; height: auto; max-width: 100%; }
}

/* ---------- facts ---------- */
.columns { display: grid; gap: 0 48px; }
@media (min-width: 760px) { .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.columns .block { margin: 28px 0; }
.columns h2 { font-size: 1.25rem; letter-spacing: -.01em; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding: 8px 0 8px 22px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent); }
.energy { display: grid; grid-template-columns: 1fr; margin: 0; border-top: 1px solid var(--line); }
.energy dt { color: var(--muted); font-size: .9rem; padding-top: 12px; }
.energy dd { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 600;
  font-variant-numeric: tabular-nums; }
@media (min-width: 640px) {
  .energy { grid-template-columns: minmax(0, 18rem) 1fr; }
  .energy dt, .energy dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .energy dd { padding-left: 16px; }
}
.how ol { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 14px; max-width: 70ch; }
.how li { counter-increment: step; display: grid; grid-template-columns: 2.2rem 1fr; gap: 12px; color: var(--ink-2); }
.how li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-weight: 700; }
.how .button { margin-top: 18px; }

/* ---------- sticky request bar on phones ---------- */
.sticky-cta { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sticky-cta p { margin: 0; font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.sticky-cta .button { min-height: 46px; padding: 0 16px; white-space: nowrap; }
body.listing { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .sticky-cta { display: none; } body.listing { padding-bottom: 0; } }

/* ---------- index ---------- */
.listing-cards { list-style: none; padding: 0; display: grid; gap: 28px; }
.listing-card { position: relative; display: grid; gap: 14px; }
.listing-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-m); background: var(--line); }
.listing-card h2 { font-size: 1.35rem; margin-bottom: .25em; }
.listing-card h2 a { color: var(--ink); text-decoration: none; }
.listing-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-m); }
.listing-card p { margin-bottom: .3em; }
@media (min-width: 760px) { .listing-card { grid-template-columns: 360px 1fr; gap: 28px; align-items: center; } }

/* ---------- panels, forms, personal page ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px;
  margin: 20px 0; }
@media (min-width: 640px) { .panel { padding: 36px; } }
.narrow { max-width: 720px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.2rem; margin-top: 1.8em; }
.tour-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 760px) { .tour-frame { aspect-ratio: 16 / 10; } }
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

form { margin: 0; }
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field > label, legend { display: block; font-weight: 600; margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--paper); color: var(--ink); font: inherit; font-size: max(16px, 1rem); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
textarea { resize: vertical; min-height: 120px; }
.row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hint { color: var(--muted); font-size: .9rem; margin: -2px 0 8px; }
.check label, .field > label.room-choice, .field label.inline { font-weight: 400; display: flex; gap: 12px; align-items: flex-start; }
.room-choice { padding: 12px 14px; min-height: 48px; border: 1px solid var(--line); border-radius: var(--r-s);
  margin-bottom: 8px; cursor: pointer; background: var(--paper); }
.room-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.inline { display: inline-flex; margin-right: 24px; min-height: 44px; align-items: center; }
input[type="checkbox"], input[type="radio"] { width: 1.2em; height: 1.2em; margin-top: .2em; accent-color: var(--accent); flex: none; }
.panel form .button.primary { width: 100%; }
@media (min-width: 640px) { .panel form .button.primary { width: auto; } }
.error { color: var(--danger); font-size: .92rem; margin: 6px 0 0; font-weight: 600; }
.error-summary { background: var(--danger-tint); color: var(--danger); padding: 12px 16px; border-radius: var(--r-s); font-weight: 600; }
.privacy-note { color: var(--muted); font-size: .9rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--r-s); padding: 16px 18px; margin-bottom: 20px; }
.notice.success { background: var(--ok-tint); }
.notice h2 { font-size: 1.25rem; }
.notice h3 { margin-top: .8em; }
.status { font-size: 1.05rem; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-tint);
  border-radius: 0 var(--r-s) var(--r-s) 0; }
.facts-list { display: grid; grid-template-columns: 1fr; gap: 2px 16px; }
.facts-list dt { color: var(--muted); font-size: .9rem; }
.facts-list dd { margin: 0 0 8px; }
@media (min-width: 560px) { .facts-list { grid-template-columns: max-content 1fr; } .facts-list dd { margin: 0; } }
.danger h2 { color: var(--danger); font-size: 1.15rem; }
details summary { cursor: pointer; color: var(--muted); min-height: 44px; display: flex; align-items: center; }

/* ---------- motion: one entrance, then only answers to the visitor ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo { overflow: hidden; }
  .hero-photo img { animation: wg-reveal 1s var(--ease) both; }
  .intro-text > * { animation: wg-rise .7s var(--ease) both; }
  .intro-text > :nth-child(2) { animation-delay: .06s; }
  .intro-text > :nth-child(3) { animation-delay: .12s; }
  .intro-text > :nth-child(4) { animation-delay: .18s; }
  .intro-text > :nth-child(5) { animation-delay: .24s; }
  .intro-text > :nth-child(6) { animation-delay: .3s; }
  .button { transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease; }
  .button:active { transform: translateY(1px); }
  .room { transition: background-color .2s ease; }
  .room-choice { transition: border-color .15s ease, background-color .15s ease; }
  @supports (animation-timeline: view()) {
    .strip figure { animation: wg-settle linear both; animation-timeline: view(inline); animation-range: entry 0% entry 70%; }
  }
}
/* Text only moves and never starts invisible: if an animation does not run (previews, background tabs), all of the
   page is still readable. */
@keyframes wg-reveal { from { opacity: .5; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes wg-rise { from { transform: translateY(10px); } to { transform: none; } }
@keyframes wg-settle { from { opacity: .55; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- online pre-viewing (360°, static/tour.js) ---------- */
.pano-page h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); margin-bottom: 0; }
.pano { position: relative; height: min(68vh, 640px); min-height: 320px; margin: 16px calc(-1 * var(--gutter)) 0;
  background: #1b1f22; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.pano:focus-visible { outline-offset: -3px; }
@media (min-width: 900px) { .pano { height: min(72vh, 720px); margin: 20px 0 0; border-radius: var(--r-m); } }
.pano canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; cursor: grab; }
.pano.ready canvas { display: block; }
.pano.dragging canvas { cursor: grabbing; }
.pano-fallback { position: absolute; inset: 0; overflow-x: auto; overscroll-behavior-x: contain; touch-action: pan-x; }
.pano-fallback img { height: 100%; width: auto; max-width: none; }
.pano-note, .pano-hint, .pano-loading { position: absolute; margin: 0; padding: 7px 12px; border-radius: 10px;
  background: rgba(20, 24, 26, .66); color: #fff; font-size: .84rem; line-height: 1.35; pointer-events: none; }
.pano-note { left: 12px; right: 12px; bottom: 12px; }
.pano-hint { left: 50%; bottom: 16px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px);
  text-align: center; display: none; }
.pano-loading { top: 12px; left: 12px; opacity: 0; }
.pano.ready .pano-fallback, .pano.ready .pano-note { display: none; }
.pano.ready .pano-hint { display: block; }
.pano.touched .pano-hint { opacity: 0; }
.pano.loading .pano-loading { opacity: 1; }
.scenes { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; }
.scene { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); font: 600 .95rem/1 var(--font); cursor: pointer; }
.scene[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .pano-hint, .pano-loading { transition: opacity .4s ease; }
  .scene { transition: background-color .18s ease, color .18s ease; }
}
