/* Casa Milu – "Warm Hearth". Tokens first; edit colours here only. */
:root {
  --bg: #fbf6ee;
  --text: #3a2f27;
  --muted: #6b5d50;
  --accent: #c0673e;        /* decorative: icons, handwriting */
  --accent-strong: #a9542f; /* buttons, links (AA contrast) */
  --accent-hover: #8f4526;
  --tile: #f3e6d6;
  --card: #fff;
  --line: #efe2d1;
  --field: #d9c7b1;
  --water: #a8c9d6;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1100px;
  --font-head: var(--font-body);
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding-top: clamp(48px, 8vw, 96px); }
main > :last-child { padding-bottom: clamp(48px, 8vw, 96px); }
.page-head { padding-top: clamp(32px, 6vw, 64px); }
.page-head + .section { padding-top: 24px; }
.prose > * { max-width: 46em; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.cols > h2:first-child { margin-top: 0; }
@media (min-width: 900px) { .cols { columns: 2; column-gap: 48px; } .cols > h2 { break-after: avoid; } .cols > p, .cols > ul { break-inside: avoid; } }
.split { display: grid; gap: 16px; align-items: start; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }

.hand { font-family: var(--font-hand); font-size: 1.75rem; line-height: 1.2; color: var(--accent); margin: 0 0 .25em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.plain { list-style: none; padding: 0; margin: 0 0 1em; }
.plain li { margin: .25em 0; }

.btn { display: inline-block; text-align: center; background: var(--accent-strong); color: #fff; padding: .8em 1.5em; border: 0; border-radius: 99px; font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent-strong); box-shadow: inset 0 0 0 2px var(--accent-strong); }
.btn-ghost:hover { background: var(--tile); color: var(--accent-hover); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .actions .btn, form.request .btn { width: 100%; } }

/* Header */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 20; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 4px 16px -8px rgb(58 47 39 / .18); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--text); text-decoration: none; margin: 0 auto 0 0; }
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-desktop a, .nav-mobile a { color: var(--text); text-decoration: none; font-weight: 600; }
.nav-desktop a[aria-current], .nav-mobile a[aria-current] { color: var(--accent-strong); }
.lang { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--tile); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.lang > * { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 99px; }
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang [aria-current] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgb(58 47 39 / .15); }
.header-cta { display: none; }
.nav-mobile summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: var(--radius-sm); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--tile); }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, background-color .2s; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-mobile[open] .burger::after { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile ul { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgb(58 47 39 / .25); list-style: none; margin: 0; padding: 4px 16px 20px; }
.nav-mobile li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.nav-mobile li .btn { display: block; margin-top: 16px; color: #fff; }
@media (min-width: 960px) {
  .nav-desktop { display: block; }
  .nav-mobile { display: none; }
  .header-cta { display: inline-block; padding: .55em 1.1em; }
}

/* Home */
.hero { padding-top: 16px; }
.hero-img { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.page-head .hero-img { margin-top: 24px; }
.hero-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 600px) { .hero-img img { aspect-ratio: 3 / 4; } }
/* Home on phones: only the house front, full width. Chrome still fetches the hidden view photo,
   so home.njk gives it sizes="1px" there: the smallest variant, at low priority (lazy). */
@media (max-width: 600px) { .hero .hero-img > :first-child { display: none; } .hero .hero-img img { aspect-ratio: 4 / 3; } }
.hero-text { padding-top: 32px; max-width: 46em; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; margin: 32px 0 0; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(6, 1fr); } }
.features li { background: var(--tile); border-radius: var(--radius-sm); padding: 16px 12px; text-align: center; font-size: .9rem; color: var(--muted); }
.features .icon { margin: 0 auto 6px; }
.features strong { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--text); }
.icon { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cards { display: grid; gap: 16px; }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .icon { margin-bottom: 8px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.5em; margin: .35em 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-strong); font-weight: 700; }
.prose > .activities { max-width: none; margin: 24px 0 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.prose > .location { max-width: none; }
.location { margin: 24px 0 8px; }
.location-map { width: 100%; height: auto; font-family: var(--font-body); }
.map-bg { fill: var(--tile); }
.map-river, .map-street, .map-main, .map-rail, .map-rail-ties, .map-lift, .map-lift-dots { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-river { stroke: var(--water); stroke-width: 5; }
.map-street { stroke: var(--card); stroke-width: 2.5; }
.map-main { stroke: var(--card); stroke-width: 5; }
.map-rail { stroke: var(--muted); stroke-width: 3; stroke-linecap: butt; }
.map-rail-ties { stroke: var(--tile); stroke-width: 1.5; stroke-dasharray: 5 5; stroke-linecap: butt; }
.map-lift { stroke: var(--text); stroke-width: 1.2; }
.map-lift-dots { stroke: var(--text); stroke-width: 4.5; stroke-dasharray: 0 14; }
.map-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 6px; font-size: .75rem; color: var(--muted); }
.map-legend { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.map-legend svg { width: 28px; height: 10px; }
.map-credit { margin: 0 0 0 auto; }
.map-pin .pin-body circle { fill: var(--card); stroke: var(--accent-strong); stroke-width: 2.5; }
.map-pin text { fill: var(--text); font-size: 14px; font-weight: 700; text-anchor: middle; }
.map-home .pin-body circle { fill: var(--accent-strong); }
.pin-body { transition: transform .15s ease-out; }
.highlight .pin-body { transform: scale(1.3); }
.map-pin.highlight .pin-body circle { fill: var(--accent-strong); }
.map-pin.highlight text { fill: #fff; }
.map-wrap { position: relative; }
.pin-hit { fill: transparent; }
.map-pin, .map-home { cursor: pointer; }
.map-tip { position: absolute; z-index: 1; display: flex; gap: 10px; width: max-content; max-width: 260px; padding: 10px 14px 10px 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 10px 24px -10px rgb(58 47 39 / .4); pointer-events: none; }
.map-tip[hidden] { display: none; }
.map-home.highlight .pin-body circle { stroke: var(--card); stroke-width: 3; }
.map-home path { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.map-label { fill: var(--text); font-size: 15px; font-weight: 700; }
.map-scale path, .map-north path { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.map-north path { fill: var(--muted); }
.map-scale text, .map-north text { fill: var(--muted); font-size: 12px; text-anchor: middle; }
.map-scale text { text-anchor: start; }
.location-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px 24px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.location-list li { display: flex; gap: 12px; align-items: flex-start; margin: -6px; padding: 6px; border-radius: var(--radius-sm); }
.location-list li.highlight { background: var(--tile); }
:is(.location-list, .map-tip) .num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2.5px var(--accent-strong); font-weight: 700; font-size: .9rem; }
:is(.location-list, .map-tip) .home .num, .map-tip.home .num { background: var(--accent-strong); box-shadow: none; }
:is(.location-list, .map-tip) .home .icon, .map-tip.home .icon { width: 18px; height: 18px; stroke: #fff; }
:is(.location-list, .map-tip) :is(strong, .muted) { display: block; line-height: 1.35; }
:is(.location-list, .map-tip) .muted { font-size: .9rem; }
.times { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; }
.times > span { display: inline-flex; align-items: center; gap: 4px; }
.times .icon { width: 18px; height: 18px; }
.activities figure { margin: -24px -24px 16px; position: relative; }
.activities img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.activities figcaption { position: absolute; right: 8px; bottom: 6px; font-size: .7rem; color: #fff; text-shadow: 0 1px 2px #000; }
/* Getting there: each route drawn like the location map – rail with ties, white road, home pin */
.prose > .arrival { max-width: none; }
.arrival { display: grid; gap: 16px; margin: 24px 0 8px; }
@media (min-width: 800px) { .arrival { grid-template-columns: 1fr 1fr; } .arrival-address { grid-column: 1 / -1; } }
.route { background: var(--tile); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.route h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.stops { list-style: none; margin: 0; padding: 0; }
.stops li { position: relative; padding: 0 0 22px 40px; line-height: 1.4; }
.stops li:last-child { padding-bottom: 0; }
.stops li::before { content: ""; position: absolute; z-index: 1; left: 5px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2.5px var(--accent-strong); }
.stops li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 12px; bottom: -12px; width: 6px; }
.route-train li::after { background: repeating-linear-gradient(var(--muted) 0 5px, var(--tile) 5px 7px) center / 3px 100% no-repeat, repeating-linear-gradient(var(--muted) 0 1.5px, transparent 1.5px 7px); }
.route-car li::after { background: var(--card); border-radius: 3px; }
.stops strong, .stops span { display: block; }
.stops span { color: var(--muted); font-size: .95rem; }
.stops .home::before { left: 0; top: -3px; width: 28px; height: 28px; background: var(--accent-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M15 21v-8H9v8M3 10l9-7 9 7v11H3z'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: none; }
.arrival-address { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.arrival-address > span { flex: 1 1 14em; }
.arrival-address strong { display: block; }
@media (max-width: 480px) { .arrival-address .btn { width: 100%; } }
.price-card { align-self: stretch; display: flex; flex-direction: column; }
.seasons { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.seasons > div + div { border-left: 1px solid var(--line); padding-left: clamp(16px, 4vw, 32px); }
.seasons dt { font-weight: 700; }
.seasons dd { margin: 0; font: 400 clamp(2.25rem, 6vw, 3rem)/1.1 var(--font-head); font-variant-numeric: lining-nums tabular-nums; }
.seasons small { font-size: .4em; font-weight: 700; letter-spacing: .04em; color: var(--muted); vertical-align: .9em; margin-right: .4em; }
.price-card + .host { align-self: stretch; }
.price-link { margin: auto 0 0; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.host { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.host picture { flex: none; }
@media (max-width: 600px) { .host { flex-direction: column; align-items: center; } }
.avatar { width: 128px; height: 128px; max-width: none; border-radius: 50%; object-fit: cover; }
.cta-band { background: var(--tile); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); text-align: center; }
.cta-band p { max-width: 36em; margin-inline: auto; }

/* Prices, calendar, form */
table.prices { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius-sm); overflow: hidden; margin: 0 0 1em; }
.prices th, .prices td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices .num { text-align: right; font-weight: 700; white-space: nowrap; }
table.prices ~ h2 { margin-top: 1.6em; }
/* The cross-origin calendar can't report its height, so it is set per column count.
   Measured for 14 months (+16px buffer); re-measure if the month count changes. */
.calendar { container-type: inline-size; }
.calendar iframe { display: block; width: 100%; height: 2602px; border: 0; border-radius: var(--radius-sm); background: var(--card); }
@container (min-width: 348px) { .calendar iframe { height: 1363px; } }
@container (min-width: 506px) { .calendar iframe { height: 1009px; } }
@container (min-width: 664px) { .calendar iframe { height: 832px; } }
@container (min-width: 822px) { .calendar iframe { height: 655px; } }
form.request { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); max-width: 760px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
form.request label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
form.request input, form.request textarea { font: inherit; font-weight: 400; padding: .7em .8em; border: 1px solid var(--field); border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; padding: .8em 1em; border-radius: 10px; background: var(--tile); font-weight: 700; }
.form-status.error { background: #fbe3dc; color: var(--accent-hover); }

/* FAQ, contact */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: .75em 0 0; }
.contact-card p { display: flex; gap: 12px; align-items: flex-start; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; padding: 40px 0; color: var(--muted); font-size: .95rem; }
.site-footer a { color: var(--muted); }
.site-footer .plain a { display: inline-block; padding: 4px 0; }
.site-footer .lang { margin-bottom: 12px; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); }
dialog.lightbox::backdrop { background: rgb(30 22 16 / .85); }
dialog.lightbox img { max-height: 90vh; width: auto; border-radius: var(--radius-sm); cursor: zoom-out; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .85); color: #1e1610; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-nav:hover, .lb-nav:focus-visible { background: #fff; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
dialog.lightbox.single .lb-nav { display: none; }

/* Reviews: printed testimonials plus a ruled guest-book page for the short entries */
.reviews-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 24px; }
.reviews-head h2 { margin: 0; }
.rating { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: var(--accent); }
.reviews-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .reviews-grid { grid-template-columns: 7fr 5fr; } .review-featured { grid-row: span 2; } }
.review { margin: 0; display: flex; flex-direction: column; gap: 14px; border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; max-width: 38em; text-wrap: pretty; }
.review figcaption { font-weight: 700; margin-top: auto; }
.review figcaption span { font-weight: 400; color: var(--muted); }
.review-card { background: var(--card); border: 1px solid var(--line); }
.review-featured { background: var(--tile); position: relative; padding-top: 92px; }
.review-featured::before { content: open-quote; position: absolute; top: 14px; left: clamp(20px, 2.5vw, 28px); font: 700 5rem/1 Georgia, serif; color: var(--accent); }
.review-featured blockquote p { font-size: 1.15rem; line-height: 1.7; }
@media (min-width: 1000px) { .review-featured blockquote p { font-size: 1.45rem; line-height: 1.6; } }
:lang(de) { quotes: "«" "»" "‹" "›"; }
:lang(en) { quotes: "“" "”" "‘" "’"; }
.guestbook { --rule: 44px; background: var(--card) repeating-linear-gradient(transparent 0 calc(var(--rule) - 9px), var(--line) calc(var(--rule) - 9px) calc(var(--rule) - 8px), transparent calc(var(--rule) - 8px) var(--rule)); background-origin: content-box; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px clamp(24px, 3vw, 32px); }
.guestbook .review { padding: 0; gap: 0; border-radius: 0; }
.guestbook .stars { height: var(--rule); align-items: center; }
.guestbook blockquote p { font: 600 1.7rem/var(--rule) var(--font-hand); color: var(--text); }
.guestbook figcaption { font: 600 1.35rem/var(--rule) var(--font-hand); color: var(--accent-strong); align-self: flex-end; }
.guestbook figcaption span { font: 400 .85rem var(--font-body); }
