:root {
  color-scheme: light;
  --teal-950: #3f2340;
  --teal-900: #4d2a4e;
  --teal-800: #5f3460;
  --teal-700: #764977;
  --teal-600: #8d60a0;
  --teal-500: #a78bce;
  --teal-100: #eee7f7;
  --teal-50: #f8f4fc;

  --forest-900: #4d2a4e;
  --forest-800: #5f3460;
  --forest-700: #764977;
  --forest-100: #f8f4fc;

  --navy-950: #5f3460; /* Deep Purple primary color */
  --navy-900: #4d2a4e;
  --navy-800: #764977;
  
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --amber-cta: #d97706; /* Warm Amber CTA */
  --coral-cta: #ea580c; /* Coral CTA */
  --orange-800: #d97706;
  --orange-600: #ea580c;
  --orange-100: #ffedd5;
  --lavender-100: #f3ecfb;

  --red-700: #dc2626; /* Status red */
  --red-100: #fee2e2;
  --green-700: #1c6b3c; /* Status green / Phone Call */
  --green-100: #dcfce7;
  --line-green: #06c755; /* Official LINE Brand Green */
  --amber-800: #b45309;
  --amber-100: #fef3c7;

  --ink: #0f172a;
  --muted: #334155;
  --subtle: #475569;
  --line: #cbd5e1;
  --surface: #ffffff;
  --canvas: #ffffff;
  --soft: #f1f5f9;

  --shadow-1: 0 4px 16px -2px rgb(95 52 96 / 10%), 0 2px 6px -1px rgb(15 23 42 / 6%);
  --shadow-2: 0 12px 32px -4px rgb(95 52 96 / 18%), 0 4px 12px -2px rgb(15 23 42 / 10%);
  --shadow-3: 0 20px 40px -6px rgb(95 52 96 / 24%);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1240px;
  --header-height: 72px;
  --control-height: 48px;
  --control-height-lg: 54px;
  --control-height-sm: 40px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Prompt", "Sarabun", "IBM Plex Sans Thai", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
a,
input,
select,
textarea,
[tabindex] {
  outline-offset: 3px;
}

:focus-visible {
  outline: 3.5px solid #764977;
  outline-offset: 4px;
}

.button,
.icon-button {
  box-sizing: border-box;
}


button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
}


img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3,
h4 {
  color: var(--navy-950);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: var(--radius-sm);
  color: white;
  background: var(--navy-950);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-950);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 36px;
  object-fit: contain;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.desktop-nav,
.header-actions,
.inline,
.button-row,
.chips,
.facts,
.toolbar,
.pagination,
.contact-actions,
.step-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desktop-nav a,
.text-link {
  color: var(--navy-950);
  font-weight: 600;
  text-decoration: none;
}

.desktop-nav a:hover,
.text-link:hover {
  text-decoration: underline;
}

.mobile-menu-button {
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 20px;
  background: white;
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 11px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--control-height);
  height: var(--control-height);
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.08);
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  vertical-align: middle;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

/* Explicit Button Sizes */
.button-lg,
.button-call,
.button-line {
  min-height: var(--control-height-lg);
  height: var(--control-height-lg);
  padding: 0 26px;
  font-size: 1.15rem;
}

.button-sm,
.header-actions .button,
.filter-mobile-button {
  min-height: var(--control-height-sm);
  height: var(--control-height-sm);
  padding: 0 16px;
  font-size: 0.95rem;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, #764977 0%, #5f3460 100%);
  border-color: #5f3460;
  box-shadow: 0 4px 14px -2px rgba(95, 52, 96, 0.4);
}

.button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #5f3460 0%, #4d2a4e 100%);
  box-shadow: 0 6px 20px -2px rgba(95, 52, 96, 0.5);
}

