@font-face {
  font-family: "Canela";
  src: url("https://hello-lucia.b-cdn.net/Canela-Regular-Desktop.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Canela";
  src: url("https://hello-lucia.b-cdn.net/Canela-Light-Desktop.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Canela";
  src: url("https://hello-lucia.b-cdn.net/canela/Canela-Bold-Desktop.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1714;
  --ink-2: rgba(26, 23, 20, 0.66);
  --ink-3: rgba(26, 23, 20, 0.46);
  --ink-faint: rgba(26, 23, 20, 0.28);
  --line: rgba(26, 23, 20, 0.12);
  --line-soft: rgba(26, 23, 20, 0.08);
  --hair: rgba(26, 23, 20, 0.06);
  --paper: #fbfaf7;
  --surface: #ffffff;
  --soft: #f5f3ee;
  --soft-2: #efece5;
  --accent: #9a5d10;
  --accent-amber: #e79a12;
  --accent-amber-soft: rgba(231, 154, 18, 0.22);
  --danger: #8f2d24;
  --danger-soft: rgba(143, 45, 36, 0.08);
  --success: #245b3a;
  --success-soft: rgba(36, 91, 58, 0.08);
  --success-dot: #2f9e68;
  --shadow-card: 0 30px 80px rgba(26, 23, 20, 0.07);
  --shadow-button: 0 12px 24px rgba(26, 23, 20, 0.18);
  --serif: "Canela", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(251, 250, 247, 0) 32%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

/* ─── Topbar ─────────────────────────────────────────────── */
.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  background: #0a0a0a;
}

.brand,
.topbar-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 32px;
  width: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.topbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-link {
  gap: 6px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition: color 160ms ease, border-color 160ms ease;
}

.topbar-label {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  background: #1a1b1d;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.topbar-link:hover,
.topbar-link:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  outline: none;
}

.topbar-link-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ─── Page shell ────────────────────────────────────────── */
.page {
  position: relative;
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

/* Faint dot-grid texture nodding to the Lucía intro world,
   masked so it only haloes the title block. */
.page-grid {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1080px, 100vw);
  height: 360px;
  transform: translateX(-50%);
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(26, 23, 20, 0.13) 0.85px,
    transparent 1.05px
  );
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(
    ellipse 60% 70% at 50% 30%,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.32) 50%,
    transparent 88%
  );
          mask-image: radial-gradient(
    ellipse 60% 70% at 50% 30%,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.32) 50%,
    transparent 88%
  );
  opacity: 0.85;
}

.intro {
  position: relative;
  max-width: 30em;
  margin: 0 0 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow-rule {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--ink-faint);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.lede {
  margin: 18px 0 0;
  color: var(--ink-2);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.002em;
}

/* ─── Card ──────────────────────────────────────────────── */
.reservation-panel {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 20px;
  border-bottom: 1px solid var(--hair);
  background: var(--surface);
}

.panel-header-left {
  min-width: 0;
}

.property-label {
  margin: 0 0 6px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.property-name {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.panel-tag-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-amber);
  flex: 0 0 auto;
}

.panel-tag-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-amber-soft);
  animation: panelTagPulse 2.6s ease-out infinite;
}

@keyframes panelTagPulse {
  0%   { transform: scale(0.78); opacity: 0.7; }
  60%  { transform: scale(1.55); opacity: 0;   }
  100% { transform: scale(0.78); opacity: 0;   }
}

/* ─── Form ──────────────────────────────────────────────── */
.reservation-form {
  display: grid;
  gap: 28px;
  padding: 28px;
}

.form-group {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-group-label {
  padding: 0;
  margin: 0 0 2px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.field {
  position: relative;
  display: grid;
  gap: 8px;
}

.field--compact {
  max-width: 200px;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 18px;
}

label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 14px;
  background: var(--soft);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder {
  color: rgba(26, 23, 20, 0.46);
}

input:hover:not(:focus) {
  border-color: rgba(26, 23, 20, 0.22);
  background: var(--soft-2);
}

input:focus {
  border-color: rgba(26, 23, 20, 0.5);
  box-shadow: 0 0 0 3px rgba(26, 23, 20, 0.08);
  background: #fff;
}

input[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-soft);
}

input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(143, 45, 36, 0.12);
}

input[type="date"] {
  letter-spacing: 0.01em;
}

