/* Stayvoya 11.18 design system – host dashboard, account pages and guest guide.
   Fonts: Newsreader (display) and Inter (interface), SIL OFL 1.1 – see /assets/fonts. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "SV Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/Newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "SV Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/Newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "SV Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/Newsreader-Italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "SV Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/Newsreader-Italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "SV Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/Inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "SV Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/Inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --font-sans: "SV Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Arial, sans-serif;
  --font-serif: "SV Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --ink: #18221e;
  --ink-2: #414c47;
  --muted: #6b7570;
  --faint: #949c97;
  --bg: #f4f2ed;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f9f8f5;
  --line: #e6e2da;
  --line-strong: #d5cfc4;

  --brand: #1f4a3d;
  --brand-ink: #15382d;
  --brand-soft: #e6eee9;
  --brand-softer: #f1f5f2;
  --accent: #9c7448;
  --accent-soft: #f4ece1;

  --ok: #24654a;
  --ok-soft: #e6f2eb;
  --warn: #855716;
  --warn-soft: #faf1e1;
  --danger: #a3392d;
  --danger-soft: #fbedeb;

  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(24, 34, 30, 0.06);
  --shadow: 0 1px 2px rgba(24, 34, 30, 0.05),
    0 12px 32px -18px rgba(24, 34, 30, 0.18);
  --shadow-lg: 0 30px 70px -24px rgba(24, 34, 30, 0.35);
  --shadow-card: 0 1px 2px rgba(24, 34, 30, 0.04),
    0 8px 30px rgba(24, 34, 30, 0.05);
  --focus: 0 0 0 3px rgba(31, 74, 61, 0.18);
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-card: 22px;
  --top-h: 64px;
  --guest-w: 1160px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--font-sans);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
img,
video {
  max-width: 100%;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
::selection {
  background: #cfe0d6;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  display: block;
  font: 600 11.5px/1.3 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.light {
  color: rgba(255, 255, 255, 0.82);
}
.legacy-row-source {
  display: none !important;
}
/* Local-demo hints (demo account, emails in the server window) are only shown
   when the server marks the page as local; production never shows them. */
[data-local-only] {
  display: none;
}
body[data-mode="local"] [data-local-only] {
  display: block;
}