.button-call {
  color: white;
  background: linear-gradient(135deg, #764977 0%, #5f3460 100%);
  border-color: #5f3460;
  box-shadow: 0 4px 14px -2px rgba(95, 52, 96, 0.4);
}

.button-call:hover:not(:disabled) {
  background: linear-gradient(135deg, #5f3460 0%, #4d2a4e 100%);
  box-shadow: 0 6px 20px -2px rgba(95, 52, 96, 0.5);
}

.button-line {
  color: white;
  background: linear-gradient(135deg, #06c755 0%, #05b04a 100%);
  border-color: #05b04a;
  box-shadow: 0 4px 14px -2px rgba(6, 199, 85, 0.4);
}

.button-line:hover:not(:disabled) {
  background: linear-gradient(135deg, #05b04a 0%, #04963f 100%);
  box-shadow: 0 6px 20px -2px rgba(6, 199, 85, 0.5);
}

.button-accent,
.button-amber {
  color: white;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border-color: #b45309;
  box-shadow: 0 4px 14px -2px rgba(217, 119, 6, 0.35);
}

.button-accent:hover:not(:disabled),
.button-amber:hover:not(:disabled) {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  box-shadow: 0 6px 20px -2px rgba(217, 119, 6, 0.45);
}

.button-coral {
  color: white;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  border-color: #c2410c;
  box-shadow: 0 4px 14px -2px rgba(234, 88, 12, 0.35);
}

.button-secondary {
  border-color: #5f3460;
  color: #5f3460;
  background: white;
  font-weight: 700;
}

.button-secondary:hover:not(:disabled) {
  background: #f8f4fc;
}

.button-ghost {
  color: #5f3460;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.button-ghost:hover:not(:disabled) {
  background: #f8f4fc;
}

.button-danger {
  color: white;
  background: var(--red-700);
  border-color: var(--red-700);
}

.button-full {
  width: 100%;
}

/* Trust & SME Guidance Banner */
.sme-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.sme-trust-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1.5px solid #eee7f7;
  background: #ffffff;
  box-shadow: 0 2px 8px -1px rgba(95, 52, 96, 0.08);
}

.sme-trust-card span {
  font-size: 1.8rem;
}

.sme-trust-card h4 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  color: var(--teal-950);
}

.sme-trust-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--subtle);
}


.icon-button {
  display: inline-grid;
  width: var(--control-height);
  height: var(--control-height);
  min-width: var(--control-height);
  min-height: var(--control-height);
  padding: 0;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: var(--navy-950);
  background: white;
  box-sizing: border-box;
  transition: all 180ms ease;
  vertical-align: middle;
}

.icon-button:hover {
  border-color: var(--teal-700);
  background: var(--teal-50);
  color: var(--teal-800);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--navy-950);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 96%) 0%, rgb(255 255 255 / 88%) 50%, rgb(255 255 255 / 30%) 100%),
    url("https://lh3.googleusercontent.com/aida-public/AB6AXuAW89HjZyUMC435T1QaRR1ViPAbpoHX4IATcAJ54I9IiSNs03IlqAv6JcMI0UGvTPLfiz5KSOszCzSIjZMJ51uDPEtOR1xTll7cE_C05vwdbNOK-A-nD28nzn5XAg-meM3DFcg4l3CS5JWZp5bhRJYszV4X02Hr6JcCbiA6BSo3wDmNtpLu6fTHh3ig9pA0LRZYWbBMvRRPUe6ipDTlh5dM6s1mQKxt1V7sOwC7fQ73caT27SNCREshBQ") center/cover;
}

.hero-content {
  padding: 40px 0 48px;
  display: grid;
  align-content: center;
  gap: 20px;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #0f172a;
}

.hero-copy p {
  max-width: 640px;
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.6;
}

.search-panel,
.card,
.panel,
.metric,
.modal-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.search-panel {
  max-width: 1040px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 32px -4px rgba(15, 118, 110, 0.12), 0 4px 16px -2px rgba(15, 23, 42, 0.06);
}

.search-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr auto;
  gap: 12px;
  align-items: end;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.field-label,
legend {
  color: var(--navy-950);
  font-size: 0.92rem;
  font-weight: 700;
}

.field-help,
.muted,
.meta {
  color: var(--subtle);
  font-size: 0.9rem;
}

.required {
  color: var(--red-700);
}