/* ─── Guidance system: active + complete states ───────────── */
.field-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.field-indicator-dot,
.field-indicator-check {
  display: none;
}

.field--active .field-indicator-dot {
  display: inline-block;
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success-dot);
}

.field--active .field-indicator-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(47, 158, 104, 0.26);
  animation: fieldDotPulse 2.4s ease-out infinite;
}

.field--complete .field-indicator-check {
  display: inline-block;
  width: 15px;
  height: 15px;
  color: var(--success);
  animation: fieldCheckIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes fieldDotPulse {
  0%   { transform: scale(0.8); opacity: 0.72; }
  50%  { transform: scale(1.55); opacity: 0.2; }
  100% { transform: scale(0.8); opacity: 0.72; }
}

@keyframes fieldCheckIn {
  0%   { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.field--active input {
  border-color: var(--success-dot);
  background: rgba(47, 158, 104, 0.04);
  box-shadow: 0 0 0 3px rgba(47, 158, 104, 0.12);
}

.field--active input:hover:not(:focus) {
  border-color: var(--success-dot);
  background: rgba(47, 158, 104, 0.06);
}

.field--active input:focus {
  border-color: var(--success);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 158, 104, 0.2);
}

/* aria-invalid (server / submit errors) overrides the active green */
.field--active input[aria-invalid="true"],
.field--complete input[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-soft);
  box-shadow: none;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ─── Availability calendar ─────────────────────────────── */
.calendar-field {
  display: grid;
  gap: 16px;
}

.calendar-field--invalid .calendar-shell {
  border-color: rgba(143, 45, 36, 0.42);
  box-shadow: 0 0 0 3px rgba(143, 45, 36, 0.08);
}

.calendar-copy {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--soft);
}

.calendar-copy p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.date-grid--summary {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.stay-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 86px;
}

.stay-bridge-line {
  flex: 1;
  min-width: 8px;
  height: 1px;
  background: var(--line);
}

.stay-bridge-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.stay-bridge-chip[data-state="pending"] {
  color: var(--ink-2);
  background: var(--surface);
}

.stay-bridge-chip[data-state="set"] {
  border-color: rgba(36, 91, 58, 0.35);
  background: var(--success-soft);
  color: var(--success);
}

.date-summary {
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.date-summary-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.date-summary-value {
  margin: 3px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.field--complete .date-summary-value {
  color: var(--ink);
}

.field--active.date-summary {
  border-color: var(--success-dot);
  background: rgba(47, 158, 104, 0.04);
  box-shadow: 0 0 0 3px rgba(47, 158, 104, 0.12);
}

.calendar-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.calendar-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 200ms ease;
}

.calendar-state-message {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.calendar-state[data-kind="error"] {
  background: var(--danger-soft);
}

.calendar-state[data-kind="error"] .calendar-state-message {
  color: var(--danger);
}

.calendar-state[data-kind="warn"] {
  background: rgba(231, 154, 18, 0.1);
}

.calendar-state[data-kind="warn"] .calendar-state-message {
  color: #7c5407;
}

.calendar-state[data-kind="success"] {
  background: var(--success-soft);
}

.calendar-state[data-kind="success"] .calendar-state-message {
  color: var(--success);
}

.calendar-clear {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.calendar-clear:hover {
  border-color: rgba(26, 23, 20, 0.32);
  color: var(--ink);
}

.calendar-clear:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent-amber);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--hair);
  background: var(--soft);
}

.calendar-weekdays span {
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-months {
  display: grid;
  gap: 18px;
  max-height: 620px;
  overflow: auto;
  padding: 16px 14px 18px;
  overscroll-behavior: contain;
}

.calendar-month {
  display: grid;
  gap: 10px;
}

.calendar-month-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-day-spacer {
  min-height: 38px;
}

.calendar-day {
  min-width: 0;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.calendar-day:hover,
.calendar-day:focus-visible {
  border-color: rgba(26, 23, 20, 0.3);
  background: var(--soft);
  outline: none;
}

.calendar-day:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent-amber);
}

.calendar-day--range {
  border-color: rgba(47, 158, 104, 0.16);
  background: rgba(47, 158, 104, 0.1);
}

.calendar-day--preview {
  border-color: rgba(47, 158, 104, 0.22);
  background: rgba(47, 158, 104, 0.07);
}

.calendar-day--preview-end,
.calendar-day--preview-end:hover,
.calendar-day--preview-end:focus-visible {
  border-color: var(--success);
  border-radius: 6px 999px 999px 6px;
  background: rgba(47, 158, 104, 0.16);
  color: var(--success);
}

.calendar-day--arrival,
.calendar-day--departure {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.calendar-day--arrival {
  border-radius: 999px 6px 6px 999px;
}

.calendar-day--departure {
  border-radius: 6px 999px 999px 6px;
}

.calendar-day--arrival:hover,
.calendar-day--departure:hover {
  border-color: var(--success);
  background: #1d4a2f;
  color: #fff;
}

/* Checkout morning of an existing stay: open for a new arrival. */
.calendar-day--turnover {
  border-color: rgba(154, 93, 16, 0.28);
  background:
    linear-gradient(135deg, rgba(154, 93, 16, 0.12) 0 50%, transparent 50% 100%),
    #fff;
}

.calendar-day--turnover:hover,
.calendar-day--turnover:focus-visible {
  border-color: rgba(154, 93, 16, 0.5);
  background:
    linear-gradient(135deg, rgba(154, 93, 16, 0.16) 0 50%, transparent 50% 100%),
    var(--soft);
}

/* Check-in day of the next stay: open as a same-day-turnover departure. */
.calendar-day--turnover-exit {
  border-color: rgba(154, 93, 16, 0.28);
  background:
    linear-gradient(315deg, rgba(154, 93, 16, 0.12) 0 50%, transparent 50% 100%),
    #fff;
}

.calendar-day--turnover-exit:hover,
.calendar-day--turnover-exit:focus-visible {
  border-color: rgba(154, 93, 16, 0.5);
  background:
    linear-gradient(315deg, rgba(154, 93, 16, 0.16) 0 50%, transparent 50% 100%),
    var(--soft);
}

/* Open dates that can't complete this departure (too short / past a hold) */
.calendar-day--soft {
  color: var(--ink-faint);
}

.calendar-day--soft:hover {
  border-color: rgba(26, 23, 20, 0.16);
  background: var(--soft);
  color: var(--ink-3);
}

.calendar-day--unavailable {
  border-color: rgba(26, 23, 20, 0.04);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(26, 23, 20, 0.06) 0,
      rgba(26, 23, 20, 0.06) 4px,
      rgba(26, 23, 20, 0.02) 4px,
      rgba(26, 23, 20, 0.02) 8px
    );
  color: var(--ink-faint);
  cursor: not-allowed;
}

.calendar-day--unavailable:hover {
  border-color: rgba(26, 23, 20, 0.12);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(26, 23, 20, 0.06) 0,
      rgba(26, 23, 20, 0.06) 4px,
      rgba(26, 23, 20, 0.02) 4px,
      rgba(26, 23, 20, 0.02) 8px
    );
  color: var(--ink-faint);
}