/* ---------- Brand and top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--top-h);
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink);
}
.sv-mark {
  display: block;
  width: 30px;
  height: 30px;
}
.sv-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.sv-word {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variation-settings: "opsz" 36;
}
.headlinks {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  min-width: 0;
}
.minilabel {
  display: none;
}
.ghostlink,
.textbutton {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink-2);
  font: 500 13.5px/1 var(--font-sans);
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}
.ghostlink:hover,
.textbutton:hover {
  background: var(--surface-2);
  color: var(--ink);
}
#ownerAccountEmail {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  line-height: 34px;
}
.host-lang-switch {
  display: inline-flex;
  padding: 3px;
  margin-right: 8px;
  border-radius: 9px;
  background: #efece6;
}
.host-lang-switch button {
  height: 28px;
  min-width: 36px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.04em;
}
.host-lang-switch button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: 600 14px/1.2 var(--font-sans);
  letter-spacing: -0.005em;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
.button.dark {
  background: var(--brand);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 2px rgba(15, 40, 31, 0.3);
}
.button.dark:hover {
  background: var(--brand-ink);
}
.button.light {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.button.light:hover {
  background: #dae6df;
}
.button.outline {
  border-color: var(--line-strong);
  background: var(--surface);
}
.button.outline:hover {
  border-color: #bdb6a9;
  background: var(--surface-2);
}
.button.full {
  width: 100%;
}
.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.button span {
  font-weight: 500;
}
.mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-2);
  font: 600 12.5px/1 var(--font-sans);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.mini:hover {
  background: var(--surface-2);
  border-color: #bdb6a9;
}
.mini.danger {
  color: var(--danger);
}
.mini.danger:hover {
  background: var(--danger-soft);
  border-color: #ecc7c1;
}
.upload-button,
.tutorial-inline-upload,
.arrival-upload,
.easy-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--brand);
  font: 600 13.5px/1.2 var(--font-sans);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.upload-button:hover,
.tutorial-inline-upload:hover,
.arrival-upload:hover,
.easy-add:hover {
  border-color: var(--brand);
  background: var(--brand-softer);
}
.easy-add {
  width: 100%;
  min-height: 46px;
}

/* ---------- Forms ---------- */
label {
  display: block;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background-color: var(--surface);
  color: var(--ink);
  font: 400 14.5px/1.45 var(--font-sans);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
textarea {
  min-height: 92px;
  resize: vertical;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #c2bbae;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus);
}
input[readonly] {
  background: var(--surface-2);
  color: var(--ink-2);
}
input:disabled,
select:disabled,
textarea:disabled {
  background: var(--surface-2);
  color: var(--faint);
  cursor: not-allowed;
}
::placeholder {
  color: #a5aba7;
  opacity: 1;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236b7570' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.span2 {
  grid-column: 1 / -1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field > label,
.easy-row-fields label > span,
.pair-fields label > span {
  font: 500 13px/1.4 var(--font-sans);
  color: var(--ink);
}
.field > label small {
  font-weight: 400;
  color: var(--muted);
}
.field small,
.fields > .field-note,
.form-hint {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.fields > .field-note {
  grid-column: 1 / -1;
  margin-top: -6px;
}

/* ---------- Notices, toast, chips ---------- */
.notice {
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.5;
}
.notice.error {
  background: var(--danger-soft);
  border-color: #f0cec8;
  color: #7f2a20;
}
.notice.success {
  background: var(--ok-soft);
  border-color: #cbe3d5;
  color: #1c4f39;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font: 600 11.5px/1 var(--font-sans);
  text-transform: capitalize;
}
.chip.wait {
  background: var(--warn-soft);
  color: var(--warn);
}
.chip.expired,
.chip.cancelled {
  background: #efede8;
  color: var(--muted);
}
.chip.revoked {
  background: var(--danger-soft);
  color: var(--danger);
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-softer);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 500;
}
.status-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* =====================================================================
   Host dashboard
   ===================================================================== */
.workspace-tabs {
  display: flex;
  gap: 2px;
  margin-left: 8px;
}
/* With personal links switched off there is only one workspace: no tabs. */
.workspace-tabs:has(#navBookings[hidden]) {
  display: none;
}
.workspace-tabs button {
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: 500 14px/1 var(--font-sans);
}
.workspace-tabs button:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.workspace-tabs button.side-active {
  background: var(--brand-softer);
  color: var(--brand-ink);
}
.host-layout {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 32px 72px;
}
.property-columns {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* Apartment list */
.property-picker {
  position: sticky;
  top: calc(var(--top-h) + 24px);
}
.picker-head h2 {
  margin: 4px 10px 12px;
  font: 600 11.5px/1.3 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.property-list {
  display: grid;
  gap: 4px;
}
.property-list-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: none;
  color: var(--ink);
  text-align: left;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.property-list-item:hover {
  background: rgba(255, 255, 255, 0.65);
}
.property-list-item.selected {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.pli-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #e8e4dc;
  color: var(--ink-2);
  font: 500 17px/1 var(--font-serif);
}
.property-list-item.selected .pli-mark {
  background: var(--brand);
  color: #fff;
}
.pli-text {
  min-width: 0;
}
.property-list-item b,
.property-list-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.property-list-item b {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.property-list-item small {
  margin-top: 1px;
  font-size: 12.5px;
  color: var(--muted);
}
.picker-add {
  width: 100%;
  margin-top: 10px;
  border: 1px dashed var(--line-strong);
  background: none;
  color: var(--ink-2);
  font-weight: 500;
}
.picker-add:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(255, 255, 255, 0.6);
}

/* Editor card */
.property-editor {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.editor-head {
  position: sticky;
  top: var(--top-h);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.editor-head-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
}
.editor-head-text p {
  flex-basis: 100%;
}
.editor-head h2 {
  overflow: hidden;
  font: 600 19px/1.25 var(--font-sans);
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editor-head p {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
.editor-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.save-state {
  max-width: 360px;
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
  color: var(--muted);
}
.save-state:empty {
  display: none;
}
.property-editor:has(#propertyForm[hidden]) #saveProperty {
  display: none;
}

/* Steps */
.editor-wizard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--top-h) + 72px);
}
.editor-steps {
  display: flex;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
  margin: 0 -10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.editor-steps::-webkit-scrollbar {
  display: none;
}
.editor-step {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 9px;
  padding: 16px 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: 500 13.5px/1.2 var(--font-sans);
  white-space: nowrap;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.editor-step:hover {
  color: var(--ink);
}
.editor-step-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font: 600 10.5px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
}
.editor-step.is-current {
  color: var(--ink);
  border-bottom-color: var(--brand);
}
.editor-step.is-current .editor-step-num {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.editor-step.is-done .editor-step-num {
  border-color: transparent;
  background: var(--brand-soft);
  color: var(--brand);
}
.editor-step-copy strong {
  font-weight: inherit;
}
.editor-wizard-meta {
  display: contents;
}
/* The highlighted tab already shows the step; the text stays for screen readers. */
#wizardStatus {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.translation-status {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font: 600 12px/1 var(--font-sans);
}
.translation-status.is-complete {
  background: var(--ok-soft);
  color: var(--ok);
}
.editor-new-hint {
  margin: 20px 24px 0;
  padding: 12px 14px;
  border: 1px solid #efdcbc;
  border-radius: var(--radius);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 13.5px;
}

/* Form body */
#propertyForm,
#propertyMedia {
  padding: 0 24px;
}
#propertyForm {
  padding-top: 4px;
}
#propertyForm > .notice {
  margin-top: 20px;
}
.editor-section-title {
  margin: 32px 0 16px;
  font: 600 12px/1.3 var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.editor-section-title small {
  display: block;
  margin-top: 5px;
  font: 400 13px/1.5 var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.property-help {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
#addArrivalGuide,
#addTutorial {
  margin-top: 14px;
}

/* Pager */
.editor-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--surface-2);
}
.editor-pager .button {
  min-width: 150px;
}
.editor-pager #editorNext {
  margin-left: auto;
}

/* Cards: arrival steps, how-to guides, rules, recommendations */
.tutorial-editor,
.easy-list,
.arrival-cards {
  display: grid;
  gap: 14px;
}
.tutorial-editor:empty {
  display: none;
}
/* One guide list, shown per step: arrival steps in step 2, other guides in step 3. */
#tutorialEditor[data-show="arrival"]
  > .tutorial-edit-card:not([data-category="arrival"]),
#tutorialEditor[data-show="other"]
  > .tutorial-edit-card[data-category="arrival"] {
  display: none;
}
.tutorial-edit-card,
.easy-row,
.arrival-edit-card {
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.tutorial-card-top,
.easy-row-top,
.arrival-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.tutorial-card-index,
.easy-row-top strong,
.arrival-card-top strong {
  font: 600 11.5px/1.3 var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tutorial-card-actions {
  display: flex;
  gap: 6px;
}
.easy-row-top button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--danger);
  font: 600 12.5px/1 var(--font-sans);
}
.easy-row-top button:hover {
  background: var(--danger-soft);
  border-color: #ecc7c1;
}
.tutorial-edit-card .fields {
  gap: 14px 18px;
}
.pair-fields,
.easy-row-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
.pair-fields label,
.easy-row-fields label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.pair-head {
  display: none;
}
.easy-row-fields label.wide {
  grid-column: 1 / -1;
}
.easy-row-fields .arrival-upload {
  justify-self: start;
}
.tutorial-edit-card textarea,
.easy-row textarea {
  min-height: 84px;
}
.tutorial-selected-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.tutorial-selected-preview img,
.tutorial-selected-preview video {
  width: 168px;
  height: 108px;
  border-radius: 8px;
  object-fit: cover;
  background: #111;
}
.tutorial-selected-preview small {
  font-weight: 500;
  color: var(--ink-2);
}
.tutorial-inline-upload {
  align-self: flex-start;
  margin-top: 4px;
}

/* Photos and media library */
.photo-grid,
.tutorial-media-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.tutorial-media-library:empty {
  display: none;
}
.photo-grid > p.muted {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 13.5px;
  text-align: center;
}
.photo-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-tile > button,
.photo-tile .photo-order button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(18, 26, 23, 0.62);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  backdrop-filter: blur(4px);
}
.photo-tile > button {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 50%;
}
.photo-tile > button:hover,
.photo-tile .photo-order button:hover:not(:disabled) {
  background: rgba(18, 26, 23, 0.85);
}
.photo-tile .photo-order {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 4px;
}
.photo-tile .photo-order button:disabled {
  opacity: 0.35;
  cursor: default;
}
.photo-tile .cover-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: 600 10px/1 var(--font-sans);
  letter-spacing: 0.08em;
}
.tutorial-media-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.tutorial-media-tile img,
.tutorial-media-tile video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111;
}
.tutorial-media-tile > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.tutorial-media-tile button {
  border: 0;
  background: none;
  color: var(--danger);
  font: 600 12.5px/1 var(--font-sans);
}