input,
select,
textarea {
  width: 100%;
  min-height: var(--control-height);
  height: var(--control-height);
  padding: 0 16px;
  font-size: 1rem;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  box-sizing: border-box;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  vertical-align: middle;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #764977;
  box-shadow: 0 0 0 4px rgba(118, 73, 119, 0.15);
  outline: none;
}

textarea {
  min-height: 120px;
  height: auto;
  padding: 12px 16px;
  resize: vertical;
}

input:disabled,
select:disabled,
textarea:disabled {
  color: #64748b;
  background: #f1f5f9;
}


[aria-invalid="true"] {
  border-color: var(--red-700);
  box-shadow: 0 0 0 1px var(--red-700);
}

.field-error {
  margin: 0;
  color: var(--red-700);
  font-size: 0.85rem;
  font-weight: 600;
}

.section {
  padding-block: 64px;
}

.section-tight {
  padding-block: 32px;
}

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

.category-grid,
.listing-grid,
.how-grid,
.metric-grid,
.admin-grid {
  display: grid;
  gap: 20px;
}

.category-grid {
  grid-template-columns: repeat(4, 1fr);
}

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-1);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.category-card:hover img {
  transform: scale(1.03);
}

.category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 18px;
  background: linear-gradient(transparent, rgb(3 22 54 / 92%));
}

.category-overlay h3 {
  margin: 0;
  color: white;
}

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

.listing-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: var(--surface);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease;
}

.listing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: 0 16px 36px -6px rgba(15, 118, 110, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
}

.listing-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.listing-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--soft);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.listing-card:hover .listing-image {
  transform: scale(1.04);
}

.listing-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.listing-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.price {
  color: #5f3460;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid #eee7f7;
  border-radius: 999px;
  color: #5f3460;
  background: #f8f4fc;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 150ms ease;
}

button.chip {
  min-height: 38px;
  cursor: pointer;
}

button.chip:hover {
  background: #eee7f7;
  border-color: #764977;
}

.chip-selected {
  border-color: #5f3460;
  color: white;
  background: #5f3460;
}

