/* Ferienwohnung – Gäste-Webseite · Boutique / Magazin */
:root {
    --paper: #f5f0e8;
    --paper-2: #ece5d8;
    --card: #fbf8f3;
    --ink: #1f1c18;
    --ink-soft: #4d463d;
    --muted: #675e52;
    --line: #d9cfbf;
    --accent: #8a4b2a;
    --accent-ink: #fbf8f3;
    --accent-soft: #ecdccd;
    --taken: #e4dccf;
    --taken-ink: #8f8676;
    --ok: #3f6b45;
    --ok-soft: #dde8dc;
    --warn: #845511;
    --warn-soft: #f1e3c8;
    --bad: #973430;
    --bad-soft: #f2dcd8;

    --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
    --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
    --gutter: clamp(16px, 4.5vw, 96px);
    --wide: 1920px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --edge: max(var(--gutter), calc((100% - var(--wide)) / 2));
    color-scheme: light;
}

* { box-sizing: border-box; }
html { font-size: clamp(16px, .3vw + 12px, 20px); scroll-behavior: smooth; scrollbar-color: var(--line) var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id] { scroll-margin-top: 72px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    accent-color: var(--accent);
    caret-color: var(--accent);
}
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prose { white-space: pre-line; color: var(--ink-soft); max-width: 68ch; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .95rem 1.6rem; border: 1px solid transparent; border-radius: 2px;
    font: 600 .95rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); }
