:root {
  --page-bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #eef4fb;
  --text: #111827;
  --muted: #6b7280;
  --line: #d9e2ef;
  --primary: #1f6feb;
  --primary-dark: #134eb2;
  --dark: #0f172a;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

body.subpage {
  background: var(--page-bg);
}

body.broker-intro-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(89, 145, 255, 0.24), transparent 30%),
    linear-gradient(135deg, #0f172a, #102a57 58%, #154a9c);
}

.sub-hero,
.theme-hero,
.detail-hero,
.admin-hero {
  padding: 72px 0 48px;
  color: #fff;
}

.sub-hero,
.detail-hero,
.admin-hero {
  background:
    radial-gradient(circle at top left, rgba(89, 145, 255, 0.24), transparent 30%),
    linear-gradient(135deg, #0f172a, #102a57 58%, #154a9c);
}

.theme-hero {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 30%),
    linear-gradient(135deg, #0b2233, #12506b 56%, #1f8a70);
}

.theme-hero .hero-shell {
  align-items: start;
}

.theme-hero .summary-panel {
  margin-top: 40px;
}

.theme-hero .summary-panel h2 {
  margin-top: 0;
}

.broker-intro-page .sub-hero {
  min-height: calc(100vh - 230px);
  background: transparent;
  display: flex;
  align-items: center;
}

.broker-story-main {
  color: #fff;
  overflow: hidden;
}

.broker-intro-page .topbar {
  background: rgba(255, 255, 255, 0.9);
}

.main-nav a.active:not(.admin-nav-link) {
  color: var(--primary);
  font-weight: 800;
}

.broker-hero {
  padding: 86px 0 58px;
}

.broker-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  gap: 42px;
  align-items: center;
}

.broker-hero-copy h1 {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 4.4rem;
  line-height: 1.08;
}

.broker-hero-copy p {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.13rem;
}

.broker-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button-inline.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.button-inline.ghost:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.16);
}

.broker-hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.broker-portrait-card,
.broker-story-photo,
.broker-proof-grid figure {
  margin: 0;
}

.broker-portrait-card {
  width: min(520px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.broker-portrait-card img,
.broker-story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.broker-intro-band {
  padding: 18px 0 34px;
}

.broker-intro-line {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.broker-intro-line p {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.22rem;
  line-height: 1.8;
  text-align: center;
}

.broker-story-section,
.broker-proof-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
  padding: 68px 0;
}

.broker-photo-journal {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
  gap: 44px;
  align-items: center;
  padding: 70px 0;
}

.broker-journal-copy {
  max-width: 520px;
}

.broker-journal-copy h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.18;
}

.broker-journal-copy p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.85;
}

.broker-journal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 18px;
}

.broker-journal-grid figure,
.broker-map-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.broker-journal-grid figure {
  aspect-ratio: 4 / 3;
}

.broker-journal-grid .journal-main {
  grid-row: span 2;
  aspect-ratio: 4 / 5;
}

.broker-journal-grid img,
.broker-map-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.broker-journal-grid figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.broker-story-section.reversed {
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr);
}

.broker-story-section.reversed .broker-story-photo {
  order: 2;
}

.broker-story-section.reversed .broker-story-copy {
  order: 1;
}

.broker-story-photo {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.broker-story-photo.wide {
  aspect-ratio: 4 / 5;
}

.broker-story-photo.portrait {
  width: min(440px, 100%);
  aspect-ratio: 3 / 4;
  justify-self: end;
}

.broker-story-copy,
.broker-proof-copy {
  max-width: 560px;
}

.broker-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #ffd21f;
  color: #0f172a;
  font-weight: 900;
}

.broker-story-copy h2,
.broker-proof-copy h2,
.broker-closing h2 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.18;
}

.broker-story-copy p,
.broker-proof-copy p,
.broker-closing p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.85;
}

.broker-proof-section {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
}

.broker-map-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr) minmax(240px, 0.66fr);
  gap: 22px;
  align-items: center;
  padding: 70px 0;
}

.broker-map-copy {
  max-width: 500px;
}

.broker-map-copy h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.18;
}

.broker-map-copy p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.85;
}

.broker-map-photo {
  aspect-ratio: 4 / 3;
}