.status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-published,
.status-available { color: #15803d; background: #dcfce7; border: 1px solid #86efac; }
.status-pending_review { color: var(--amber-800); background: var(--amber-100); border: 1px solid #fde68a; }
.status-draft,
.status-archived { color: #475569; background: #f1f5f9; border: 1px solid #cbd5e1; }
.status-unavailable,
.status-full,
.status-occupied { color: #dc2626; background: #fee2e2; border: 1px solid #fca5a5; }
.status-rejected,
.status-suspended { color: var(--red-700); background: var(--red-100); border: 1px solid #fca5a5; }

/* Tumlay (Landmark & Proximity) Component Styles */
.tumlay-box {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1.5px solid #eee7f7;
  border-radius: var(--radius);
  background: #f8f4fc;
  margin-top: 14px;
}
.tumlay-box h4 {
  margin: 0;
  color: var(--forest-900);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tumlay-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tumlay-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  background: white;
  border: 1px solid #cbd5e1;
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(0 0 0 / 5%);
}
.tumlay-chip.transit { border-color: #93c5fd; color: #1e40af; background: #eff6ff; }
.tumlay-chip.residential { border-color: #fde047; color: #854d0e; background: #fefce8; }
.tumlay-chip.commercial { border-color: #fca5a5; color: #991b1b; background: #fef2f2; }


.how-grid {
  grid-template-columns: repeat(2, 1fr);
}

.panel,
.metric {
  padding: 24px;
}

.safety {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #d79797;
  border-radius: var(--radius);
  color: #651515;
  background: #fff1ef;
}

.safety p:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: auto;
  padding: 42px 0 24px;
  border-top: 1px solid var(--line);
  background: #e7eaef;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a {
  color: #454b55;
}

.copyright {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.search-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
}

.filter-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  align-self: start;
  max-height: calc(100dvh - 110px);
  overflow: auto;
}

.filter-group {
  margin: 0;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.filter-group:last-child {
  border-bottom: 0;
}

.check-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.check-row {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 20px;
  min-height: 20px;
}

.filter-mobile-button {
  display: none;
}

.result-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pagination {
  justify-content: center;
  margin-top: 32px;
}

.page-button {
  min-width: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
}

.page-button[aria-current="page"] {
  color: white;
  background: var(--navy-950);
}

.empty-state,
.error-state {
  padding: 56px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  background: white;
}

.skeleton {
  min-height: 18px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e6e9ed, #f5f6f7, #e6e9ed);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 28px;
}

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 10px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.gallery button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: var(--soft);
}

.gallery button:first-child {
  grid-row: 1 / 3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-section {
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
  border-bottom: 0;
}

.facts {
  flex-wrap: wrap;
}

.fact {
  min-width: 130px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.contact-card {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: grid;
  gap: 14px;
}

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

.map-placeholder {
  min-height: 230px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy-950);
  background:
    linear-gradient(45deg, transparent 48%, #ccd8e2 49%, #ccd8e2 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, #d7e4d2 49%, #d7e4d2 51%, transparent 52%),
    #eef2f4;
  background-size: 42px 42px;
}

.mobile-contact-bar {
  display: none;
}

.auth-layout {
  min-height: calc(100dvh - var(--header-height));
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-art {
  display: grid;
  padding: 48px;
  align-content: center;
  color: white;
  background: linear-gradient(145deg, var(--navy-950), var(--teal-700));
}

.auth-art h1,
.auth-art h2 {
  color: white;
}

.auth-panel {
  width: min(100%, 560px);
  margin: auto;
  padding: 44px 28px;
}

.form-stack {
  display: grid;
  gap: 18px;
}

.dashboard-layout {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: 260px minmax(0, 1fr);
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: white;
}

.dashboard-nav {
  display: grid;
  gap: 6px;
}

.dashboard-nav a {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--navy-950);
  font-weight: 600;
  text-decoration: none;
}

.dashboard-nav a.active,
.dashboard-nav a:hover {
  color: white;
  background: var(--navy-950);
}

.dashboard-main {
  min-width: 0;
  padding: 32px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric strong {
  display: block;
  color: var(--navy-950);
  font-size: 2rem;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-1);
}

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

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--soft);
}

.wizard-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.wizard-header {
  position: sticky;
  z-index: 60;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: white;
}

.wizard-topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.progress-track {
  height: 6px;
  background: var(--soft);
}

.progress-value {
  height: 100%;
  background: var(--orange-800);
  transition: width 180ms ease;
}

.wizard-body {
  width: min(calc(100% - 32px), 880px);
  margin: 0 auto;
  padding: 36px 0 110px;
}

.wizard-stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 20px 0 28px;
}

.wizard-stepper span {
  height: 5px;
  border-radius: 999px;
  background: #d8dce2;
}

.wizard-stepper span.active,
.wizard-stepper span.complete {
  background: var(--orange-800);
}

.wizard-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-1);
}

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

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

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

.option-card {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
}

.option-card input {
  width: 20px;
  min-height: 20px;
}

.availability-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.dropzone {
  display: grid;
  min-height: 190px;
  padding: 24px;
  place-items: center;
  border: 2px dashed #7b818a;
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--canvas);
}

.dropzone.dragging {
  border-color: var(--navy-950);
  background: var(--teal-100);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.photo-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.photo-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 8px;
}

.photo-actions button {
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  font-size: 0.8rem;
}

.wizard-footer {
  position: fixed;
  z-index: 70;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 97%);
  backdrop-filter: blur(10px);
}

.step-actions {
  min-height: 78px;
  justify-content: space-between;
}

.save-state {
  color: var(--muted);
  font-size: 0.88rem;
}

.save-state.error {
  color: var(--red-700);
  font-weight: 700;
}

.error-summary {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-left: 5px solid var(--red-700);
  border-radius: var(--radius-sm);
  color: #611414;
  background: var(--red-100);
}

.review-block {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.review-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 4px;
}

.tabs button {
  min-width: max-content;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.tabs button[aria-selected="true"] {
  color: white;
  background: var(--navy-950);
}

dialog {
  width: min(calc(100% - 32px), 620px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}

dialog::backdrop {
  background: rgb(3 22 54 / 65%);
}

.modal-card {
  padding: 24px;
  box-shadow: none;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.gallery-dialog {
  width: min(calc(100% - 24px), 1080px);
  background: #07111f;
}

.gallery-dialog .modal-card {
  color: white;
  background: #07111f;
}

.gallery-dialog h2 {
  color: white;
}

.gallery-dialog img {
  width: 100%;
  max-height: 72dvh;
  object-fit: contain;
}

.toast-region {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
}

.toast {
  max-width: 360px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: white;
  background: var(--navy-950);
  box-shadow: var(--shadow-2);
}

.list-your-space-hero {
  padding: 80px 0;
  color: white;
  background: linear-gradient(130deg, var(--navy-950), var(--teal-700));
}

.list-your-space-hero h1 {
  color: white;
}

.legal-copy {
  max-width: 820px;
}

.legal-copy h2 {
  margin-top: 36px;
}

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

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

  .search-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-grid .button {
    width: 100%;
  }

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

  .contact-card {
    position: static;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .container {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .desktop-nav,
  .header-actions .button-ghost,
  .header-actions .button-secondary {
    display: none;
  }

  .mobile-menu-button {
    display: inline-grid;
  }

  .hero {
    background:
      linear-gradient(rgb(255 255 255 / 92%), rgb(255 255 255 / 92%)),
      url("https://lh3.googleusercontent.com/aida-public/AB6AXuAW89HjZyUMC435T1QaRR1ViPAbpoHX4IATcAJ54I9IiSNs03IlqAv6JcMI0UGvTPLfiz5KSOszCzSIjZMJ51uDPEtOR1xTll7cE_C05vwdbNOK-A-nD28nzn5XAg-meM3DFcg4l3CS5JWZp5bhRJYszV4X02Hr6JcCbiA6BSo3wDmNtpLu6fTHh3ig9pA0LRZYWbBMvRRPUe6ipDTlh5dM6s1mQKxt1V7sOwC7fQ73caT27SNCREshBQ") center/cover;
  }

  .hero-content {
    min-height: auto;
    padding: 56px 0;
  }

  .search-grid,
  .category-grid,
  .listing-grid,
  .how-grid,
  .footer-grid,
  .form-grid,
  .option-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 44px;
  }

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

  .filter-sidebar {
    display: none;
    position: fixed;
    z-index: 300;
    inset: 0;
    max-height: none;
    padding: 18px;
    overflow: auto;
    background: white;
  }

  .filter-sidebar.open {
    display: block;
  }

  .filter-mobile-button {
    display: inline-flex;
  }

  .result-header {
    align-items: stretch;
    flex-direction: column;
  }

  .result-header select {
    max-width: none;
  }

  .gallery {
    display: flex;
    height: 330px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .gallery button {
    min-width: 100%;
    scroll-snap-align: start;
  }

  .mobile-contact-bar {
    position: fixed;
    z-index: 80;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: white;
  }

  .detail-page {
    padding-bottom: 84px;
  }

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

  .auth-art {
    min-height: 220px;
    padding: 34px 22px;
  }

  .dashboard-layout {
    display: block;
  }

  .dashboard-sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dashboard-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: auto;
  }

  .dashboard-main {
    padding: 24px 12px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .metric {
    padding: 16px;
  }

  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap th,
  .table-wrap td,
  .table-wrap tr {
    display: block;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tr {
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }

  .table-wrap td {
    padding: 5px 0;
    border: 0;
  }

  .wizard-body {
    width: min(calc(100% - 24px), 880px);
    padding-top: 22px;
  }

  .wizard-card {
    padding: 20px 16px;
  }

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

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-actions {
    gap: 8px;
  }

  .step-actions .save-state {
    position: absolute;
    top: -28px;
    right: 12px;
    padding: 3px 8px;
    border-radius: 5px;
    background: white;
  }

  dialog {
    max-height: 92dvh;
    overflow: auto;
  }
}

@media (max-width: 430px) {
  .header-actions .button-accent {
    display: none;
  }

  .metric-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .button-row,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button,
  .toolbar .button,
  .toolbar select {
    width: 100%;
  }
}

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