.calendar-day--nudge {
  animation: dayNudge 260ms ease;
}

@keyframes dayNudge {
  0%, 100% { transform: translateX(0); }
  30%      { transform: translateX(-3px); }
  60%      { transform: translateX(3px); }
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 14px 13px;
  border-top: 1px solid var(--hair);
  background: var(--soft);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  flex: 0 0 auto;
}

.legend-swatch--available {
  border-color: var(--line);
  background: #fff;
}

.legend-swatch--selected {
  border-color: var(--success);
  background: var(--success);
}

.legend-swatch--unavailable {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(26, 23, 20, 0.1) 0,
      rgba(26, 23, 20, 0.1) 3px,
      rgba(26, 23, 20, 0.03) 3px,
      rgba(26, 23, 20, 0.03) 6px
    );
}

.legend-swatch--turnover {
  border-color: rgba(154, 93, 16, 0.3);
  background: linear-gradient(135deg, rgba(154, 93, 16, 0.18) 0 50%, #fff 50% 100%);
}

.calendar-field--unavailable .calendar-weekdays,
.calendar-field--unavailable .calendar-months {
  opacity: 0.52;
}

/* ─── Actions ───────────────────────────────────────────── */
.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}

.submit-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #2a2522 0%, #1a1714 100%);
  color: #faf3e2;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 0 rgba(26, 23, 20, 0.6),
    var(--shadow-button);
  transition:
    transform 220ms cubic-bezier(0.2, 0.6, 0.2, 1),
    box-shadow 220ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.submit-button::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(47, 158, 104, 0);
  opacity: 0;
  z-index: -1;
  transition: opacity 260ms ease, box-shadow 260ms ease;
}