.btn-dark:disabled { background: var(--taken); color: var(--taken-ink); cursor: not-allowed; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: .6rem 1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
    border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover:not(:disabled) { border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Masthead ---------- */
.masthead {
    position: fixed; inset: 0 0 auto; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 1.1rem var(--edge);
    color: var(--paper);
    transition: background .35s var(--ease), color .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.masthead.solid { background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); color: var(--ink); padding-block: .75rem; box-shadow: 0 1px 0 var(--line); }
.brand { font: 400 1.5rem/1 var(--serif); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mast-nav { display: flex; align-items: center; gap: 1.8rem; font-size: .92rem; }
.mast-nav a { text-decoration: none; }
.mast-nav a:hover { text-decoration: underline; }
.mast-nav .mast-cta { padding: .55rem 1rem; border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; }
.mast-nav .mast-cta:hover { text-decoration: none; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.masthead.solid .mast-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mast-logout { font: inherit; color: inherit; background: none; cursor: pointer; }
@media (max-width: 760px) { .mast-nav a:not(.mast-cta) { display: none; } .brand { font-size: 1.25rem; } }

/* ---------- Cover ---------- */
.cover { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; color: var(--paper); background: #3a3027; }
.cover-media { position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 10%, #8a6e52, #3a3027 70%); }
.cover-media img { width: 100%; height: 100%; object-fit: cover; display: block; animation: settle 2.2s var(--ease) both; }
.cover-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 16, 12, .72) 0%, rgba(20, 16, 12, .2) 45%, rgba(20, 16, 12, .35) 100%); }
@keyframes settle { from { transform: scale(1.06); filter: saturate(.85); } to { transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .cover-media img { animation: none; } }
.cover-text { position: relative; padding: 0 var(--edge) clamp(40px, 9vh, 96px); }
.cover h1 { font-size: clamp(3rem, 7vw, 7rem); line-height: .95; max-width: 14ch; }
.cover-tagline { font: italic 400 clamp(1.25rem, 2.4vw, 1.75rem)/1.3 var(--serif); margin: 1.2rem 0 2rem; max-width: 40ch; color: #f1e9dd; }
.cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.cover-price { font-size: .95rem; color: #eadfcf; }

/* ---------- Intro ---------- */
.intro { width: min(var(--wide), 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(64px, 12vw, 140px) 0 clamp(40px, 6vw, 72px); }
.intro-lede { font: 400 clamp(1.6rem, 3.2vw, 2.6rem)/1.22 var(--serif); max-width: 30ch; margin-left: clamp(0px, 8vw, 120px); text-wrap: pretty; }
.intro-lede:empty { display: none; }
.facts { display: flex; flex-wrap: wrap; gap: 1.2rem clamp(1.5rem, 4vw, 3.5rem); margin: clamp(40px, 6vw, 72px) 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.facts dt { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .2rem 0 0; font: 400 1.5rem/1.2 var(--serif); }

/* ---------- Spread ---------- */
.spread { width: min(var(--wide), 100% - 2 * var(--gutter)); margin: 0 auto; padding-bottom: clamp(56px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.spread.no-photos { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.spread-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spread-photos:empty { display: none; }
.spread-photos button { padding: 0; border: 0; background: var(--taken); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 5; }
.spread-photos button:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.spread-photos button:only-child { aspect-ratio: 4 / 3; }
.spread-photos img, .strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spread-text { position: sticky; top: 96px; }
.spread-text .prose { font-size: 1.05rem; }
.amenities { margin-top: 2.4rem; }
.amenities h2 { font-size: 1.9rem; margin-bottom: .8rem; }
.features { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.features li { break-inside: avoid; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
@media (max-width: 900px) {
    .spread { grid-template-columns: 1fr; }
    .spread-text { position: static; }
}
@media (max-width: 480px) { .features { columns: 1; } }

/* ---------- Photo strip ---------- */
.strip-wrap { padding: 0 0 clamp(56px, 9vw, 120px); }
.strip { display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--edge) 10px; scroll-padding-inline: var(--edge); scroll-snap-type: x proximity; scrollbar-width: thin; }
.strip button { flex: 0 0 auto; height: clamp(220px, 28vw, 640px); aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--taken); overflow: hidden; cursor: zoom-in; scroll-snap-align: start; }

/* ---------- Voices ---------- */
.voices { width: min(var(--wide), 100% - 2 * var(--gutter)); margin: 0 auto; padding-bottom: clamp(56px, 9vw, 120px); }
.voices h2 { margin-bottom: clamp(24px, 4vw, 48px); }
.voices-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 4vw, 56px); }
.voices figure { margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--ink); }
.voices blockquote { margin: 0; font: italic 400 clamp(1.35rem, 2.2vw, 1.7rem)/1.3 var(--serif); }
.voices figcaption { margin-top: 1rem; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Columns (Lage / Hausregeln) ---------- */
.columns { width: min(var(--wide), 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 9vw, 120px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 6vw, 96px); }
.columns h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: 1rem; }

/* ---------- Section heads ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Booking ---------- */
.booking { background: var(--paper-2); padding: clamp(64px, 10vw, 128px) max(var(--gutter), (100% - var(--wide)) / 2); }
.booking-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 980px) { .booking-grid { grid-template-columns: 1fr; } }
.cal-panel, .request, .login, .status-card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: clamp(18px, 3vw, 32px); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.cal-hint { font-size: .92rem; color: var(--ink-soft); text-align: center; }
.cal-months { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 600px) { .cal-months { grid-template-columns: 1fr; } .cal-month + .cal-month { display: none; } }
.cal-month h3 { font-size: 1.45rem; text-align: center; margin-bottom: .8rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wd { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: 6px; }
.cal-day { aspect-ratio: 1; border: 0; border-radius: 2px; background: transparent; color: var(--ink); font: 500 .92rem var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; position: relative; transition: background .15s var(--ease); }
.cal-day:hover:not(:disabled) { background: var(--accent-soft); }
.cal-day:disabled { cursor: default; }
.cal-day.past { color: var(--taken-ink); opacity: .6; }
.cal-day.taken { background: var(--taken); color: var(--taken-ink); text-decoration: line-through; }
.cal-day.checkout-only { background: linear-gradient(135deg, transparent 50%, var(--taken) 50%); }
.cal-day.in-range { background: var(--accent-soft); }
.cal-grid .cal-day.sel-start, .cal-grid .cal-day.sel-end { background: var(--accent); color: var(--accent-ink); }
.cal-day.today::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-blank { aspect-ratio: 1; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.2rem; font-size: .84rem; color: var(--muted); }
.lg { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--line); background: var(--card); }
.lg.taken { background: var(--taken); }
.lg.sel { background: var(--accent); border-color: var(--accent); }

/* ---------- Forms ---------- */
form label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 1rem; color: var(--ink); }
form label small { font-weight: 400; color: var(--muted); margin-left: .25rem; }
form label > input, form label > select, form label > textarea { display: block; margin-top: .4rem; }
input, select, textarea {
    width: 100%; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 2px;
    background: #fff; color: var(--ink); font: 400 1rem var(--sans);
    transition: border-color .15s var(--ease);
}
input::placeholder, textarea::placeholder { color: #8a8070; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }
.check { display: flex !important; align-items: flex-start; gap: .65rem; font-weight: 400 !important; color: var(--ink-soft) !important; }
.check input { width: auto; margin-top: .3rem; }
.hp { position: absolute !important; left: -9999px; }
.fine { font-size: .82rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }
.form-error { background: var(--bad-soft); color: var(--bad); padding: .75rem .9rem; border-radius: 2px; margin-bottom: 1rem; font-size: .92rem; }
.sel-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 1.2rem; border-block: 1px solid var(--line); }
.sel-summary div { padding: .8rem 0; }
.sel-summary div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.sel-summary span { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sel-summary strong { font: 400 1.35rem/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.quote { background: var(--paper); padding: 1rem 1.1rem; margin-bottom: 1.2rem; font-size: .95rem; font-variant-numeric: tabular-nums; }
.quote .q-row { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; }
.quote .q-total { font-weight: 600; border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .55rem; }
.quote.q-error { background: var(--bad-soft); color: var(--bad); }
.quote .q-voucher { color: var(--ok, #2f6b4f); }
.voucher-msg { margin: -.6rem 0 1rem; font-size: .88rem; color: var(--ok, #2f6b4f); }
.voucher-msg.bad { color: var(--bad); }

/* ---------- Meine Buchung (eigene Seite) ---------- */
.account { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; }
.account-media { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 20% 10%, #8a6e52, #3a3027 70%); }
.account-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: settle 2.2s var(--ease) both; }
.account-panel { display: flex; flex-direction: column; justify-content: center; padding: calc(96px + 2rem) clamp(24px, 6vw, 120px) clamp(48px, 8vw, 96px); }
.account-panel h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); margin-bottom: 1.2rem; }
.account-panel #login-box { width: min(100%, 520px); }
.account-help { margin-top: 1.4rem; font-size: .92rem; color: var(--ink-soft); }
body.signed-in .account { grid-template-columns: minmax(0, 1fr); min-height: 0; }
body.signed-in .account-media { height: clamp(180px, 30vh, 340px); }
body.signed-in .account-panel { width: min(1080px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 10vw, 128px); }
@media (max-width: 860px) {
    .account { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .account-media { height: clamp(180px, 34vh, 300px); }
    .account-panel { padding: clamp(32px, 6vw, 48px) var(--gutter) clamp(56px, 10vw, 96px); }
}
@media (prefers-reduced-motion: reduce) { .account-media img { animation: none; } }
.guest-lead { color: var(--ink-soft); max-width: 62ch; margin-bottom: 1.6rem; }
.login { max-width: 600px; }
.status-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.status-head h3 { font-size: 2rem; }
.badge { display: inline-block; padding: .3rem .75rem; border-radius: 2px; font-size: .8rem; font-weight: 600; letter-spacing: .03em; }
.badge.pending { background: var(--warn-soft); color: var(--warn); }
.badge.confirmed { background: var(--ok-soft); color: var(--ok); }
.badge.declined, .badge.cancelled, .badge.gone { background: var(--bad-soft); color: var(--bad); }
.stay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 1.2rem 0; border-top: 1px solid var(--line); }
.stay-grid div { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.stay-grid span { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stay-grid strong { font: 400 1.3rem/1.25 var(--serif); }
.info-block { padding-top: 1.3rem; margin-top: 1.3rem; border-top: 1px solid var(--line); }
.info-block h4 { margin: 0 0 .5rem; font: 400 1.4rem/1.2 var(--serif); }
.pin { font: 400 3rem/1 var(--serif); letter-spacing: .12em; color: var(--accent); font-variant-numeric: tabular-nums; }
.note { background: var(--paper); padding: .85rem 1rem; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--accent-soft); padding: 1rem 1.2rem; margin-bottom: 1.4rem; }
.code-box strong { font: 400 1.8rem/1.1 var(--serif); letter-spacing: .04em; }
.guest-actions { display: flex; justify-content: flex-end; margin-top: 1.4rem; }
.saved { color: var(--ok); font-size: .9rem; margin-left: .8rem; }

/* ---------- Gallery actions ---------- */
.spread-media { min-width: 0; }
.gallery-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 14px; }
.gallery-actions .btn svg { width: 16px; height: 16px; }

/* ---------- Reviews ---------- */
.voices-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(28px, 4vw, 56px); }
.voices .voices-head h2 { margin: 0; }
.scores { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px); }
.scores:empty { display: none; }
.score { display: grid; justify-items: start; gap: .15rem; min-width: 150px; padding-left: 1rem; border-left: 1px solid var(--ink); text-decoration: none; color: inherit; }
a.score:hover .score-count { text-decoration: underline; }
.score-platform { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.score-num { font: 400 clamp(2.4rem, 4vw, 3.2rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.score-num small { font-size: .45em; color: var(--muted); margin-left: .1em; }
.score-count { font-size: .85rem; color: var(--ink-soft); }
.stars { display: inline-block; font-size: 1.05rem; line-height: 1; letter-spacing: .12em; }
.stars::before { content: '\2605\2605\2605\2605\2605'; font-family: 'Segoe UI Symbol', 'Apple Symbols', 'DejaVu Sans', sans-serif; background: linear-gradient(90deg, var(--accent) var(--fill), var(--line) var(--fill)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.voice-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.voice-src { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.voices-more { margin-top: clamp(24px, 3vw, 40px); }

/* ---------- Lage & Umgebung ---------- */
.place { width: min(var(--wide), 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 9vw, 120px); border-top: 1px solid var(--line); }
.place .section-head .prose { white-space: pre-line; }
.place h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: .8rem; }
.place-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.place-grid.no-map { grid-template-columns: minmax(0, 1fr); }
.place-grid.no-map .place-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 5vw, 80px); }
@media (max-width: 900px) { .place-grid { grid-template-columns: minmax(0, 1fr); } }
.map { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; }
@media (max-width: 600px) { .map { aspect-ratio: 1; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: clamp(20px, 5vw, 56px); text-align: center; background: color-mix(in srgb, var(--paper-2) 82%, transparent); }
.map-consent svg { width: 36px; height: 36px; color: var(--accent); }
.map-consent p { margin: 0; max-width: 42ch; font-size: .92rem; color: var(--ink-soft); }
.place-side > div + div { margin-top: 2.2rem; }
.place-address { font: 400 1.5rem/1.3 var(--serif); white-space: pre-line; margin-bottom: 1rem; }
.place-side .btn-arrow svg { width: 16px; height: 16px; }
.tips { margin-top: clamp(48px, 7vw, 88px); }
.tips-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); column-gap: clamp(24px, 4vw, 56px); counter-reset: tip; }
.tips-list li { counter-increment: tip; padding: 1.3rem 0 1.4rem; border-top: 1px solid var(--ink); min-width: 0; }
.tip-head { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.tip-head h4 { margin: 0; font: 400 1.45rem/1.2 var(--serif); }
.tip-head h4::before { content: counter(tip, decimal-leading-zero); font: 500 .74rem var(--sans); letter-spacing: .08em; color: var(--accent); margin-right: .6rem; vertical-align: .35em; }
.tip-dist { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tips-list p { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.tip-link { display: inline-block; margin-top: .6rem; font-size: .9rem; color: var(--accent); }

/* ---------- Colophon ---------- */
.colophon { background: var(--ink); color: #d8cfc1; padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.colophon-inner { width: min(var(--wide), 100% - 2 * var(--gutter)); margin: 0 auto; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.colophon-title { font: 400 clamp(2rem, 4vw, 3rem)/1 var(--serif); color: var(--paper); margin-bottom: .8rem; }
.colophon nav { display: flex; gap: 1.6rem; font-size: .92rem; }
.colophon ::selection { background: var(--paper); color: var(--ink); }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(20, 16, 12, .78); }
dialog[open] { animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.sheet { width: min(760px, 100% - 32px); max-height: 86vh; background: var(--card); padding: clamp(24px, 4vw, 48px); border-radius: 4px; }
.sheet h2 { font-size: 2.4rem; margin-bottom: 1.2rem; padding-right: 3rem; }
.sheet-close { position: absolute; top: 16px; right: 16px; }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(20, 16, 12, .94); color: var(--paper); display: none; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(20, 16, 12, .94); }
.lightbox .icon-btn { color: var(--paper); border-color: rgba(245, 240, 232, .35); background: rgba(20, 16, 12, .45); }
.lightbox .icon-btn:hover:not(:disabled) { border-color: var(--paper); }
.lb-bar { grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 12px 16px; }
.lb-tools { display: flex; gap: 8px; }
.lb-count { color: #d8cfc1; font-size: .85rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.lb-stage { grid-row: 2; display: grid; place-items: center; overflow: hidden; padding: 0 clamp(8px, 6vw, 88px); touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.lightbox.plan .lb-stage img { background: #fff; padding: clamp(8px, 2vw, 24px); }
.lightbox.zoomed .lb-stage { overflow: auto; place-items: start; touch-action: auto; padding: 0; }
.lightbox.zoomed .lb-stage img { max-width: none; max-height: none; width: max(200%, 100vw); height: auto; cursor: zoom-out; margin: auto; }
.lightbox.zoomed .lb-prev, .lightbox.zoomed .lb-next, .lightbox.zoomed .lb-thumbs { display: none; }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-thumbs { grid-row: 3; display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px 14px; justify-content: safe center; scrollbar-width: none; }
.lb-thumbs:empty { display: none; }
.lb-thumbs button { flex: 0 0 auto; width: 72px; aspect-ratio: 4 / 3; padding: 0; border: 0; background: #3a3027; opacity: .45; cursor: pointer; transition: opacity .2s var(--ease); outline-offset: 2px; }
.lb-thumbs button:hover, .lb-thumbs button.active { opacity: 1; }
.lb-thumbs button.active { outline: 2px solid var(--paper); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 600px) {
    .lb-prev, .lb-next { display: none; }   /* swipe instead */
    .lb-stage { padding: 0; }
    .lb-thumbs button { width: 56px; }
}

/* ---------- Motion ----------
   Quiet, print-like movement: photos open like a curtain when they first scroll in,
   the cover drifts a little slower than the page, links draw their underline.
   Everything is visible without JS; reduced motion turns it all off. */
.mast-nav a:not(.mast-cta), .colophon a, .prose a, .guest-lead a {
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
    transition: background-size .45s var(--ease);
    padding-bottom: 2px;
}
.mast-nav a:not(.mast-cta):hover, .colophon a:hover, .prose a:hover, .guest-lead a:hover { background-size: 100% 1px; text-decoration: none; }

.btn-arrow svg { width: 18px; height: 18px; transition: translate .35s var(--ease); }
.btn-arrow:hover svg { translate: 4px 0; }

.cover-media { will-change: transform; }

.reveal { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease); }
.reveal img { transition: transform 1.4s var(--ease), scale .8s var(--ease); }
.reveal.pending { clip-path: inset(0 0 100% 0); }
.reveal.pending img { transform: scale(1.08); }
.spread-photos button:hover img, .strip button:hover img { transform: none; scale: 1.025; }

.quote { transition: background .3s var(--ease); }
.quote.q-in { animation: soft-in .45s var(--ease); }
@keyframes soft-in { from { opacity: .3; } }

#lightbox-img { transition: opacity .25s var(--ease), translate .2s var(--ease); }
#lightbox-img.swap { opacity: 0; }

.status-card { animation: soft-in .5s var(--ease); }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal img, .btn-arrow svg, #lightbox-img { transition: none; }
    .reveal.pending { clip-path: none; }
    .reveal.pending img { transform: none; }
    .quote.q-in, .status-card, dialog[open] { animation: none; }
}
.account .login { background: none; border: 0; padding: 0; max-width: none; }
.account-help a, .text-link { text-decoration: none; color: inherit; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; padding-bottom: 2px; transition: background-size .45s var(--ease); }
.account-help a:hover, .text-link:hover { background-size: 0 1px; }

/* ---------- Guest folder ---------- */
.guide { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--ink); }
.guide-head { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem 1.2rem; flex-wrap: wrap; margin-bottom: .4rem; }
.guide-head h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.guide-head p { color: var(--muted); margin: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.guide-item { padding: 1.3rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.guide-item h4 { margin: 0 0 .55rem; font: 400 1.4rem/1.2 var(--serif); }
.guide-item .prose { overflow-wrap: anywhere; }
.guide-item .text-link { display: inline-block; margin-top: .6rem; font-size: .92rem; }
.guide-pin { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: clamp(20px, 4vw, 48px); }
.guide-pin h4 { grid-column: 1 / -1; }
.guide-pin p { margin: 0; color: var(--ink-soft); }
.guide-fine { font-size: .88rem; max-width: 46ch; }
@media (max-width: 560px) { .guide-pin { grid-template-columns: 1fr; row-gap: .8rem; } }
.guide-dl { margin: 0 0 .6rem; }
.guide-dl div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; padding: .25rem 0; }
.guide-dl dt { flex: 0 0 6.5rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.guide-dl dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; overflow-wrap: anywhere; }
.mono-ish { font-variant-numeric: tabular-nums; letter-spacing: .03em; font-weight: 500; }
.copy-btn { display: inline-flex; align-items: center; gap: .35rem; font: 500 .8rem/1 var(--sans); color: var(--accent); background: none; border: 1px solid var(--line); border-radius: 2px; padding: .35rem .55rem; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.copy-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.copy-btn:hover { border-color: var(--accent); }
.copy-btn.done { background: var(--accent-soft); border-color: var(--accent-soft); }
.invoice-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.invoice-row p { margin: 0; color: var(--ink-soft); }
.invoice-action { display: grid; justify-items: end; gap: .5rem; }
.invoice-action .btn[disabled] { opacity: .6; cursor: progress; }
.invoice-form { margin-top: 1.1rem; }
.link-btn { background: none; border: 0; padding: 0; margin-top: .9rem; font: 400 .9rem var(--sans); color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--accent); }
.invoice-sum { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .8rem 0; margin: .4rem 0 1.1rem; font-size: .95rem; }
.invoice-sum > div { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; color: var(--ink-soft); }
.invoice-sum .invoice-total { color: var(--ink); font-weight: 600; padding-top: .5rem; }
.invoice-sum p { margin: .4rem 0 0; font-size: .86rem; color: var(--muted); }
.invoice-form .btn[disabled] { opacity: .6; cursor: progress; }

/* WhatsApp chat with the host (guest-chat.js) */
.wa-btn {
    display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem;
    padding: .6rem 1rem; border-radius: 999px; background: #1f8f4e; color: #fff;
    font-weight: 600; text-decoration: none; font-size: .95rem;
}
.wa-btn:hover { background: #18773f; }
.wa-btn svg, .wa-fab svg { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.wa-note { margin: .4rem 0 0; color: var(--ink-soft); font-size: .9rem; }
.wa-fab {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1rem;
    border-radius: 999px; background: #1f8f4e; color: #fff; text-decoration: none; font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.wa-fab:hover { background: #18773f; }
@media (max-width: 560px) { .wa-fab span { display: none; } .wa-fab { padding: .8rem; } }
@media print { .wa-fab { display: none; } }