/* Sharing */
.share-guide {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.share-guide > div:first-child {
  flex: 1 1 300px;
  min-width: 0;
}
.guide-url-label {
  display: block;
  margin-bottom: 7px;
  font: 500 13px/1.4 var(--font-sans);
  color: var(--ink);
}
#publicGuideUrl {
  font-size: 13px;
}
.share-guide > .wifi-qr-share {
  flex-basis: 100%;
  margin-top: 8px;
}
.wifi-qr-share,
.public-message-tools {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.wifi-qr-share .guide-url-label {
  margin: 0;
  font-weight: 600;
}
.wifi-qr-share p,
.public-message-tools p {
  margin: 4px 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.public-message-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.public-message-tools > div {
  flex: 1 1 100%;
}
.public-message-tools b {
  font-size: 14px;
  font-weight: 600;
}
.public-message-tools p {
  margin-bottom: 2px;
}

/* Private arrival steps (only with personal links) */
.optional-arrival {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.optional-arrival summary {
  font-weight: 600;
  cursor: pointer;
}
.optional-arrival .arrival-cards {
  margin: 14px 0;
}
.optional-arrival > .button {
  margin-right: 8px;
}

/* ---------- Optional workspace: personal guest links ---------- */
.title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.title-row h1 {
  margin-top: 8px;
  font: 400 40px/1.08 var(--font-serif);
  letter-spacing: -0.02em;
}
.title-row p {
  max-width: 640px;
  margin-top: 8px;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stats > div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.stats span {
  display: block;
  font: 600 11px/1.3 var(--font-sans);
  letter-spacing: 0.12em;
  color: var(--muted);
}
.stats b {
  display: block;
  margin: 6px 0 2px;
  font: 400 34px/1.1 var(--font-serif);
}
.stats small {
  font-size: 12.5px;
  color: var(--muted);
}
.host-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.panel-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.panel-title h2 {
  font-size: 18px;
}
.panel-title p {
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--muted);
}
.icon-tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.form-footer p {
  font-size: 13px;
  color: var(--muted);
}
#bookingForm .notice,
#newLink {
  margin-top: 16px;
}
.result {
  padding: 18px;
  border: 1px solid #cbe3d5;
  border-radius: 12px;
  background: var(--ok-soft);
}
.result-heading {
  font-weight: 600;
  color: var(--ok);
}
.result > p {
  margin: 4px 0 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.copyline {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.message-builder {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #cbe3d5;
}
.message-builder > p,
.message-builder > small {
  font-size: 13px;
  color: var(--ink-2);
}
.guidance h2 {
  margin: 8px 0 8px;
  font: 400 26px/1.15 var(--font-serif);
}
.guidance > p {
  color: var(--muted);
}
.guide-feature {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.guide-feature > span {
  font: 400 18px/1.2 var(--font-serif);
  color: var(--accent);
}
.guide-feature p,
.safety-note p {
  font-size: 13.5px;
  color: var(--muted);
}
.safety-note {
  margin-top: 22px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--warn-soft);
  color: var(--warn);
}
.booking-list {
  margin-top: 20px;
}
.list-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.list-title h2 {
  margin-top: 6px;
  font-size: 20px;
}
.list-title p {
  font-size: 13.5px;
  color: var(--muted);
}
.rows {
  display: grid;
  gap: 10px;
}
.booking-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.booking-row h3 {
  font-size: 15px;
}
.booking-row p {
  font-size: 13px;
  color: var(--muted);
}
.row-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.small-disclaimer {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.booking-dialog {
  width: min(620px, calc(100% - 32px));
  padding: 24px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.booking-dialog::backdrop {
  background: rgba(18, 26, 23, 0.45);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

/* =====================================================================
   Account pages (sign in, registration, password, account)
   ===================================================================== */
.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: calc(100vh - var(--top-h));
}
.login-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px clamp(32px, 5vw, 72px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(
      180deg,
      rgba(12, 24, 19, 0.05) 20%,
      rgba(12, 24, 19, 0.28) 55%,
      rgba(12, 24, 19, 0.82) 100%
    ),
    url("/assets/loft-living.webp") center / cover no-repeat,
    #22483d;
}
.login-aside h1 {
  max-width: 13ch;
  margin-top: 16px;
  font: 350 clamp(42px, 4.6vw, 64px) / 1.02 var(--font-serif);
  letter-spacing: -0.025em;
}
.login-aside p {
  max-width: 38ch;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
}
.login-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 32px;
  background: var(--surface);
}
.login-panel {
  width: 100%;
  max-width: 410px;
}
.login-panel.panel {
  padding: 0;
  border: 0;
  box-shadow: none;
}
.login-panel > .eyebrow {
  display: none;
}
.login-panel h2 {
  font: 400 38px/1.08 var(--font-serif);
  letter-spacing: -0.02em;
}
.login-panel > .muted {
  margin-top: 12px;
  font-size: 14.5px;
}
#loginForm,
#authForm {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
}
#loginForm > label,
#authForm > label {
  margin: 16px 0 7px;
  font: 500 13px/1.4 var(--font-sans);
}
#loginForm > label:first-child,
#authForm > label:first-child {
  margin-top: 0;
}
#loginForm input,
#authForm input {
  min-height: 44px;
}
#loginForm .button,
#authForm .button {
  min-height: 46px;
  margin-top: 26px;
}
#loginForm .notice,
#authForm .notice {
  margin-top: 14px;
}
.form-hint {
  margin-top: 7px;
}
.login-recovery {
  margin-top: 26px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--muted);
}
.login-recovery a,
.auth-links a {
  color: var(--brand);
  font-weight: 500;
}
.login-recovery a:hover,
.auth-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.login-recovery b {
  font-weight: 600;
}
.auth-links {
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--muted);
}
.auth-post {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ok-soft);
  color: #1c4f39;
  font-size: 13.5px;
}
.auth-post a {
  font-weight: 600;
  text-decoration: underline;
}
.footnote {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--faint);
}
.account-info {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 13.5px;
}
.account-info b {
  font-weight: 500;
  color: var(--muted);
}
.account-info span {
  overflow-wrap: anywhere;
  color: var(--ink);
}
.auth-section-title {
  margin-top: 30px;
  font-size: 16px;
  font-weight: 600;
}
#authForm > .auth-section-title + label {
  margin-top: 14px;
}
.account-settings {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.account-settings .form-hint {
  margin-top: 8px;
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-weight: 500;
  cursor: pointer;
}
.settings-warning {
  color: var(--warn);
}
.account-settings .notice {
  margin-top: 12px;
}

/* =====================================================================
   Guest guide
   ===================================================================== */
body[data-page="guest"] {
  background: var(--paper);
}
.guest-top {
  position: relative;
  background: var(--surface);
}
.guest-top .headlinks {
  gap: 2px;
}
.guest-home-link {
  margin-right: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.guest-home-link:hover {
  color: var(--ink);
}
.langbtn {
  height: 32px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--faint);
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.1em;
}
.langbtn.active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}
.guest-loading {
  padding: 140px 24px;
  font: italic 400 22px/1.4 var(--font-serif);
  text-align: center;
  color: var(--muted);
}