.broker-map-photo.secondary {
  aspect-ratio: 3 / 4;
  align-self: end;
}

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

.broker-proof-grid figure {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

.broker-proof-grid img {
  width: 100%;
  height: 390px;
  object-fit: contain;
  padding: 12px;
}

.broker-proof-grid figcaption {
  padding: 13px 16px 16px;
  color: #111827;
  font-weight: 800;
  border-top: 1px solid var(--line);
}

.broker-closing {
  padding: 76px 0 96px;
}

.broker-closing-inner {
  max-width: 860px;
  text-align: center;
}

.broker-closing .section-kicker {
  color: #ffd21f;
}

.broker-closing p {
  margin-left: auto;
  margin-right: auto;
  max-width: 740px;
}

.broker-closing .button-inline {
  margin-top: 28px;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: end;
}

.hero-shell h1,
.detail-hero h1,
.admin-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.14;
}

.hero-shell p,
.detail-intro p,
.admin-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow-inline {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.summary-panel,
.filter-panel,
.list-card,
.detail-card,
.admin-card,
.auth-card,
.empty-state {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.summary-panel,
.filter-panel,
.auth-card {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.summary-panel {
  color: var(--text);
}

.summary-panel h2 {
  margin: 12px 0 10px;
}

.summary-panel p {
  margin: 0;
  color: var(--muted);
}

.sub-main {
  padding: 42px 0 88px;
}

.listing-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 98px;
}

.listing-page .sub-hero,
.listing-page .theme-hero {
  display: none;
}

.listing-page .sub-main {
  padding-top: 32px;
}

.listing-page .filter-panel {
  max-height: calc(100vh - 118px);
  overflow-y: auto;
  overscroll-behavior: auto;
}

.listing-page .chip-group {
  display: none;
}

.filter-panel h2,
.list-section-head h2,
.detail-card h2,
.admin-card h2,
.auth-card h2 {
  margin: 0 0 14px;
}

.filter-panel p,
.list-section-head p,
.detail-card p,
.admin-card p,
.auth-card p {
  color: var(--muted);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--primary);
  font-weight: 700;
}

.chip.active {
  background: var(--primary);
  color: #fff;
}

.advanced-filter {
  margin-top: 18px;
}

.advanced-filter h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.listing-filter-form {
  display: grid;
  gap: 12px;
}

.listing-filter-field {
  display: grid;
  gap: 7px;
  font-weight: 700;
  color: var(--text);
}

.listing-filter-field span {
  font-size: 0.88rem;
}

.listing-filter-field input,
.listing-filter-field select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.listing-filter-field input::placeholder {
  color: #94a3b8;
}

.theme-filter-field {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.theme-filter-field legend,
.range-filter-head span {
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.theme-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-filter-chip {
  display: inline-flex;
}

.theme-filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-filter-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.theme-filter-chip input:checked + span {
  background: var(--primary);
  color: #fff;
}

.theme-filter-chip input:focus-visible + span {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.range-filter {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.range-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.range-filter-head strong {
  color: var(--primary);
  font-size: 0.86rem;
  white-space: nowrap;
}

.range-filter.disabled .range-filter-head span,
.range-filter.disabled .range-filter-head strong {
  color: #94a3b8;
}

.range-slider {
  --range-min: 0%;
  --range-max: 100%;
  position: relative;
  height: 28px;
}

.range-slider::before,
.range-slider::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
}

.range-slider::before {
  background: #e2e8f0;
}

.range-slider::after {
  left: var(--range-min);
  right: calc(100% - var(--range-max));
  background: var(--primary);
}

.range-filter.disabled .range-slider::before,
.range-filter.disabled .range-slider::after {
  background: #cbd5e1;
}

.range-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
  z-index: 2;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
  cursor: grab;
  pointer-events: auto;
  appearance: none;
}

.range-filter.disabled .range-slider input[type="range"]::-webkit-slider-thumb {
  border-color: #94a3b8;
  background: #f1f5f9;
  box-shadow: none;
  cursor: not-allowed;
}

.range-slider input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
  cursor: grab;
  pointer-events: auto;
}

.range-filter.disabled .range-slider input[type="range"]::-moz-range-thumb {
  border-color: #94a3b8;
  background: #f1f5f9;
  box-shadow: none;
  cursor: not-allowed;
}

.listing-filter-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.listing-filter-actions button,
.listing-filter-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  font-weight: 800;
}

.listing-filter-actions button {
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

.listing-filter-actions a {
  padding: 0 12px;
  background: #f8fafc;
  color: var(--muted);
}

.list-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  align-items: end;
}

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

.theme-list-grid {
  display: grid;
  gap: 16px;
}

.list-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xl);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
}

