:root {
  --ink: #0d2330;
  --ink-soft: #29424f;
  --paper: #f3f6f6;
  --white: #ffffff;
  --line: #dbe3e5;
  --accent: #f5a623;
  --accent-dark: #d88700;
  --teal: #087a76;
  --danger: #a4382f;
  --shadow: 0 24px 70px rgba(13, 35, 48, 0.12);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 5%, rgba(245, 166, 35, 0.13), transparent 28rem),
    var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.top-rule {
  height: 6px;
  background: linear-gradient(90deg, var(--accent) 0 68%, var(--teal) 68%);
}

[hidden] {
  display: none !important;
}

.wordmark {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.wordmark span {
  color: var(--accent-dark);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.4vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  letter-spacing: -0.035em;
}

.lead,
.muted {
  color: var(--ink-soft);
  line-height: 1.6;
}

.lead {
  max-width: 37rem;
  font-size: 1.1rem;
}

.button {
  min-height: 46px;
  padding: 0.72rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(8, 122, 118, 0.25);
  outline-offset: 2px;
}

.button.primary {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.button.primary:hover {
  background: #ffb838;
}

.button.secondary {
  color: var(--white);
  background: var(--ink);
}

.button.ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button.text {
  min-height: auto;
  padding: 0.25rem;
  color: var(--danger);
  background: transparent;
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #bfcdd1;
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

.centered-view {
  display: grid;
  min-height: calc(100vh - 6px);
  place-items: center;
  padding: 2rem;
}

.brand-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: 900;
}

.auth-layout {
  display: grid;
  min-height: calc(100vh - 6px);
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
}

.auth-intro {
  display: flex;
  padding: clamp(2rem, 5vw, 5rem);
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(rgba(255, 255, 255, 0.89), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 22px);
}

.auth-panel {
  display: grid;
  padding: 2rem;
  place-items: center;
  color: var(--white);
  background: var(--ink);
}

.auth-card,
.setup-card {
  width: min(100%, 31rem);
}

.auth-card {
  padding: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--ink);
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.auth-card .button,
.setup-card .button {
  width: 100%;
  margin-top: 1.15rem;
}

.trust-list {
  display: grid;
  max-width: 43rem;
  margin: 2rem 0 0;
  padding: 0;
  gap: 0.8rem;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
}

.trust-list span {
  color: var(--teal);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.form-message {
  min-height: 1.35rem;
  margin: 0.8rem 0 0;
  color: var(--teal);
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-message.error {
  color: var(--danger);
}

.setup-card {
  padding: 2rem;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.portal {
  min-height: calc(100vh - 6px);
}

.portal-header {
  display: flex;
  min-height: 74px;
  padding: 0 2rem;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.account-label {
  max-width: 17rem;
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-content {
  display: grid;
  grid-template-columns: 250px 1fr;
}

.sidebar {
  display: flex;
  min-height: calc(100vh - 80px);
  padding: 2rem 1rem;
  flex-direction: column;
  background: #e9efef;
  border-right: 1px solid var(--line);
}

.nav-label {
  margin: 0 0 0.65rem 0.8rem;
  color: #60747c;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  width: 100%;
  padding: 0.85rem;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-weight: 750;
  text-align: left;
}

.nav-item.active {
  background: var(--white);
  box-shadow: 0 5px 18px rgba(13, 35, 48, 0.06);
}

.service-note {
  display: flex;
  margin-top: auto;
  padding: 1rem;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.service-note strong {
  font-size: 0.86rem;
}

.service-note p {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.4;
}

.service-dot {
  width: 9px;
  height: 9px;
  margin-top: 0.28rem;
  flex: 0 0 auto;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(8, 122, 118, 0.12);
}

.workspace {
  width: min(100%, 82rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.workspace-heading,
.section-heading,
.dialog-heading,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.workspace-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.summary-grid {
  display: grid;
  margin: 2.4rem 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.summary-grid article {
  display: grid;
  min-height: 112px;
  padding: 1.1rem 1.25rem;
  align-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.summary-grid span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.summary-grid strong {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.request-section {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.section-heading {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.section-heading select {
  width: auto;
  min-height: 40px;
  padding-block: 0.45rem;
}

.request-list {
  display: grid;
}

.request-card {
  padding: 1.2rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.request-summary {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(19rem, 0.8fr) auto;
  align-items: center;
  gap: 1.4rem;
}

.request-actions {
  display: grid;
  justify-items: end;
  gap: 0.55rem;
}

.request-card:last-child {
  border-bottom: 0;
}

.request-title-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.request-number {
  color: #657981;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  color: var(--teal);
  background: rgba(8, 122, 118, 0.09);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
}

.request-location {
  margin: 0.55rem 0 0.2rem;
  font-size: 1.05rem;
}

.request-dates {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.request-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.request-meta div {
  display: grid;
  gap: 0.2rem;
}

.request-meta span {
  color: #657981;
  font-size: 0.76rem;
}

.request-meta strong {
  font-size: 0.91rem;
}

.empty-state {
  padding: 4rem 1.5rem;
  text-align: center;
}

.empty-state > div {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  place-items: center;
  color: var(--teal);
  background: rgba(8, 122, 118, 0.09);
  border-radius: 14px;
  font-size: 1.8rem;
}

.empty-state h3 {
  margin-bottom: 0.35rem;
}

.empty-state p {
  color: var(--ink-soft);
}

dialog {
  width: min(94vw, 760px);
  max-height: 92vh;
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(7, 24, 33, 0.72);
  backdrop-filter: blur(3px);
}

dialog form {
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.dialog-heading h2 {
  margin: 0;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 50%;
  font-size: 1.65rem;
}

.form-grid {
  display: grid;
  margin-top: 1.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.span-2 {
  grid-column: span 2;
}

.privacy-note {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  color: var(--ink-soft);
  background: #edf5f4;
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.dialog-actions {
  margin-top: 1.3rem;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    min-height: 52vh;
  }

  .portal-content {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .request-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .portal-header {
    padding: 0 1rem;
  }

  .account-label {
    display: none;
  }

  .workspace {
    padding: 1.25rem 1rem 2rem;
  }

  .workspace-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-heading .button {
    width: 100%;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid article {
    min-height: 90px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading select {
    width: 100%;
  }

  .request-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* APARTMENTHELDEN brand direction derived from the approved Readdy reference. */
:root {
  --ink: #092d32;
  --ink-deep: #062429;
  --ink-soft: #3f5a5e;
  --paper: #f4f7f5;
  --accent: #f5c400;
  --accent-dark: #d7a900;
  --teal: #087b70;
}

body {
  background:
    radial-gradient(circle at 85% 5%, rgba(245, 196, 0, 0.11), transparent 28rem),
    var(--paper);
}

.top-rule {
  height: 5px;
  background: linear-gradient(90deg, var(--accent) 0 72%, #0d8277 72%);
}

.wordmark { font-size: 1.12rem; }
.wordmark span { color: var(--accent); }

.button,
input,
select,
textarea,
.auth-card,
.setup-card,
.nav-item,
.service-note,
.summary-grid article,
.request-section,
.status-badge,
dialog,
.icon-button {
  border-radius: 3px;
}

.button.primary {
  box-shadow: 0 8px 24px rgba(245, 196, 0, 0.2);
}

.button.primary:hover { background: #ffd428; }

.auth-intro {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 36, 41, 0.96), rgba(9, 59, 61, 0.94)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 28px);
}

.auth-intro .wordmark,
.auth-intro h1 { color: var(--white); }
.auth-intro .lead { color: rgba(255, 255, 255, 0.76); }
.auth-intro .eyebrow,
.auth-intro .trust-list span { color: var(--accent); }
.auth-panel { background: var(--accent); }

.portal-header {
  color: var(--white);
  background: var(--ink-deep);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.portal-header .wordmark { color: var(--white); }
.portal-header .button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.portal-name {
  margin-right: auto;
  margin-left: 1.1rem;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.62);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
  font-weight: 700;
}

.sidebar {
  color: var(--white);
  background: var(--ink-deep);
  border-right: 0;
}

.nav-label { color: rgba(255, 255, 255, 0.5); }
.nav-item { color: var(--white); }
.nav-item.active {
  color: var(--ink);
  background: var(--accent);
  box-shadow: none;
}

.service-note {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}
.service-note p { color: rgba(255, 255, 255, 0.62); }

.workspace-hero {
  position: relative;
  min-height: 245px;
  padding: clamp(1.6rem, 4vw, 3rem);
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--ink) 0%, #0d615c 100%);
}

.workspace-hero::after {
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 23rem;
  height: 23rem;
  border: 3rem solid rgba(245, 196, 0, 0.18);
  border-radius: 50%;
  content: "";
}

.workspace-hero > * { position: relative; z-index: 1; }
.workspace-hero .eyebrow { color: var(--accent); }
.workspace-hero h1 { color: var(--white); }
.workspace-hero h1 span { color: var(--accent); }
.workspace-lead {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}
.workspace-hero .button { align-self: flex-end; white-space: nowrap; }
.summary-grid article { border-top: 4px solid var(--accent); }

@media (max-width: 620px) {
  .portal-name { display: none; }
  .workspace-hero { min-height: auto; }
}

/* Brandbook 2025: definitive APARTMENTHELDEN visual system. */
:root {
  --hero-blue: #215f9a;
  --coral-red: #ff0066;
  --light-blue: #bfd5e2;
  --light-pink: #ffe5f0;
  --brand-background: #9ebbcc;
  --ink: #215f9a;
  --ink-deep: #184f84;
  --ink-soft: #4f6f89;
  --paper: #f7fafc;
  --line: #d6e3eb;
  --accent: #ff0066;
  --accent-dark: #d90057;
  --teal: #215f9a;
  --shadow: 0 24px 70px rgba(33, 95, 154, 0.16);
  font-family: Aptos, "Segoe UI", ui-sans-serif, sans-serif;
}

body {
  background:
    radial-gradient(circle at 87% 4%, rgba(255, 0, 102, 0.08), transparent 28rem),
    var(--paper);
}

h1,
h2,
.summary-grid strong {
  font-family: "ADLaM Display", Aptos, "Segoe UI", sans-serif;
  font-weight: 400;
}

.top-rule { background: linear-gradient(90deg, var(--coral-red) 0 34%, var(--hero-blue) 34%); }

.wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.wordmark img {
  display: block;
  width: 9.8rem;
  height: 3.15rem;
  object-fit: contain;
}

.auth-intro {
  background:
    linear-gradient(135deg, rgba(33, 95, 154, 0.97), rgba(33, 95, 154, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 28px);
}

.auth-intro .eyebrow,
.auth-intro .trust-list span { color: var(--light-pink); }
.auth-panel { background: var(--brand-background); }
.auth-card { border-top: 6px solid var(--coral-red); }

.button.primary {
  color: var(--white);
  background: var(--coral-red);
  border-color: var(--coral-red);
  box-shadow: 0 8px 24px rgba(255, 0, 102, 0.2);
}
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: var(--hero-blue); }
.button:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline-color: rgba(255, 0, 102, 0.3); }

.portal-header { background: var(--hero-blue); }
.portal-name { color: rgba(255, 255, 255, 0.7); }
.sidebar { background: var(--light-blue); color: var(--hero-blue); }
.nav-label { color: rgba(33, 95, 154, 0.68); }
.nav-item { color: var(--hero-blue); }
.nav-item.active { color: var(--white); background: var(--hero-blue); }
.service-note { color: var(--hero-blue); background: rgba(255, 255, 255, 0.54); border-color: rgba(33, 95, 154, 0.18); }
.service-note p { color: var(--ink-soft); }
.service-dot { background: var(--coral-red); box-shadow: 0 0 0 4px rgba(255, 0, 102, 0.12); }

.workspace-hero {
  background:
    linear-gradient(112deg, rgba(33, 95, 154, 0.98), rgba(33, 95, 154, 0.9)),
    var(--hero-blue);
}
.workspace-hero::after { border-color: rgba(255, 0, 102, 0.23); }
.workspace-hero .eyebrow { color: var(--light-pink); }
.workspace-hero h1 span { color: var(--light-pink); }
.summary-grid article { border-top-color: var(--coral-red); }
.status-badge { color: var(--hero-blue); background: var(--light-blue); }
.privacy-note { background: var(--light-pink); border-left-color: var(--coral-red); }
.brand-mark { width: 72px; height: 72px; padding: 0.45rem; background: var(--hero-blue); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }


.request-details {
  margin-top: 1.15rem;
  padding: 1.25rem;
  background: color-mix(in srgb, var(--blue-light) 28%, white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.detail-grid div,
.detail-requirements {
  display: grid;
  gap: 0.25rem;
}

.detail-grid span,
.detail-requirements > span {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.detail-grid strong {
  font-size: 0.9rem;
}

.detail-requirements {
  margin-top: 1.2rem;
}

.detail-requirements p {
  margin: 0;
  line-height: 1.5;
}

.status-progress {
  display: grid;
  margin-top: 1.35rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.progress-step {
  display: flex;
  padding-top: 0.75rem;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  border-top: 3px solid var(--line);
  font-size: 0.78rem;
}

.progress-step > span {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink-soft);
  background: var(--line);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
}

.progress-step.is-current {
  color: var(--blue);
  border-top-color: var(--pink);
}

.progress-step.is-current > span {
  color: white;
  background: var(--blue);
}

.detail-service-note {
  margin: 1.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .request-summary,
  .detail-grid,
  .status-progress {
    grid-template-columns: 1fr;
  }

  .request-actions {
    justify-items: start;
  }
}


.portal-switch {
  margin-left: auto;
  text-decoration: none;
}

.internal-review {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-left: 4px solid var(--pink);
  background: #f7fbfe;
}

.internal-review label {
  display: grid;
  gap: 0.5rem;
  color: var(--blue);
  font-weight: 700;
}

.internal-notes {
  width: 100%;
  resize: vertical;
}

.internal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.internal-message {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
}

.internal-message.error {
  color: #a33a32;
}


/* Internal operator and property workspace. */
.operator-form {
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.property-list {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.property-card,
.match-card {
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral-red);
  border-radius: 4px;
}

.property-card h3,
.property-card p,
.match-card p {
  margin-bottom: 0.35rem;
}

.property-card strong,
.match-card strong {
  color: var(--hero-blue);
}

.match-card {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.match-card.is-selected {
  border-left-color: #16805b;
  box-shadow: 0 8px 24px rgba(22, 128, 91, 0.12);
}

.match-card.is-highlighted {
  border-color: var(--coral-red);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(33, 95, 154, 0.2);
}

.offer-card.is-highlighted {
  outline: 3px solid #ff0064;
  outline-offset: 3px;
  box-shadow: 0 12px 30px rgba(0, 54, 102, 0.18);
}

.match-selection {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: var(--hero-blue);
  font-weight: 800;
  cursor: pointer;
}

.match-selection input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: #16805b;
}

.match-meta,
.match-reasons {
  color: var(--ink-soft);
}

.match-contacts {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding: 0.85rem;
  align-items: center;
  background: color-mix(in srgb, var(--light-blue) 22%, white);
  border: 1px solid var(--line);
}

.match-contacts > div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.match-contacts span {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
}

.match-contacts a,
.match-contacts strong {
  width: fit-content;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.match-contacts .contact-status {
  padding: 0.35rem 0.55rem;
  color: var(--hero-blue);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.match-contacts .contact-missing {
  color: #a33a32;
}

.matching-panel {
  margin-top: 1rem;
  padding: 1rem;
  background: color-mix(in srgb, var(--light-blue) 28%, white);
  border: 1px solid var(--line);
}

.matching-panel h4 {
  margin: 0 0 0.75rem;
  color: var(--hero-blue);
}

.matching-results {
  display: grid;
  gap: 0.75rem;
}

@media (max-width: 620px) {
  .operator-form,
  .property-list {
    padding: 1rem;
  }
}


.property-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 1.25rem;
  overflow: hidden;
}

.property-main-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--light-blue);
}

.property-card-content {
  min-width: 0;
}

.property-source-details {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.property-source-details summary {
  cursor: pointer;
  color: var(--hero-blue);
  font-weight: 700;
}

.property-source-details h4 {
  margin: 1rem 0 0.45rem;
  color: var(--hero-blue);
}

.property-description {
  margin-top: 0.75rem;
  white-space: pre-line;
}

.property-facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.property-facilities li {
  padding: 0.3rem 0.55rem;
  background: color-mix(in srgb, var(--light-blue) 35%, white);
  border-radius: 999px;
  font-size: 0.82rem;
}

.property-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.55rem;
}

.property-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  background: var(--light-blue);
}

.property-gallery-note {
  margin-top: 0.5rem;
  color: var(--muted-blue);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .property-card {
    grid-template-columns: 1fr;
  }

  .property-main-image {
    height: 220px;
  }
}


/* Mobile portal navigation: keep internal workspaces reachable on phones. */
@media (max-width: 900px) {
  .sidebar {
    display: flex;
    min-height: auto;
    padding: 0.65rem 1rem;
    flex-direction: row;
    gap: 0.55rem;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar .nav-label,
  .sidebar .service-note {
    display: none;
  }

  .sidebar .nav-item {
    width: auto;
    min-width: max-content;
    margin: 0;
    padding: 0.75rem 1rem;
    flex: 0 0 auto;
    white-space: nowrap;
  }
}


.property-contacts {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.property-contacts li {
  display: grid;
  gap: 0.12rem;
  padding: 0.65rem 0.75rem;
  background: color-mix(in srgb, var(--light-blue) 24%, white);
  border-left: 3px solid var(--hero-blue);
}

.property-contacts span {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.property-contacts a {
  width: fit-content;
  color: var(--hero-blue);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.matching-map {
  margin: 0.75rem 0 0.6rem;
  overflow: hidden;
  background: #eef5f9;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.leaflet-map-canvas {
  width: 100%;
  height: clamp(320px, 48vw, 520px);
  z-index: 0;
}

.property-marker-shell {
  background: none;
  border: 0;
}

.property-marker {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: white;
  background: var(--hero-blue);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(9, 45, 80, 0.35);
  font-size: 0.76rem;
  font-weight: 900;
}

.property-marker.is-selected {
  background: #16805b;
  transform: scale(1.12);
}

.map-summary {
  margin: 0;
  padding: 0.7rem 0.85rem;
  color: var(--ink-soft);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.map-legend {
  display: flex;
  gap: 1rem;
  margin: 0 0 0.8rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.map-dot {
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.map-dot.target { background: var(--coral-red); }
.map-dot.property { background: var(--hero-blue); }
.map-dot.selected { background: #16805b; }

.outreach-preparation {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--coral-red);
}

.outreach-preparation[hidden] {
  display: none;
}

.outreach-preparation p,
.outreach-message {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.outreach-message.error {
  color: #a33a32;
}

.outreach-results {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.outreach-results[hidden] { display: none; }

.outreach-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #f5f8fb;
  border: 1px solid var(--line);
}

.outreach-result p { margin: 0.25rem 0 0; color: var(--ink-soft); }
.outreach-result-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }
.outreach-result-status { padding: 0.4rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800; }
.outreach-result-status.is-ready { color: #0f684c; background: #dff5ea; }
.outreach-result-status.is-missing { color: #8e3c34; background: #fbe8e5; }

.request-offers { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.request-offer-list, .offer-list { display: grid; gap: 1rem; }
.offer-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .8rem 1.25rem; padding: 1.2rem; border: 1px solid #d8e3ef; background: #fff; box-shadow: 0 12px 30px rgba(0,42,83,.08); }
.offer-card h2, .offer-card h3 { margin: .45rem 0 .2rem; color: var(--navy); }
.offer-card p { margin: 0; color: var(--ink-soft); }
.offer-card > p, .offer-card .offer-actions { grid-column: 1 / -1; }
.offer-price { color: var(--pink); font-size: 1.25rem; white-space: nowrap; }
.offer-terms { padding-top: .7rem; border-top: 1px solid #edf1f6; font-size: .88rem; }
.offer-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

.offer-page { min-height: 100vh; background: linear-gradient(135deg,rgba(0,42,83,.96),rgba(0,69,120,.82)),url('/assets/facade-navy.png') center/cover fixed; }
.external-shell { width: min(1100px,calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.external-header { display: flex; align-items: center; gap: 1.25rem; color: #fff; font-weight: 800; letter-spacing: .04em; }
.external-header img { width: 210px; height: auto; }
.external-header .button { margin-left: auto; color: #fff; border-color: rgba(255,255,255,.45); }
.external-card { margin-top: 2rem; padding: clamp(1.4rem,4vw,3rem); background: rgba(255,255,255,.97); box-shadow: 0 24px 70px rgba(0,20,50,.32); }
.external-card.compact { max-width: 620px; }
.external-card h1 { color: var(--navy); font-size: clamp(2rem,4vw,3.4rem); max-width: 820px; }
.external-card form { margin-top: 2rem; }
.brief-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: #dce6f1; margin: 2rem 0 1rem; }
.brief-grid > div { background: #f6f9fc; padding: 1rem; display: grid; gap: .35rem; }
.brief-grid > div:last-child { grid-column: 1/-1; }
.brief-grid span { color: var(--ink-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.brief-grid strong { color: var(--navy); }

@media (max-width:700px){.external-header{align-items:flex-start;flex-direction:column}.external-header img{width:175px}.external-header .button{margin-left:0}.brief-grid{grid-template-columns:1fr}.brief-grid>div:last-child{grid-column:auto}.offer-card{grid-template-columns:1fr}.offer-price{grid-column:1}.external-card{padding:1.25rem}.external-shell{width:min(100% - 1rem,1100px);padding-top:1rem}}

@media (max-width: 620px) {
  .leaflet-map-canvas {
    height: 340px;
  }

  .match-contacts {
    grid-template-columns: 1fr;
  }

  .match-contacts .contact-status {
    width: fit-content;
  }

  .outreach-preparation {
    align-items: stretch;
    flex-direction: column;
  }

  .outreach-result { align-items: stretch; flex-direction: column; }
  .outreach-result-actions { justify-content: flex-start; }
}
