@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap");

:root {
  --ink: #16332a;
  --ink-soft: #40564d;
  --forest: #1f5a47;
  --forest-deep: #123d30;
  --mint: #dceee4;
  --mint-soft: #eff7f2;
  --paper: #f8f7f2;
  --surface: #ffffff;
  --orange: #ef7a3a;
  --orange-deep: #c95b22;
  --orange-soft: #fff0e8;
  --line: #dbe4dc;
  --muted: #67786f;
  --danger: #a84534;
  --danger-soft: #fff0ed;
  --warning: #92611d;
  --warning-soft: #fff6e5;
  --shadow-sm: 0 6px 18px rgba(26, 55, 43, .06);
  --shadow-md: 0 18px 45px rgba(26, 55, 43, .10);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --content: 1124px;
}

/* Private exact-location entry and authorised map previews. */
.location-picker {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(28, 91, 70, .18);
  border-radius: 18px;
  background: rgba(247, 250, 247, .8);
}

.location-picker [hidden],
.private-location-display [hidden] {
  display: none !important;
}

.location-picker__method > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.location-picker__method > div > div {
  min-width: 0;
}

.location-picker__method label:has(input) {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  min-height: 100%;
  padding: .8rem;
  border: 1px solid rgba(28, 91, 70, .2);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.location-picker__method label:has(input:checked) {
  border-color: #ef7137;
  box-shadow: 0 0 0 3px rgba(239, 113, 55, .12);
}

.location-picker__method label:has(input:disabled) {
  opacity: .48;
  cursor: not-allowed;
}

.location-picker__autocomplete gmp-place-autocomplete,
.location-picker__autocomplete {
  width: 100%;
}

.location-picker__map,
.private-location-display__map {
  width: 100%;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(28, 91, 70, .16);
  border-radius: 16px;
  background: #e8eee9;
}

.location-picker__hint,
.location-picker__confirmation {
  margin: .55rem 0 0;
  color: #53675e;
  font-size: .9rem;
}

.location-picker__confirmation[data-state="confirmed"] {
  color: #176348;
  font-weight: 700;
}

.location-picker__confirmation[data-state="error"] {
  color: #9d352a;
}

.private-location-display {
  margin: 1rem 0;
}

@media (max-width: 720px) {
  .location-picker__method > div {
    grid-template-columns: 1fr;
  }

  .location-picker__map,
  .private-location-display__map {
    min-height: 270px;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 0;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { min-height: calc(100vh - 153px); }
img { max-width: 100%; height: auto; }
a { color: var(--forest); }
a:hover { color: var(--forest-deep); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(239, 122, 58, .42); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 30;
  top: -80px;
  left: 20px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Shared navigation */
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  width: 100%;
  border-bottom: 1px solid rgba(22, 51, 42, .08);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(16px);
  transition: box-shadow .2s ease;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--content), calc(100% - 48px));
  height: 72px;
  margin: 0 auto;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(26, 55, 43, .05);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-name { text-transform: none; }
.brand-logo { display: block; width: 132px; height: auto; }
.site-nav { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.site-nav a, .nav-logout, .account-menu__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  transition: background-color .15s ease, color .15s ease;
}
.site-nav a:hover { background: #f2f5f3; color: var(--forest-deep); }
.site-nav .nav-login { color: var(--forest-deep); }
.site-nav .nav-register { border-radius: 999px; }
.site-nav a[aria-current="page"], .account-menu.is-active > summary {
  background: #eaf2ed;
  color: var(--forest-deep);
}
.site-nav .nav-space { color: var(--forest-deep); }
.nav-icon { display: block; flex: 0 0 auto; width: 20px; height: 20px; }
.account-menu { position: relative; flex: 0 0 auto; margin-left: 8px; }
.account-menu__toggle { min-width: 44px; height: 44px; padding: 4px 7px; gap: 7px; cursor: pointer; list-style: none; border-radius: 999px; }
.account-menu__toggle::marker { content: ""; }
.account-menu__toggle::-webkit-details-marker { display: none; }
.account-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: #edf2ee; color: var(--forest-deep); font-size: .78rem; font-weight: 700; }
.account-chevron { display: block; flex: 0 0 12px; width: 12px; height: 12px; color: var(--muted); transition: transform .15s ease; }
.account-menu[open] .account-chevron { transform: rotate(180deg); }
.account-menu__toggle:hover, .account-menu[open] > summary { background: var(--mint-soft); color: var(--forest-deep); }
.account-menu:not([open]) > .account-menu__panel { display: none; }
.account-menu__panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 248px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 150px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(22, 51, 42, .12), 0 2px 6px rgba(22, 51, 42, .03);
}
.account-menu__identity { margin: 0 0 6px; padding: 12px 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.account-menu__identity strong { display: block; color: var(--ink); font-size: .85rem; overflow-wrap: anywhere; }
.site-nav .account-menu__panel a, .account-menu__panel .nav-logout { width: 100%; justify-content: flex-start; padding: 10px; }
.account-menu__panel .logout-form { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.account-menu__panel .nav-logout { color: var(--danger); }
.account-menu__panel .nav-logout:hover { background: var(--danger-soft); }
.logout-form { margin: 0; }
footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  padding: 28px max(24px, calc((100vw - var(--content)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .81rem;
}
footer strong { color: var(--ink); }
.footer-branding { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.footer-logo { display: block; width: 120px; height: auto; }
.footer-credit { color: var(--ink); font-weight: 600; text-align: right; }

/* Typography and universal page primitives */
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; }
h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 5vw, 4.65rem);
  line-height: .98;
  letter-spacing: -.05em;
}
h1 em { color: #b9e4c9; font-weight: 600; }
h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
h3 { margin-bottom: 8px; font-size: 1.25rem; line-height: 1.18; }
.eyebrow { margin: 0 0 12px; color: var(--orange); font-size: .72rem; font-weight: 700; letter-spacing: .13em; }
.muted, .page-lead, .auth-subtitle { color: var(--muted); }
.page-lead { max-width: 690px; font-size: 1rem; line-height: 1.7; }
.catalogue, .workspace-page, .simple-page, .page-shell {
  width: min(var(--content), calc(100% - 48px));
  margin: 64px auto 92px;
}
.page-shell--narrow { width: min(780px, calc(100% - 48px)); }
.page-heading, .workspace-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.page-heading > div > p:not(.eyebrow), .workspace-heading > div > p:not(.eyebrow), .simple-page > p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted);
  line-height: 1.7;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-heading h1, .section-heading h2 { margin-bottom: 0; }
.section-heading > span { color: var(--muted); font-size: .88rem; }
.surface-card, .panel, .listing-card, .queue-card, .empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.surface-card, .panel, .queue-card, .empty-state { padding: 26px; }
.surface-card > :last-child, .panel > :last-child, .queue-card > :last-child, .empty-state > :last-child { margin-bottom: 0; }
.listing-grid > .empty-state { grid-column: 1 / -1; border-style: dashed; background: rgba(255, 255, 255, .6); }
.messages { width: min(var(--content), calc(100% - 48px)); margin: 22px auto 0; }
.message {
  padding: 14px 16px;
  border: 1px solid #cce3d3;
  border-radius: var(--radius-sm);
  background: #eaf6ee;
  color: #1e5a38;
  box-shadow: var(--shadow-sm);
  font-size: .92rem;
}
.message.error { border-color: #f4c9c0; background: var(--danger-soft); color: #943d2c; }

/* Buttons and action groups */
button, .primary-button, .button--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--orange);
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
button:hover, .primary-button:hover, .button--primary:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  color: #fff;
  box-shadow: 0 8px 16px rgba(201, 91, 34, .18);
  transform: translateY(-1px);
}
.secondary-button, .button--secondary, .actions .button--secondary {
  border-color: #bdd1c3;
  background: #fff;
  color: var(--forest);
}
.secondary-button:hover, .button--secondary:hover, .actions .button--secondary:hover {
  border-color: var(--forest);
  background: var(--mint-soft);
  color: var(--forest-deep);
}
.button--danger, .actions .button--danger { border-color: #ebc2bb; background: var(--danger-soft); color: var(--danger); }
.button--danger:hover, .actions .button--danger:hover { border-color: var(--danger); background: var(--danger); color: #fff; }
button:disabled, .primary-button[aria-disabled="true"] { cursor: not-allowed; opacity: .58; transform: none; }
.actions, .action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.actions form, .action-row form { margin: 0; }
.actions a:not(.primary-button):not(.button--secondary):not(.button--danger), .action-row a:not(.primary-button):not(.button--secondary):not(.button--danger) {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--forest);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}
.actions a:not(.primary-button):not(.button--secondary):not(.button--danger):hover, .action-row a:not(.primary-button):not(.button--secondary):not(.button--danger):hover { text-decoration: underline; }

/* Forms */
main input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), main select, main textarea {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid #cbd8ce;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: .94rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
main textarea { min-height: 112px; resize: vertical; }
main input[type="file"] { padding: 9px; background: #fbfcfa; }
main input[type="checkbox"], main input[type="radio"] {
  width: 17px;
  height: 17px;
  margin: 0 8px 0 0;
  accent-color: var(--forest);
  vertical-align: -3px;
}
main input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus, main select:focus, main textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(31, 90, 71, .10);
}
.form-shell, .auth-shell {
  display: grid;
  min-height: calc(100vh - 153px);
  place-items: center;
  padding: 62px 24px;
  background: radial-gradient(circle at 8% 12%, rgba(220, 238, 228, .9), transparent 28rem), radial-gradient(circle at 93% 88%, rgba(255, 225, 205, .58), transparent 30rem);
}
.form-card, .auth-shell .auth-card {
  width: min(760px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-md);
}
.auth-shell .auth-card h1, .form-card h1 { max-width: 620px; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.form-card > p:not(.eyebrow), .auth-shell .auth-card > p:not(.eyebrow) { max-width: 640px; color: var(--muted); line-height: 1.65; }
.form-grid { display: grid; gap: 18px; margin-top: 28px; }
.form-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-field, .form-card form > p, .auth-shell form > p, .panel form > p { display: grid; gap: 7px; margin: 0 0 18px; }
.verification-property-field, [data-verification-property-field] { transition: opacity .18s ease, filter .18s ease; }
[data-verification-property-field].is-disabled { opacity: .52; filter: grayscale(.7); }
[data-verification-property-field].is-disabled select { cursor: not-allowed; background: #edf0f2; color: var(--muted); }
.form-field label, .form-card form > p > label, .auth-shell form > p > label, .panel form > p > label { color: var(--ink); font-size: .88rem; font-weight: 700; }
.form-field-label { color: var(--ink); font-size: .88rem; font-weight: 700; }
.field-group { display: grid; gap: 7px; margin: 20px 0; }
.field-group > label { color: var(--ink); font-size: .88rem; font-weight: 700; }
.field-group ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.simple-page.form-page { width: min(760px, calc(100% - 48px)); }
.text-link { color: var(--forest); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.form-card form > p > .helptext, .form-card form > p > ul, .auth-shell form > p > .helptext, .auth-shell form > p > ul, .help-text { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.form-card .errorlist, .auth-shell .errorlist, .panel .errorlist, .field-error, .form-errors { margin: 0; padding: 0; color: var(--danger); font-size: .8rem; list-style: none; }
.form-errors ul { margin: 0; padding: 11px 13px; border-radius: 8px; background: var(--danger-soft); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.evidence-capture { display: grid; gap: 12px; }
.evidence-capture__intro, .evidence-capture__mode { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.evidence-source-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.evidence-source-button { min-height: 40px; padding: 8px 13px; border: 1px solid #bfd3c4; border-radius: 9px; background: #fff; color: var(--forest-deep); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.evidence-source-button:hover, .evidence-source-button.is-active { border-color: var(--forest); background: var(--mint-soft); color: var(--forest-deep); }
.evidence-source-button:focus-visible { outline: 3px solid rgba(31, 90, 71, .22); outline-offset: 2px; }
.evidence-capture__file-label { color: var(--ink); font-size: .82rem; font-weight: 700; }
.evidence-preview { display: grid; gap: 10px; margin: 2px 0 0; padding: 13px; border: 1px solid #c7dfce; border-radius: 11px; background: #fbfefb; }
.evidence-preview img { width: min(100%, 360px); max-height: 300px; object-fit: contain; border-radius: 8px; background: #edf3ee; }
.evidence-preview figcaption { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.evidence-preview .button--secondary { justify-self: start; }
.evidence-camera-dialog { width: min(620px, calc(100% - 32px)); margin: auto; padding: 22px; border: 1px solid #c7dfce; border-radius: 16px; color: var(--ink); box-shadow: 0 24px 56px rgba(20, 49, 37, .28); }
.evidence-camera-dialog::backdrop { background: rgba(8, 25, 17, .62); }
.evidence-camera-dialog__header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.evidence-camera-dialog__header .eyebrow { margin-bottom: 5px; }
.evidence-camera-dialog__header h3 { margin: 0; }
.evidence-camera-dialog__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef3ee; color: var(--ink); font-size: 1.45rem; line-height: 1; cursor: pointer; }
.evidence-camera-dialog__status { margin: 16px 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.evidence-camera-dialog__video { display: block; width: 100%; max-height: min(58vh, 460px); border-radius: 10px; background: #17261e; object-fit: cover; }
.evidence-camera-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* Workflow pages reuse the form shell as a compact, two-column content area. */
.page-shell > * + * { margin-top: 24px; }
.page-heading > .eyebrow,
.page-heading > h1,
.page-heading > p:not(.eyebrow) { flex-basis: 100%; }
.page-heading > .action-row { margin-top: 0; }
.page-shell .form-shell {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  align-items: start;
  gap: 24px;
  padding: 0;
  background: transparent;
}
.page-shell .form-shell .form-card,
.page-shell .form-shell .surface-card { width: 100%; }
.page-shell .form-shell .safety-note { margin: 0; }
.form-field label input,
.form-field label select,
.form-field label textarea { display: block; margin-top: 7px; }
.action-row > form.form-grid {
  flex: 1 1 255px;
  padding: 16px;
  border: 1px solid #e0e8e1;
  border-radius: 12px;
  background: #fbfdfb;
}

/* Homepage */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px max(24px, calc((100vw - var(--content)) / 2));
  background: var(--forest);
  color: #fff;
}
.hero::before, .hero::after { position: absolute; border: 1px solid rgba(185, 228, 201, .35); border-radius: 50%; content: ""; }
.hero::before { width: 280px; height: 280px; top: 54px; left: -150px; }
.hero::after { width: 480px; height: 480px; top: -190px; right: -145px; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 730px; color: #fff; font-size: clamp(3rem, 6vw, 5.25rem); }
.hero-copy { max-width: 565px; margin-bottom: 0; color: #dce9e3; font-size: 1.07rem; line-height: 1.7; }
.search-panel {
  display: flex;
  width: min(760px, 100%);
  margin-top: 34px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 15px 30px rgba(9, 43, 31, .16);
}
.search-panel label { display: grid; flex: 1; gap: 4px; padding: 7px 14px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.search-panel input { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); font-size: .96rem; }
.search-panel button { min-width: 140px; }
.disclaimer { margin: 15px 0 0; color: #c6ded2; font-size: .78rem; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  padding: 31px 0;
  border-bottom: 1px solid var(--line);
}
.trust-strip div { display: grid; gap: 4px; padding: 0 28px; border-right: 1px solid var(--line); }
.trust-strip div:first-child { padding-left: 0; }
.trust-strip div:last-child { border-right: 0; }
.trust-strip b { color: var(--orange); font-size: .75rem; }
.trust-strip span { font-weight: 700; }
.trust-strip small { color: var(--muted); }
.catalogue { margin-top: 65px; }
.listing-grid, .metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.listing-card { overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.listing-image {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 168px;
  padding: 16px;
  background: linear-gradient(135deg, #9cc7ad, #3d7d65 72%);
  color: #fff;
}
.listing-image > span { font: 3.1rem/1 "Playfair Display", Georgia, serif; opacity: .77; }
.listing-image b { max-width: 155px; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--forest); font-size: .68rem; line-height: 1.35; text-align: right; }
.listing-content { padding: 20px; }
.listing-content h3 { font-size: 1.4rem; }
.listing-content h3 a { color: var(--ink); text-decoration: none; }
.listing-content h3 a:hover { color: var(--forest); }
.location { margin-bottom: 8px; color: var(--orange-deep); font-size: .72rem; font-weight: 700; letter-spacing: .07em; }
.summary { min-height: 44px; color: var(--muted); font-size: .89rem; line-height: 1.55; }
.card-footer { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 15px; border-top: 1px solid #e6ece7; color: var(--muted); font-size: .78rem; }
.card-footer strong { color: var(--ink); font-size: 1.06rem; }
.card-footer small { color: var(--muted); font-weight: 500; }
.listing-card label { display: block; margin: 16px 0 0; color: var(--muted); font-size: .82rem; }

/* Listing detail */
.listing-detail { width: min(var(--content), calc(100% - 48px)); margin: 58px auto 92px; }
.listing-detail-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 28px; align-items: stretch; margin-bottom: 24px; }
.listing-detail-copy { padding: clamp(28px, 5vw, 50px); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--forest-deep), var(--forest)); color: #fff; box-shadow: var(--shadow-md); }
.listing-detail-copy .eyebrow { color: #f9a777; }
.listing-detail-copy h1 { max-width: 650px; margin-bottom: 16px; color: #fff; font-size: clamp(2.75rem, 5vw, 4.8rem); }
.listing-detail-copy > p:not(.eyebrow) { max-width: 620px; margin-bottom: 0; color: #d9e9e0; line-height: 1.7; }
.price-card { display: grid; align-content: space-between; gap: 24px; padding: 30px; border: 1px solid #bcd6c5; border-radius: var(--radius-lg); background: #e8f3ec; }
.price-card .price-label { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.price-card .price { margin: 4px 0; color: var(--forest-deep); font: 700 clamp(2.1rem, 3.5vw, 3.2rem)/1 "Playfair Display", Georgia, serif; letter-spacing: -.04em; }
.price-card .price small { color: var(--muted); font: 600 .85rem/1.4 "DM Sans", Arial, sans-serif; letter-spacing: 0; }
.price-card p { margin-bottom: 0; color: var(--ink-soft); font-size: .88rem; }
.status-badge, .verified-pill, .pending-pill, .status-label { display: inline-flex; align-items: center; width: fit-content; min-height: 28px; padding: 4px 9px; border-radius: 999px; background: #e7f4eb; color: #21613f; font-size: .73rem; font-weight: 700; line-height: 1.2; }
.pending-pill { background: var(--warning-soft); color: var(--warning); }
.status-label { background: #eff3ef; color: #53655b; }
.status-badge--danger { background: var(--danger-soft); color: var(--danger); }
.status-badge--warning { background: var(--warning-soft); color: var(--warning); }
.status-badge--muted { background: #edf0ed; color: #59675f; }
.listing-detail-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr); gap: 24px; }
.detail-stack { display: grid; gap: 24px; }
.detail-fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.detail-fact { min-height: 96px; padding: 15px; border: 1px solid #e0e8e1; border-radius: 12px; background: #fbfdfb; }
.detail-fact small { display: block; margin-bottom: 5px; color: var(--muted); font-size: .73rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.detail-fact strong { font-size: .93rem; line-height: 1.4; }
.trust-card { border-color: #b9d8c5; background: var(--mint-soft); }
.trust-card p { color: var(--ink-soft); }
.privacy-card { background: #fffaf7; border-color: #f1d6c6; }
.privacy-card p { color: #705d51; }
.detail-actions { position: sticky; top: 95px; }
.detail-actions .action-row { margin-top: 16px; }
.detail-actions .primary-button { width: 100%; }
.detail-actions .action-row form { flex: 1 1 160px; }
.detail-actions .action-row form button { width: 100%; }

/* Booking, conversation and workflow components */
.booking-request-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(410px, 1.1fr); width: min(1060px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.booking-summary { display: grid; align-content: space-between; gap: 34px; padding: clamp(30px, 5vw, 54px); background: var(--forest-deep); color: #fff; }
.booking-summary .eyebrow { color: #f9a777; }
.booking-summary h1 { color: #fff; font-size: clamp(2.4rem, 4vw, 4rem); }
.booking-summary p:not(.eyebrow) { color: #d8e9df; }
.booking-summary .booking-price { color: #bce7ce; font-size: 1.1rem; font-weight: 700; }
.booking-form-panel { padding: clamp(30px, 5vw, 52px); }
.booking-form-panel h2 { font-size: clamp(1.85rem, 3vw, 2.45rem); }
.booking-form-panel > p { color: var(--muted); }
.safety-note { margin: 20px 0 24px; padding: 15px 16px; border: 1px solid #f2d8af; border-radius: 12px; background: var(--warning-soft); color: #76531f; font-size: .85rem; line-height: 1.55; }
.booking-detail-grid, .conversation-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 24px; }
.booking-status-card { border-top: 4px solid var(--forest); }
.booking-status-card p { color: var(--muted); }
.timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline-item { position: relative; padding: 0 0 19px 28px; color: var(--ink-soft); font-size: .88rem; }
.timeline-item::before { position: absolute; top: 5px; left: 0; width: 11px; height: 11px; border: 3px solid #fff; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 1px #e2d8d1; content: ""; }
.timeline-item:not(:last-child)::after { position: absolute; top: 16px; bottom: -1px; left: 5px; width: 1px; background: var(--line); content: ""; }
.timeline-item time { display: block; margin-bottom: 3px; color: var(--muted); font-size: .75rem; }
.accommodation-workspace { max-width: 1120px; }
.accommodation-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.accommodation-summary > a { display: grid; min-height: 142px; gap: 6px; align-content: start; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.accommodation-summary > a:hover, .accommodation-summary > a:focus-visible { border-color: #a8cab4; color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.accommodation-summary span { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.accommodation-summary strong { color: var(--forest-deep); font: 700 2.4rem/1.05 "Playfair Display", Georgia, serif; }
.accommodation-summary small { color: var(--muted); line-height: 1.45; }
.workspace-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 28px; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: #eef3ef; scrollbar-width: thin; }
.workspace-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 15px; border-radius: 9px; color: var(--ink-soft); font-size: .84rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.workspace-tabs a:hover, .workspace-tabs a:focus-visible { background: rgba(255, 255, 255, .7); color: var(--forest-deep); }
.workspace-tabs a[aria-current="page"] { background: #fff; color: var(--forest-deep); box-shadow: 0 2px 8px rgba(16, 58, 42, .09); }
.workspace-tabs a span { display: inline-grid; min-width: 23px; height: 23px; place-items: center; padding: 0 6px; border-radius: 999px; background: #e2ece5; font-size: .7rem; }
.accommodation-section { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.accommodation-section > .section-heading { align-items: flex-start; }
.accommodation-section > .section-heading p { margin: 7px 0 0; line-height: 1.55; }
.accommodation-records { display: grid; gap: 14px; }
.accommodation-record { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 20px; border: 1px solid #dce7df; border-radius: 15px; background: #fbfdfb; }
.accommodation-record__identity { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #9cc7ad, #3d7d65); color: #fff; font: 700 1.7rem/1 "Playfair Display", Georgia, serif; }
.accommodation-record__identity--photo { display: block; overflow: hidden; background: #e7efe9; }
.accommodation-record__identity--photo img { width: 100%; height: 100%; object-fit: cover; }
.accommodation-record__content { min-width: 0; }
.accommodation-record__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.accommodation-record__heading h3 { margin: 0; font-size: 1.25rem; }
.accommodation-record__heading .location { margin: 0 0 5px; }
.accommodation-record__heading .status-badge { flex: 0 0 auto; }
.accommodation-record__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 17px; }
.accommodation-record__facts > div { display: grid; gap: 3px; padding: 11px 12px; border-radius: 10px; background: #f0f5f1; }
.accommodation-record__facts span { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.accommodation-record__facts strong { overflow-wrap: anywhere; color: var(--ink); font-size: .84rem; line-height: 1.4; }
.accommodation-record__next { margin: 15px 0 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }
.accommodation-deadline { width: fit-content; margin: 10px 0 0; padding: 7px 10px; border-radius: 8px; background: var(--warning-soft); color: #76531f; font-size: .8rem; }
.accommodation-record__actions { margin-top: 16px; }
.accommodation-record__actions form { display: inline-flex; }
.accommodation-empty { box-shadow: none; }
.accommodation-scope { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; margin-bottom: 0; }
.accommodation-scope strong { flex: 0 0 auto; }
.message-thread { display: grid; gap: 12px; max-height: 520px; overflow: auto; padding: 4px 4px 4px 0; }
.message-bubble { width: min(82%, 520px); padding: 13px 15px; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; background: #fbfdfb; color: var(--ink-soft); }
.message-bubble--mine { justify-self: end; border-color: #bee0ca; border-radius: 16px 16px 4px 16px; background: #e8f4ec; }
.message-bubble small { display: block; margin-top: 6px; color: var(--muted); font-size: .72rem; }
.record-list { display: grid; gap: 14px; }
.record-list > div { display: grid; gap: 3px; padding: 14px 0; border-bottom: 1px solid #e5ebe6; }
.record-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.record-list dt { color: var(--muted); font-size: .73rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.record-list dd { margin: 0; color: var(--ink); font-weight: 600; }
.record-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 17px 0; border-bottom: 1px solid #e5ebe6; }
.record-row:first-child { padding-top: 0; }
.record-row:last-child { padding-bottom: 0; border-bottom: 0; }
.record-row p { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.queue-card { display: grid; gap: 12px; border-left: 4px solid var(--forest); }
.queue-card--unread { background: #f7fcf8; border-left-width: 6px; }
.notification-state { display: flex; flex-wrap: wrap; gap: 7px; }
.site-nav .notification-nav-link { position: relative; width: 44px; height: 44px; padding: 0; flex: 0 0 44px; border-radius: 50%; }
.notification-count { position: absolute; top: 1px; right: -1px; display: inline-grid; min-width: 17px; height: 17px; place-items: center; padding: 0 3px; border: 2px solid #fff; border-radius: 999px; background: var(--orange-deep); color: #fff; font-size: .58rem; font-weight: 700; line-height: 1; }
.notification-heading { align-items: end; }
.notification-toolbar { display: flex; align-items: center; gap: 15px; margin: 0; }
.notification-toolbar form { margin: 0; }
.notification-toolbar a, .notification-toolbar button { min-height: 0; padding: 3px 0; border: 0; border-radius: 0; background: transparent; color: var(--forest); font-size: .8rem; font-weight: 700; line-height: 1.35; text-decoration: none; box-shadow: none; }
.notification-toolbar button { cursor: pointer; }
.notification-toolbar a:hover, .notification-toolbar a:focus-visible, .notification-toolbar button:hover, .notification-toolbar button:focus-visible { background: transparent; border-color: transparent; color: var(--orange-deep); box-shadow: none; text-decoration: underline; transform: none; }
.notification-list { display: grid; gap: 9px; }
.notification-item { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 17px 18px; border: 1px solid #e0e8e1; border-radius: 13px; background: #fff; }
.notification-item--unread { border-color: #c6ddcc; background: #fbfefb; }
.notification-item--unread::before { position: absolute; top: 23px; left: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--forest); content: ""; }
.notification-item__main { min-width: 0; }
.notification-item__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.notification-item h2 { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.notification-item h2 a { color: inherit; text-decoration: none; }
.notification-item h2 a:hover, .notification-item h2 a:focus-visible { color: var(--forest); text-decoration: underline; }
.notification-item p { margin: 6px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.notification-item time { flex: 0 0 auto; color: var(--muted); font-size: .76rem; white-space: nowrap; }
.notification-item .notification-state { flex: 0 0 auto; justify-content: flex-end; }
.notification-item .status-badge { padding: 4px 7px; font-size: .67rem; }
.queue-card--high { border-left-color: var(--danger); }
.queue-card--warning { border-left-color: var(--orange); }
.queue-card p { margin-bottom: 0; color: var(--muted); }
.queue-card .page-heading { margin-bottom: 0; }
.timeline-item > span { display: block; color: var(--muted); font-size: .82rem; }
.metric-grid > div:not(.metric-card) { display: grid; gap: 6px; padding: 15px; border: 1px solid #e0e8e1; border-radius: 12px; background: #fbfdfb; }
.metric-grid > div:not(.metric-card) > span { color: var(--muted); font-size: .73rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.metric-grid > div:not(.metric-card) > strong { color: var(--ink); font-size: .9rem; }

/* Dashboard, workspace and account pages */
.auth-page { display: grid; min-height: calc(100vh - 78px); grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr); }
.auth-intro { padding: clamp(56px, 9vw, 128px) max(28px, calc((100vw - var(--content)) / 2)); padding-right: clamp(30px, 7vw, 100px); background: var(--forest); color: #fff; }
.auth-intro h1 { color: #fff; font-size: clamp(2.8rem, 5vw, 4.7rem); }
.auth-intro > p:not(.eyebrow) { max-width: 440px; color: #d8e6df; font-size: 1.04rem; line-height: 1.7; }
.auth-note { display: grid; gap: 6px; max-width: 440px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #5b8978; color: #d8e6df; font-size: .86rem; }
.auth-note b { color: #b9e4c9; }
.auth-page .auth-card { width: min(450px, calc(100% - 48px)); align-self: center; justify-self: center; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-md); }
.register-card { margin: 38px 0; }
.auth-page .auth-card h2 { font-size: 2.25rem; }
.auth-page .primary-button { width: 100%; margin-top: 4px; }
.auth-switch { margin: 24px 0 0; color: var(--muted); font-size: .87rem; text-align: center; }
.auth-switch a { font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.social-auth-options { display: grid; gap: 10px; margin-top: 24px; }
.social-auth-options form { margin: 0; }
.social-auth-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; color: var(--muted); font-size: .82rem; text-align: center; }
.social-auth-divider::before, .social-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-provider-button { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 47px; padding: 10px 16px; border: 1px solid #cbd8ce; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.social-provider-button:hover, .social-provider-button:focus-visible { border-color: var(--forest); background: #f4faf5; box-shadow: 0 0 0 3px rgba(31, 90, 71, .10); }
.social-provider-button--google { min-height: 48px; padding: 10px 12px; border-color: #747775; border-radius: 8px; background: #fff; color: #1f1f1f; font-family: "Google Sans", Arial, sans-serif; font-size: .875rem; font-weight: 600; line-height: 20px; }
.social-provider-button--google:hover { border-color: #747775; background: #f8f9fa; box-shadow: 0 1px 3px rgba(60, 64, 67, .24); }
.social-provider-button--google:focus-visible { border-color: #747775; background: #fff; outline: 2px solid #1a73e8; outline-offset: 2px; box-shadow: none; }
.social-provider-google-logo { display: block; width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.social-provider-mark { display: inline-grid; width: 23px; height: 23px; place-items: center; border: 1px solid #d9e5dc; border-radius: 6px; font-size: .9rem; }
.social-provider-mark--microsoft { border: 0; color: #2671c5; font-size: 1.4rem; }
.social-auth-options .social-provider-button { margin-top: 0; }
.social-connect-consent { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; color: var(--ink); font-size: .86rem; line-height: 1.5; }
.social-connect-consent input { flex: 0 0 17px; margin: 2px 0 0; }
.signin-methods__list { display: grid; gap: 10px; margin: 20px 0; }
.signin-methods__item { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfb; }
.signin-methods__item > div { display: grid; gap: 3px; }
.signin-methods__item span { color: var(--muted); font-size: .84rem; }
.signin-methods__item form { margin: 0; }
.signin-methods__item button.text-link { border: 0; padding: 6px 0; background: none; color: var(--forest); font: inherit; font-weight: 700; cursor: pointer; }
.role-choice > div { display: grid; gap: 8px; }
.role-choice label[for^="id_role_"] { padding: 12px; border: 1px solid #d9e5dc; border-radius: 9px; background: #f7faf7; font-weight: 500; }
.role-choice > div > div, .role-choice label[for^="id_role_"] { width: 100%; }
.role-choice label[for^="id_role_"] { display: flex; align-items: center; min-height: 46px; }
.policy-consent { padding: 14px; border: 1px solid #c7dfce; border-radius: 11px; background: #f4faf5; }
.policy-consent__control { display: flex; align-items: flex-start; gap: 9px; }
.policy-consent__control input { width: auto; flex: 0 0 auto; margin-top: 4px; }
.policy-consent__control label { margin: 0; color: var(--ink); font-size: .88rem; font-weight: 600; line-height: 1.5; }
.policy-consent__control a { color: var(--forest); text-underline-offset: 2px; }
.policy-consent .help-text { display: block; margin: 8px 0 0 25px; }
.legal-document { width: min(880px, calc(100% - 48px)); margin: 56px auto 82px; }
.legal-document__heading { align-items: flex-end; }
.legal-document__download { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); box-shadow: 0 8px 18px rgba(230, 112, 48, .2); }
.legal-document__download:hover, .legal-document__download:focus-visible { background: var(--orange-deep); }
.legal-document__return { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 2px; color: var(--forest); font-size: .88rem; font-weight: 700; text-decoration: none; }
.legal-document__return:hover, .legal-document__return:focus-visible { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-document__notice { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 22px; padding: 15px 17px; border: 1px solid #c7dfce; border-radius: 12px; background: var(--mint-soft); color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }
.legal-document__notice strong { flex: 0 0 auto; color: var(--forest-deep); }
.legal-document__body { padding: clamp(24px, 5vw, 52px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.legal-document__body section + section { margin-top: 32px; padding-top: 27px; border-top: 1px solid #e1e9e3; }
.legal-document__body h2 { margin-bottom: 12px; font-size: 1.55rem; }
.legal-document__body p { max-width: 730px; color: var(--ink-soft); line-height: 1.72; }
.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 72px max(24px, calc((100vw - var(--content)) / 2));
  background: linear-gradient(
    180deg,
    var(--forest) 0%,
    var(--forest) 48%,
    rgba(31, 90, 71, .82) 64%,
    rgba(31, 90, 71, .34) 82%,
    var(--paper) 100%
  );
  color: #fff;
}
.dashboard-hero h1 { margin-bottom: 15px; color: #fff; font-size: clamp(2.7rem, 5vw, 4.4rem); }
.dashboard-hero > div > p:last-child { max-width: 580px; margin-bottom: 0; color: #d8e6df; line-height: 1.65; }
.user-chip { display: flex; align-items: center; gap: 11px; min-width: 225px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(13, 58, 43, .28); }
.user-chip > span { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 50%; background: #b9e4c9; color: var(--forest-deep); font-weight: 700; }
.user-chip small { display: block; margin-top: 3px; color: #cce0d5; }
.dashboard-content { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr); gap: 56px; width: min(var(--content), calc(100% - 48px)); margin: 62px auto 92px; }
.dashboard-main h2 { font-size: 2.35rem; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 25px; }
.action-card { display: grid; min-height: 145px; align-content: space-between; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.action-card:hover { color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.action-card span { color: var(--orange); font-size: .72rem; font-weight: 700; }
.action-card small { align-self: end; margin-top: 8px; color: var(--muted); font-size: .75rem; font-style: normal; font-weight: 500; line-height: 1.45; }
.action-card i { justify-self: end; color: var(--forest); font-size: 1.4rem; font-style: normal; }
.dashboard-aside { align-self: start; padding: 28px; border: 1px solid #c5ddcc; border-radius: var(--radius); background: #eaf4ed; }
.dashboard-aside h3 { font-size: 1.55rem; }
.dashboard-aside p { color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }
.dashboard-aside a { font-weight: 700; text-decoration: none; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 24px; }
.panel h2 { font-size: 1.95rem; }
.status-panel { background: #edf7ef; border-color: #c8e0ce; }
.status-panel p { color: var(--ink-soft); }
.workspace-attention, .workspace-availability { margin-bottom: 24px; }
.workspace-attention__grid { align-items: start; }
.workspace-attention__grid section { min-width: 0; }
.workspace-attention__grid h3 { margin-bottom: 11px; font-size: 1.05rem; }
.workspace-attention__grid p { margin: 0 0 12px; color: var(--ink-soft); line-height: 1.45; }
.workspace-attention__grid small, .workspace-availability__item small { color: var(--muted); }
.workspace-availability__item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.workspace-availability__item:last-child { padding-bottom: 0; border-bottom: 0; }
.workspace-availability__item > div { display: grid; gap: 4px; }
.workspace-availability__form { display: flex; align-items: center; gap: 8px; margin: 0; }
.workspace-availability__form label { font-size: .78rem; font-weight: 700; white-space: nowrap; }
.workspace-availability__form input { width: 76px; min-height: 40px; padding: 8px; }
.workspace-availability__form button { min-height: 40px; padding: 9px 12px; font-size: .8rem; }
.cases-panel { margin-top: 24px; }
.account-actions { display: grid; gap: 16px; margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.account-actions > p { color: var(--muted); }
.account-actions form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 0; }
.account-actions form label { flex-basis: 100%; font-size: .84rem; font-weight: 700; }
.account-actions form input { flex: 1 1 240px; }
.account-actions form button { flex: 0 0 auto; }
.unassigned { width: min(690px, calc(100% - 48px)); margin: 100px auto; padding: 46px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); }
.unassigned p:not(.eyebrow) { max-width: 540px; color: var(--muted); line-height: 1.65; }

/* Listing photo gallery and moderation */
.listing-image--photo { position: relative; display: block; overflow: hidden; padding: 0; color: #fff; text-decoration: none; isolation: isolate; }
.listing-image--photo::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 43, 31, .04) 35%, rgba(9, 43, 31, .4)); content: ""; }
.listing-image--photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.listing-card:hover .listing-image--photo img { transform: scale(1.035); }
.listing-image--photo b { position: absolute; z-index: 1; top: 15px; right: 15px; }
.photo-gallery { margin-bottom: 24px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.photo-gallery .section-heading { margin-bottom: 20px; }
.photo-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 12px; }
.photo-gallery__item { position: relative; display: block; aspect-ratio: 1 / .78; overflow: hidden; border: 1px solid #d6e2d9; border-radius: 13px; background: #e7efe9; color: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.photo-gallery__item--cover { grid-column: span 2; grid-row: span 2; aspect-ratio: 1.25 / 1; }
.photo-gallery__item::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(8, 39, 29, .72)); content: ""; }
.photo-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.photo-gallery__item:hover, .photo-gallery__item:focus-visible { z-index: 1; transform: scale(1.07); box-shadow: 0 14px 28px rgba(9, 43, 31, .22); }
.photo-gallery__item:hover img, .photo-gallery__item:focus-visible img { transform: scale(1.08); }
.photo-gallery__item > span { position: absolute; z-index: 1; right: 13px; bottom: 12px; left: 13px; display: grid; gap: 2px; text-shadow: 0 1px 5px rgba(0, 0, 0, .45); }
.photo-gallery__item > span b { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.photo-gallery__item > span small { overflow: hidden; font-size: .76rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.photo-viewer { width: min(900px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: #10281e; box-shadow: 0 24px 80px rgba(0, 0, 0, .5); color: #fff; }
.photo-viewer::backdrop { background: rgba(4, 20, 14, .76); backdrop-filter: blur(3px); }
.photo-viewer__toolbar, .photo-viewer__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.photo-viewer__toolbar p { margin: 0; font-weight: 700; }
.photo-viewer__close { display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: transparent; color: #fff; font-size: 1.7rem; line-height: 1; }
.photo-viewer__image { display: block; width: 100%; max-height: calc(100vh - 170px); object-fit: contain; background: #081a12; }
.photo-viewer__actions { justify-content: flex-end; }
.photo-viewer__download { color: #fff; text-decoration: none; }
.gallery-empty { display: grid; gap: 5px; padding: 20px; border: 1px dashed #b7cbbd; border-radius: 13px; background: #fbfdfb; color: var(--muted); }
.gallery-empty strong { color: var(--ink); }
.accommodation-flow { align-items: start; padding-top: 54px; }
.accommodation-flow__card { width: min(900px, 100%); min-width: 0; }
.accommodation-flow .flow-section { min-width: 0; }
.accommodation-flow .form-grid, .accommodation-flow .form-field { min-width: 0; }
.accommodation-flow .form-field { align-content: start; margin-bottom: 0; }
.accommodation-flow .form-field input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
.accommodation-flow .form-field select { min-height: 48px; min-width: 0; width: 100%; }
.accommodation-flow .form-field input[type="radio"],
.accommodation-flow .form-field input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; min-width: 18px; min-height: 18px; margin: 0; padding: 0; }
.accommodation-flow .flow-section > .form-grid { margin-top: 0; }
.accommodation-flow .flow-section > .form-intro { margin: 0; }
.house-choice-summary[hidden] { display: none; }
.house-choice-summary p { margin: 8px 0 0; }
.form-error-summary { padding: 16px 18px; border: 1px solid var(--danger); border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: .88rem; }
.form-error-summary ul { margin: 8px 0 0; padding-left: 20px; }
.form-error-summary a { color: inherit; text-decoration: underline; }
.house-review-note { padding: 20px; border: 1px solid #d7c59d; border-radius: 14px; background: #fffbef; }
.house-review-note h2 { margin: 0; font-size: 1.3rem; }
.house-review-note p { color: var(--muted); line-height: 1.6; }
.house-comparison { display: grid; gap: 16px; }
.house-comparison h3 { margin: 0 0 8px; font-size: .9rem; }
.house-comparison dl { margin: 0; }
.house-comparison dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.house-comparison dt, .house-comparison dd { margin: 0; overflow-wrap: anywhere; font-size: .85rem; }
.form-intro { max-width: 680px; color: var(--muted); line-height: 1.6; }
.flow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; padding: 0; list-style: none; }
.flow-steps li { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.flow-steps li > a { display: flex; align-items: center; gap: 9px; width: 100%; color: inherit; text-decoration: none; }
.flow-steps li > a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.flow-steps strong { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e7eee9; color: var(--forest-deep); }
.flow-steps .is-current { border-color: #83b694; background: var(--mint-soft); color: var(--forest-deep); }
.flow-steps .is-current strong { background: var(--forest); color: #fff; }
.flow-steps .is-complete { border-color: #c8dfce; background: #f4faf5; color: var(--forest-deep); }
.flow-steps .is-complete strong { background: #4a8b5b; color: #fff; }
.flow-section { display: grid; gap: 17px; margin: 0; padding: 22px; border: 1px solid #d7e3da; border-radius: 14px; background: #fbfdfb; }
.flow-section legend { padding: 0 6px; color: var(--forest-deep); font-weight: 700; }
.space-mode-field > div, .property-mode-field > div,
.space-mode-field ul, .property-mode-field ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.space-mode-field label, .property-mode-field label { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-weight: 600; cursor: pointer; }
[data-existing-space-fields], [data-new-space-fields], [data-existing-property-fields], [data-new-property-fields] { transition: opacity .18s ease; }
[data-existing-space-fields].is-disabled, [data-new-space-fields].is-disabled, [data-existing-property-fields].is-disabled, [data-new-property-fields].is-disabled { display: none; }
.draft-status { margin: -4px 0 2px; color: var(--muted); font-size: .84rem; }
.draft-status[data-state="saved"] { color: #2f6c42; }
.draft-status[data-state="error"] { color: var(--danger); }
.form-field--wide { grid-column: 1 / -1; }
.form-field--check > label { display: flex; align-items: flex-start; gap: 8px; color: var(--ink); font-size: .86rem; font-weight: 600; line-height: 1.48; }
.form-field--check > label input { flex: 0 0 auto; margin-top: 2px; }
.photo-upload-details { margin: 0; padding: 18px; border: 1px solid #c7dfce; border-radius: 13px; background: var(--mint-soft); }
.photo-upload-details legend { padding: 0 5px; color: var(--forest-deep); font-size: .83rem; font-weight: 700; }
.photo-upload-details > p { margin: 0 0 14px; color: var(--muted); font-size: .82rem; }
.photo-upload-details__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.photo-upload-details__fields .form-field { margin: 0; }
.media-manager { display: grid; gap: 18px; margin-top: 28px; }
.media-tile { display: grid; grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr); overflow: hidden; border: 1px solid #dce7df; border-radius: 15px; background: #fbfdfb; }
.media-tile__visual, .moderation-media-card__image { position: relative; min-height: 235px; overflow: hidden; background: #e9f0eb; }
.media-tile__visual img, .moderation-media-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-tile__placeholder { display: grid; min-height: 100%; align-content: center; gap: 8px; padding: 24px; background: linear-gradient(135deg, #e6efe8, #d4e3d8); color: var(--forest-deep); text-align: center; }
.media-tile__placeholder span { font-family: "Playfair Display", Georgia, serif; font-size: 1.35rem; font-weight: 700; }
.media-tile__placeholder small { color: var(--muted); line-height: 1.45; }
.media-tile__cover { position: absolute; z-index: 1; top: 13px; left: 13px; padding: 6px 9px; border-radius: 999px; background: var(--forest-deep); color: #fff; font-size: .72rem; font-weight: 700; }
.media-tile__body, .moderation-media-card__body { padding: 21px; }
.media-tile__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.media-tile__heading h3 { margin-bottom: 0; }
.media-tile__heading .eyebrow { margin-bottom: 5px; }
.media-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; }
.media-status-note { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.media-edit-form { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(180px, 1.4fr) minmax(100px, .5fr); gap: 12px; margin-top: 17px; }
.media-edit-form .form-field { margin: 0; }
.media-edit-form textarea { min-height: 78px; }
.media-edit-form .media-tile__actions { grid-column: 1 / -1; }
.media-tile__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.media-tile__actions form { margin: 0; }
.media-tile__actions button { min-height: 39px; padding: 8px 11px; font-size: .78rem; }
.moderation-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 24px; align-items: start; }
.moderation-decision-form { display: grid; gap: 24px; }
.moderation-layout .form-card { width: 100%; }
.moderation-guide { position: sticky; top: 94px; background: #f3f8f4; border-color: #c7dfce; }
.check-list { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 23px; color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }
.check-list li::before { position: absolute; top: .2em; left: 0; color: var(--forest); content: "✓"; font-weight: 700; }
.photo-review-panel { margin-top: 24px; }
.moderation-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.moderation-media-card { overflow: hidden; border: 1px solid #dce7df; border-radius: 15px; background: #fbfdfb; }
.moderation-media-card__image { min-height: 250px; }
.photo-hide-control { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; padding: 13px; border: 1px solid #e0c9a8; border-radius: 11px; background: #fff8ec; color: var(--ink); cursor: pointer; }
.photo-hide-control input { flex: 0 0 auto; margin-top: 3px; }
.photo-hide-control span { display: grid; gap: 3px; }
.photo-hide-control small { color: var(--muted); line-height: 1.4; }
.moderation-submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 22px; border-color: #b8d9c2; background: var(--mint-soft); }
.moderation-submit-bar > div { display: grid; gap: 5px; }
.moderation-submit-bar span { color: var(--muted); font-size: .84rem; }
.media-moderation-form { display: grid; gap: 13px; margin-top: 18px; }
.media-moderation-form .form-field { margin: 0; }
.media-moderation-form textarea { min-height: 76px; }

/* Authorised previews keep sensitive evidence in a controlled, audited viewer. */
.private-media-preview { display: grid; gap: 16px; margin: 22px 0; padding: 18px; border: 1px solid #d5e2da; border-radius: 16px; background: #f8fbf9; }
.private-media-preview__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.private-media-preview__heading h3, .private-media-preview__heading p { margin-bottom: 0; }
.private-media-preview__canvas { display: grid; min-height: 260px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #edf2ee; }
.private-media-preview__image { display: block; width: 100%; max-height: 520px; margin: auto; object-fit: contain; }
.private-media-preview__frame { width: 100%; min-height: 520px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.private-media-preview__actions { align-items: center; margin: 0; }
.private-media-preview__unavailable { display: grid; gap: 4px; padding: 16px; border-radius: 11px; background: #fff4e7; color: var(--ink); }
.private-media-preview__unavailable span { color: var(--muted); }
.private-media-preview--compact { margin: 14px 0 0; padding: 14px; background: rgba(255, 255, 255, .72); }
.private-media-preview--compact .private-media-preview__canvas { min-height: 160px; }
.private-media-preview--compact .private-media-preview__image { max-height: 300px; }
.private-media-preview--compact .private-media-preview__frame { min-height: 300px; }
.reported-content { margin: 22px 0; padding: 18px; border-left: 3px solid var(--orange); border-radius: 0 12px 12px 0; background: #fffaf4; }

/* Tables, notices and state lists */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 10px; border-bottom: 1px solid #e5ebe6; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .73rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
td { font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
.metric-grid { margin-top: 24px; }
.metric-card { min-height: 148px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.metric-card p { margin-bottom: 10px; color: var(--muted); font-size: .85rem; }
.metric-card h2 { margin-bottom: 0; color: var(--forest-deep); font-size: 2.65rem; }

/* Responsive layout */
@media (max-width: 900px) {
  .listing-detail-hero, .listing-detail-grid, .booking-request-layout, .booking-detail-grid, .conversation-layout, .workspace-grid, .dashboard-content { grid-template-columns: 1fr; }
  .moderation-layout { grid-template-columns: 1fr; }
  .moderation-guide { position: static; }
  .moderation-submit-bar { align-items: stretch; flex-direction: column; }
  .page-shell .form-shell { grid-template-columns: 1fr; }
  .detail-actions { position: static; }
  .booking-summary { gap: 18px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-page .auth-card { width: min(560px, calc(100% - 48px)); margin: 42px auto; }
  .legal-document__heading { align-items: start; }
  .accommodation-record__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .auth-intro { padding: 28px 24px; }
  .auth-intro h1 { margin-bottom: 10px; font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .auth-intro > p:not(.eyebrow) { margin-bottom: 0; font-size: .92rem; line-height: 1.5; }
  .auth-note { display: none; }
  .auth-page .auth-card { margin: 20px auto 40px; padding: 28px 22px; }
  body { font-size: 15px; }
  main { min-height: calc(100vh - 132px); }
  .site-header__inner { width: calc(100% - 24px); height: 64px; gap: 8px; }
  .brand { gap: 6px; font-size: .86rem; }
  .brand-logo { width: 120px; }
  .site-nav { gap: 2px; margin-left: auto; }
  .site-nav > .nav-browse { display: none; }
  .site-nav > a { padding: 8px; font-size: .76rem; }
  .account-menu { margin-left: 0; }
  .account-menu__toggle { width: 44px; padding: 6px; }
  .account-chevron { display: none; }
  .account-menu__panel { top: calc(100% + 10px); }
  footer { display: grid; gap: 6px; padding: 24px; }
  .footer-branding { display: grid; gap: 6px; }
  .footer-credit { text-align: left; }
  .catalogue, .workspace-page, .simple-page, .page-shell, .listing-detail { width: calc(100% - 40px); margin-top: 42px; margin-bottom: 62px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .page-heading, .workspace-heading, .section-heading { display: grid; gap: 14px; }
  .section-heading { align-items: start; }
  .form-shell, .auth-shell { min-height: calc(100vh - 132px); padding: 34px 20px; }
  .form-card, .auth-shell .auth-card { padding: 27px 22px; border-radius: 18px; }
  .form-grid--two, .detail-fact-grid, .listing-grid, .metric-grid, .action-grid { grid-template-columns: 1fr; }
  .accommodation-flow { padding: 24px 12px; }
  .accommodation-flow .form-card { padding: 26px 18px; }
  .accommodation-flow .flow-section { padding: 16px 14px; }
  .accommodation-flow .flow-steps { grid-template-columns: 1fr; gap: 6px; }
  .accommodation-flow .flow-steps li { padding: 9px 11px; }
  .accommodation-flow .form-actions { flex-wrap: wrap; }
  .accommodation-flow .form-actions > * { width: 100%; text-align: center; }
  .accommodation-summary { grid-template-columns: 1fr; }
  .accommodation-summary > a { min-height: 0; }
  .workspace-tabs { margin-right: -8px; margin-left: -8px; }
  .accommodation-record { grid-template-columns: 45px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .accommodation-record__identity { width: 45px; height: 45px; border-radius: 11px; font-size: 1.25rem; }
  .accommodation-record__heading { display: grid; gap: 10px; }
  .accommodation-record__heading .status-badge { justify-self: start; }
  .accommodation-record__facts { grid-template-columns: 1fr; }
  .accommodation-record__actions > a, .accommodation-record__actions > form, .accommodation-record__actions > form button { width: 100%; }
  .accommodation-scope { display: grid; }
  .photo-gallery { padding: 20px; }
  .photo-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-gallery__item--cover { min-height: 0; }
  .media-tile, .moderation-media-grid { grid-template-columns: 1fr; }
  .media-tile__visual, .moderation-media-card__image { min-height: 225px; }
  .media-edit-form { grid-template-columns: 1fr; }
  .photo-upload-details__fields { grid-template-columns: 1fr; }
  .notification-heading { align-items: start; }
  .notification-toolbar { gap: 13px; }
  .notification-item { display: grid; gap: 11px; padding: 16px; }
  .notification-item__heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .notification-item .notification-state { justify-content: flex-start; }
  .hero { padding: 68px 22px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.2rem); }
  .search-panel { display: grid; gap: 6px; padding: 9px; }
  .search-panel label { padding: 8px 10px; }
  .search-panel button { width: 100%; }
  .trust-strip { grid-template-columns: 1fr; width: 100%; padding: 10px 0; }
  .trust-strip div, .trust-strip div:first-child { padding: 16px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip div:last-child { border-bottom: 0; }
  .listing-detail-copy, .price-card, .booking-summary, .booking-form-panel { padding: 26px; }
  .listing-detail-copy h1 { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .detail-actions .action-row form { flex-basis: 100%; }
  .message-bubble { width: 92%; }
  .private-media-preview__heading { display: grid; }
  .private-media-preview__frame { min-height: 380px; }
  .private-media-preview--compact .private-media-preview__frame { min-height: 260px; }
  .account-actions form button { width: 100%; }
  .workspace-availability__item { align-items: stretch; flex-direction: column; }
  .workspace-availability__form { width: 100%; }
  .workspace-availability__form input { flex: 1 1 auto; }
  .dashboard-hero { display: grid; padding: 54px 22px; }
  .dashboard-content { gap: 30px; }
  .dashboard-aside { order: -1; }
  .panel, .surface-card, .queue-card, .empty-state { padding: 20px; }
  .cases-panel { overflow-x: auto; }
}

@media (max-width: 360px) {
  .brand { font-size: .8rem; }
  .brand-logo { width: 112px; }
  .site-nav > .nav-space { padding-inline: 6px; font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Progressive request feedback. Content remains visible while updates run. */
.page-progress {
  position: fixed;
  z-index: 120;
  top: 71px;
  left: 0;
  width: 100%;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .14s ease;
}
.page-progress span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--orange), #ffba75);
  box-shadow: 0 0 10px rgba(239, 122, 58, .5);
  transform: translateX(-110%);
}
.page-progress.is-visible { opacity: 1; }
.page-progress.is-visible span { animation: page-progress 1.25s ease-in-out infinite; }
.page-progress.is-completing span { width: 100%; animation: none; transform: translateX(0); transition: width .18s ease; }
@keyframes page-progress { 0% { transform: translateX(-110%); } 55% { transform: translateX(145%); } 100% { transform: translateX(300%); } }

.blocking-loader {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 61, 48, .32);
  backdrop-filter: blur(3px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, visibility 0s linear .16s;
}
.blocking-loader.is-visible { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
.blocking-loader__card { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-md); }

.htmx-indicator, .request-indicator { visibility: hidden; opacity: 0; transition: opacity .16s ease 0s, visibility 0s linear .16s; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator {
  visibility: visible;
  opacity: 1;
  transition-delay: .15s, .15s !important;
}
.request-indicator { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: .84rem; font-weight: 700; }
.request-spinner, .button-spinner {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(31, 90, 71, .22);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: request-spin .72s linear infinite;
}
.button-spinner { width: 15px; height: 15px; border-color: rgba(255, 255, 255, .42); border-top-color: currentColor; }
.button--secondary .button-spinner { border-color: rgba(31, 90, 71, .22); border-top-color: var(--forest); }
button[aria-busy="true"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@keyframes request-spin { to { transform: rotate(360deg); } }

.loading-surface { position: relative; isolation: isolate; }
.loading-surface > :not(.loading-layer) { transition: opacity .18s ease; }
.loading-surface[aria-busy="true"] > :not(.loading-layer) { opacity: .58; }
.loading-layer {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border-radius: inherit;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.loading-surface[aria-busy="true"] > .loading-layer { visibility: visible; animation: loading-layer-in .01s .15s forwards; }
@keyframes loading-layer-in { to { opacity: 1; } }
.skeleton-row, .skeleton-card {
  overflow: hidden;
  border: 1px solid rgba(219, 228, 220, .9);
  border-radius: 13px;
  background: linear-gradient(100deg, rgba(239, 247, 242, .82) 30%, rgba(255, 255, 255, .96) 50%, rgba(239, 247, 242, .82) 70%);
  background-size: 230% 100%;
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}
.skeleton-row { height: 72px; }
.skeleton-card { min-height: 230px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@keyframes skeleton-shimmer { to { background-position-x: -230%; } }

.loadable-image { opacity: 0; transition: opacity .24s ease; }
.loadable-image.is-loaded { opacity: 1; }
.listing-image, .listing-photo-card__image, .photo-gallery__item { background: linear-gradient(100deg, var(--mint-soft) 30%, #fff 50%, var(--mint-soft) 70%); background-size: 230% 100%; animation: skeleton-shimmer 1.25s ease-in-out infinite; }
.listing-image:has(.loadable-image.is-loaded), .listing-photo-card__image:has(.loadable-image.is-loaded), .photo-gallery__item:has(.loadable-image.is-loaded) { animation: none; background: var(--mint-soft); }

.background-request-indicator { transition-delay: 0s !important; }
.htmx-request .background-request-indicator { transition-delay: 2s !important; }
.htmx-status { position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: min(360px, calc(100% - 40px)); margin: 0; padding: 0; border-radius: 12px; background: var(--forest-deep); color: #fff; box-shadow: var(--shadow-md); }
.htmx-status:not(:empty) { padding: 12px 16px; }
[aria-busy="true"] { cursor: progress; }

.gallery-upload-summary { min-height: 24px; margin: 0; color: var(--ink-soft); font-size: .9rem; font-weight: 700; }
.gallery-upload-preview__item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.gallery-upload-preview__item img { width: 72px; height: 56px; border-radius: 9px; object-fit: cover; }
.gallery-upload-preview__copy { display: grid; gap: 4px; min-width: 0; }
.gallery-upload-preview__copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-upload-preview__copy progress { width: 100%; height: 7px; accent-color: var(--orange); }
.gallery-upload-preview__item.is-complete progress { accent-color: var(--forest); }

@media (max-width: 720px) {
  .page-progress { top: 63px; }
  .skeleton-grid { grid-template-columns: 1fr; }
  .gallery-upload-preview__item { grid-template-columns: 58px minmax(0, 1fr); }
  .gallery-upload-preview__item > button { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .page-progress, .page-progress span, .blocking-loader, .request-indicator,
  .request-spinner, .button-spinner, .skeleton-row, .skeleton-card, .loadable-image {
    animation: none !important;
    transition: none !important;
  }
  .page-progress.is-visible span { width: 65%; transform: none; }
  .page-progress.is-completing span { width: 100%; }
  .loading-surface[aria-busy="true"] > .loading-layer { opacity: 1; animation: none; }
}

/* Progressive disclosure keeps the landlord setup focused without hiding an
   intentional room-specific override or a record that needs editing. */
.form-disclosure, .optional-details { margin-top: 1rem; border: 1px solid #dce8e2; border-radius: 12px; background: #fbfdfb; padding: .8rem 1rem; }
.form-disclosure > summary, .optional-details > summary { cursor: pointer; color: var(--forest-deep); font-weight: 700; }
.form-disclosure[open] > summary, .optional-details[open] > summary { margin-bottom: .85rem; }
.selected-record { margin: .4rem 0 1rem; padding: .9rem 1rem; border: 1px solid #cfe0d7; border-radius: 12px; background: #f3f8f4; color: var(--ink); }
.selected-record small { color: var(--muted); }
/* Property-first onboarding and room management */
.room-count-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 18px; }
.room-count-form label { flex-basis: 100%; font-weight: 700; }
.room-count-form input { width: 110px; }
.room-bulk-grid, .room-public-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.room-bulk-form { display: grid; gap: 20px; }
.room-entry, .room-public-card, .room-management-card { min-width: 0; }
.room-entry__heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.room-entry__heading h2 { margin-top: 4px; }
.room-copy-choice { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; }
.room-entry .form-grid { margin: 16px 0; }
.property-totals { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.property-totals > section { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.property-totals strong { color: var(--forest); font-size: 1.55rem; }
.property-totals span { color: var(--muted); font-size: .8rem; }
.room-management-list { display: grid; gap: 18px; }
.room-management-card .page-heading { align-items: start; }
.room-management-card h4 { margin: 22px 0 12px; }
.room-readiness { margin: 18px 0; padding: 14px 18px; border: 1px solid #ead7b3; border-radius: 12px; background: #fff9ed; }
.room-readiness ul { margin: 8px 0 0; padding-left: 20px; }
.room-readiness li + li { margin-top: 5px; }
.room-photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 20px 0; }
.room-photo-strip figure { min-width: 0; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.room-photo-strip img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; object-fit: cover; }
.room-photo-strip figcaption { margin: 8px 0; color: var(--muted); font-size: .77rem; }
.room-photo-strip .action-row { gap: 6px; }
.room-photo-strip button { padding: 7px 9px; font-size: .74rem; }
.room-public-card { display: flex; flex-direction: column; align-items: start; }
.room-public-card__image { display: block; width: 100%; margin-bottom: 16px; }
.room-public-card__image img { width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; object-fit: cover; }
.room-public-card .primary-button { margin-top: auto; }
.property-review-image { display: block; width: min(100%, 520px); max-height: 360px; border-radius: 12px; object-fit: contain; background: #eef3ee; }
.property-breadcrumb { margin: 12px 0 26px; }
@media (max-width: 900px) { .property-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .room-bulk-grid, .room-public-grid { grid-template-columns: 1fr; }
  .property-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-entry__heading { flex-direction: column; }
  .room-count-form input { flex: 1; }
}