/* Hero */
.guest-photo {
  position: relative;
  height: min(76vh, 720px);
  min-height: 420px;
  overflow: hidden;
  background: #2a3b34;
}
.guest-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 20, 16, 0.18) 0%,
    rgba(10, 20, 16, 0) 30%,
    rgba(10, 20, 16, 0.12) 55%,
    rgba(10, 20, 16, 0.7) 100%
  );
}
.photo-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: var(--guest-w);
  margin: 0 auto;
  padding: 0 32px 60px;
  color: #fff;
}
.photo-overlay .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.photo-overlay h1 {
  max-width: 16ch;
  margin-top: 16px;
  font: 340 clamp(48px, 7.4vw, 104px) / 0.96 var(--font-serif);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.18);
}
#propLocation {
  margin-top: 14px;
  font: italic 400 21px/1.3 var(--font-serif);
  color: rgba(255, 255, 255, 0.92);
}
/* No photos yet: a calm green title band instead of an empty picture. */
.guest-photo:has(> img[hidden]) {
  height: auto;
  min-height: 0;
  background: var(--brand);
}
.guest-photo:has(> img[hidden]) .photo-shade {
  display: none;
}
.guest-photo:has(> img[hidden]) .photo-overlay {
  position: static;
  padding-top: 110px;
  padding-bottom: 56px;
}

/* Sticky section menu */
.guest-links-head {
  display: none;
}
.guest-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 10px 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  scrollbar-width: none;
}
.guest-nav::-webkit-scrollbar {
  display: none;
}
.guest-nav a {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font: 500 14px/1.2 var(--font-sans);
  transition:
    background 0.15s,
    color 0.15s;
}
.guest-nav a:hover {
  background: var(--brand-softer);
  color: var(--brand-ink);
}

/* Layout and headings */
.guest-shell {
  max-width: var(--guest-w);
  margin: 0 auto;
  padding: 0 32px 64px;
}
.guest-intro {
  max-width: 780px;
  margin: 0 auto;
  padding: 96px 0 72px;
  text-align: center;
}
.guest-intro h2 {
  margin-top: 16px;
  font: 360 clamp(32px, 3.8vw, 48px) / 1.1 var(--font-serif);
  letter-spacing: -0.022em;
}
#propDescription {
  max-width: 640px;
  margin: 20px auto 0;
  font: 400 20px/1.6 var(--font-serif);
  color: var(--ink-2);
}
#propDescription:empty {
  display: none;
}
.powered {
  display: none;
}
.guest-section {
  padding-top: 64px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 64px;
}
.guest-section + .guest-section {
  margin-top: 72px;
}
.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}
.section-heading h2 {
  margin-top: 14px;
  font: 360 clamp(32px, 3.4vw, 46px) / 1.08 var(--font-serif);
  letter-spacing: -0.022em;
}
.howto-subtitle {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}

/* Gallery */
.guest-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 10px;
}
.gallery-tile {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #e5e0d6;
  cursor: zoom-in;
}
.gallery-tile:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery-tile:hover img {
  transform: scale(1.035);
}
.gallery-tile:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.gallery-tile:nth-child(n + 6) {
  display: none;
}
.gallery-tile[data-more]::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(12, 22, 18, 0.48);
  color: #fff;
  font: 400 34px/1 var(--font-serif);
}
.guest-gallery:has(> :only-child) {
  grid-template-columns: 1fr;
  grid-auto-rows: 480px;
}
.guest-gallery:has(> :only-child) .gallery-tile {
  grid-column: auto;
  grid-row: auto;
}
.guest-gallery:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 420px;
}
.guest-gallery:has(> :nth-child(2):last-child) .gallery-tile {
  grid-column: auto;
  grid-row: auto;
}
.guest-gallery:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.guest-gallery:has(> :nth-child(4):last-child) .gallery-tile:nth-child(2) {
  grid-column: span 2;
}

