:root {
  --shv-blue: #18bc9c;
  --shv-navy: #2c3e50;
  --shv-gold: #f8981d;
  --shv-light: #f0f4f8;
  --shv-red: #dc2626;
}
* { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--shv-light); color: #1f2937; }

.page { min-height: 100vh; }
.page[hidden] { display: none !important; }

.page-login {
  background: linear-gradient(135deg, var(--shv-navy) 0%, #2d4a7a 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  max-width: 420px;
  width: 100%;
}
.login-card h2 { color: var(--shv-navy); font-weight: 700; margin-bottom: 8px; text-align: center; }
.login-card .subtitle { color: #6b7280; margin-bottom: 32px; text-align: center; font-size: .95rem; }

.logo-wrap { text-align: center; margin-bottom: 24px; }
.logo-wrap img { width: 280px; max-width: 100%; height: auto; }

.field { margin-bottom: 16px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--shv-navy); display: block; margin-bottom: 6px; }
.field .hint { font-size: .75rem; color: #8b8b8b; margin-top: 4px; }
.req { color: var(--shv-red); }

.form-control {
  width: 100%;
  border-radius: 10px;
  padding: 12px 16px;
  border: 1.5px solid #d1d5db;
  font-size: 1rem;
  outline: none;
  background: white;
  color: #1f2937;
}
.form-control:focus { border-color: var(--shv-blue); box-shadow: 0 0 0 3px rgba(24,188,156,.15); }
.form-control.field-error { border-color: var(--shv-red) !important; background: #fff5f5; }

/* Agreement modal — highlight missing required fields on Sign click. */
#agSigFirst.ag-field-error, #agSigLast.ag-field-error { border-color: var(--shv-red) !important; background: #fff5f5; }
.ag-check-error { outline: 2px solid var(--shv-red); outline-offset: 1px; }

/* Payment modal — two fixed payment-type choices. */
.pm-choice-btn {
  appearance: none; border: 2px solid #e5e7eb; background: #fff; border-radius: 12px;
  padding: 14px 12px; cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s;
  text-align: center; min-height: 78px;
}
.pm-choice-btn:hover { border-color: var(--shv-blue); }
.pm-choice-btn.active { border-color: var(--shv-blue); background: rgba(24,188,156,.06); box-shadow: 0 0 0 3px rgba(24,188,156,.12); }
.pm-choice-btn .pm-choice-label { font-weight: 700; color: var(--shv-navy); font-size: .95rem; }
.pm-choice-btn .pm-choice-amount { font-weight: 700; color: var(--shv-blue); font-size: 1.05rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pm-choice-btn[hidden] { display: none; }
#pmPayChoices { grid-template-columns: 1fr 1fr; }
/* Single-choice layout (when one of the two is hidden) — let the visible one stretch full-width. */
#pmPayChoices.single-choice { grid-template-columns: 1fr; }
/* "Other amount" row mimics the choice button look but contains an input. */
.pm-choice-custom { min-height: 56px; padding: 10px 14px; cursor: text; margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.pm-choice-custom[hidden] { display: none; }
.pm-choice-custom:focus-within { border-color: var(--shv-blue); background: rgba(24,188,156,.06); box-shadow: 0 0 0 3px rgba(24,188,156,.12); }
.pm-choice-custom input:focus { outline: none; border-color: var(--shv-blue); }

.btn-shv {
  background: var(--shv-blue);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  width: 100%;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s;
}
.btn-shv:hover { background: #14a589; }
.btn-shv:disabled { opacity: .6; cursor: wait; }

.error-banner {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: none;
  color: var(--shv-red);
  font-size: .85rem;
  font-weight: 600;
}
.error-banner.show { display: block; }
.error-banner.info {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}
.error-banner.success {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

.footer-links {
  text-align: center;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a, .link-btn {
  color: var(--shv-blue);
  text-decoration: none;
  font-size: .9rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}
.link-btn.muted { color: #6b7280; font-weight: 500; }

/* OTP */
.page-otp {
  background: var(--shv-light);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.otp-card {
  background: white;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 10px 40px rgba(0,0,0,.08);
  max-width: 440px;
  width: 100%;
  text-align: center;
}
.big-icon { font-size: 2.5rem; margin-bottom: 12px; }
.otp-card h2 { color: var(--shv-navy); font-weight: 700; margin-bottom: 8px; }
.muted { color: #6b7280; }
.otp-email { color: var(--shv-navy); font-weight: 600; margin: 4px 0 20px; }

.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.otp-inputs input {
  width: 48px; height: 56px;
  text-align: center;
  font-size: 1.4rem; font-weight: 700;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  outline: none;
}
.otp-inputs input:focus { border-color: var(--shv-blue); box-shadow: 0 0 0 3px rgba(24,188,156,.15); }

/* Home */
.page-home { background: var(--shv-light); }
.portal-header {
  background: white;
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.header-logo { height: 38px; }
.portal-main { padding: 24px 20px 100px; max-width: 960px; margin: 0 auto; display: grid; gap: 20px; }
.portal-main > * + * { margin-top: 0; }
/* Space between left-column cards and between right-column cards in the home grid */
.home-row > div { display: grid; gap: 20px; align-content: start; }

.greeting-wrap { margin-bottom: -12px; }
.greeting { color: var(--shv-navy); font-size: 1.5rem; font-weight: 700; margin: 0; }
.greeting-sub { color: #6b7280; margin: 0; font-size: .95rem; }

/* Reservation hero — first thing the guest sees, above the fold. White
   card with a teal accent bar so it matches the portal-card system but
   still reads as a hero. High-contrast dark text for legibility. */
.reservation-hero {
  background: white;
  color: var(--shv-navy);
  border-radius: 14px;
  padding: 18px 22px;
  border-left: 5px solid var(--shv-blue);
  box-shadow: 0 4px 16px rgba(44,62,80,.08);
  margin-bottom: 4px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.rh-bookingid-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e5e7eb;
  flex-wrap: nowrap;
}
.rh-bookingid-row .rh-bookingid-label { flex-shrink: 0; }
.rh-bookingid-row .rh-bookingid-value {
  flex-shrink: 0; white-space: nowrap;
}
.rh-bookingid-row .stay-status-pill { flex-shrink: 0; }
.rh-bookingid-row .status-pill-wrap { margin-left: auto; flex-shrink: 0; }

/* Status pill tooltip — explains what's needed for confirmation. Shown on
   hover (desktop) or tap (mobile, via JS-set data-open). */
.status-pill-wrap { position: relative; display: inline-flex; }
.status-pill-wrap .stay-status-pill { cursor: help; }
.status-tooltip {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  z-index: 20;
  width: max-content; max-width: min(320px, calc(100vw - 32px));
  background: #1f2937; color: #f9fafb;
  font-size: .82rem; line-height: 1.45; font-weight: 500;
  padding: 10px 12px; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  pointer-events: none;
  white-space: normal;
}
.status-tooltip[hidden] { display: none; }
.status-tooltip::before {
  content: ""; position: absolute;
  top: -5px; right: 14px;
  width: 10px; height: 10px;
  background: #1f2937;
  transform: rotate(45deg);
}
.status-pill-wrap:hover .status-tooltip,
.status-pill-wrap:focus-within .status-tooltip,
.status-pill-wrap[data-open="1"] .status-tooltip {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.rh-bookingid-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .6px;
  color: #6b7280; font-weight: 600;
}
.rh-bookingid-value {
  font-size: 1.05rem; font-weight: 700; color: var(--shv-blue);
  letter-spacing: .3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}
.rh-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
  flex-wrap: wrap;
}
.rh-prop { min-width: 0; flex: 1 1 60%; }
.rh-prop-name-row {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
}
.rh-prop-name {
  font-size: 1.2rem; font-weight: 700; line-height: 1.25;
  color: var(--shv-navy);
  overflow: hidden; text-overflow: ellipsis;
}
a.rh-prop-name {
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color .15s ease, border-color .15s ease;
  cursor: pointer;
}
a.rh-prop-name:hover,
a.rh-prop-name:focus-visible {
  color: var(--shv-blue);
  border-bottom-color: var(--shv-blue);
  outline: none;
}
a.rh-prop-name[hidden] { display: none; }
.rh-prop-distance {
  font-size: .82rem; font-weight: 600; color: var(--shv-blue);
  white-space: nowrap;
}
.rh-prop-loc-row {
  display: flex; align-items: center; gap: 8px; margin-top: 2px;
  flex-wrap: wrap;
}
.rh-prop-loc {
  font-size: .85rem; color: #6b7280;
  overflow: hidden; text-overflow: ellipsis;
}
.rh-map-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 600;
  color: var(--shv-blue); background: rgba(24,188,156,.1);
  border: 1px solid rgba(24,188,156,.3);
  border-radius: 6px;
  padding: 3px 9px;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.rh-map-btn:hover { background: rgba(24,188,156,.2); }
.rh-map-btn[hidden] { display: none; }
.reservation-hero .stay-status-pill { flex-shrink: 0; }
.rh-dates {
  display: flex; align-items: center; gap: 14px;
  background: var(--shv-light);
  border-radius: 10px;
  padding: 12px 14px;
  flex-wrap: wrap;
}
.rh-date-block { min-width: 0; }
.rh-date-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .5px;
  color: #6b7280; font-weight: 600;
}
.rh-date-value {
  font-size: 1rem; font-weight: 700; margin-top: 2px; white-space: nowrap;
  color: var(--shv-navy);
}
.rh-date-arrow { color: var(--shv-blue); font-size: 1.1rem; }
.rh-meta {
  margin-left: auto; display: flex; flex-direction: column; align-items: flex-end;
  font-size: .82rem; gap: 2px; color: #4b5563;
}
.rh-meta-item { white-space: nowrap; }
.rh-specs {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 12px;
}
.rh-specs:empty { display: none; }
.rh-spec {
  font-size: .85rem; color: #4b5563;
  white-space: nowrap;
}
.rh-total {
  display: flex; align-items: baseline; justify-content: flex-start;
  gap: 10px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}
.rh-total[hidden] { display: none; }
.rh-total-label {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .5px;
  color: #6b7280; font-weight: 600;
}
.rh-total-due {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .5px;
  color: #dc2626; font-weight: 700;
}
.rh-total-due.paid { color: #15803d; }
.rh-total-due.due-future { color: #15803d; text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 600; }
.rh-total-value {
  font-size: 1.15rem; font-weight: 800; color: var(--shv-navy);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .reservation-hero { padding: 16px 16px; border-radius: 12px; border-left-width: 4px; }
  /* On mobile, shrink booking-ID label/value/pill so the full ID + status
     pill fit on a single line without truncation. */
  .rh-bookingid-row { gap: 6px; }
  /* Drop the "Booking ID" label on mobile — the ID itself is recognisable
     on its own (SHV/MO/YVR prefix) and the row gets cramped otherwise. */
  .rh-bookingid-label { display: none; }
  .rh-bookingid-value { font-size: 1.25rem; }
  .rh-prop-name { font-size: 1.15rem; }
  .rh-prop-loc { font-size: .92rem; white-space: normal; }
  .rh-prop-distance { font-size: .9rem; }
  .rh-top { gap: 8px; margin-bottom: 12px; }
  .reservation-hero .stay-status-pill { font-size: .72rem; padding: 4px 8px; }
  .rh-spec { font-size: .92rem; }
  .rh-dates { gap: 10px; padding: 12px 14px; }
  .rh-date-label { font-size: .75rem; }
  .rh-date-value { font-size: 1rem; }
  .rh-date-arrow { font-size: 1.1rem; }
  /* Hide nights/guests on mobile — dates already convey the trip length. */
  .rh-meta { display: none; }
  .rh-total-label { font-size: .82rem; }
  .rh-total-value { font-size: 1.2rem; }
  .rh-map-btn { font-size: .82rem; padding: 4px 10px; }
}

.portal-card {
  background: white;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.portal-card h3 {
  color: var(--shv-navy); font-weight: 700; font-size: 1.05rem;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.portal-card h3 i { color: var(--shv-blue); }
.small { font-size: .82rem; }

/* Property hero card */
.property-card {
  background: white; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.property-hero {
  position: relative; height: 220px;
  background: linear-gradient(135deg, var(--shv-navy) 0%, #2d4a7a 100%);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.property-hero[data-img="1"] .hero-placeholder { display: none; }
.hero-placeholder { color: rgba(255,255,255,.4); font-size: 4rem; }
.status-pill {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(24,188,156,.95); color: white;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  backdrop-filter: blur(4px);
}
.status-pill.cancelled { background: rgba(220,38,38,.95); }
.status-pill.refunded  { background: rgba(248,152,29,.95); }
.status-pill.unknown   { background: rgba(107,114,128,.95); }

.property-body { padding: 20px 24px; }
.property-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.property-name-row h2 { color: var(--shv-navy); font-weight: 700; font-size: 1.35rem; }
.badge {
  background: var(--shv-light); color: var(--shv-navy);
  padding: 3px 10px; border-radius: 6px; font-size: .75rem; font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.property-address { font-size: .92rem; margin-bottom: 12px; }
.property-stats {
  list-style: none; display: flex; flex-wrap: wrap; gap: 18px;
  font-size: .9rem; color: #4b5563;
}
.property-stats li i { color: var(--shv-blue); margin-right: 5px; }

/* Stay strip */
.stay-strip {
  background: white; border-radius: 14px; padding: 18px 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 16px; align-items: center;
}
.stay-block { display: flex; flex-direction: column; gap: 2px; }
.stay-label {
  font-size: .7rem; font-weight: 700; color: #6b7280;
  text-transform: uppercase; letter-spacing: .6px;
}
.stay-date { color: var(--shv-navy); font-size: 1.1rem; }
.stay-time { font-size: .8rem; color: #6b7280; }
.stay-arrow { color: #d1d5db; font-size: 1.4rem; }
.stay-meta {
  display: flex; flex-direction: column; gap: 4px;
  text-align: right; padding-left: 16px; border-left: 1px solid #e5e7eb;
  font-size: .85rem; color: #4b5563;
}
.stay-nights { font-weight: 700; color: var(--shv-navy); }

/* Two-up grid */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Financials */
.kv-table { width: 100%; border-collapse: collapse; }
.kv-table td { padding: 6px 0; font-size: .92rem; }
.kv-table td.k { color: #6b7280; }
.kv-table td.v { color: var(--shv-navy); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.kv-table tr.total td { border-top: 1.5px solid #e5e7eb; padding-top: 10px; font-size: 1rem; }
.financials-balance {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  font-weight: 700; font-size: .95rem;
  background: #ecfdf5; color: #065f46;
  display: flex; justify-content: space-between; align-items: center;
}
.financials-balance.has-balance { background: #fef3c7; color: #92400e; }

/* Checklist */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; background: #f9fafb;
  font-size: .92rem; color: #374151;
}
.checklist li.done { background: #ecfdf5; color: #065f46; }
.checklist li.locked { opacity: .55; }
.checklist .check-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: #e5e7eb; display: flex; align-items: center; justify-content: center;
  color: #9ca3af; font-size: .75rem; flex-shrink: 0;
}
.checklist li.done .check-icon { background: var(--shv-blue); color: white; }
.checklist .slice-tag {
  margin-left: auto; font-size: .7rem; color: #9ca3af;
  font-family: ui-monospace, monospace;
}

/* Access card */
.access-card { text-align: center; }
.access-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 2.2rem; font-weight: 700; letter-spacing: 4px;
  color: var(--shv-navy); margin: 8px 0;
  padding: 14px; background: var(--shv-light); border-radius: 10px;
}

/* Checklist actionable rows (slice 3+) */
.checklist li.actionable {
  cursor: pointer;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  transition: background .15s, transform .05s;
}
.checklist li.actionable:hover { background: #fef3c7; }
.checklist li.actionable:active { transform: translateY(1px); }
.checklist li.actionable .check-icon { background: var(--shv-gold); color: white; }
.checklist li.actionable .arrow { margin-left: auto; color: var(--shv-gold); font-size: 1rem; }
.checklist li.actionable .slice-tag { display: none; }
.checklist .meta { font-size: .75rem; color: #6b7280; margin-left: auto; }
.checklist li.done .meta { color: #047857; }

/* Slice 3 — Agreement view */
.page-agreement { background: var(--shv-light); }
.agreement-main { max-width: 760px; }
.agreement-main h1 { color: var(--shv-navy); font-weight: 700; font-size: 1.5rem; }

.signed-banner {
  background: #ecfdf5; color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 600;
}
.signed-banner i { font-size: 1.6rem; color: #059669; }
.signed-banner strong { display: block; }
.signed-banner .small { display: block; font-weight: 500; }

.agreement-card { padding: 0; overflow: hidden; }
.agreement-body {
  max-height: 480px;
  overflow-y: auto;
  padding: 24px 28px;
  font-size: .92rem;
  line-height: 1.55;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}
.agreement-body:focus { outline: 2px solid var(--shv-blue); outline-offset: -2px; }
.agreement-body h2 { color: var(--shv-navy); font-size: 1.2rem; margin: 8px 0 14px; }
.agreement-body h3 { color: var(--shv-navy); font-size: 1rem; margin: 16px 0 6px; }
.agreement-body p { margin-bottom: 10px; }
.agreement-body ul { margin: 0 0 12px 22px; }
.agreement-body .agreement-flag {
  background: #fef3c7; color: #92400e;
  border-left: 4px solid var(--shv-gold);
  padding: 10px 14px; border-radius: 6px;
  margin-bottom: 18px; font-size: .85rem;
}
.agreement-body .agreement-foot {
  margin-top: 18px; font-style: italic; color: #4b5563;
}
.scroll-hint {
  background: #f9fafb;
  padding: 10px 16px;
  font-size: .8rem;
  color: #6b7280;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.scroll-hint.read { background: #ecfdf5; color: #047857; }
.scroll-hint.read i::before { content: "\f26b"; /* bi-check-circle-fill */ }

.sign-card .agree-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: #f9fafb;
  border-radius: 10px;
  cursor: pointer;
  margin: 14px 0 16px;
  font-size: .9rem;
  color: #374151;
  user-select: none;
}
.sign-card .agree-row input[type=checkbox] {
  width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--shv-blue);
  flex-shrink: 0;
}
.sign-fineprint { margin-top: 12px; }

@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr; }
  .stay-strip { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .stay-arrow { transform: rotate(90deg); }
  .stay-meta { border-left: none; border-top: 1px solid #e5e7eb; padding: 12px 0 0; text-align: center; flex-direction: row; justify-content: center; gap: 16px; }
}

@media (max-width: 480px) {
  .login-card { padding: 24px 20px; }
  .otp-card { padding: 32px 20px; }
  .otp-inputs input { width: 42px; height: 48px; font-size: 1.2rem; }
  .logo-wrap img { width: 240px; }
}

/* Slice 6 — messaging */
.messages-card { padding: 0; overflow: hidden; }

/* Empty-state — shown when there are no messages yet. */
.messages-empty {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 28px 18px 12px; gap: 8px;
  color: #475569;
}
.messages-empty .me-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; box-shadow: 0 6px 14px rgba(59, 130, 246, .25);
  margin-bottom: 4px;
}
.messages-empty .me-title { font-weight: 700; font-size: 1.05rem; color: #1e293b; }
.messages-empty .me-sub { font-size: .88rem; line-height: 1.45; max-width: 360px; }
.messages-empty .me-chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-top: 10px;
}
.messages-empty .me-chip {
  border: 1px solid #cbd5e1; background: #fff;
  border-radius: 999px; padding: 7px 14px;
  font-size: .82rem; font-weight: 500; color: #1e293b;
  cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, transform .1s;
}
.messages-empty .me-chip:hover { background: #f1f5f9; border-color: #94a3b8; }
.messages-empty .me-chip:active { transform: scale(.97); }
.messages-thread {
  min-height: 240px;
  max-height: 56vh;
  overflow-y: auto;
  padding: 16px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid #e5e7eb;
}
.msg-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-wrap;
  font-size: 16px;
  position: relative;
}
.msg-bubble .msg-meta {
  display: block;
  font-size: 12px;
  opacity: 0.65;
  margin-top: 4px;
}
.msg-bubble.guest {
  align-self: flex-end;
  background: #2c3e50;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-bubble.host {
  align-self: flex-start;
  background: #fff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
}
.msg-bubble.pending { opacity: 0.6; font-style: italic; }
.messages-compose { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; background: #f0f2f5; }
.messages-compose textarea { resize: none; font-size: 16px; }

/* WhatsApp-style compose row: paperclip + pill input + circular send. */
.wa-compose-row {
  display: flex; align-items: flex-end; gap: 8px;
}
.wa-input {
  flex: 1 1 auto; min-width: 0;
  background: #fff; color: #111b21;
  border: none; outline: none;
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 16px; line-height: 1.35;
  font-family: inherit;
  box-shadow: 0 1px 1px rgba(0,0,0,.05);
  resize: none;
  min-height: 40px; max-height: 140px;
  overflow-y: auto;
}
.wa-input:focus { background: #fff; outline: none; box-shadow: 0 0 0 2px rgba(24,188,156,.25); }
.wa-attach-btn,
.wa-send-btn {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0;
}
.wa-attach-btn {
  background: transparent;
  color: #54656f;
}
.wa-attach-btn:hover { background: rgba(0,0,0,.06); }
.wa-send-btn {
  background: var(--shv-blue);
  color: #fff;
  transition: transform .12s ease, background .15s;
}
.wa-send-btn:hover { background: #15a085; }
.wa-send-btn:active { transform: scale(0.94); }
.wa-send-btn:disabled { background: #d1d5db; cursor: not-allowed; }
.wa-send-btn .bi { transform: translateX(1px); } /* nudge paper-plane visual center */
.wa-status { display: block; text-align: center; font-size: .72rem; }

.message-attachment-preview {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; background: #f3f4f6; border-radius: 8px;
}
.message-attachment-preview img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 6px;
  flex-shrink: 0;
}
.message-attachment-meta {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0; flex: 1;
}

.msg-attachment {
  display: block; margin-bottom: 6px;
  border-radius: 10px; overflow: hidden;
  max-width: 240px;
}
.msg-attachment img {
  display: block; width: 100%; height: auto; max-height: 320px;
  object-fit: cover;
}

/* Slice 5b — property gallery thumbnail strip */
.property-gallery {
  display: flex;
  gap: 6px;
  padding: 8px 12px 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.property-gallery::-webkit-scrollbar { height: 4px; }
.property-gallery::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
.property-gallery .thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 64px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.property-gallery .thumb:hover {
  transform: translateY(-1px);
  border-color: #94a3b8;
}
.property-gallery .thumb.active {
  border-color: #2c3e50;
}

/* Lightbox overlay for fullsize photo viewing */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gallery-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.gallery-lightbox .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}
.gallery-lightbox .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}
.gallery-lightbox .nav-btn.prev { left: 16px; }
.gallery-lightbox .nav-btn.next { right: 16px; }

/* Slice 5 — guest list row card */
.guest-row {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
}
.guest-row-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 80px;
  gap: 8px;
}
.guest-row-fields .field { margin: 0; }
.guest-row-fields .field label.small { font-size: 11px; margin-bottom: 4px; display: block; }
.guest-row-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.guest-row-options .opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}
.guest-row-options .opt input { margin: 0; }
.guest-row-remove,
.link-btn.muted.guest-row-remove {
  margin-left: auto;
  font-size: 13px;
  color: #dc2626;
  font-weight: 600;
}
.guest-row-remove:hover,
.link-btn.muted.guest-row-remove:hover {
  color: #b91c1c;
}

/* Narrow screens: First/Last name on row 1, Age + options together */
@media (max-width: 480px) {
  .guest-row-fields {
    grid-template-columns: 1fr 1fr;
  }
  .guest-row-fields .field:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 120px;
  }
}

/* Vehicle row mirrors guest-row card pattern. */
.vehicle-row {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.vehicle-row .field { margin: 0; }
.vehicle-row .field label.small { font-size: 11px; margin-bottom: 4px; display: block; }

/* Done rows are still clickable (review/edit a submitted section) */
.checklist li.done { cursor: pointer; }
.checklist li.done:hover { background: #d1fae5; }
.checklist li.done .arrow { color: #047857; margin-left: auto; }

/* Outlined secondary button — Add guest / Add vehicle */
.btn-secondary-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  margin: 6px 0 14px;
  background: #fff;
  border: 1.5px dashed var(--shv-blue, #2c3e50);
  color: var(--shv-blue, #2c3e50);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-style 0.15s ease;
}
.btn-secondary-outline:hover {
  background: #f1f5f9;
  border-style: solid;
}
.btn-secondary-outline:active {
  background: #e2e8f0;
}

.guest-counter {
  padding: 6px 10px;
  margin-bottom: 10px;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 12px;
  color: #475569;
}
.guest-counter strong { color: #1e293b; }

/* ID upload — file selection preview */
.id-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  position: relative;
}
.id-preview-thumb {
  width: 100%;
  max-height: 320px;
  border-radius: 8px;
  object-fit: contain;
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  display: block;
}
.id-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}
.id-preview-name {
  font-size: 13px;
  font-weight: 600;
  color: #065f46;
  word-break: break-all;
}
.id-preview-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  margin-top: 4px;
  background: white;
  color: #dc2626;
  border: 1.5px solid #fca5a5;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.id-preview-clear:hover {
  background: #fef2f2;
  border-color: #dc2626;
}
.id-preview-clear:active {
  background: #fee2e2;
}
.id-preview-clear i {
  font-size: 16px;
}

/* Visually-hidden but still accessible (screen readers + label clicks). */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom file picker — replaces the ugly native input button. */
.file-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 22px 16px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #fafbfc;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-align: center;
  margin-top: 4px;
}
.file-picker:hover, .file-picker:focus-within {
  background: #f0f9ff;
  border-color: var(--shv-blue);
}
.file-picker:active {
  background: #e0f2fe;
}
.file-picker i {
  font-size: 28px;
  color: var(--shv-blue);
  margin-bottom: 4px;
}
.file-picker-label {
  font-weight: 600;
  color: var(--shv-navy);
  font-size: 14px;
}
.file-picker-hint {
  font-size: 12px;
  color: #6b7280;
}
/* Once a file is chosen, hide the picker — preview takes over. */
.field.has-file .file-picker { display: none; }

/* Submit success state — shared by ID upload, guest list, vehicles, contact info */
.submit-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 16px;
  gap: 8px;
  animation: submitSuccessFade 0.3s ease;
}
.submit-success[hidden] { display: none !important; }
.id-preview[hidden] { display: none !important; }
.submit-success h2 {
  color: #065f46;
  font-size: 1.4rem;
  margin-top: 8px;
}
.submit-success-check {
  width: 96px;
  height: 96px;
}
.submit-success-check svg {
  width: 100%;
  height: 100%;
  display: block;
}
.submit-success-circle {
  stroke: #10b981;
  stroke-width: 3;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: submitSuccessCircle 0.5s ease forwards;
}
.submit-success-tick {
  stroke: #10b981;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: submitSuccessTick 0.4s 0.5s ease forwards;
}
@keyframes submitSuccessCircle { to { stroke-dashoffset: 0; } }
@keyframes submitSuccessTick   { to { stroke-dashoffset: 0; } }
@keyframes submitSuccessFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Slice 7 — AI message bubble distinction */
.msg-bubble.host.ai {
  background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 100%);
  border: 1px solid #a7f3d0;
  border-bottom-left-radius: 4px;
}
.msg-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--shv-blue, #18bc9c);
  color: white;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  margin-right: 6px;
  vertical-align: 1px;
}
.msg-ai-badge i {
  font-size: 11px;
}

/* Slice 4 — Payment view */
.sandbox-badge {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: .3px;
}
.payment-summary {
  background: #f9fafb;
  border-radius: 10px;
  padding: 14px 16px;
}
.payment-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
}
.payment-row.payment-balance {
  border-top: 1px solid var(--border, #e5e7eb);
  margin-top: 8px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--shv-navy);
}
.payment-label { color: #6b7280; }
.payment-value { color: var(--shv-navy); font-variant-numeric: tabular-nums; font-weight: 600; }
.payment-amount-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}
.payment-amount-row .muted { text-align: center; }
.payment-history {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.payment-history li {
  display: grid;
  grid-template-columns: 1fr auto 100px;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  align-items: center;
  background: white;
}
.payment-history li:nth-child(even) { background: #f9fafb; }
.payment-history .pay-when { color: #6b7280; }
.payment-history .pay-amt { font-weight: 700; color: var(--shv-navy); font-variant-numeric: tabular-nums; }
.payment-history .pay-method { color: #6b7280; font-size: 11px; text-align: right; }

/* Slice 9 — Options marketplace */
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.option-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: white;
  transition: border-color .15s ease;
}
.option-card:hover { border-color: var(--shv-blue); }
.option-card.owned { background: #f0fdf4; border-color: #bbf7d0; }
.option-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--shv-light, #f0f4f8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shv-blue, #18bc9c);
  font-size: 26px;
}
.option-card.owned .option-icon { background: #ecfdf5; color: #15803d; }
.option-body { min-width: 0; }
.option-title { font-weight: 700; color: var(--shv-navy); font-size: 15px; }
.option-sub { font-size: 12px; color: #6b7280; margin-top: 2px; line-height: 1.3; }
.option-price {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--shv-navy);
  font-variant-numeric: tabular-nums;
}
.option-buy {
  width: auto;
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}
.option-owned {
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
  padding: 4px 10px;
  background: #d1fae5;
  border-radius: 999px;
  white-space: nowrap;
}

/* ========== PROTOTYPE PARITY COMPONENTS ========== */
/* Header — match prototype: white bg, teal underline, logo + phone + socials + logout.
   Inner content aligns to the same 960px boundary as .portal-main so the logo and
   sign-out lock to the page gutters on desktop. */
.portal-header {
  background: white;
  border-bottom: 2px solid var(--shv-blue);
  padding: 10px max(20px, calc((100% - 920px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.portal-header .header-logo { height: 56px; }
.portal-header .header-right {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.portal-header .header-phone {
  color: var(--shv-navy); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.portal-header .header-phone i { color: var(--shv-blue); margin-right: 4px; }
.portal-header .header-socials { display: flex; gap: 12px; }
.portal-header .header-socials a { color: var(--shv-navy); font-size: 1.1rem; text-decoration: none; }
.portal-header .header-socials a:hover { color: var(--shv-blue); }

/* Stepper — 5-step linear progress */
.stepper-card { padding: 16px 24px; }
.stepper {
  display: flex; align-items: flex-start; justify-content: space-between;
  position: relative; padding: 8px 0;
}
.stepper-line {
  position: absolute; top: 18px; left: 8%; right: 8%;
  height: 3px; background: #e5e7eb; z-index: 0; border-radius: 2px;
}
.stepper-line-fill {
  height: 100%; background: var(--shv-blue);
  border-radius: 2px; transition: width .5s ease;
}
.step {
  display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 1; flex: 1; gap: 8px;
}
.step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  background: #e5e7eb; color: #6b7280;
  transition: all .3s; flex-shrink: 0;
}
.step.completed .step-circle { background: var(--shv-blue); color: white; }
.step.current .step-circle {
  background: white; color: var(--shv-blue);
  border: 3px solid var(--shv-blue);
  box-shadow: 0 0 0 4px rgba(24,188,156,.2);
}
.step-label {
  font-size: .72rem; color: #6b7280;
  text-align: center; max-width: 80px;
  line-height: 1.25;
}
.step.completed .step-label { color: var(--shv-blue); font-weight: 600; }
.step.current .step-label { color: var(--shv-navy); font-weight: 700; }

/* Action banner — top-of-page prompt: "Sign rental agreement", "Pay deposit", etc. */
.action-banner {
  border-radius: 14px;
  padding: 18px 22px;
  display: flex; align-items: center;
  gap: 14px; flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

/* Inline button spinner — used for the rental-agreement Sign button so the
   guest sees instant feedback instead of a frozen-looking pause. */
.ag-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  margin-right: 6px;
  animation: ag-spin .7s linear infinite;
}
@keyframes ag-spin { to { transform: rotate(360deg); } }
.action-banner .ab-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: white; flex-shrink: 0;
}
.action-banner .ab-body { flex: 1; min-width: 0; }
.action-banner .ab-title { font-weight: 800; font-size: 1.02rem; }
.action-banner .ab-sub { font-size: .85rem; margin-top: 2px; }
.action-banner .ab-cta {
  border: none; border-radius: 10px;
  padding: 10px 18px; font-weight: 700; font-size: .9rem;
  color: white; cursor: pointer; white-space: nowrap;
  font-family: inherit;
}
.action-banner .ab-arrow {
  font-size: 1.6rem; line-height: 1; flex-shrink: 0;
  display: inline-flex; align-items: center;
  animation: ab-arrow-bounce 1s ease-in-out infinite;
}
.action-banner.warning .ab-arrow { color: #f59e0b; }
.action-banner.info .ab-arrow { color: #3b82f6; }
.action-banner.success .ab-arrow { display: none; }
@keyframes ab-arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .action-banner .ab-arrow { animation: none !important; }
}
.action-banner.warning {
  background: #fef3c7; border: 1.5px solid #f59e0b;
}
.action-banner.warning .ab-icon, .action-banner.warning .ab-cta { background: #f59e0b; }
.action-banner.warning .ab-title { color: #92400e; }
.action-banner.warning .ab-sub { color: #b45309; }
.action-banner.info {
  background: #dbeafe; border: 1.5px solid #3b82f6;
}
.action-banner.info .ab-icon, .action-banner.info .ab-cta { background: #3b82f6; }
.action-banner.info .ab-title { color: #1e3a8a; }
.action-banner.info .ab-sub { color: #1e40af; }
.action-banner.success {
  background: #d1fae5; border: 2px solid #059669;
}
.action-banner.success .ab-icon, .action-banner.success .ab-cta { background: #059669; }
.action-banner.success .ab-title { color: #065f46; }
.action-banner.success .ab-sub { color: #047857; }

/* Property hero — overlay text on photo (replaces card-then-text layout) */
.property-hero-v2 {
  position: relative; border-radius: 14px; overflow: hidden;
  height: 320px; background: linear-gradient(135deg, var(--shv-navy) 0%, #2d4a7a 100%);
  background-size: cover; background-position: center;
  cursor: pointer;
}
.property-hero-v2 .hero-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,.78));
  padding: 60px 24px 24px; color: white;
}
.property-hero-v2 .hero-overlay h2 {
  font-weight: 800; font-size: 1.55rem; margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.property-hero-v2 .hero-overlay .hero-addr {
  opacity: .92; font-size: .92rem;
}
.property-hero-v2 .hero-overlay .hero-addr i { color: var(--shv-gold); margin-right: 4px; }
.property-hero-v2 .hero-pill {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(24,188,156,.95); color: white;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  backdrop-filter: blur(4px);
}
.property-hero-v2 .hero-pill.cancelled { background: rgba(220,38,38,.95); }
.property-hero-v2 .hero-pill.refunded { background: rgba(248,152,29,.95); }

/* Photo strip — horizontal scroll thumbnails */
.photo-strip {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.photo-strip::-webkit-scrollbar { height: 6px; }
.photo-strip::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.photo-strip img {
  width: 110px; height: 80px; object-fit: cover;
  border-radius: 10px; cursor: pointer;
  opacity: .85; transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}
.photo-strip img:hover { opacity: 1; transform: translateY(-2px); }

/* Specs row (bedrooms/baths/sleeps) */
.specs-row {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.specs-row .spec {
  display: flex; align-items: center; gap: 6px;
  background: var(--shv-light); padding: 8px 14px;
  border-radius: 10px;
  color: #374151; font-size: .88rem; font-weight: 600;
}
.specs-row .spec i { color: var(--shv-blue); font-size: 1rem; }

/* Action rows — exact prototype port (.action-row + .action-icon + .action-label + .action-desc + .action-badge + .chevron) */
.action-rows { display: flex; flex-direction: column; }
.action-row {
  display: flex; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer; transition: background .2s;
  text-decoration: none; color: inherit;
}
.action-row:last-child { border-bottom: none; }
.action-row[hidden] { display: none !important; }
.action-row.action-row-pulse {
  position: relative;
  border-radius: 10px;
  margin: 4px -8px;
  padding-left: 8px; padding-right: 8px;
  animation: shv-pulse 1.6s ease-in-out infinite;
}
@keyframes shv-pulse {
  0%, 100% {
    background: rgba(245, 158, 11, .08);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, .35);
  }
  50% {
    background: rgba(245, 158, 11, .18);
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
}
.action-row.action-row-pulse .action-badge.badge-pending {
  background: #f59e0b; color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .action-row.action-row-pulse { animation: none; background: rgba(245, 158, 11, .12); }
}
.action-row:hover {
  background: #f9fafb;
  margin: 0 -24px; padding-left: 24px; padding-right: 24px;
  border-radius: 10px;
}
.action-row.locked { cursor: not-allowed; opacity: .55; }
.action-row.locked:hover { background: transparent; margin: 0; padding-left: 0; padding-right: 0; }
.action-row .action-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-right: 14px; flex-shrink: 0;
}
.action-row .action-label {
  font-weight: 600; color: var(--shv-navy); font-size: .95rem;
}
.action-row .action-desc {
  font-size: .8rem; color: #4b5563;
}
.action-row .action-badge {
  margin-left: auto; padding: 4px 12px;
  border-radius: 20px; font-size: .75rem; font-weight: 600;
  white-space: nowrap;
}
.action-row .badge-done { background: #d1fae5; color: #059669; }
.action-row .badge-pending { background: #fef3c7; color: #b45309; }
.action-row .badge-required { background: #fee2e2; color: #dc2626; }
.action-row .chevron { margin-left: 12px; color: #6b7280; }
.action-row.locked .chevron { display: none; }

/* Contact Information card on home — display rows + edit button */
.contact-info-rows { display: flex; flex-direction: column; gap: 12px; }
.contact-info-row { display: flex; align-items: center; gap: 12px; }
.contact-info-row[hidden] { display: none !important; }
.contact-info-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-body { min-width: 0; flex: 1; }
.contact-info-label { font-size: .75rem; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.contact-info-value {
  font-weight: 600; color: var(--shv-navy); font-size: .95rem;
  word-break: break-word;
}
.contact-info-value.muted { color: #9ca3af; font-weight: 500; font-style: italic; }

/* Standalone badge classes (used inline in markup) */
.badge-done { background: #d1fae5; color: #059669; padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-pending { background: #fef3c7; color: #b45309; padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-required { background: #fee2e2; color: #dc2626; padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; }

/* Bootstrap accordion override — matches prototype info-accordion */
.info-accordion { --bs-accordion-active-bg: var(--shv-light); --bs-accordion-active-color: var(--shv-blue); --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-border-color: transparent; --bs-accordion-bg: transparent; }
.info-accordion .accordion-item { background: transparent; border: none; border-bottom: 1px solid #f3f4f6; }
.info-accordion .accordion-item:last-child { border-bottom: none; }
.info-accordion .accordion-button {
  font-weight: 600; color: var(--shv-navy);
  background: transparent; box-shadow: none;
  font-size: .92rem; padding: 14px 4px;
}
.info-accordion .accordion-button:not(.collapsed) {
  background: var(--shv-light); color: var(--shv-blue);
  border-radius: 8px;
}
.info-accordion .accordion-button:focus { box-shadow: none; }
.info-accordion .accordion-body {
  font-size: .88rem; color: #4b5563; line-height: 1.55;
  padding: 4px 4px 14px;
}
.info-accordion .accordion-body a { color: var(--shv-blue); font-weight: 600; text-decoration: none; }

/* Property gallery (prototype p-gallery) — full-width carousel */
.p-gallery {
  position: relative; border-radius: 14px; overflow: hidden;
  margin-bottom: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  background: #f3f4f6;
}
.p-gallery-scroll {
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.p-gallery-scroll::-webkit-scrollbar { display: none; }
.p-gallery-scroll img {
  min-width: 100%; height: 320px; object-fit: cover;
  scroll-snap-align: start; display: block;
  cursor: zoom-in;
}
.p-gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: white; font-size: .9rem; font-weight: 600;
  pointer-events: none;
}
.p-gallery-count {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.6); color: white;
  padding: 4px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 600;
}
.p-gallery-btn {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(255,255,255,.95); color: var(--shv-navy);
  border: none; border-radius: 8px; padding: 6px 12px;
  font-size: .78rem; font-weight: 700; cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.p-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.92); border: none;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.2rem; color: var(--shv-navy);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.p-gallery-nav.prev { left: 12px; }
.p-gallery-nav.next { right: 12px; }
.p-gallery-nav:hover { background: white; }
@media (max-width: 640px) {
  .p-gallery-scroll img { height: 160px; }
  .p-gallery-nav { width: 30px; height: 30px; font-size: .9rem; }
  .p-gallery-caption { padding: 8px 12px; font-size: .82rem; }
  .p-gallery-btn { padding: 4px 10px; font-size: .78rem; }
  .p-gallery-count { font-size: .7rem; padding: 2px 8px; }
}

/* Property info card — prototype p-prop-info */
.p-prop-info {
  background: white; border-radius: 14px;
  padding: 16px 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid #e5e7eb;
}
.p-prop-name {
  font-size: 1.2rem; font-weight: 800;
  color: var(--shv-navy); margin-bottom: 2px;
}
.p-prop-location {
  font-size: .88rem; color: #6b7280;
  margin-bottom: 12px;
}
.p-prop-location .distance {
  color: var(--shv-blue); font-weight: 600;
}
.p-prop-specs {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.p-prop-spec { font-size: .85rem; color: #4b5563; }
.p-prop-rating {
  display: flex; align-items: center; gap: 8px;
  padding-top: 10px; border-top: 1px solid #f0f0f0;
}
.p-prop-stars { color: var(--shv-gold); font-size: .9rem; letter-spacing: 1px; }
.p-prop-score { font-size: .9rem; font-weight: 800; color: var(--shv-navy); }
.p-prop-reviews { font-size: .8rem; color: #8b8b8b; }

/* "Your Stay" — consolidated card matching prototype */
.your-stay-card .ys-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; flex-wrap: wrap; gap: 10px;
}
.your-stay-card .ys-header h3 { margin: 0; }
.your-stay-card .ys-dates {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 12px;
}
.your-stay-card .ys-date-block { padding: 4px 0; }
.your-stay-card .ys-label {
  font-size: .78rem; color: #6b7280;
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 4px;
}
.your-stay-card .ys-date {
  font-size: 1.15rem; font-weight: 700; color: var(--shv-navy);
  margin-bottom: 2px;
}
.your-stay-card .ys-time { font-size: .85rem; color: #6b7280; }
.your-stay-card .ys-meta {
  font-size: .85rem; color: #4b5563;
  display: flex; gap: 8px; align-items: center;
  background: var(--shv-light); padding: 8px 14px; border-radius: 10px;
  display: inline-flex;
}
.your-stay-card .ys-meta-dot { color: #9ca3af; }
@media (max-width: 480px) {
  .your-stay-card .ys-dates { grid-template-columns: 1fr; gap: 12px; }
  .your-stay-card .ys-date { font-size: 1.05rem; }
}

/* Legacy "Your Stay" detail blocks — booking ID, address (prototype style) */
.stay-detail-block { padding: 4px 0; }
.stay-detail-block .sd-label {
  font-size: .78rem; color: #6b7280;
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 2px;
}
.stay-detail-block .sd-value {
  font-weight: 600; color: var(--shv-navy);
}
.stay-detail-block .sd-link {
  color: var(--shv-blue); text-decoration: none;
  font-weight: 600; font-size: .85rem;
  margin-top: 4px; display: inline-block;
}
.stay-divider { border: none; border-top: 1px solid #f3f4f6; margin: 14px 0; }
.stay-status-pill {
  background: #d1fae5; color: #059669;
  padding: 5px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.stay-status-pill.warning { background: #fef3c7; color: #b45309; }
.stay-status-pill.info { background: #dbeafe; color: #335df1; }
.stay-status-pill.danger { background: #fee2e2; color: #dc2626; }

/* Attention pulse — applied to action-required pills (Not Confirmed,
 * Pay Balance/Deposit, Action Needed) to draw the guest's eye. Pairs a
 * gentle scale pulse with a halo ring so it works on both warning + danger. */
.stay-status-pill.attention {
  animation: stay-pill-pulse 1.6s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
.stay-status-pill.attention.danger {
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55);
  animation: stay-pill-pulse-danger 1.6s ease-in-out infinite;
}
.stay-status-pill.attention.warning {
  box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.55);
  animation: stay-pill-pulse-warning 1.6s ease-in-out infinite;
}
@keyframes stay-pill-pulse-danger {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55); }
  50%      { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}
@keyframes stay-pill-pulse-warning {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.50); }
  50%      { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(217, 119, 6, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .stay-status-pill.attention { animation: none !important; }
}

/* Bootstrap reset — prototype uses Bootstrap but we keep our card padding */
.portal-card h5 {
  color: var(--shv-navy); font-weight: 700; font-size: 1.05rem;
  margin: 0 0 16px; display: flex; align-items: center; gap: 8px;
}
.portal-card h5 .card-icon { color: var(--shv-blue); }
hr { border: 0; border-top: 1px solid #f3f4f6; margin: 12px 0; }

/* Payment summary pill — exact prototype port */
.pay-summary-pill {
  background: #f8f9fa;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
  transition: background .25s, border-color .25s;
}
.pay-summary-pill.paid-in-full {
  background: #f0fdf4;
  border-color: #059669;
}
.pay-summary-pill .pay-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.pay-summary-pill .pay-row:last-of-type { margin-bottom: 0; }
.pay-summary-pill .pay-breakdown:not(:empty) {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}
.pay-summary-pill.quote-pill {
  background: #fff;
  border: 1px solid #e5e7eb;
}
.pay-summary-pill .pay-breakdown .pay-row { margin-bottom: 2px; }
.pay-summary-pill .pay-breakdown .pay-sub {
  color: #9ca3af; font-size: .78rem; margin: -2px 0 8px 0;
}
.pay-summary-pill .pay-breakdown .pay-mute { color: #9ca3af; font-weight: 400; }
.pay-summary-pill .pay-breakdown .pay-section-hdr {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: #6b7280; font-weight: 600; margin: 10px 0 4px 0;
  padding-top: 8px; border-top: 1px solid #e5e7eb;
}
.pay-summary-pill .pay-breakdown .pay-discount { color: #059669; }
.pay-summary-pill .pay-breakdown .pay-rate-ladder {
  margin: -2px 0 8px 0;
  padding: 6px 10px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}
.pay-summary-pill .pay-breakdown .pay-rate-row {
  display: flex; justify-content: space-between;
  font-size: .78rem; color: #6b7280;
  font-variant-numeric: tabular-nums;
  padding: 1px 0;
}
.pay-summary-pill .pay-total-row .pay-k,
.pay-summary-pill .pay-total-row .pay-v { font-weight: 700; color: var(--shv-navy); font-size: 1rem; }
.pay-summary-pill.paid-in-full .pay-breakdown:not(:empty) { border-bottom-color: #d1fae5; }
.pay-summary-pill .pay-k { color: #6b7280; font-size: .92rem; }
.pay-summary-pill .pay-v {
  font-weight: 700; color: var(--shv-navy);
  font-variant-numeric: tabular-nums;
}
.pay-summary-pill .pay-v.paid { color: #059669; font-weight: 600; }
.pay-summary-pill hr {
  border: 0; border-top: 1px solid #e5e7eb;
  margin: 10px 0;
}
.pay-summary-pill.paid-in-full hr { border-top-color: #d1fae5; }
.pay-summary-pill .pay-balance-row .pay-balance-label {
  font-weight: 700; color: var(--shv-navy);
}
.pay-summary-pill .pay-balance-val {
  font-weight: 700; color: var(--shv-navy);
  font-size: 1.1rem;
}
.pay-summary-pill.paid-in-full .pay-balance-label,
.pay-summary-pill.paid-in-full .pay-balance-val { color: #059669; }
.pay-summary-pill.paid-in-full .pay-balance-val { font-weight: 800; }
.pay-due-meta {
  font-size: .82rem; color: #6b7280;
  margin-top: 10px;
  display: flex; align-items: center; gap: 6px;
}
.pay-due-meta i { color: var(--shv-blue); }
.pay-balance-btn { width: 100%; }
.pay-history-link {
  background: none; border: none;
  color: var(--shv-blue); font-weight: 600;
  cursor: pointer; font-size: .9rem;
  font-family: inherit;
  width: 100%; text-align: center;
  padding: 10px 0 0; margin-top: 4px;
}
.pay-history-link:hover { text-decoration: underline; }

/* "Enhance Your Stay" marketplace teaser on home */
.enhance-card .enhance-pills {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.enhance-pills .pill {
  background: #f0fdf4; border: 1px solid #bbf7d0;
  padding: 6px 12px; border-radius: 999px;
  font-size: .8rem; color: #065f46; font-weight: 600;
}
.enhance-pills .pill.muted {
  background: #f8f9fa; border-color: #e5e7eb; color: #4b5563;
}
.enhance-pills .enhance-preview-pill {
  background: #f8f9fa; border: 1px solid #e5e7eb; color: #1f2937;
  font-weight: 500;
}
.enhance-pills .enhance-preview-pill strong {
  color: var(--shv-blue); font-weight: 700; margin-left: 4px;
}
.enhance-preview-notice {
  background: #fef9c3; border: 1px solid #fde68a; color: #854d0e;
  border-radius: 8px; padding: 8px 12px; margin: 4px 0 12px;
  font-size: .82rem; line-height: 1.4;
}
.enhance-preview-notice .bi { margin-right: 4px; }

/* Collapsible section headings (preview pills card + marketplace modal).
   When expanded, head + body render as one continuous bordered card so the
   pills don't visually float free of the heading. */
.enhance-card .enhance-section {
  margin-bottom: 10px;
  border: 1px solid #e5e7eb; border-radius: 10px;
  background: #fff; overflow: hidden;
}
.enhance-card .enhance-section:last-child { margin-bottom: 0; }
.enhance-card .enhance-section-head {
  width: 100%; background: #f8fafc; border: 0; border-radius: 0;
  padding: 10px 14px; margin: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: #374151; transition: background .15s ease;
}
.enhance-card .enhance-section:not(.is-collapsed) .enhance-section-head {
  border-bottom: 1px solid #e5e7eb;
}
.enhance-card .enhance-section-head:hover { background: #f1f5f9; }
.enhance-card .enhance-section-head .enhance-section-title { display: flex; align-items: center; gap: 8px; }
.enhance-card .enhance-section-head .enhance-section-title .bi { color: var(--shv-blue); font-size: 1rem; }
.enhance-card .enhance-section-head .enhance-section-meta {
  display: flex; align-items: center; gap: 6px; color: #6b7280;
  font-size: .8rem; font-weight: 700;
}
.enhance-card .enhance-section-chevron { transition: transform .2s ease; }
.enhance-card .enhance-section[aria-expanded="true"] .enhance-section-chevron,
.enhance-card .enhance-section:not(.is-collapsed) .enhance-section-chevron { transform: rotate(180deg); }
.enhance-card .enhance-section-pills {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 12px 12px;
  background: #fff;
}
.enhance-card .enhance-section.is-collapsed .enhance-section-pills { display: none; }

.mp-section {
  margin-bottom: 12px;
  border: 1px solid #e5e7eb; border-radius: 10px;
  background: #fff; overflow: hidden;
}
.mp-section:last-child { margin-bottom: 0; }
.mp-section-head {
  width: 100%; background: #f8fafc; border: 0; border-radius: 0;
  padding: 12px 16px; margin: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: #374151; transition: background .15s ease;
}
.mp-section:not(.is-collapsed) .mp-section-head {
  border-bottom: 1px solid #e5e7eb;
}
.mp-section-head:hover { background: #f1f5f9; }
.mp-section-head .mp-section-title { display: flex; align-items: center; gap: 8px; }
.mp-section-head .mp-section-title .bi { color: var(--shv-blue); font-size: 1.05rem; }
.mp-section-head .mp-section-meta {
  display: flex; align-items: center; gap: 6px; color: #6b7280;
  font-size: .82rem; font-weight: 700;
}
.mp-section-chevron { transition: transform .2s ease; }
.mp-section:not(.is-collapsed) .mp-section-chevron { transform: rotate(180deg); }
.mp-section-body { padding: 8px 12px 12px; background: #fff; }
.mp-section.is-collapsed .mp-section-body { display: none; }
.enhance-card .btn-shv:disabled {
  background: #d1d5db; color: #6b7280; cursor: not-allowed;
}
.enhance-card p { font-size: .88rem; color: #6b7280; margin-bottom: 12px; }

/* "After Confirmation" / icon-row list */
.icon-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #f3f4f6;
}
.icon-row:last-child { border-bottom: none; }
.icon-row .ir-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: #f0f9ff; display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.icon-row .ir-title { font-size: .88rem; font-weight: 700; color: var(--shv-navy); }
.icon-row .ir-desc { font-size: .8rem; color: #6b7280; margin-top: 2px; }

/* Booking timeline (vertical) */
.timeline { padding: 4px 4px 0; }
.timeline-item {
  display: flex; gap: 14px; position: relative; padding-bottom: 22px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .tl-bar {
  position: absolute; left: 15px; top: 36px; bottom: 0;
  width: 2px; background: #e5e7eb;
}
.timeline-item.done .tl-bar { background: var(--shv-blue); }
.timeline-item.current .tl-bar { background: linear-gradient(var(--shv-blue), #335df1); }
.timeline-item:last-child .tl-bar { display: none; }
.timeline-item .tl-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; flex-shrink: 0; z-index: 1;
  background: #e5e7eb; color: #999;
}
.timeline-item.done .tl-dot { background: var(--shv-blue); color: white; }
.timeline-item.current .tl-dot {
  background: #335df1; color: white;
  animation: tlPulse 2s ease infinite;
}
@keyframes tlPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(51,93,241,.5); }
  50% { box-shadow: 0 0 0 8px rgba(51,93,241,0); }
}
.timeline-item .tl-title { font-size: .9rem; font-weight: 700; }
.timeline-item.done .tl-title { color: var(--shv-blue); }
.timeline-item.current .tl-title { color: #335df1; }
.timeline-item .tl-meta { font-size: .8rem; color: #8b8b8b; }
.timeline-item .tl-body { padding-top: 4px; }

/* Useful Information accordion */
.info-accordion .acc-item {
  border-bottom: 1px solid #f3f4f6;
}
.info-accordion .acc-item:last-child { border-bottom: none; }
.info-accordion .acc-btn {
  width: 100%; text-align: left;
  background: transparent; border: none;
  padding: 14px 4px; cursor: pointer;
  font-family: inherit; font-weight: 600;
  color: var(--shv-navy); font-size: .92rem;
  display: flex; align-items: center; justify-content: space-between;
}
.info-accordion .acc-btn .acc-chev { transition: transform .2s; color: #6b7280; }
.info-accordion .acc-btn[aria-expanded="true"] { color: var(--shv-blue); }
.info-accordion .acc-btn[aria-expanded="true"] .acc-chev { transform: rotate(90deg); color: var(--shv-blue); }
.info-accordion .acc-body {
  padding: 0 4px 14px;
  font-size: .88rem; color: #4b5563;
  line-height: 1.55;
}
.info-accordion .acc-body[hidden] { display: none; }
.info-accordion .acc-body a { color: var(--shv-blue); font-weight: 600; text-decoration: none; }

/* Cancel modal — tier highlighting */
.cancel-tier {
  padding: 6px 10px; border-radius: 8px; margin: 2px -4px;
  display: list-item; list-style: disc inside;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s;
}
.cancel-tier.active {
  background: #fff7ed; border-color: #f59e0b;
  font-weight: 700; box-shadow: 0 1px 4px rgba(245,158,11,.25);
  list-style: none;
  padding-left: 28px;
  position: relative;
}
.cancel-tier.active::before {
  content: "▶";
  position: absolute; left: 8px; top: 6px;
  color: #b45309; font-size: .75rem;
}

/* ========== MODAL INFRASTRUCTURE (prototype-style overlays) ========== */
.shv-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.shv-modal.show { display: flex; }
.shv-modal-card {
  background: white; border-radius: 16px;
  max-width: 520px; width: 100%; max-height: 90vh;
  overflow-y: auto; margin: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.shv-modal-card.wide { max-width: 720px; }
.shv-modal-header {
  background: var(--shv-navy); color: white;
  padding: 18px 24px; border-radius: 16px 16px 0 0;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 1;
}
.shv-modal-header h5 { margin: 0; font-weight: 700; color: white; }
.shv-modal-header h5 i { margin-right: 6px; }
.shv-modal-close {
  background: none; border: none; color: white;
  font-size: 1.3rem; cursor: pointer;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.shv-modal-close:hover { background: rgba(255,255,255,.1); }
.shv-modal-body { padding: 24px; }
.shv-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid #f3f4f6;
  display: flex; gap: 10px;
}
.shv-modal-footer button { flex: 1; }
@media (max-width: 640px) {
  .shv-modal { padding: 0; align-items: flex-end; }
  .shv-modal-card { border-radius: 16px 16px 0 0; max-height: 95vh; }
  /* Tighten body padding so the Payflow iframe inside #paymentModal isn't
     squeezed below its content width on narrow phones. */
  #paymentModal .shv-modal-body { padding: 16px 8px; }
  #paymentModal #pmIframeWrap { border-left: 0; border-right: 0; border-radius: 0; margin-left: -8px; margin-right: -8px; }
}

/* Modal-specific helpers */
.modal-balance-pill {
  background: #f8f9fa; border-radius: 12px;
  padding: 16px; margin-bottom: 20px;
}
.modal-balance-pill .row {
  display: flex; justify-content: space-between;
  margin-bottom: 6px; font-size: .9rem;
}
.modal-balance-pill .row.due {
  margin-bottom: 0; padding-top: 10px;
  border-top: 1px solid #e5e7eb; margin-top: 10px;
}
.modal-balance-pill .row .lbl { color: #6b7280; }
.modal-balance-pill .row .val { font-weight: 600; color: var(--shv-navy); }
.modal-balance-pill .row.paid .lbl,
.modal-balance-pill .row.paid .val { color: #059669; }
.modal-balance-pill .row.due .lbl,
.modal-balance-pill .row.due .val {
  font-weight: 800; color: #dc2626; font-size: 1.05rem;
}

.method-tabs { display: flex; gap: 10px; margin-bottom: 16px; }
.method-tab {
  flex: 1; background: white; border: 2px solid #e5e7eb;
  padding: 14px; border-radius: 12px; cursor: pointer;
  text-align: center; font-family: inherit;
  transition: all .15s;
}
.method-tab.active { background: #f0fdf4; border-color: var(--shv-blue); }
.method-tab i { font-size: 1.4rem; color: var(--shv-navy); }
.method-tab .mt-label { font-size: .88rem; font-weight: 600; color: var(--shv-navy); margin-top: 6px; }
.method-tab .mt-sub { font-size: .72rem; color: #6b7280; }

.modal-form-row { margin-bottom: 12px; }
.modal-form-row label {
  font-size: .85rem; font-weight: 600; color: var(--shv-navy);
  display: block; margin-bottom: 6px;
}
.modal-form-row input, .modal-form-row select, .modal-form-row textarea {
  width: 100%; border: 1.5px solid #d1d5db;
  border-radius: 10px; padding: 11px 14px;
  font-size: .95rem; outline: none;
  font-family: inherit;
}
.modal-form-row input:focus, .modal-form-row select:focus, .modal-form-row textarea:focus {
  border-color: var(--shv-blue); box-shadow: 0 0 0 3px rgba(24,188,156,.15);
}
.modal-form-row .row-cols { display: flex; gap: 10px; }
.modal-form-row .row-cols > div { flex: 1; }
.modal-foot-secure {
  text-align: center; margin-top: 12px;
  font-size: .75rem; color: #6b7280;
}

/* Two-column home layout matching prototype's row + col-lg-7/5 */
.home-row {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 992px) {
  .home-row { grid-template-columns: 7fr 5fr; gap: 24px; }
}

/* Hero row — on desktop, hero (7fr) + gallery (5fr) side-by-side, matching
   the home-row split below. On mobile, every section becomes a direct child
   of portal-main's grid via display:contents on the wrappers, and CSS
   `order` controls the visual sequence. */
.hero-row { display: contents; }
@media (max-width: 991px) {
  /* Flatten the home-row + columns so individual cards can be reordered. */
  .home-row { display: contents; }
  .home-row > div { display: contents; }
  /* Mobile section order — Boss-defined sequence. Defaults are 0; explicit
     orders push targeted sections into place. */
  #propertyGalleryV2   { order: 10; }
  #contactInfoCard     { order: 15; }
  #rentalQuoteCard     { order: 20; }
  #paymentSummaryCard  { order: 30; }
  #timelineCard        { order: 35; }
  #actionsCard         { order: 40; }
  #enhanceCard         { order: 50; }
  #checkinInfoCard     { order: 60; }
  #usefulInfoCard      { order: 70; }
  #afterConfirmationCard { order: 80; }
  #supportCard         { order: 90; }
  .stepper-card        { order: 100; }
}
@media (min-width: 992px) {
  .hero-row {
    display: grid; grid-template-columns: 7fr 5fr; gap: 24px;
    align-items: stretch;
  }
  .hero-row > #propertyGalleryV2 { order: 0; }
  /* Gallery fills the row height so it matches the hero card. */
  .hero-row > #propertyGalleryV2 { display: flex; flex-direction: column; }
  .hero-row > #propertyGalleryV2 > .p-gallery-scroll { flex: 1 1 auto; min-height: 0; }
  .hero-row > #propertyGalleryV2 > .p-gallery-scroll img { height: 100%; min-height: 100%; }
}

/* Check-in Information card — locked vs ready states (prototype) */
.checkin-info { text-align: center; padding: 16px 0 8px; }
.checkin-info .ci-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.8rem;
  background: #fee2e2; color: #dc2626;
}
.checkin-info.ready .ci-icon { background: #d1fae5; color: #059669; }
.checkin-info.partial .ci-icon { background: #fef3c7; color: #b45309; }
.checkin-info .ci-msg {
  color: #4b5563; margin-bottom: 18px; font-size: .92rem;
  line-height: 1.5;
}
.checkin-info .ci-foot { font-size: .75rem; color: #6b7280; margin-top: 10px; }
.checkin-info .ci-access {
  background: var(--shv-light); border-radius: 12px;
  padding: 18px; margin-top: 12px;
}
.checkin-info .ci-access .ci-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 2rem; font-weight: 800; letter-spacing: 4px;
  color: var(--shv-navy);
}
.checkin-info .ci-access .ci-code-label {
  font-size: .8rem; color: #6b7280;
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 6px;
}

/* Chat FAB — bottom-right floating chat button */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--shv-blue); color: white;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 24px rgba(24,188,156,.4);
  cursor: pointer; z-index: 1000; border: none;
  transition: transform .2s, box-shadow .2s;
}
.chat-fab:hover { transform: scale(1.08); }
/* Unread state: pulse ring + halo so it's hard to miss. */
.chat-fab.has-unread {
  box-shadow: 0 6px 24px rgba(229,62,62,.5), 0 0 0 0 rgba(229,62,62,.55);
  animation: chat-fab-pulse 1.6s ease-out infinite;
}
@keyframes chat-fab-pulse {
  0%   { box-shadow: 0 6px 24px rgba(229,62,62,.5), 0 0 0 0 rgba(229,62,62,.55); }
  70%  { box-shadow: 0 6px 24px rgba(229,62,62,.5), 0 0 0 16px rgba(229,62,62,0); }
  100% { box-shadow: 0 6px 24px rgba(229,62,62,.5), 0 0 0 0 rgba(229,62,62,0); }
}
/* Red badge anchored to the FAB. Shows count or dot. */
.chat-fab-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px;
  background: #e53e3e; color: white;
  font-size: .78rem; font-weight: 700; line-height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  pointer-events: none;
}
.chat-fab-badge[hidden] { display: none !important; }
.chat-fab[hidden] { display: none !important; }
.id-dropzone:hover { border-color: var(--shv-blue, #18bc9c) !important; }
@media (max-width: 640px) {
  .chat-fab { bottom: 18px; right: 18px; width: 54px; height: 54px; font-size: 1.3rem; }
}

/* Live-chat popup — anchored bottom-right above the FAB */
.chat-popup {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
  display: flex; flex-direction: column;
  overflow: hidden;
  z-index: 1001;
  animation: chatPopupIn .18s ease-out;
}
@keyframes chatPopupIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-popup-header {
  background: var(--shv-blue);
  color: white;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.chat-popup-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-popup-title > i { font-size: 1.4rem; }
.chat-popup-title strong { display: block; font-size: 1rem; line-height: 1.2; }
.chat-popup-title small { font-size: .75rem; color: rgba(255,255,255,.85); }
.chat-popup-close {
  background: transparent;
  color: white;
  border: none;
  font-size: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-popup-close:hover { background: rgba(255,255,255,.18); }
.chat-popup-thread {
  flex: 1 1 auto;
  min-height: 240px;
  max-height: 50vh;
  border-bottom: none;
}
.chat-popup-compose { border-top: 1px solid #e5e7eb; }
@media (max-width: 640px) {
  .chat-popup {
    bottom: 0; right: 0; left: 0;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
  }
  .chat-popup-thread { max-height: 60vh; }
}

/* Mobile tweaks for new components */
@media (max-width: 640px) {
  .portal-header {
    padding: 8px 12px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .portal-header .header-logo { height: 34px; flex-shrink: 1; min-width: 0; }
  .portal-header .header-right {
    gap: 10px;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }
  .portal-header .header-phone { font-size: .82rem; white-space: nowrap; }
  .portal-header .header-socials { display: none; }
  .stepper-card { padding: 12px 14px; }
  .step-circle { width: 28px; height: 28px; font-size: .7rem; }
  .step-label { font-size: .6rem; max-width: 56px; }
  .stepper-line { top: 14px; }
  .action-banner { padding: 14px 16px; gap: 10px; top: 0; }
  .action-banner .ab-icon { width: 38px; height: 38px; font-size: 1rem; }
  .action-banner .ab-cta { width: 100%; }
  .action-banner .ab-arrow { display: none; }
  .property-hero-v2 { height: 220px; }
  .property-hero-v2 .hero-overlay h2 { font-size: 1.2rem; }
  .photo-strip img { width: 88px; height: 64px; }
  .action-row-v2:hover { margin: 0; padding-left: 0; padding-right: 0; background: transparent; }
  .action-row-v2 { padding: 14px 0; }
}

/* ─── Option Added — animated confirmation ───────────────────── */
#optionAddedModal { padding: 16px; }
.opt-added-card {
  position: relative;
  background: linear-gradient(160deg, #ffffff 0%, #f0fdf4 100%);
  border-radius: 20px;
  max-width: 380px;
  width: 100%;
  padding: 36px 24px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(5, 150, 105, 0.25), 0 0 0 1px rgba(187, 247, 208, 0.6);
  margin: auto;
  overflow: hidden;
  animation: optCardPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes optCardPop {
  0% { transform: scale(0.85) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.opt-added-check {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  display: block;
}
.opt-added-check-ring {
  fill: none;
  stroke: #059669;
  stroke-width: 3;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  transform-origin: 40px 40px;
  animation: optRingDraw 0.55s ease-out 0.15s forwards;
}
.opt-added-check-mark {
  fill: none;
  stroke: #059669;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: optCheckDraw 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.55s forwards;
}
@keyframes optRingDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes optCheckDraw {
  to { stroke-dashoffset: 0; }
}

.opt-added-title {
  color: #047857;
  font-weight: 800;
  margin: 0 0 6px;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: optFadeUp 0.4s ease-out 0.7s forwards;
}
.opt-added-sub {
  color: #6b7280;
  margin: 0 0 18px;
  font-size: 0.92rem;
  opacity: 0;
  animation: optFadeUp 0.4s ease-out 0.85s forwards;
}
@keyframes optFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.opt-added-items {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  text-align: left;
  opacity: 0;
  animation: optFadeUp 0.4s ease-out 1.0s forwards;
}
.opt-added-items:empty { display: none; }
.opt-added-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 4px 0;
  color: #2c3e50;
}
.opt-added-item-row + .opt-added-item-row {
  border-top: 1px dashed #d1fae5;
}
.opt-added-item-row .opt-added-item-name { font-weight: 600; }
.opt-added-item-row .opt-added-item-qty { color: #6b7280; font-size: 0.82rem; margin-left: 6px; }

.opt-added-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ecfdf5;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 16px;
  color: #047857;
  font-size: 0.92rem;
  opacity: 0;
  animation: optFadeUp 0.4s ease-out 1.15s forwards;
}
.opt-added-balance strong { font-size: 1.05rem; }

.opt-added-cta {
  width: 100%;
  opacity: 0;
  animation: optFadeUp 0.4s ease-out 1.3s forwards;
}

.opt-added-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.opt-added-confetti span {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
}
.opt-added-confetti span:nth-child(1) { background: #fbbf24; animation: optConfetti 1.4s ease-out 0.6s forwards; --tx: -80px; --ty: 160px; --rot: 420deg; }
.opt-added-confetti span:nth-child(2) { background: #34d399; animation: optConfetti 1.4s ease-out 0.7s forwards; --tx: 90px; --ty: 180px; --rot: -360deg; }
.opt-added-confetti span:nth-child(3) { background: #60a5fa; animation: optConfetti 1.4s ease-out 0.65s forwards; --tx: -110px; --ty: 220px; --rot: 540deg; }
.opt-added-confetti span:nth-child(4) { background: #f472b6; animation: optConfetti 1.4s ease-out 0.75s forwards; --tx: 120px; --ty: 200px; --rot: -480deg; }
.opt-added-confetti span:nth-child(5) { background: #a78bfa; animation: optConfetti 1.4s ease-out 0.55s forwards; --tx: -40px; --ty: 240px; --rot: 300deg; }
.opt-added-confetti span:nth-child(6) { background: #fb923c; animation: optConfetti 1.4s ease-out 0.8s forwards; --tx: 60px; --ty: 250px; --rot: -300deg; }
.opt-added-confetti span:nth-child(7) { background: #38bdf8; animation: optConfetti 1.4s ease-out 0.7s forwards; --tx: -140px; --ty: 140px; --rot: 480deg; }
.opt-added-confetti span:nth-child(8) { background: #facc15; animation: optConfetti 1.4s ease-out 0.85s forwards; --tx: 150px; --ty: 160px; --rot: -540deg; }
.opt-added-confetti span:nth-child(9) { background: #4ade80; animation: optConfetti 1.4s ease-out 0.62s forwards; --tx: -20px; --ty: 210px; --rot: 360deg; }
.opt-added-confetti span:nth-child(10) { background: #f87171; animation: optConfetti 1.4s ease-out 0.78s forwards; --tx: 30px; --ty: 230px; --rot: -420deg; }
@keyframes optConfetti {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); opacity: 0; }
}