.submit-button[data-ready]::after {
  opacity: 1;
  animation: submitReadyHalo 2.6s ease-in-out infinite;
}

@keyframes submitReadyHalo {
  0%, 100% { box-shadow: 0 0 0 2px rgba(47, 158, 104, 0.28); }
  50%      { box-shadow: 0 0 0 5px rgba(47, 158, 104, 0.1); }
}

.submit-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.submit-button:hover:not([disabled]),
.submit-button:focus-visible:not([disabled]) {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 0 rgba(26, 23, 20, 0.6),
    0 18px 32px rgba(26, 23, 20, 0.22);
}

.submit-button:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 2px var(--paper),
    0 0 0 4px var(--accent-amber),
    var(--shadow-button);
}

.submit-button:active:not([disabled]) {
  transform: translateY(0);
}

.submit-button[disabled] {
  cursor: progress;
  opacity: 0.62;
  transform: none;
}

.submit-button-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 220ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.submit-button:hover:not([disabled]) .submit-button-icon {
  transform: translateX(2px);
}

.fine-print {
  margin: 0;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.55;
}

/* ─── Status receipt ─────────────────────────────────────── */
.status {
  border-top: 1px solid var(--line-soft);
  padding: 24px 28px 26px;
  background: var(--soft);
}

.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.status-icon svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.status h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.status p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.status dl {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
  gap: 10px 16px;
  margin: 16px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
}

.status dt {
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: center;
}

.status dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
  align-self: center;
}

.status--success {
  background: var(--success-soft);
}

.status--success h2 {
  color: var(--success);
}

.status--success .status-icon {
  background: var(--success);
  color: #fff;
}

.status--error {
  background: var(--danger-soft);
}

.status--error h2 {
  color: var(--danger);
}

.status--error .status-icon {
  background: var(--danger);
  color: #fff;
}

/* ─── Page footer (Lucía mark) ──────────────────────────── */
.page-foot {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 80px auto 0;
  color: var(--ink);
}

.page-foot-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.page-foot-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.page-foot-headshot {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
  .page {
    width: min(100% - 28px, 720px);
    padding: 44px 0 64px;
  }

  .topbar {
    height: 48px;
    padding: 0 14px;
  }

  .brand-logo {
    height: 24px;
  }

  .topbar-actions {
    gap: 7px;
  }

  .topbar-link {
    max-width: 150px;
    min-height: 26px;
    padding: 0 9px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-label {
    height: 26px;
    padding: 0 10px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .page-grid {
    height: 280px;
  }

  .intro {
    margin-bottom: 28px;
  }

  h1 br {
    display: none;
  }

  .lede {
    font-size: 17px;
  }

  .reservation-panel {
    border-radius: 12px;
  }

  .panel-header {
    padding: 18px 20px 16px;
    align-items: center;
  }

  .property-name {
    font-size: 21px;
  }

  .reservation-form {
    padding: 22px 20px;
    gap: 24px;
  }

  .date-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .date-grid--summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stay-bridge {
    min-width: 0;
  }

  .calendar-state {
    flex-wrap: wrap;
  }

  .field--compact {
    max-width: none;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .submit-button {
    width: 100%;
    justify-content: center;
  }

  .status {
    padding: 20px;
  }

  .status dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
    padding: 14px;
  }

  .status dd {
    margin-bottom: 8px;
  }

  .status dd:last-child {
    margin-bottom: 0;
  }

  .page-foot {
    margin-top: 56px;
    gap: 16px;
  }

  .page-foot-headshot {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 420px) {
  .panel-tag {
    height: 26px;
    padding: 0 10px;
    font-size: 11px;
  }
}

/* ─── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .panel-tag-dot::after,
  .field--active .field-indicator-dot::after,
  .submit-button[data-ready]::after {
    animation: none;
  }

  .field--complete .field-indicator-check,
  .calendar-day--nudge {
    animation: none;
  }

  .submit-button,
  .submit-button-icon,
  .topbar-link,
  .calendar-day,
  .calendar-state,
  .calendar-clear,
  .stay-bridge-chip,
  input {
    transition: none;
  }
}
