:root {
  --navy: #063b61;
  --navy-deep: #032b49;
  --blue: #0879b9;
  --blue-light: #e8f5fb;
  --cyan: #55c5dc;
  --ink: #15222d;
  --muted: #647480;
  --line: #dbe4e8;
  --surface: #ffffff;
  --canvas: #f4f7f8;
  --warm: #f2a83b;
  --danger: #b43b3b;
  --success: #168064;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 8px 24px rgba(6, 59, 97, 0.08);
  --shadow: 0 22px 60px rgba(6, 43, 73, 0.16);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.section-shell,
.header-inner,
.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  width: 100%;
  color: white;
}

.header-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: rotate(-20deg);
}

.brand-mark i {
  position: absolute;
  width: 17px;
  height: 7px;
  border: 2px solid currentColor;
  border-right: 0;
  border-radius: 8px 0 0 8px;
}

.brand-mark i:first-child {
  transform: translate(2px, -5px) rotate(17deg);
}

.brand-mark i:last-child {
  transform: translate(-2px, 5px) rotate(197deg);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0.14em;
}

.brand small {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.09em;
  opacity: 0.76;
}

.admin-link,
.back-link,
.text-link {
  text-underline-offset: 4px;
}

.admin-link {
  font-size: 13px;
  font-weight: 650;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 525px;
  padding: 140px 0 76px;
  color: white;
  background:
    radial-gradient(circle at 78% 42%, rgba(85, 197, 220, 0.24), transparent 30%),
    linear-gradient(128deg, var(--navy-deep), var(--navy) 60%, #075e8c);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.hero::before {
  top: -230px;
  right: -170px;
  width: 690px;
  height: 690px;
}

.hero::after {
  top: -80px;
  right: -20px;
  width: 390px;
  height: 390px;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 13px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow.muted {
  color: var(--blue);
}

.eyebrow.light {
  color: var(--cyan);
}

.hero h1 {
  max-width: 710px;
  margin: 0;
  font-size: clamp(45px, 7vw, 78px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero h1 em {
  color: var(--cyan);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-copy {
  max-width: 530px;
  margin: 26px 0 34px;
  color: rgba(255, 255, 255, 0.77);
  font-size: 17px;
  line-height: 1.6;
}

.search-shell {
  display: grid;
  width: min(810px, 100%);
  min-height: 72px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 9px 9px 9px 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 50px rgba(0, 16, 28, 0.25);
  color: var(--navy);
}

.search-shell > .icon {
  width: 23px;
  height: 23px;
  color: var(--blue);
}

.search-shell input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
}

.search-shell input::placeholder {
  color: #7e8c94;
}

.filter-trigger {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: var(--navy);
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.filter-trigger b {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy-deep);
  font-size: 11px;
}

.quick-filters {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin-top: 16px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.quick-filters::-webkit-scrollbar {
  display: none;
}

.quick-filter {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 12px;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.catalog {
  padding-block: 64px 84px;
}

.section-heading,
.admin-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.admin-title h1 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.045em;
}

.result-count,
.admin-title p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.active-filters:empty {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid #cce1eb;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--navy);
  font-size: 12px;
}

.filter-chip button {
  display: grid;
  width: 18px;
  height: 18px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
}

.filter-chip .icon {
  width: 13px;
  height: 13px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.property-card {
  position: relative;
  display: flex;
  min-height: 335px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(6, 59, 97, 0.02);
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.property-card:hover {
  transform: translateY(-4px);
  border-color: #bad4df;
  box-shadow: var(--shadow-sm);
}

.card-accent {
  height: 8px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 23px;
}

.card-topline,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.developer {
  overflow: hidden;
  color: var(--blue);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.delivery-badge,
.review-badge,
.status-badge {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 999px;
  background: #edf3f5;
  color: #52636d;
  font-size: 10px;
  font-weight: 720;
}

.delivery-badge.ready {
  background: #e4f4ed;
  color: #187157;
}

.property-card h3 {
  margin: 16px 0 9px;
  color: var(--navy-deep);
  font-size: 23px;
  letter-spacing: -0.035em;
  line-height: 1.13;
}

.location {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.location .icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--blue);
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0;
}

.feature-pill {
  padding: 6px 8px;
  border: 1px solid #e1e9ec;
  border-radius: 8px;
  background: #f8fafb;
  color: #455660;
  font-size: 11px;
  font-weight: 620;
}

.tag-pill,
.detail-tag {
  border-color: #cae4ee;
  background: var(--blue-light);
  color: var(--blue);
}

.availability-pill {
  border-color: #cfe5dc;
  background: #eaf6f1;
  color: var(--success);
}

.card-footer {
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid #edf1f2;
}

.price-label {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.price-value {
  color: var(--navy-deep);
  font-size: 19px;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.card-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
}

.card-arrow .icon {
  width: 17px;
  height: 17px;
}

.skeleton-card-item {
  min-height: 335px;
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%),
    #e8edef;
  background-size: 200% 100%;
  animation: shimmer 1.35s infinite linear;
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

.button.primary {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.button.secondary {
  border-color: #cbd8dd;
  background: white;
  color: var(--navy);
}

.button.ghost {
  background: transparent;
  color: var(--muted);
}

.button.compact {
  min-height: 40px;
  padding-inline: 13px;
}

.button.full {
  width: 100%;
}

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

.empty-state {
  max-width: 480px;
  margin: 60px auto 20px;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
}

.empty-icon .icon {
  width: 32px;
  height: 32px;
}

.empty-state h3 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 22px;
}

.empty-state p {
  margin: 10px 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

dialog {
  padding: 0;
  border: 0;
}

dialog::backdrop {
  background: rgba(2, 25, 42, 0.58);
  backdrop-filter: blur(3px);
}

.filter-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: min(780px, calc(100dvh - 32px));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.filter-dialog form,
.editor-dialog form {
  display: flex;
  max-height: inherit;
  flex-direction: column;
  background: white;
}

.dialog-handle {
  display: none;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 25px 27px 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 26px;
  letter-spacing: -0.04em;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--navy);
}

.filter-fields,
.editor-fields {
  overflow-y: auto;
  padding: 24px 27px;
}

.filter-fields {
  display: grid;
  gap: 19px;
}

.filter-fields label,
.editor-fields label,
.login-card label {
  display: grid;
  gap: 8px;
  color: #3f515c;
  font-size: 12px;
  font-weight: 700;
}

.filter-fields input,
.filter-fields select,
.editor-fields input,
.editor-fields select,
.editor-fields textarea,
.login-card input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cdd9de;
  border-radius: 10px;
  outline: 0;
  background: white;
  font-size: 14px;
  font-weight: 450;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.editor-fields textarea {
  min-height: auto;
  resize: vertical;
}

.filter-fields input:focus,
.filter-fields select:focus,
.editor-fields input:focus,
.editor-fields textarea:focus,
.login-card input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 121, 185, 0.12);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset legend {
  margin-bottom: 9px;
  color: #3f515c;
  font-size: 12px;
  font-weight: 700;
}

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

.three-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.two-columns label {
  color: var(--muted);
  font-size: 10px;
}

.three-columns label {
  color: var(--muted);
  font-size: 10px;
}

.filter-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.filter-checks label {
  display: flex;
  min-height: 48px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafb;
}

.filter-checks input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 17px 27px;
  border-top: 1px solid var(--line);
  background: white;
}

.site-footer {
  padding: 38px 0;
  background: var(--navy-deep);
  color: white;
}

.site-footer .section-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(360px, calc(100% - 36px));
  gap: 8px;
}

.toast {
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--navy-deep);
  box-shadow: var(--shadow-sm);
  color: white;
  font-size: 13px;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  background: #842e35;
}

@keyframes toast-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

/* Detail */
.detail-page {
  background: white;
}

.detail-topbar {
  border-bottom: 1px solid var(--line);
  background: white;
}

.topbar-inner {
  display: grid;
  min-height: 76px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.topbar-inner .brand {
  color: var(--navy);
}

.topbar-inner .button {
  justify-self: end;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.back-link .icon {
  width: 17px;
}

.detail-hero {
  padding: 65px 0 55px;
  background:
    linear-gradient(110deg, rgba(85, 197, 220, 0.11), transparent 35%),
    #f1f7f9;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 50px;
  align-items: end;
}

.detail-hero h1 {
  max-width: 760px;
  margin: 10px 0 14px;
  color: var(--navy-deep);
  font-size: clamp(42px, 7vw, 72px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.detail-address {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.detail-address .icon {
  margin-top: 2px;
  color: var(--blue);
}

.maps-link {
  width: fit-content;
  flex-wrap: wrap;
  text-decoration: none;
}

.maps-link small {
  margin-left: 27px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.detail-tag {
  padding: 6px 9px;
  border: 1px solid #cae4ee;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 720;
}

.detail-price-block {
  padding: 25px;
  border-left: 3px solid var(--cyan);
  background: rgba(255, 255, 255, 0.66);
}

.detail-price-block p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-price-block strong {
  display: block;
  color: var(--navy-deep);
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 38px;
  padding-block: 52px 80px;
}

.detail-section + .detail-section {
  margin-top: 38px;
}

.detail-section h2 {
  margin: 0 0 18px;
  color: var(--navy-deep);
  font-size: 23px;
  letter-spacing: -0.035em;
}

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

.fact-card {
  min-height: 125px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.fact-card small {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact-card strong {
  color: var(--navy-deep);
  font-size: 18px;
  line-height: 1.35;
}

.notes-card {
  padding: 22px;
  border-left: 3px solid var(--warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff8ec;
  white-space: pre-line;
  line-height: 1.65;
}

.broker-section {
  padding: 22px;
  border-radius: var(--radius);
  background: #fff6e5;
  color: #5d421d;
}

.broker-section .eyebrow {
  color: #9d6718;
}

.broker-item {
  display: grid;
  gap: 6px;
  padding: 15px 0;
  border-top: 1px solid rgba(157, 103, 24, 0.18);
}

.broker-item small {
  color: #89602a;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.broker-item strong {
  color: #4f3514;
  font-size: 20px;
}

.broker-item p {
  margin: 0;
  white-space: pre-line;
  line-height: 1.6;
}

.detail-sidebar {
  align-self: start;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--navy);
  color: white;
}

.detail-sidebar h2 {
  margin: 0 0 20px;
  font-size: 19px;
}

.availability-number {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 44px;
  font-weight: 760;
  letter-spacing: -0.05em;
}

.detail-sidebar > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 12px;
  line-height: 1.55;
}

.units-list {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.source-note {
  margin-top: 22px !important;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.book-download {
  width: 100%;
  margin-top: 20px;
  border-color: rgba(255, 255, 255, 0.28);
  background: white;
  color: var(--navy);
  overflow-wrap: anywhere;
  text-align: center;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.type-count {
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
}

.unit-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.unit-types-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 12px;
}

.unit-types-table th {
  padding: 13px 11px;
  background: #eef5f7;
  color: #50636e;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.unit-types-table td {
  padding: 15px 11px;
  border-top: 1px solid var(--line);
  color: #40535e;
  vertical-align: top;
  white-space: nowrap;
}

.unit-types-table td:first-child {
  min-width: 210px;
  white-space: normal;
}

.unit-types-table td strong,
.unit-types-table td small {
  display: block;
}

.unit-types-table td strong {
  margin-bottom: 6px;
  color: var(--navy-deep);
}

.unit-types-table td small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.unit-feature {
  display: inline-block;
  margin: 0 4px 3px 0;
  padding: 4px 6px;
  border-radius: 6px;
  background: #e8f6ee;
  color: #187157;
  font-size: 9px;
  font-weight: 750;
}

.unit-availability {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 780;
}

.pending-data {
  padding: 20px;
  border: 1px dashed #b9cbd3;
  border-radius: var(--radius-sm);
  background: #f8fafb;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.detail-print-footer {
  display: none;
}

.detail-loading {
  display: grid;
  gap: 16px;
  padding-block: 80px;
}

.skeleton {
  display: block;
  border-radius: 10px;
  background: #e7edef;
  animation: shimmer 1.3s infinite;
}

.skeleton-title {
  width: 60%;
  height: 65px;
}

.skeleton-line {
  width: 42%;
  height: 18px;
}

.skeleton-card {
  width: 100%;
  height: 280px;
  margin-top: 25px;
}

/* Login */
.login-layout {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(360px, 0.8fr) 1.2fr;
}

.login-brand-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 6vw, 72px);
  background:
    radial-gradient(circle at 85% 65%, rgba(85, 197, 220, 0.2), transparent 30%),
    var(--navy-deep);
  color: white;
}

.login-brand-panel h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.login-brand-panel p:last-child {
  max-width: 410px;
  color: rgba(255, 255, 255, 0.67);
  line-height: 1.6;
}

.login-form-panel {
  display: grid;
  min-height: 100%;
  padding: 32px;
  place-items: center;
  background: #f7f9fa;
}

.login-card {
  display: grid;
  width: min(400px, 100%);
  gap: 18px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
}

.login-card h2 {
  margin: -4px 0 0;
  color: var(--navy-deep);
  font-size: 34px;
  letter-spacing: -0.045em;
}

.form-intro {
  margin: -10px 0 5px;
  color: var(--muted);
  font-size: 14px;
}

.form-error {
  padding: 11px 13px;
  border: 1px solid #e4b5b5;
  border-radius: 9px;
  background: #fff0f0;
  color: #8d3131;
  font-size: 12px;
  line-height: 1.45;
}

.text-link.centered {
  justify-self: center;
  color: var(--muted);
  font-size: 12px;
}

/* Admin */
.admin-header {
  color: white;
  background: var(--navy-deep);
}

.admin-header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.light-button {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.admin-main {
  padding-block: 52px 80px;
}

.admin-title {
  align-items: center;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 18px;
}

.admin-search {
  display: grid;
  width: min(570px, 100%);
  min-height: 50px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.admin-search .icon {
  color: var(--blue);
}

.admin-search input {
  min-width: 0;
  border: 0;
  outline: 0;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.toggle-label input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}

.admin-list {
  display: grid;
  gap: 9px;
}

.admin-list-head {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) 1fr 0.55fr 0.65fr auto;
  gap: 18px;
  padding: 0 18px 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.admin-list-head span:last-child {
  text-align: center;
}

.admin-row {
  display: grid;
  min-height: 92px;
  grid-template-columns: minmax(190px, 1.2fr) 1fr 0.55fr 0.65fr auto;
  align-items: center;
  gap: 18px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.admin-row.archived {
  opacity: 0.58;
}

.admin-row h3 {
  margin: 0 0 5px;
  color: var(--navy-deep);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.admin-row p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.admin-row-meta strong {
  display: block;
  margin-bottom: 4px;
  color: #455761;
  font-size: 12px;
}

.admin-row-availability {
  display: grid;
  gap: 2px;
}

.admin-row-availability strong {
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
}

.admin-row-availability span {
  color: var(--muted);
  font-size: 9px;
}

.review-badge {
  background: #fff1dc;
  color: #986317;
}

.status-badge.archived {
  background: #eceff0;
}

.admin-actions {
  display: flex;
  gap: 6px;
}

.admin-actions .icon-button {
  width: 38px;
  height: 38px;
}

.admin-actions .icon {
  width: 17px;
}

.centered-button {
  margin: 24px auto 0;
}

.editor-dialog {
  width: min(940px, calc(100% - 24px));
  max-height: min(880px, calc(100dvh - 28px));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.sticky {
  position: sticky;
  z-index: 2;
  top: 0;
}

.sticky-bottom {
  position: sticky;
  z-index: 2;
  bottom: 0;
}

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

.editor-fields .span-2 {
  grid-column: 1 / -1;
}

.editor-fields > label > small {
  color: var(--muted);
  font-weight: 450;
  line-height: 1.45;
}

.commercial-editor-section,
.book-upload-section {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafb;
}

.commercial-editor-section .eyebrow,
.book-upload-section .eyebrow {
  margin-bottom: 7px;
}

.commercial-editor-section h3,
.book-upload-section h3 {
  margin: 0 0 5px;
  color: var(--navy-deep);
  font-size: 20px;
}

.commercial-editor-section > p:last-of-type,
.book-upload-section > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.commercial-fields {
  margin-top: 16px;
}

.commercial-fields textarea {
  min-height: 48px;
}

.book-upload-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.book-file-label {
  min-width: 220px;
}

.book-current {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  padding: 11px;
  border: 1px solid #cfe2d9;
  border-radius: 10px;
  background: #f0f8f4;
}

.book-current > span {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.book-current strong {
  overflow: hidden;
  color: #275845;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-current small {
  color: var(--success);
  font-size: 9px;
}

.checkbox-card {
  display: flex !important;
  min-height: 70px;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafb;
}

.checkbox-card input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}

.checkbox-card span {
  display: grid;
  gap: 4px;
}

.checkbox-card small {
  color: var(--muted);
  font-weight: 450;
  line-height: 1.4;
}

.unit-editor-section {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.unit-editor-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0;
}

.unit-editor-heading .eyebrow {
  margin-bottom: 7px;
}

.unit-editor-heading h3 {
  margin: 0 0 5px;
  color: var(--navy-deep);
  font-size: 22px;
}

.unit-editor-heading p:last-child {
  max-width: 550px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.unit-type-editor {
  display: grid;
  gap: 12px;
}

.unit-type-card {
  overflow: hidden;
  border: 1px solid #cfdde2;
  border-radius: 14px;
  background: #f8fafb;
}

.unit-type-card > header {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid #dbe5e8;
  background: #edf4f6;
  color: var(--navy);
  font-size: 12px;
}

.unit-type-card > header > div {
  display: flex;
  gap: 4px;
}

.mini-action {
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: white;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}

.mini-action.danger {
  color: var(--danger);
}

.unit-type-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  padding: 14px;
}

.unit-type-fields .unit-span-all {
  grid-column: 1 / -1;
}

.unit-type-fields label {
  font-size: 10px;
}

.unit-type-fields label small {
  color: var(--muted);
  font-weight: 450;
}

.unit-feature-checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.unit-feature-checks label {
  display: flex;
  min-height: 44px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.unit-feature-checks input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--blue);
}

.unit-feature-checks > small {
  flex: 1 1 280px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.unit-type-empty {
  padding: 22px;
  border: 1px dashed #b9cbd3;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-sidebar {
    order: -1;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: 320px;
  }

  .admin-list-head {
    display: none;
  }

  .admin-row {
    grid-template-columns: 1fr auto auto;
  }

  .admin-row-status {
    display: none;
  }

  .admin-row-availability {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    min-width: 70px;
  }

  .unit-type-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-upload-section {
    grid-template-columns: 1fr;
  }

  .book-current {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .book-file-label {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .section-shell,
  .header-inner,
  .hero-inner {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 72px;
  }

  .admin-link {
    font-size: 11px;
  }

  .hero {
    min-height: 520px;
    padding: 119px 0 54px;
  }

  .hero::before {
    right: -430px;
  }

  .hero h1 {
    font-size: clamp(41px, 13vw, 58px);
  }

  .hero-copy {
    margin-block: 20px 27px;
    font-size: 15px;
  }

  .search-shell {
    min-height: 62px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    padding: 7px 7px 7px 15px;
    border-radius: 16px;
  }

  .filter-trigger {
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    padding: 0 13px;
  }

  .filter-trigger span {
    display: none;
  }

  .catalog {
    padding-block: 43px 62px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .result-count {
    margin-top: 23px;
    white-space: nowrap;
  }

  .property-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
  }

  .property-card {
    min-height: 0;
  }

  .card-body {
    padding: 20px;
  }

  .property-card h3 {
    font-size: 21px;
  }

  .filter-dialog {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }

  .dialog-handle {
    display: block;
    width: 42px;
    height: 4px;
    margin: 10px auto -2px;
    border-radius: 99px;
    background: #c9d4d8;
  }

  .dialog-header,
  .filter-fields,
  .editor-fields,
  .dialog-actions {
    padding-inline: 19px;
  }

  .dialog-actions .button {
    flex: 1;
  }

  .filter-checks {
    grid-template-columns: 1fr;
  }

  .site-footer .section-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-inner {
    min-height: 66px;
    grid-template-columns: 1fr auto;
  }

  .topbar-inner .brand {
    display: none;
  }

  .topbar-inner .button {
    grid-column: 2;
  }

  .detail-hero {
    padding: 44px 0 37px;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .detail-hero h1 {
    font-size: 44px;
  }

  .detail-price-block {
    padding: 18px;
  }

  .detail-content {
    gap: 25px;
    padding-block: 30px 58px;
  }

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

  .fact-card {
    min-height: 100px;
  }

  .unit-table-wrap {
    overflow: visible;
    border: 0;
  }

  .unit-types-table,
  .unit-types-table tbody {
    display: grid;
    gap: 11px;
  }

  .unit-types-table thead {
    display: none;
  }

  .unit-types-table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
  }

  .unit-types-table td {
    display: grid;
    gap: 5px;
    padding: 12px;
    border-top: 1px solid var(--line);
    white-space: normal;
  }

  .unit-types-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .unit-types-table td:first-child,
  .unit-types-table td:nth-child(6) {
    grid-column: 1 / -1;
  }

  .unit-types-table td:first-child {
    border-top: 0;
    background: #f5f9fa;
  }

  .login-brand-panel {
    min-height: 255px;
    padding: 29px;
  }

  .login-brand-panel h1 {
    font-size: 42px;
  }

  .login-brand-panel p:last-child {
    display: none;
  }

  .login-form-panel {
    padding: 18px 14px 40px;
    place-items: start center;
  }

  .login-card {
    padding: 26px 22px;
    border-radius: 19px;
  }

  .admin-user span {
    display: none;
  }

  .admin-main {
    padding-block: 34px 60px;
  }

  .admin-title {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-title .button {
    width: 100%;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
    margin-top: 22px;
  }

  .admin-row {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .admin-row-meta {
    grid-column: 1;
  }

  .admin-row-status {
    display: block;
  }

  .admin-row-availability {
    grid-column: 1;
    grid-row: auto;
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .admin-row-availability strong {
    font-size: 17px;
  }

  .admin-actions {
    grid-column: 2;
    grid-row: 1 / 5;
    align-self: start;
    flex-direction: column;
  }

  .editor-dialog {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }

  .editor-fields {
    grid-template-columns: 1fr;
  }

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

  .unit-editor-section {
    grid-column: auto;
  }

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

  .unit-editor-heading .button {
    width: 100%;
  }

  .unit-type-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  @page {
    size: A4;
    margin: 15mm;
  }

  :root {
    --canvas: white;
  }

  body {
    background: white;
    color: #111;
  }

  .no-print,
  .toast-region {
    display: none !important;
  }

  .detail-hero {
    padding: 0 0 10mm;
    background: white;
    border-bottom: 2px solid var(--navy);
  }

  .detail-hero-inner {
    display: grid;
    grid-template-columns: 1fr 0.55fr;
    gap: 12mm;
  }

  .detail-hero h1 {
    font-size: 34pt;
  }

  .detail-price-block {
    padding: 6mm;
    border: 1px solid #cbd8dd;
  }

  .detail-content {
    display: grid;
    grid-template-columns: 1fr 60mm;
    gap: 8mm;
    padding: 10mm 0 0;
  }

  .detail-section + .detail-section {
    margin-top: 8mm;
  }

  .fact-grid {
    gap: 3mm;
  }

  .fact-card {
    min-height: 27mm;
    padding: 5mm;
    break-inside: avoid;
  }

  .unit-types-table tr {
    break-inside: avoid;
  }

  .detail-sidebar {
    padding: 6mm;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .detail-print-footer {
    display: block;
    margin-top: 8mm;
    padding-top: 4mm;
    border-top: 1px solid #ccd5d9;
    color: #65747c;
    font-size: 8pt;
  }
}