.list-card-visual {
  position: relative;
  overflow: hidden;
  height: 180px;
  padding: 20px;
  background: var(--card-gradient, linear-gradient(135deg, #dbeafe, #eff6ff));
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.property-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.32));
}

.list-card-visual .tag-group,
.list-card-visual .price-badge {
  position: relative;
  z-index: 1;
}

.list-card-body {
  padding: 20px;
}

.list-card-body small,
.detail-metadata dd,
.detail-card small {
  color: var(--muted);
}

.list-card-body h3 {
  margin: 10px 0 8px;
}

.list-card-meta {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.theme-list-card {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius-xl);
}

.theme-list-card .theme-stat {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--panel-soft);
  text-align: center;
}

.theme-list-card .property-image.compact {
  opacity: 0.18;
}

.theme-list-card .theme-stat > :not(.property-image) {
  position: relative;
  z-index: 1;
}

.theme-list-card .theme-stat strong {
  display: block;
  font-size: 2rem;
}

.theme-list-card .theme-body h3 {
  margin: 0 0 8px;
}

.detail-main {
  padding: 42px 0 88px;
}

.detail-intro {
  max-width: 880px;
}

.detail-visual {
  overflow: hidden;
  min-height: 320px;
  border-radius: var(--radius-xl);
  background: var(--card-gradient, linear-gradient(135deg, #dbeafe, #eff6ff));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-image-frame {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(89, 145, 255, 0.24), transparent 30%),
    linear-gradient(135deg, #0f172a, #102a57 58%, #154a9c);
}

.detail-main-image {
  display: block;
  width: 100%;
  height: clamp(315px, 39vw, 510px);
  object-fit: contain;
}

.detail-thumbnail-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px;
  background: #0f172a;
  scroll-snap-type: x proximity;
}

.detail-thumbnail {
  flex: 0 0 116px;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
}

.detail-thumbnail.active {
  border-color: #60a5fa;
}

.detail-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-image-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.detail-image-arrow:hover {
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  transform: translateY(-50%) scale(1.04);
}

.detail-image-arrow.previous {
  left: 18px;
}

.detail-image-arrow.next {
  right: 18px;
}

.detail-image-count {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
}

.detail-summary {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-summary .price-badge {
  display: inline-flex;
  margin-top: 16px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.detail-stack {
  display: grid;
  gap: 20px;
}

.detail-card {
  padding: 24px;
  border-radius: var(--radius-xl);
}

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

.detail-metadata dt {
  margin-bottom: 6px;
  font-weight: 700;
}

.detail-metadata dd {
  margin: 0;
}

.feature-list,
.admin-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.feature-list li,
.admin-list li {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: #f8fbff;
  border: 1px solid var(--line);
}

.sticky-contact {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 16px;
}

.contact-box,
.detail-map-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-box a {
  color: var(--primary);
  font-weight: 700;
}

.detail-map-card {
  padding: 20px;
}

.detail-map-card h2 {
  margin-bottom: 8px;
}

.detail-map-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.detail-map {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #e8eef6;
}

.auth-shell {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.auth-card {
  width: min(460px, 100%);
}

.auth-form,
.admin-form {
  --admin-control-bleed: 12px;
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.admin-form > label,
.admin-form > .admin-field,
.admin-form > .admin-actions {
  width: calc(100% + (var(--admin-control-bleed) * 2));
  max-width: 100%;
  margin-inline: calc(var(--admin-control-bleed) * -1);
  justify-self: center;
}

.auth-form label,
.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  min-width: 0;
}

.auth-form input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  display: block;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form .title-expand-textarea {
  min-height: 52px;
  height: 52px;
  overflow: hidden;
  resize: none;
  line-height: 1.45;
}

.number-stepper {
  display: grid;
  grid-template-columns: minmax(44px, 52px) minmax(0, 1fr) minmax(44px, 52px);
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.number-stepper input {
  appearance: textfield;
  min-height: 52px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
}

.number-stepper input::-webkit-outer-spin-button,
.number-stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.number-stepper-button {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.number-stepper-button:hover {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.28);
}

.number-stepper-button:active {
  transform: translateY(1px);
}

.location-input-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.location-input-wrap input {
  padding-right: 54px;
}

.map-preview-button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #edf4ff;
  color: var(--primary);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s ease, color 0.15s ease;
}

.map-preview-button:hover {
  background: var(--primary);
  color: #fff;
}

.map-preview-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-note,
.admin-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 0.94rem;
}

.admin-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-field-label {
  font-weight: 600;
}

.admin-field-label small {
  font-weight: 400;
  color: var(--muted);
}

.theme-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.image-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.image-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 36px;
  padding: 0 8px 0 14px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.image-chip.pending {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.image-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-chip strong {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  font-size: 0.8rem;
  line-height: 1;
}

.image-chip:hover strong {
  background: #ef4444;
  color: #fff;
}

.image-chip-empty {
  align-self: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.image-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.image-upload-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.image-upload-button input {
  display: none;
}

.admin-top-nav {
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: wrap;
}

.admin-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--primary);
  font-weight: 700;
}

.admin-nav-link.active {
  background: var(--primary);
  color: #fff;
}

.admin-main {
  padding: 42px 0 88px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}

.admin-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  min-width: 0;
  overflow: visible;
}

.admin-property-list-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.admin-list-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
}

.admin-list-head h2 {
  margin-bottom: 10px;
}

.admin-list-head p {
  margin: 0;
}

.property-search-form {
  display: grid;
  gap: 8px;
  width: min(360px, 100%);
  min-width: 260px;
}

.property-search-form label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.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;
}

.property-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.property-search-controls input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.property-search-meta {
  min-height: 20px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.property-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.property-page-button {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.property-page-button:hover:not(:disabled),
.property-page-button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.property-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

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

.button-inline,
.button-wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.button-inline.primary,
.button-wide.primary {
  background: var(--primary);
  color: #fff;
}

.button-inline.primary:hover,
.button-wide.primary:hover {
  background: var(--primary-dark);
}

.button-inline.secondary,
.button-wide.secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.button-wide {
  width: 100%;
}

.status-select {
  min-width: 112px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.table-message-cell {
  min-width: 280px;
  white-space: pre-wrap;
  line-height: 1.5;
}

.consultation-delete-header,
.consultation-select-cell {
  width: 64px;
  text-align: center;
}

.consultation-select-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.consultation-select-box input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.consultation-select-box span {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.consultation-select-box input:checked + span {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 4px #fff;
}

.consultation-select-box input:focus-visible + span {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.status-banner {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.empty-state {
  padding: 40px 24px;
  border-radius: var(--radius-xl);
  text-align: center;
}

.seo-list {
  display: grid;
  gap: 12px;
  padding-left: 18px;
}

@media (max-width: 1080px) {
  .hero-shell,
  .detail-intro,
  .detail-layout,
  .admin-layout,
  .listing-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .sticky-contact {
    position: static;
  }

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

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

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

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

  .property-search-form {
    width: 100%;
    min-width: 0;
  }

  .theme-hero .summary-panel {
    margin-top: 0;
  }

  .broker-hero-grid,
  .broker-photo-journal,
  .broker-story-section,
  .broker-story-section.reversed,
  .broker-proof-section,
  .broker-map-section {
    grid-template-columns: 1fr;
  }

  .broker-hero-copy h1 {
    max-width: 780px;
    font-size: 3.6rem;
  }

  .broker-hero-media {
    min-height: 520px;
  }

  .broker-story-section.reversed .broker-story-photo,
  .broker-story-section.reversed .broker-story-copy {
    order: initial;
  }

  .broker-story-photo.portrait {
    justify-self: start;
  }

  .broker-journal-copy,
  .broker-map-copy {
    max-width: 680px;
  }

  .broker-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sub-hero,
  .theme-hero,
  .detail-hero,
  .admin-hero {
    padding: 42px 0 34px;
  }

  .hero-shell {
    gap: 18px;
  }

  .hero-shell h1,
  .detail-hero h1,
  .admin-hero h1 {
    font-size: 1.9rem;
    line-height: 1.22;
  }

  .hero-shell p,
  .detail-intro p,
  .admin-hero p {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .summary-panel,
  .filter-panel,
  .auth-card,
  .detail-card,
  .contact-box,
  .detail-map-card {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .sub-main,
  .detail-main {
    padding: 28px 0 62px;
  }

  .listing-page .sub-main {
    padding-top: 24px;
  }

  .listing-layout,
  .detail-layout {
    gap: 18px;
  }

  .detail-metadata {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .detail-visual {
    min-height: 0;
    border-radius: 22px;
  }

  .detail-main-image {
    height: min(68vw, 300px);
  }

  .detail-thumbnail {
    flex-basis: 86px;
    border-radius: 12px;
  }

  .detail-image-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.55rem;
  }

  .detail-image-arrow.previous {
    left: 10px;
  }

  .detail-image-arrow.next {
    right: 10px;
  }

  .detail-image-count {
    right: 12px;
    bottom: 12px;
  }

  .feature-list li,
  .admin-list li {
    padding: 14px 15px;
  }

  .broker-hero {
    padding: 46px 0 30px;
  }

  .broker-hero-grid {
    gap: 26px;
  }

  .broker-hero-copy h1 {
    font-size: 2.2rem;
    line-height: 1.18;
  }

  .broker-hero-copy p,
  .broker-journal-copy p,
  .broker-map-copy p,
  .broker-story-copy p,
  .broker-proof-copy p,
  .broker-closing p {
    font-size: 1rem;
  }

  .broker-hero-copy p {
    margin-top: 16px;
    line-height: 1.68;
  }

  .broker-hero-media {
    justify-content: flex-start;
  }

  .broker-portrait-card {
    width: min(420px, 100%);
  }

  .broker-intro-line p {
    padding: 24px 0;
    font-size: 0.98rem;
    line-height: 1.7;
    text-align: left;
  }

  .broker-story-section,
  .broker-photo-journal,
  .broker-proof-section,
  .broker-map-section {
    gap: 24px;
    padding: 38px 0;
  }

  .broker-story-copy h2,
  .broker-journal-copy h2,
  .broker-map-copy h2,
  .broker-proof-copy h2,
  .broker-closing h2 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .broker-journal-grid {
    grid-template-columns: 1fr;
  }

  .broker-journal-grid .journal-main,
  .broker-journal-grid figure,
  .broker-map-photo,
  .broker-map-photo.secondary {
    aspect-ratio: 4 / 3;
  }

  .broker-proof-grid {
    grid-template-columns: 1fr;
  }

  .broker-proof-grid img {
    height: 360px;
  }
}

@media (max-width: 560px) {
  .admin-card {
    padding: 16px;
  }

  .admin-form {
    --admin-control-bleed: 8px;
    gap: 12px;
  }

  .auth-form input,
  .admin-form input,
  .admin-form select,
  .admin-form textarea {
    padding: 13px 14px;
  }

  .number-stepper {
    grid-template-columns: minmax(42px, 48px) minmax(0, 1fr) minmax(42px, 48px);
  }

  .number-stepper-button,
  .number-stepper input {
    min-height: 50px;
  }

  .map-preview-button {
    right: 6px;
    width: 36px;
    height: 36px;
  }

  .location-input-wrap input {
    padding-right: 48px;
  }

  .broker-hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }

  .broker-hero-actions .button-inline,
  .broker-closing .button-inline {
    width: 100%;
    min-height: 46px;
  }

  .broker-hero-media {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .broker-portrait-card {
    width: 100%;
  }

  .broker-story-photo.wide,
  .broker-story-photo.portrait {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .broker-closing {
    padding: 44px 0 58px;
  }

  .filter-panel h2,
  .list-section-head h2,
  .detail-card h2,
  .admin-card h2,
  .auth-card h2 {
    font-size: 1.35rem;
  }

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

  .list-section-head {
    gap: 12px;
  }

  .theme-list-card .theme-stat {
    grid-template-columns: 1fr;
  }

  .detail-map {
    height: 220px;
  }
}