/* Arrival & departure */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.item-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 17px;
}
.info-item small {
  display: block;
  font: 600 11.5px/1.3 var(--font-sans);
  letter-spacing: 0.16em;
  color: var(--muted);
}
.info-item b {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.info-item b:empty {
  display: none;
}
#propWifi {
  font: 400 24px/1.25 var(--font-serif);
  color: var(--ink);
}
.wifi-pass {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink-2);
}
.info-time {
  margin-top: 8px;
  font: 400 24px/1.25 var(--font-serif);
  color: var(--ink);
}
.info-address {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.info-map,
.quick-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: 600 14px/1.3 var(--font-sans);
  text-decoration: underline;
  text-decoration-color: rgba(31, 74, 61, 0.3);
  text-underline-offset: 4px;
}
.info-map:hover,
.quick-copy:hover {
  text-decoration-color: currentColor;
}

/* Arrival steps (numbered photo guides) */
.arrival-steps {
  display: grid;
  gap: 20px;
}
.arrival-steps .howto-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.arrival-steps .howto-card:nth-child(even) > img,
.arrival-steps .howto-card:nth-child(even) > video {
  order: 2;
}
.arrival-steps .howto-card > img,
.arrival-steps .howto-card > video {
  width: 100%;
  height: 100%;
  min-height: 320px;
  aspect-ratio: auto;
  object-fit: cover;
}
.arrival-steps .howto-card:not(:has(> img, > video)) {
  grid-template-columns: 1fr;
  min-height: 0;
}
.arrival-steps .howto-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 44px;
}
.arrival-steps .howto-body h3 {
  font-size: clamp(26px, 2.4vw, 32px);
}
.arrival-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.arrival-step-text {
  padding: 32px 36px;
}
.arrival-step-text h3 {
  margin-top: 10px;
  font: 400 26px/1.2 var(--font-serif);
}
.arrival-step-text p {
  margin-top: 10px;
  color: var(--ink-2);
}
.step-number {
  font: 600 11.5px/1 var(--font-sans);
  letter-spacing: 0.16em;
  color: var(--accent);
}
.arrival-step > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* How-to guides */
.howto-grid {
  align-items: start;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.howto-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.howto-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.howto-card > video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0f1513;
}
.howto-body {
  padding: 24px 26px 28px;
}
/* One or two guides: wider cards instead of a mostly empty grid. */
.howto-grid:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.howto-grid:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}
.howto-grid > .howto-card:only-child:has(> img, > video) {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.howto-grid > .howto-card:only-child > img,
.howto-grid > .howto-card:only-child > video {
  height: 100%;
  min-height: 300px;
  aspect-ratio: auto;
}
.howto-grid > .howto-card:only-child .howto-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 44px;
}
.howto-category {
  font: 600 11.5px/1.3 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.howto-body h3 {
  margin-top: 10px;
  font: 400 25px/1.18 var(--font-serif);
  letter-spacing: -0.015em;
}
.howto-body p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* House rules */
.rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  border-bottom: 1px solid var(--line);
}
.rule-grid > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: start;
  padding: 24px 0 26px;
  border-top: 1px solid var(--line);
}
.rule-grid > div > span {
  grid-row: span 2;
  font: 400 22px/1.15 var(--font-serif);
  font-variant-numeric: lining-nums;
  color: var(--accent);
}
.rule-grid b {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.rule-grid p {
  grid-column: 2;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Local favourites */
.local-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.local-list article {
  display: flex;
  flex-direction: column;
  padding: 26px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.place-number {
  display: none;
}
.place-category {
  font: 600 11.5px/1.3 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.place-category:empty {
  display: none;
}
.local-list b {
  margin-top: 10px;
  font: 400 25px/1.18 var(--font-serif);
  letter-spacing: -0.015em;
}
.local-list p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.place-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
  color: var(--brand);
  font: 600 14px/1.3 var(--font-sans);
  text-decoration: underline;
  text-decoration-color: rgba(31, 74, 61, 0.3);
  text-underline-offset: 4px;
}
.place-link:hover {
  text-decoration-color: currentColor;
}

/* Footer */
.guest-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 104px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.guest-footer .sv-mark {
  width: 26px;
  height: 26px;
}
.guest-footer .sv-word {
  font-size: 21px;
}
.guest-footer p {
  font: italic 400 16px/1.4 var(--font-serif);
  color: var(--muted);
}

/* Personal booking link: timeline, access code and dates */
.journey {
  margin-bottom: 40px;
  padding: 32px 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.journey-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.journey-label {
  font: 600 11.5px/1.3 var(--font-sans);
  letter-spacing: 0.16em;
  color: var(--accent);
}
.journey-stage {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--brand-softer);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
}
.journey-main {
  margin-top: 18px;
}
.journey-main h2 {
  font: 360 clamp(28px, 3vw, 38px) / 1.12 var(--font-serif);
  letter-spacing: -0.02em;
}
.journey-main p {
  max-width: 620px;
  margin-top: 10px;
  color: var(--ink-2);
}
.journey-art {
  display: none;
}
.journey-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 24px;
}
.journey-steps span {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}
.journey-steps span.done {
  background: var(--brand);
}
.journey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}
.journey-actions a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(31, 74, 61, 0.3);
  text-underline-offset: 4px;
}
.code-card {
  margin-bottom: 20px;
  padding: 32px 36px;
  border-radius: 18px;
  background: radial-gradient(
      120% 140% at 100% 0%,
      rgba(216, 173, 120, 0.18),
      transparent 55%
    ),
    var(--brand);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.code-icon,
.code-icon-big {
  display: none;
}
.code-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.code-header .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}
.code-header h2 {
  margin-top: 10px;
  font: 400 30px/1.15 var(--font-serif);
}
.code-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
.code-pill.active {
  background: #d8f0e2;
  color: #154a33;
}
.code-pill.expired {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}
.code-content {
  margin: 26px 0 22px;
}
.code-value,
.placeholder-code {
  font: 600 clamp(40px, 6vw, 60px) / 1.1 var(--font-mono);
  letter-spacing: 0.22em;
}
.placeholder-code {
  color: rgba(255, 255, 255, 0.35);
}
.code-note {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
}
.timing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
}
.timing-footer strong {
  font-family: var(--font-mono);
  font-size: 16px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.guest-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.guest-times > div {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.guest-times span {
  display: block;
  font: 600 11.5px/1.3 var(--font-sans);
  letter-spacing: 0.16em;
  color: var(--muted);
}
.guest-times b {
  display: block;
  margin-top: 8px;
  font: 400 22px/1.25 var(--font-serif);
}

/* Lightbox */
body.modal-open {
  overflow: hidden;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 64px 24px 40px;
  background: rgba(9, 15, 13, 0.94);
  color: #fff;
}
.lightbox figure {
  max-width: min(100%, 1160px);
  text-align: center;
}
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: auto;
  border-radius: 6px;
  object-fit: contain;
}
.lightbox figcaption {
  margin-top: 14px;
  font: italic 400 15px/1.4 var(--font-serif);
  color: rgba(255, 255, 255, 0.7);
}
.lightbox button {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  transition: background 0.15s;
}
.lightbox button:hover {
  background: rgba(255, 255, 255, 0.18);
}
.lightbox .lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 16px;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1180px) {
  .property-columns {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }
  .host-layout {
    padding: 24px 24px 64px;
  }
}
@media (max-width: 960px) {
  .property-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .property-picker {
    position: static;
  }
  .picker-head h2 {
    margin-left: 2px;
  }
  .property-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .property-list-item {
    flex: none;
    width: auto;
    max-width: 260px;
    padding-right: 16px;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.6);
  }
  .picker-add {
    width: auto;
  }
  .host-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .login-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .login-aside {
    min-height: 220px;
    padding: 28px 24px;
  }
  .login-aside h1 {
    max-width: none;
    font-size: 36px;
  }
  .login-aside p,
  .login-aside .eyebrow {
    display: none;
  }
  .login-content {
    align-items: flex-start;
    padding: 36px 20px 56px;
  }
}
@media (max-width: 760px) {
  :root {
    --top-h: 58px;
  }
  .topbar {
    gap: 10px;
    padding: 0 16px;
  }
  .sv-mark {
    width: 28px;
    height: 28px;
  }
  .sv-word {
    font-size: 22px;
  }
  .headlinks .ghostlink[href="/"] {
    display: none;
  }
  .account-email {
    display: none;
  }
  .host-lang-switch {
    margin-right: 2px;
  }
  .workspace-tabs {
    display: none;
  }
  .host-layout {
    padding: 16px 12px 48px;
  }
  .editor-head {
    flex-wrap: wrap;
    gap: 10px 12px;
    min-height: 0;
    padding: 12px 16px;
  }
  .editor-head-text {
    flex: 1 1 auto;
  }
  .editor-head h2 {
    font-size: 17px;
  }
  .editor-head-actions {
    gap: 8px;
  }
  .editor-head-actions .button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }
  .editor-preview {
    display: none;
  }
  .save-state {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    text-align: left;
  }
  .editor-head-actions:has(.save-state:not(:empty)) {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .editor-wizard,
  #propertyForm,
  #propertyMedia {
    padding-left: 16px;
    padding-right: 16px;
  }
  .editor-new-hint {
    margin: 16px 16px 0;
  }
  .editor-steps {
    flex-basis: 100%;
    margin: 0 -16px;
    padding: 0 8px;
  }
  .editor-wizard {
    scroll-margin-top: calc(var(--top-h) + 108px);
  }
  .translation-status {
    height: 22px;
    padding: 0 9px;
    font-size: 11.5px;
  }
  .fields,
  .pair-fields,
  .easy-row-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .tutorial-edit-card,
  .easy-row,
  .arrival-edit-card {
    padding: 14px;
  }
  .tutorial-selected-preview img,
  .tutorial-selected-preview video {
    width: 120px;
    height: 80px;
  }
  .editor-pager {
    padding: 14px 16px;
  }
  .editor-pager .button {
    min-width: 0;
    flex: 1;
  }
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .copyline {
    flex-direction: column;
  }

  /* Guest guide on phones */
  .guest-home-link {
    display: none;
  }
  .guest-photo {
    height: 64vh;
    min-height: 380px;
  }
  .photo-overlay {
    padding: 0 22px 36px;
  }
  .photo-overlay h1 {
    font-size: clamp(42px, 12vw, 60px);
  }
  #propLocation {
    font-size: 18px;
  }
  .guest-photo:has(> img[hidden]) .photo-overlay {
    padding-top: 72px;
    padding-bottom: 40px;
  }
  .guest-nav {
    justify-content: flex-start;
    padding: 8px 14px;
  }
  .guest-nav a {
    padding: 8px 12px;
    font-size: 13.5px;
  }
  .guest-shell {
    padding: 0 20px 48px;
  }
  .guest-intro {
    padding: 60px 0 48px;
  }
  #propDescription {
    font-size: 18px;
  }
  .guest-section {
    padding-top: 52px;
    scroll-margin-top: 56px;
  }
  .guest-section + .guest-section {
    margin-top: 56px;
  }
  .section-heading {
    margin-bottom: 26px;
  }
  .guest-gallery,
  .guest-gallery:has(> :only-child),
  .guest-gallery:has(> :nth-child(2):last-child),
  .guest-gallery:has(> :nth-child(3):last-child) {
    display: flex;
    gap: 10px;
    margin: 0 -20px;
    padding: 0 20px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .guest-gallery::-webkit-scrollbar {
    display: none;
  }
  .gallery-tile,
  .gallery-tile:nth-child(n + 6) {
    display: block;
    flex: 0 0 84%;
    aspect-ratio: 4 / 3;
    scroll-snap-align: center;
  }
  .gallery-tile:only-child {
    flex-basis: 100%;
  }
  .gallery-tile[data-more]::after {
    display: none;
  }
  .info-item {
    padding: 22px 22px 24px;
  }
  .arrival-steps .howto-card,
  .arrival-step {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .arrival-steps .howto-card:nth-child(even) > img,
  .arrival-steps .howto-card:nth-child(even) > video {
    order: 0;
  }
  .arrival-steps .howto-card > img,
  .arrival-steps .howto-card > video {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .arrival-steps .howto-body {
    padding: 24px 22px 26px;
  }
  .arrival-steps .howto-body h3 {
    font-size: 25px;
  }
  .howto-grid,
  .howto-grid:has(> :nth-child(2):last-child),
  .local-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .howto-grid > .howto-card:only-child:has(> img, > video) {
    display: flex;
  }
  .howto-grid > .howto-card:only-child > img,
  .howto-grid > .howto-card:only-child > video {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .howto-grid > .howto-card:only-child .howto-body {
    padding: 22px 22px 24px;
  }
  .howto-body,
  .local-list article {
    padding: 22px 22px 24px;
  }
  .rule-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rule-grid > div {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 20px 0 22px;
  }
  .guest-footer {
    margin-top: 72px;
  }
  .journey,
  .code-card {
    padding: 24px 22px;
  }
  .guest-times {
    grid-template-columns: minmax(0, 1fr);
  }
  .lightbox {
    padding: 64px 8px 32px;
    gap: 6px;
  }
  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    bottom: 24px;
  }
  .lightbox-prev {
    left: calc(50% - 56px);
  }
  .lightbox-next {
    right: calc(50% - 56px);
  }
}
@media (max-width: 420px) {
  .host-lang-switch button {
    min-width: 30px;
    padding: 0 7px;
  }
  .account-info {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .account-info b:not(:first-child) {
    margin-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* =====================================================================
   11.19: motion, touch feedback and the guest guide's signature pieces
   ===================================================================== */

/* Touch feedback: buttons give way slightly when pressed. */
.button,
.mini,
.btn,
.upload-button,
.easy-add,
.tutorial-inline-upload,
.langbtn,
.guest-nav a,
.quick-copy,
.info-map,
.gallery-tile,
.property-list-item,
.editor-step,
.host-lang-switch button,
.lightbox button,
.step-prev,
.step-next {
  transition:
    transform 0.35s var(--spring),
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.button:active:not(:disabled),
.mini:active:not(:disabled),
.upload-button:active,
.easy-add:active,
.tutorial-inline-upload:active,
.langbtn:active,
.guest-nav a:active,
.quick-copy:active,
.property-list-item:active,
.host-lang-switch button:active,
.lightbox button:active,
.step-prev:active:not(:disabled),
.step-next:active:not(:disabled) {
  transform: scale(0.97);
}
.gallery-tile:active {
  transform: scale(0.985);
}

/* Glass surfaces */
.toast {
  background: rgba(24, 34, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition:
    opacity 0.25s,
    transform 0.45s var(--spring);
}
.guest-nav {
  background: rgba(251, 250, 247, 0.78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: rgba(24, 34, 30, 0.06);
}

/* Softer, floating cards in the guest guide */
.info-item,
.howto-card,
.local-list article,
.arrival-steps .howto-card,
.arrival-step,
.journey,
.guest-times > div {
  border-color: rgba(24, 34, 30, 0.06);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.gallery-tile {
  border-radius: 14px;
}
.code-card {
  border-radius: 26px;
}

/* Arrival & departure as a bento grid */
.info-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.info-grid > .info-item {
  grid-column: span 12;
}
#essentials[data-count="2"] #arrivalItem:not([hidden]) {
  grid-column: span 7;
}
#essentials[data-count="2"] .info-item:not(#arrivalItem) {
  grid-column: span 5;
}
#essentials[data-count="2"] #wifiItem:not([hidden]) ~ #departureItem {
  grid-column: span 7;
}
#essentials[data-count="3"] .info-grid > .info-item {
  grid-column: span 4;
}
#arrivalItem {
  background: radial-gradient(
      120% 120% at 100% 0%,
      rgba(216, 173, 120, 0.16),
      transparent 55%
    ),
    var(--surface);
}
.info-time {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
  margin-top: 6px;
}
.info-time .time-label {
  flex-basis: 100%;
  font: 500 14px/1.5 var(--font-sans);
  color: var(--muted);
}
.info-time .time-value {
  font: 340 clamp(44px, 5vw, 60px) / 1.05 var(--font-serif);
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}
.info-time .time-suffix {
  font: 500 14px/1.5 var(--font-sans);
  color: var(--muted);
}

/* Wi-Fi: one tap copies, the icon turns into a check mark */
.quick-copy {
  min-height: 40px;
  margin-top: 14px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
}
.quick-copy::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%231f4a3d' stroke-width='1.5' stroke-linejoin='round'%3E%3Crect x='5.5' y='5.5' width='8' height='8' rx='2'/%3E%3Cpath d='M10.5 3.5v-.5a1.5 1.5 0 0 0-1.5-1.5H4A1.5 1.5 0 0 0 2.5 3v5A1.5 1.5 0 0 0 4 9.5h.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.35s var(--spring);
}
.quick-copy.is-copied {
  border-color: #b9dcc8;
  background: var(--ok-soft);
  color: var(--ok);
}
.quick-copy.is-copied::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%2324654a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E");
  transform: scale(1.15);
}
#propWifi,
.wifi-pass {
  font-variant-numeric: tabular-nums;
}

/* Access code: a wallet-style pass with one box per digit */
.code-digits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  letter-spacing: 0;
}
.code-digits span {
  display: grid;
  place-items: center;
  width: clamp(52px, 13vw, 68px);
  height: clamp(64px, 16vw, 84px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font: 600 clamp(30px, 7vw, 40px) / 1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.code-value,
.placeholder-code,
.timing-footer strong,
.guest-times b {
  font-variant-numeric: tabular-nums;
}
.code-card[data-state="upcoming"] .code-content {
  display: flex;
  align-items: center;
  gap: 18px;
}
.code-card[data-state="upcoming"] .code-content::before {
  content: "";
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='4.5' y='9.5' width='13' height='9' rx='2.5'/%3E%3Cpath d='M7.5 9.5V7a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E")
      center no-repeat,
    rgba(255, 255, 255, 0.12);
  animation: sv-pulse 2.4s ease-in-out infinite;
}
.code-card[data-state="upcoming"] .code-content > * {
  margin: 0;
}
.code-card[data-state="upcoming"] .placeholder-code {
  display: none;
}
.code-card[data-state="upcoming"] .timing-footer strong {
  font-size: 22px;
}
@keyframes sv-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(216, 173, 120, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(216, 173, 120, 0);
  }
}

/* Arrival steps: a swipeable, story-like row with progress bars */
.step-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.step-bars {
  display: flex;
  flex: 1;
  gap: 6px;
}
.step-bar {
  flex: 1;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.step-bar::before {
  content: "";
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--line-strong);
  transition: background 0.3s;
}
.step-bar.is-done::before,
.step-bar.is-current::before {
  background: var(--brand);
}
.step-prev,
.step-next {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%2318221e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 3 4.5 7l4 4'/%3E%3C/svg%3E")
    center no-repeat;
}
.step-next {
  transform: scaleX(-1);
}
.step-next:active:not(:disabled) {
  transform: scaleX(-1) scale(0.97);
}
.step-prev:disabled,
.step-next:disabled {
  opacity: 0.35;
  cursor: default;
}
.arrival-steps.is-carousel {
  display: flex;
  gap: 16px;
  margin: -8px -32px -24px;
  padding: 8px 32px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 32px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.arrival-steps.is-carousel::-webkit-scrollbar {
  display: none;
}
.arrival-steps.is-carousel > * {
  flex: 0 0 88%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Entrance animation (only when motion is welcome; see secure.js) */
.sv-motion .reveal {
  opacity: 0;
  transform: translateY(18px);
}
.sv-motion .reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s ease-out,
    transform 0.9s var(--spring);
  transition-delay: var(--reveal-delay, 0ms);
}
@media print {
  .sv-motion .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Host dashboard: same soft depth and corners */
.property-editor {
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(24, 34, 30, 0.04),
    0 18px 50px -24px rgba(24, 34, 30, 0.16);
}
.editor-head {
  border-radius: 20px 20px 0 0;
}
.editor-pager {
  border-radius: 0 0 20px 20px;
}
.tutorial-edit-card,
.easy-row,
.arrival-edit-card,
.wifi-qr-share,
.public-message-tools {
  border-radius: 16px;
}

@media (max-width: 760px) {
  .info-grid > .info-item {
    grid-column: 1 / -1 !important;
  }
  .arrival-steps.is-carousel {
    margin: -8px -20px -24px;
    padding: 8px 20px 24px;
    scroll-padding: 0 20px;
    gap: 12px;
  }
  .arrival-steps.is-carousel > * {
    flex-basis: 88%;
  }
  .step-prev,
  .step-next {
    display: none;
  }
  .code-card[data-state="upcoming"] .code-content::before {
    width: 46px;
    height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .code-card[data-state="upcoming"] .code-content::before {
    animation: none;
  }
}

/* 11.24: inline upload while a file uploads or a video converts */
.tutorial-inline-upload.is-busy {
  pointer-events: none;
  opacity: 0.75;
}
.tutorial-inline-upload.is-busy::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: sv-spin 0.8s linear infinite;
}
@keyframes sv-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tutorial-inline-upload.is-busy::after {
    animation: none;
  }
}

/* 11.24: converted videos come with a poster frame, so the browser knows their
   size before playback. Show the whole frame (instructions must not be cropped),
   and keep tall phone videos from stretching the card. */
.howto-card > video {
  object-fit: contain;
  background: #0f1513;
}
.howto-card > video[data-portrait] {
  aspect-ratio: 4 / 5;
}
@media (min-width: 761px) {
  .arrival-steps .howto-card > video,
  .howto-grid > .howto-card:only-child > video {
    height: 0;
    min-height: 100%;
  }
  .howto-grid > .howto-card:only-child:has(> video) {
    min-height: 300px;
  }
  .arrival-steps .howto-card:has(> video[data-portrait]),
  .howto-grid > .howto-card:only-child:has(> video[data-portrait]) {
    min-height: 460px;
  }
}
@media (max-width: 760px) {
  .arrival-steps .howto-card > video[data-portrait],
  .howto-grid > .howto-card:only-child > video[data-portrait] {
    aspect-ratio: 4 / 5;
    max-height: 75vh;
  }
}

/* 11.25: legal links on the account pages, terms checkbox, account deletion */
.auth-legal {
  padding: 22px 20px 30px;
  text-align: center;
  font-size: 12.5px;
  color: var(--faint);
}
.auth-legal a {
  color: var(--muted);
}
.auth-legal a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.terms-row {
  align-items: flex-start;
  margin: 18px 0 4px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-2);
}
.terms-row input {
  flex: none;
  margin-top: 3px;
}
.terms-row a,
.account-settings .form-hint a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-danger .toggle-row {
  font-size: 13.5px;
}
.button.danger {
  margin-top: 16px;
  border-color: #b3261e;
  background: #b3261e;
  color: #fff;
}
.button.danger:hover:not(:disabled) {
  background: #8f1f18;
}
.account-danger .notice {
  margin-top: 12px;
}
.guest-legal {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}
.guest-legal a {
  color: var(--muted);
}
.guest-legal a:hover {
  color: var(--ink);
  text-decoration: underline;
}

#deleteForm {
  margin-top: 16px;
}
