:root {
  --navy-950: #071827;
  --navy-900: #0b2239;
  --navy-800: #12324e;
  --navy-700: #194767;
  --blue-600: #176c9b;
  --blue-500: #2384b8;
  --blue-100: #e7f3f9;
  --amber-600: #d98a20;
  --amber-500: #e8a23a;
  --amber-100: #fff2dc;
  --green-600: #13865a;
  --green-100: #e5f7ef;
  --red-600: #c53c47;
  --red-100: #fdebee;
  --rose-100: #fff0f2;
  --ink: #152638;
  --muted: #667789;
  --line: #dce4eb;
  --line-dark: #c8d3dd;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --surface-3: #eef3f7;
  --shadow-sm: 0 2px 10px rgba(7, 24, 39, 0.07);
  --shadow-md: 0 12px 35px rgba(7, 24, 39, 0.11);
  --shadow-lg: 0 24px 65px rgba(7, 24, 39, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1240px;
  --header-height: 76px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

svg {
  flex: 0 0 auto;
}

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

h1,
h2,
h3,
strong {
  line-height: 1.35;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(232, 162, 58, 0.42);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-main {
  min-height: 60vh;
}

.icon {
  vertical-align: middle;
}

.boot-screen,
.fatal-error {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: 2rem;
}

.boot-brand {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}

.boot-brand img {
  width: 78px;
  height: 78px;
  display: block;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.boot-brand strong {
  color: var(--navy-900);
  font-size: 1.8rem;
  font-weight: 800;
}

.boot-brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.noscript-message {
  position: fixed;
  inset: 1rem;
  z-index: 1000;
  display: grid;
  place-content: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  padding: 2rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0.68rem 1.15rem;
  font-weight: 700;
  font-size: 0.93rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

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

.button--primary {
  background: var(--navy-900);
  color: white;
  box-shadow: 0 8px 18px rgba(11, 34, 57, 0.17);
}

.button--primary:hover {
  background: var(--navy-800);
}

.button--accent {
  background: var(--amber-500);
  color: var(--navy-950);
  box-shadow: 0 8px 20px rgba(217, 138, 32, 0.23);
}

.button--accent:hover {
  background: #f0ad4a;
}

.button--soft {
  background: var(--blue-100);
  color: var(--navy-800);
}

.button--outline {
  background: white;
  border-color: var(--line-dark);
  color: var(--navy-900);
}

.button--ghost {
  min-height: 38px;
  background: transparent;
  color: var(--navy-700);
  padding-inline: 0.65rem;
}

.button--whatsapp {
  background: #1fa56b;
  color: white;
}

.button--danger,
.button--danger-soft {
  background: var(--red-600);
  color: white;
}

.button--danger-soft {
  background: var(--red-100);
  color: var(--red-600);
}

.button--block {
  width: 100%;
}

.button--large {
  min-height: 54px;
  padding-inline: 1.5rem;
}

.button--small {
  min-height: 38px;
  padding: 0.48rem 0.75rem;
  font-size: 0.82rem;
}

.demo-strip {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.35rem 1rem;
  background: var(--amber-100);
  color: #6f460d;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.demo-strip--connected {
  background: #eaf8f0;
  color: #1f6d49;
}

.demo-strip--local {
  background: #fff4dc;
  color: #7b5011;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(220, 228, 235, 0.85);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand__mark {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--navy-900);
  color: var(--amber-500);
  box-shadow: 0 7px 16px rgba(11, 34, 57, 0.18);
}

.brand__mark-image {
  display: block;
  width: 100%;
  height: 100%;
}

.brand--footer {
  gap: 0.7rem;
}

.brand__wordmark {
  display: grid;
  gap: 0.06rem;
}

.brand > span:last-child {
  display: grid;
}

.brand strong {
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 800;
}

.brand small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-inline: auto;
}

.main-nav a {
  position: relative;
  color: #394c5f;
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -9px;
  height: 2px;
  background: var(--amber-500);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.language-switch {
  min-width: 44px;
  min-height: 40px;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy-900);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switch:hover { border-color: var(--navy-700); background: var(--surface-3); }

.header-login {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 700;
}

.account-menu {
  position: relative;
}

.account-menu__button {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.account-menu__name {
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--blue-100);
  color: var(--navy-800);
  font-weight: 800;
}

.avatar--large {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}

.account-dropdown {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: 220px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.45rem;
  box-shadow: var(--shadow-md);
}

.account-dropdown a,
.account-dropdown button {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  background: var(--surface-2);
}

.mobile-menu-button,
.mobile-nav,
.mobile-bottom-nav {
  display: none;
}

.home-hero {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy-950);
}

.home-hero__image,
.home-hero__shade {
  position: absolute;
  inset: 0;
}

.home-hero__image {
  background: url("../img/hero.jpg") center center / cover no-repeat;
  transform: scale(1.01);
}

.home-hero__shade {
  background: linear-gradient(90deg, rgba(7, 24, 39, 0.35) 0%, rgba(7, 24, 39, 0.74) 45%, rgba(7, 24, 39, 0.95) 100%);
}

.home-hero__content {
  position: relative;
  z-index: 2;
  padding-block: 4rem;
  color: white;
}

.local-chip {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.home-hero h1 {
  max-width: 680px;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.home-hero h1 span {
  color: var(--amber-500);
}

.home-hero__content > p {
  max-width: 660px;
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.04rem;
}

.hero-search {
  max-width: 1050px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  border-radius: 18px;
  padding: 0.65rem;
  box-shadow: var(--shadow-lg);
}

.purpose-tabs {
  display: flex;
  gap: 0.3rem;
  padding: 0.15rem 0.2rem 0.5rem;
}

.purpose-tabs label {
  cursor: pointer;
}

.purpose-tabs input {
  position: absolute;
  opacity: 0;
}

.purpose-tabs span {
  min-width: 82px;
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.purpose-tabs input:checked + span {
  background: var(--navy-900);
  color: white;
}

.hero-search__fields {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.15fr auto;
  align-items: end;
  gap: 0.35rem;
}

.search-field {
  min-height: 65px;
  display: grid;
  align-content: center;
  border-inline-end: 1px solid var(--line);
  padding: 0.25rem 0.9rem;
}

.search-field > span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--navy-800);
  font-size: 0.75rem;
  font-weight: 800;
}

.search-field input,
.search-field select {
  width: 100%;
  height: 31px;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.hero-search__button {
  min-height: 62px;
  padding-inline: 1.4rem;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  font-size: 0.78rem;
}

.hero-quick-links span {
  color: rgba(255, 255, 255, 0.68);
}

.hero-quick-links a {
  color: white;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.55);
}

.section {
  padding-block: 4.75rem;
}

.section--soft {
  background: #edf2f6;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  margin-bottom: 0;
  color: var(--navy-900);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.section-heading > a,
.panel-header > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--blue-600);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--amber-600);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.category-scroller {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8rem;
}

.category-card {
  min-height: 142px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 0.5rem;
  background: white;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: #b9d2df;
  box-shadow: var(--shadow-md);
}

.category-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 0.55rem;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--navy-800);
}

.category-card strong {
  color: var(--navy-900);
  font-size: 0.9rem;
}

.category-card small {
  color: var(--muted);
  font-size: 0.72rem;
}

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

.listing-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.listing-card:hover {
  transform: translateY(-3px);
  border-color: #c5d4df;
  box-shadow: var(--shadow-md);
}

.listing-card.is-featured {
  border-color: #efcc91;
}

.listing-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-3);
}

.listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.listing-card:hover .listing-card__media img {
  transform: scale(1.035);
}

.listing-card__badges {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  display: flex;
  gap: 0.35rem;
}

.badge {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 7px;
  padding: 0.28rem 0.52rem;
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1;
}

.badge--purpose {
  background: var(--navy-900);
  color: white;
}

.badge--featured {
  background: var(--amber-500);
  color: var(--navy-950);
}

.badge--type {
  background: var(--blue-100);
  color: var(--navy-800);
}

.favorite-button {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-end: 0.75rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-800);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.favorite-button.is-active {
  background: var(--red-100);
  color: var(--red-600);
}

.favorite-button.is-active svg {
  fill: currentColor;
}

.status-pill {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 800;
}

.listing-card__media > .status-pill {
  position: absolute;
  inset-block-end: 0.7rem;
  inset-inline-start: 0.7rem;
}

.status-pill--success { background: var(--green-100); color: var(--green-600); }
.status-pill--warning { background: var(--amber-100); color: #855714; }
.status-pill--danger { background: var(--red-100); color: var(--red-600); }
.status-pill--neutral { background: #edf1f4; color: #607080; }

.listing-card__body {
  padding: 1rem;
}

.listing-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  color: var(--blue-600);
  font-size: 0.7rem;
  font-weight: 700;
}

.listing-card h3 {
  min-height: 2.8em;
  margin: 0.45rem 0 0.3rem;
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card__location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-card__facts {
  min-height: 35px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.listing-card__facts span,
.listing-card__footer > span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #586b7d;
  font-size: 0.72rem;
  font-weight: 600;
}

.listing-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.listing-card__footer strong {
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 800;
}

.listing-card__manage {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line);
}

.service-section {
  background: var(--navy-900);
  color: white;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.service-copy h2 {
  max-width: 650px;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.service-copy > p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.service-section .button--primary {
  background: white;
  color: var(--navy-900);
}

.service-section .button--outline {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.service-points {
  display: grid;
  gap: 0.75rem;
}

.service-points article {
  display: flex;
  gap: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
}

.service-points article > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(232, 162, 58, 0.15);
  color: var(--amber-500);
}

.service-points strong {
  display: block;
  margin-bottom: 0.15rem;
}

.service-points p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
}

.local-callout {
  position: relative;
  bottom: -2.2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  background: white;
  box-shadow: var(--shadow-lg);
}

.local-callout > div {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.local-callout > div > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--amber-100);
  color: var(--amber-600);
}

.local-callout strong {
  display: block;
  color: var(--navy-900);
}

.local-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer {
  margin-top: 6rem;
  padding-top: 4rem;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.brand--footer strong,
.brand--footer small {
  color: white;
}

.footer-about p {
  max-width: 440px;
  margin-top: 1.25rem;
  font-size: 0.84rem;
}

.footer-grid h3 {
  margin-bottom: 1rem;
  color: white;
  font-size: 0.95rem;
}

.footer-grid > div:not(.footer-about) a {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
}

.footer-grid a:hover {
  color: var(--amber-500);
}

.footer-bottom {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.73rem;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.page-heading h1 {
  margin-bottom: 0.25rem;
  color: var(--navy-900);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.page-heading__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.field {
  display: grid;
  gap: 0.38rem;
  min-width: 0;
}

.field > span,
.field-group > strong {
  color: #33475a;
  font-size: 0.79rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.admin-filters input,
.admin-filters select {
  width: 100%;
  min-height: 47px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  background: white;
  color: var(--ink);
  outline: none;
  font-size: 0.9rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-filters input:focus,
.admin-filters select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(35, 132, 184, 0.12);
}

.field input:disabled {
  background: var(--surface-3);
  color: var(--muted);
}

.field small {
  color: var(--muted);
  font-size: 0.68rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

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

.input-with-icon {
  position: relative;
}

.input-with-icon > svg {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--muted);
}

.input-with-icon input {
  padding-inline-start: 2.35rem;
}

.password-toggle {
  position: absolute;
  inset-inline-end: 0.45rem;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.check-field,
.switch-field {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #45596c;
  font-size: 0.8rem;
  cursor: pointer;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin-top: 0.18rem;
  accent-color: var(--navy-900);
}

.check-field a {
  color: var(--blue-600);
  text-decoration: underline;
}

.check-field--boxed {
  min-height: 47px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: var(--surface-2);
}

.price-options {
  display: grid;
  gap: 0.45rem;
}

.field-help {
  display: block;
  margin-top: -0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.field input:disabled {
  color: var(--muted);
  background: #eef2f5;
  cursor: not-allowed;
}

.search-page {
  padding-block: 2.2rem 4rem;
}

.search-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.search-topbar h1 {
  margin-bottom: 0.15rem;
  color: var(--navy-900);
  font-size: 1.75rem;
}

.search-topbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.search-layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.filters-panel {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: white;
  box-shadow: var(--shadow-sm);
}

.filters-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.filters-panel__header h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 1rem;
}

.filters-panel__header button {
  display: none;
  border: 0;
  background: transparent;
}

.filters-panel form {
  display: grid;
  gap: 0.85rem;
}

.field-group {
  display: grid;
  gap: 0.45rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.filters-panel .field-row {
  gap: 0.45rem;
}

.clear-filters {
  min-height: 40px;
  display: grid;
  place-items: center;
  color: var(--red-600);
  font-size: 0.78rem;
  font-weight: 700;
}

.results-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  background: white;
}

.results-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
}

.results-toolbar label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.results-toolbar select {
  min-height: 36px;
  border: 0;
  color: var(--navy-900);
  font-weight: 700;
  outline: 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.6rem;
}

.pagination a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 0.82rem;
  font-weight: 700;
}

.pagination a.is-active {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: white;
}

.empty-state {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius);
  padding: 2rem;
  background: white;
  text-align: center;
}

.empty-state__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--blue-100);
  color: var(--navy-800);
}

.empty-state h3 {
  margin: 0.35rem 0 0;
  color: var(--navy-900);
  font-size: 1.15rem;
}

.empty-state p {
  max-width: 500px;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.empty-state .button + .button {
  margin-inline-start: 0.45rem;
}

.narrow-section {
  padding-block: 4rem;
}

.property-page {
  padding-top: 1rem;
}

.property-breadcrumbs {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.property-breadcrumbs span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 0.5rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-3);
}

.property-gallery > button {
  min-width: 0;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.property-gallery__main {
  grid-row: 1 / 3;
}

.property-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.property-gallery button:hover img {
  transform: scale(1.02);
}

.property-gallery--single {
  display: block;
  height: min(520px, 55vw);
}

.gallery-count {
  position: absolute;
  inset-inline-end: 1rem;
  inset-block-end: 1rem;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9px;
  padding: 0.45rem 0.75rem !important;
  background: rgba(7, 24, 39, 0.86) !important;
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
}

.property-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.4rem;
  align-items: start;
  padding-top: 1.5rem;
}

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

.property-title-row,
.property-price-row,
.property-key-facts,
.property-section {
  padding: 1.25rem 1.4rem;
}

.property-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.property-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.property-title-row h1 {
  margin-bottom: 0.55rem;
  color: var(--navy-900);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.property-title-row p {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.property-share-actions {
  display: flex;
  gap: 0.4rem;
}

.property-share-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  background: white;
  color: var(--navy-800);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.property-price-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-block: 1px solid var(--line);
  background: #fbfcfd;
}

.property-price-row strong {
  color: var(--navy-900);
  font-size: 1.65rem;
  font-weight: 800;
}

.property-price-row span,
.property-price-row small {
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: var(--green-100);
  color: var(--green-600);
  font-size: 0.7rem;
  font-weight: 700;
}

.property-price-row small {
  background: var(--blue-100);
  color: var(--blue-600);
}

.property-key-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.property-key-facts > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.55rem;
  align-items: center;
}

.property-key-facts > div > span {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-100);
  color: var(--navy-800);
}

.property-key-facts strong {
  color: var(--navy-900);
  font-size: 0.9rem;
}

.property-key-facts small {
  color: var(--muted);
  font-size: 0.68rem;
}

.property-section {
  border-bottom: 1px solid var(--line);
}

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

.property-section h2 {
  margin-bottom: 0.8rem;
  color: var(--navy-900);
  font-size: 1.05rem;
}

.property-description {
  margin: 0;
  color: #425568;
  font-size: 0.9rem;
  line-height: 1.95;
}

.details-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.details-list > div {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.details-list > div:nth-child(odd) {
  border-inline-end: 1px solid var(--line);
}

.details-list > div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.details-list dt {
  color: var(--muted);
  font-size: 0.75rem;
}

.details-list dd {
  margin: 0;
  color: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 700;
}

.amenities-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.amenities-list span {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  background: var(--surface-2);
  color: #415669;
  font-size: 0.76rem;
  font-weight: 600;
}

.safety-box {
  display: flex;
  gap: 0.8rem;
  background: #fffaf0;
}

.safety-box > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--amber-100);
  color: var(--amber-600);
}

.safety-box h2 {
  margin-bottom: 0.25rem;
}

.safety-box p {
  margin-bottom: 0.25rem;
  color: #725a38;
  font-size: 0.78rem;
}

.safety-box a {
  color: var(--amber-600);
  font-size: 0.75rem;
  font-weight: 700;
}

.contact-card {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: grid;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: white;
  box-shadow: var(--shadow-md);
}

.owner-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.owner-row > div {
  display: grid;
}

.owner-row small,
.owner-row span {
  color: var(--muted);
  font-size: 0.68rem;
}

.owner-row strong {
  color: var(--navy-900);
  font-size: 0.91rem;
}

.contact-card__note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.69rem;
  text-align: center;
}

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

.related-section {
  padding-bottom: 0;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0.75rem 0.85rem;
  font-size: 0.77rem;
}

.notice--warning { background: var(--amber-100); color: #76501d; border-color: #f0d09c; }
.notice--info { background: var(--blue-100); color: var(--navy-700); border-color: #c7e1ee; }

.auth-page {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: white;
}

.auth-visual {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 680px;
  padding: 3rem clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  background: var(--navy-900) url("../img/hero.jpg") center / cover no-repeat;
  color: white;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 24, 39, 0.96), rgba(7, 24, 39, 0.36));
}

.auth-visual > div {
  position: relative;
  z-index: 1;
}

.auth-visual h1 {
  max-width: 560px;
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.auth-visual p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.75);
}

.auth-visual ul {
  display: grid;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.auth-visual li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
}

.auth-form-wrap {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 2rem;
}

.auth-back {
  width: min(100%, 520px);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.auth-card {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2.2rem);
  background: white;
  box-shadow: var(--shadow-md);
}

.auth-icon,
.admin-login-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: var(--blue-100);
  color: var(--navy-800);
}

.auth-card h1 {
  margin-bottom: 0.35rem;
  color: var(--navy-900);
  font-size: 1.65rem;
}

.auth-card > p {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-card form {
  display: grid;
  gap: 0.9rem;
}

.auth-switch {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.auth-switch a {
  color: var(--blue-600);
  font-weight: 800;
}

.dashboard-page,
.admin-page {
  padding-block: 2rem 4rem;
}

.dashboard-layout,
.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.dashboard-sidebar,
.admin-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem;
  background: white;
  box-shadow: var(--shadow-sm);
}

.dashboard-user,
.admin-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  padding: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.dashboard-user > div,
.admin-badge > div {
  min-width: 0;
  display: grid;
}

.dashboard-user strong,
.admin-badge strong {
  overflow: hidden;
  color: var(--navy-900);
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-user span,
.admin-badge span {
  color: var(--muted);
  font-size: 0.68rem;
}

.dashboard-sidebar nav,
.admin-sidebar nav {
  display: grid;
  gap: 0.2rem;
}

.dashboard-sidebar nav a,
.admin-sidebar nav a,
.admin-back {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 9px;
  padding: 0.55rem 0.7rem;
  color: #4c6073;
  font-size: 0.8rem;
  font-weight: 650;
}

.dashboard-sidebar nav a:hover,
.dashboard-sidebar nav a.is-active,
.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active {
  background: var(--navy-900);
  color: white;
}

.admin-back {
  margin-top: 0.55rem;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--blue-600);
}

.dashboard-content,
.admin-content {
  min-width: 0;
}

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

.stat-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem;
  background: white;
  box-shadow: var(--shadow-sm);
}

.stat-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
}

.stat-card--blue .stat-card__icon { background: var(--blue-100); color: var(--blue-600); }
.stat-card--navy .stat-card__icon { background: #e8eef4; color: var(--navy-800); }
.stat-card--amber .stat-card__icon { background: var(--amber-100); color: var(--amber-600); }
.stat-card--rose .stat-card__icon { background: var(--rose-100); color: var(--red-600); }

.stat-card > div {
  min-width: 0;
  display: grid;
}

.stat-card > div > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card strong {
  color: var(--navy-900);
  font-size: 1.35rem;
  font-weight: 800;
}

.stat-card small {
  color: #93a0ac;
  font-size: 0.6rem;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem;
  background: white;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-header h2 {
  margin-bottom: 0.1rem;
  color: var(--navy-900);
  font-size: 1rem;
}

.panel-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.69rem;
}

.dashboard-grid-two,
.settings-grid,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.trend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: var(--green-100);
  color: var(--green-600);
  font-size: 0.65rem;
  font-weight: 700;
}

.mini-chart {
  height: 185px;
  display: flex;
  align-items: end;
  justify-content: stretch;
  gap: 0.35rem;
  padding-top: 1rem;
  border-bottom: 1px solid var(--line);
}

.mini-chart__column {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem;
}

.mini-chart__column span {
  width: min(100%, 24px);
  min-height: 5px;
  border-radius: 5px 5px 1px 1px;
  background: linear-gradient(180deg, var(--blue-500), var(--navy-800));
}

.mini-chart__column small {
  color: #93a0ac;
  font-size: 0.58rem;
}

.quick-actions {
  display: grid;
  gap: 0.45rem;
}

.quick-actions a {
  min-height: 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.55rem 0.75rem;
  transition: border-color 150ms ease, background 150ms ease;
}

.quick-actions a:hover {
  border-color: #b9d2df;
  background: var(--surface-2);
}

.quick-actions a > svg:first-child {
  color: var(--blue-600);
}

.quick-actions span {
  display: grid;
}

.quick-actions strong {
  color: var(--navy-900);
  font-size: 0.8rem;
}

.quick-actions small {
  color: var(--muted);
  font-size: 0.65rem;
}

.dashboard-listings-panel {
  margin-bottom: 1rem;
}

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

.message-list {
  display: grid;
}

.message-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.message-item:last-child {
  border-bottom: 0;
}

.message-item > div {
  min-width: 0;
}

.message-item strong {
  font-size: 0.8rem;
}

.message-item p {
  overflow: hidden;
  margin: 0.15rem 0;
  color: #526678;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-item small {
  color: var(--muted);
  font-size: 0.65rem;
}

.message-item.is-unread strong::after {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-inline-start: 0.35rem;
  border-radius: 50%;
  background: var(--blue-500);
}

.dashboard-status-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.dashboard-status-tabs button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: white;
  color: #526678;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.dashboard-status-tabs button.is-active {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: white;
}

.dashboard-status-tabs span {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(127, 144, 159, 0.14);
  font-size: 0.63rem;
}

.metric-breakdown,
.search-terms {
  display: grid;
  gap: 0.55rem;
}

.metric-breakdown > div,
.search-terms > div {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: var(--surface-2);
}

.metric-breakdown span,
.search-terms span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #536779;
  font-size: 0.76rem;
}

.metric-breakdown strong,
.search-terms strong {
  color: var(--navy-900);
  font-size: 0.8rem;
}

.inquiries-list {
  display: grid;
  gap: 0.75rem;
}

.inquiry-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: white;
}

.inquiry-card.is-unread {
  border-inline-start: 4px solid var(--blue-500);
}

.inquiry-card__head,
.inquiry-card__head > div,
.inquiry-card__actions,
.inquiry-card__property {
  display: flex;
  align-items: center;
}

.inquiry-card__head {
  justify-content: space-between;
  gap: 0.8rem;
}

.inquiry-card__head > div {
  gap: 0.65rem;
}

.inquiry-card__head > div > div {
  display: grid;
}

.inquiry-card__head strong { font-size: 0.86rem; }
.inquiry-card__head span { color: var(--muted); font-size: 0.67rem; }
.unread-dot { border-radius: 999px; padding: 0.2rem 0.5rem; background: var(--blue-100); color: var(--blue-600) !important; font-weight: 700; }
.inquiry-card > p { margin: 0.8rem 0; color: #465a6c; font-size: 0.82rem; }
.inquiry-card__property { gap: 0.4rem; margin-bottom: 0.7rem; color: var(--blue-600); font-size: 0.75rem; }
.inquiry-card__actions { flex-wrap: wrap; gap: 0.4rem; }

.profile-grid form,
.settings-grid form {
  display: grid;
  gap: 0.85rem;
}

.listing-form-page {
  padding-block: 2rem 4rem;
}

.form-page-container {
  max-width: 1000px;
}

.form-page-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.form-page-top h1 {
  margin-bottom: 0.25rem;
  color: var(--navy-900);
  font-size: 2rem;
}

.form-page-top p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.add-mode-tabs {
  display: flex;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.25rem;
  background: white;
}

.add-mode-tabs a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9px;
  padding: 0.5rem 0.75rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.add-mode-tabs a.is-active {
  background: var(--navy-900);
  color: white;
}

.form-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  background: white;
}

.form-progress button {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.form-progress button > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  font-size: 0.72rem;
}

.form-progress button.is-active,
.form-progress button.is-complete {
  color: var(--navy-900);
}

.form-progress button.is-active > span,
.form-progress button.is-complete > span {
  background: var(--navy-900);
  color: white;
}

.form-progress i {
  height: 2px;
  background: var(--line);
}

.form-progress i.is-complete {
  background: var(--navy-900);
}

.form-step {
  display: grid;
  gap: 0.9rem;
}

.form-card {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: white;
  box-shadow: var(--shadow-sm);
}

.form-card__heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.form-card__heading > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--navy-800);
}

.form-card__heading h2 {
  margin-bottom: 0.1rem;
  color: var(--navy-900);
  font-size: 1rem;
}

.form-card__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.choice-cards {
  display: grid;
  gap: 0.65rem;
}

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

.choice-cards input {
  position: absolute;
  opacity: 0;
}

.choice-cards label > span {
  min-height: 96px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  align-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 0.85rem;
  cursor: pointer;
}

.choice-cards label svg {
  grid-row: 1 / 3;
  color: var(--blue-600);
}

.choice-cards strong {
  color: var(--navy-900);
  font-size: 0.88rem;
}

.choice-cards small {
  color: var(--muted);
  font-size: 0.68rem;
}

.choice-cards input:checked + span {
  border-color: var(--navy-900);
  background: #f1f6fa;
  box-shadow: 0 0 0 2px rgba(11, 34, 57, 0.08);
}

.amenities-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.amenities-checks input {
  position: absolute;
  opacity: 0;
}

.amenities-checks span {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.5rem 0.65rem;
  color: #526678;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
}

.amenities-checks input:checked + span {
  border-color: var(--navy-800);
  background: var(--blue-100);
  color: var(--navy-800);
}

.field--muted {
  opacity: 0.65;
}

.image-uploader {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #b9cad6;
  border-radius: 14px;
  padding: 1rem;
  background: #f8fbfd;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.image-uploader:hover,
.image-uploader.is-dragging {
  border-color: var(--blue-500);
  background: var(--blue-100);
}

.image-uploader > span {
  color: var(--blue-600);
}

.image-uploader strong {
  margin-top: 0.45rem;
  color: var(--navy-900);
  font-size: 0.9rem;
}

.image-uploader p {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
}

.image-previews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.image-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-3);
}

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

.image-preview > span {
  position: absolute;
  inset-inline-start: 0.4rem;
  inset-block-end: 0.4rem;
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  background: rgba(7, 24, 39, 0.8);
  color: white;
  font-size: 0.6rem;
}

.image-preview > button {
  position: absolute;
  inset-inline-end: 0.35rem;
  inset-block-start: 0.35rem;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(197, 60, 71, 0.9);
  color: white;
  cursor: pointer;
}

.submit-summary {
  display: flex;
  gap: 0.75rem;
  border: 1px solid #bfe5d5;
  border-radius: 12px;
  padding: 0.9rem;
  background: var(--green-100);
  color: var(--green-600);
}

.submit-summary strong {
  display: block;
  font-size: 0.86rem;
}

.submit-summary p {
  margin: 0.15rem 0 0;
  font-size: 0.7rem;
}

.form-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.bulk-common {
  margin-bottom: 1rem;
}

.bulk-list {
  display: grid;
  gap: 0.85rem;
}

.bulk-item {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: white;
  box-shadow: var(--shadow-sm);
}

.bulk-item__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.bulk-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy-900);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
}

.bulk-item__head > div {
  display: grid;
}

.bulk-item__head strong {
  font-size: 0.85rem;
}

.bulk-item__head small {
  color: var(--muted);
  font-size: 0.66rem;
}

.bulk-item__head button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--red-100);
  color: var(--red-600);
  cursor: pointer;
}

.add-bulk-row {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-block: 0.85rem;
  border: 2px dashed #b9cad6;
  border-radius: 12px;
  background: white;
  color: var(--blue-600);
  font-weight: 700;
  cursor: pointer;
}

.admin-login-page {
  min-height: 75vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: linear-gradient(150deg, #eef4f8, #f9fbfc);
}

.admin-login-card {
  width: min(100%, 430px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: white;
  box-shadow: var(--shadow-lg);
}

.admin-login-card h1 {
  margin-bottom: 0.3rem;
  color: var(--navy-900);
}

.admin-login-card > p {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-login-card form {
  display: grid;
  gap: 0.85rem;
}

.admin-login-card > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.admin-sidebar {
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.admin-badge {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  color: var(--amber-500);
}

.admin-badge strong { color: white; }
.admin-badge span { color: rgba(255, 255, 255, 0.55); }
.admin-sidebar nav a { color: rgba(255, 255, 255, 0.72); }
.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active { background: rgba(255, 255, 255, 0.11); color: white; }
.admin-back { border-top-color: rgba(255, 255, 255, 0.12); color: var(--amber-500); }

.admin-review-list,
.admin-users-mini {
  display: grid;
}

.admin-review-list > div,
.admin-users-mini > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.admin-review-list > div:last-child,
.admin-users-mini > div:last-child {
  border-bottom: 0;
}

.admin-review-list img {
  width: 54px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-review-list > div > div:not(.inline-actions),
.admin-users-mini > div > div {
  min-width: 0;
  display: grid;
}

.admin-review-list strong,
.admin-users-mini strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-review-list span,
.admin-users-mini small {
  color: var(--muted);
  font-size: 0.63rem;
}

.inline-actions,
.table-actions {
  display: flex;
  gap: 0.25rem;
}

.icon-button,
.table-actions button,
.table-actions a {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--navy-800);
  cursor: pointer;
}

.icon-button--success { background: var(--green-100); color: var(--green-600); }
.icon-button--danger,
.table-actions .danger { background: var(--red-100); color: var(--red-600); }

.admin-filters {
  display: flex;
  align-items: end;
  gap: 0.55rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
  background: white;
}

.admin-filters .input-with-icon {
  flex: 1;
}

.admin-filters select {
  width: auto;
  min-width: 145px;
}

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

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

.admin-table th,
.admin-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: middle;
  font-size: 0.72rem;
}

.admin-table th {
  background: #f6f8fa;
  color: #526678;
  font-weight: 800;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.table-listing,
.table-user {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.table-listing img {
  width: 58px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
}

.table-listing > div,
.table-user > div,
.admin-table td {
  min-width: 0;
}

.table-listing a,
.table-user strong,
.admin-table td > strong {
  display: block;
  max-width: 240px;
  overflow: hidden;
  color: var(--navy-900);
  font-size: 0.73rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-listing span,
.table-user span,
.admin-table td small,
.admin-table td > span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
}

.featured-text {
  margin-top: 0.2rem;
  color: var(--amber-600) !important;
  font-weight: 700;
}

.switch-field {
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.7rem;
}

.switch-field > span {
  display: grid;
}

.switch-field strong { font-size: 0.78rem; }
.switch-field small { color: var(--muted); font-size: 0.64rem; }
.switch-field input { width: 44px; height: 24px; accent-color: var(--navy-900); }

.data-actions {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.static-page {
  padding-block: 3rem 5rem;
}

.static-page__layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.static-page aside {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--navy-900);
  color: white;
}

.static-page aside > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--amber-500);
}

.static-page aside h1 {
  margin-bottom: 0.55rem;
}

.static-page aside p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.static-page article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  background: white;
}

.static-page article h2 {
  margin: 1.5rem 0 0.55rem;
  color: var(--navy-900);
  font-size: 1.05rem;
}

.static-page article h2:first-child {
  margin-top: 0;
}

.static-page article p {
  color: #465a6c;
  font-size: 0.88rem;
  line-height: 1.95;
}

.safety-steps {
  display: grid;
  gap: 0.8rem;
}

.safety-steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  border: 0;
  border-radius: 12px;
  padding: 1rem;
  background: var(--surface-2);
}

.safety-steps article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy-900);
  color: white;
  font-weight: 800;
}

.safety-steps h2 {
  margin: 0 !important;
}

.safety-steps p {
  margin: 0.25rem 0 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 24, 39, 0.72);
  backdrop-filter: blur(5px);
}

.modal {
  width: min(100%, 620px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  background: white;
  box-shadow: var(--shadow-lg);
}

.modal-header,
.gallery-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.modal-header > div {
  display: flex;
  gap: 0.65rem;
}

.modal-header > div > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-100);
  color: var(--navy-800);
}

.modal-header h2 {
  margin-bottom: 0.1rem;
  color: var(--navy-900);
  font-size: 1.05rem;
}

.modal-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.69rem;
}

.modal-header > button,
.gallery-modal__head > button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--surface-3);
  cursor: pointer;
}

.modal form {
  display: grid;
  gap: 0.85rem;
}

.modal--gallery {
  width: min(100%, 1100px);
  background: var(--navy-950);
  color: white;
}

.gallery-modal__head {
  border-color: rgba(255, 255, 255, 0.12);
}

.gallery-modal__head > button {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.gallery-modal__main {
  height: min(68vh, 700px);
  display: grid;
  place-items: center;
}

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

.gallery-modal__thumbs {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.8rem;
  overflow-x: auto;
}

.gallery-modal__thumbs button {
  width: 78px;
  height: 58px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.gallery-modal__thumbs button.is-active {
  border-color: var(--amber-500);
}

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

.toast-region {
  position: fixed;
  inset-inline-end: 1rem;
  inset-block-start: 1rem;
  z-index: 400;
  display: grid;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  min-width: 260px;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--success svg { color: var(--green-600); }
.toast--error svg { color: var(--red-600); }

.fatal-error button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  background: var(--navy-900);
  color: white;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .main-nav { gap: 0.85rem; }
  .main-nav a { font-size: 0.78rem; }
  .header-add { padding-inline: 0.8rem; }
  .category-scroller { grid-template-columns: repeat(4, 1fr); }
  .property-layout { grid-template-columns: minmax(0, 1fr) 310px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-listings-panel .listings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .main-nav,
  .header-add,
  .account-menu__name { display: none; }
  .header-actions { margin-inline-start: auto; }
  .mobile-menu-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: var(--surface-3);
    cursor: pointer;
  }
  .mobile-nav {
    display: grid;
    border-top: 1px solid var(--line);
    padding: 0.55rem 1rem 0.8rem;
    background: white;
  }
  .mobile-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem;
    font-weight: 650;
  }
  .mobile-nav a:last-child { border-bottom: 0; }
  .hero-search__fields { grid-template-columns: 1fr 1fr; }
  .search-field { border-bottom: 1px solid var(--line); border-inline-end: 0; }
  .hero-search__button { min-height: 56px; }
  .listings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.5fr repeat(2, 1fr); }
  .footer-grid > div:last-child { grid-column: 2; }
  .property-gallery { grid-template-rows: repeat(2, 170px); }
  .property-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { min-height: 420px; }
  .dashboard-layout,
  .admin-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar,
  .admin-sidebar { position: static; overflow-x: auto; }
  .dashboard-user,
  .admin-badge { margin-bottom: 0.5rem; }
  .dashboard-sidebar nav,
  .admin-sidebar nav { display: flex; width: max-content; }
  .dashboard-sidebar nav a,
  .admin-sidebar nav a { white-space: nowrap; }
  .admin-back { display: none; }
  .field-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .static-page__layout { grid-template-columns: 1fr; }
  .static-page aside { position: static; }
}

@media (max-width: 720px) {
  :root { --header-height: 64px; }
  body { padding-bottom: 72px; }
  .container { width: min(100% - 1.15rem, var(--container)); }
  .demo-strip { min-height: 32px; font-size: 0.67rem; }
  .header-inner { min-height: var(--header-height); gap: 0.7rem; }
  .brand__mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand__wordmark strong { font-size: 0.93rem; }
  .brand__wordmark small { display: none; }
  .header-login { width: 42px; font-size: 0; }
  .account-menu__button { padding: 0; }
  .account-dropdown { position: fixed; inset-inline: 0.7rem; top: calc(96px + 0.5rem); width: auto; }
  .mobile-bottom-nav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 120;
    height: 68px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    padding: 0.25rem max(0.35rem, env(safe-area-inset-right)) calc(0.25rem + env(safe-area-inset-bottom)) max(0.35rem, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -8px 24px rgba(7, 24, 39, 0.1);
    backdrop-filter: blur(12px);
  }
  .mobile-bottom-nav a {
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    color: #607184;
    font-size: 0.62rem;
    font-weight: 650;
  }
  .mobile-bottom-nav__add {
    position: relative;
    top: -11px;
    color: var(--navy-900) !important;
  }
  .mobile-bottom-nav__add svg {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    padding: 0.72rem;
    background: var(--amber-500);
    box-shadow: 0 8px 20px rgba(217, 138, 32, 0.34);
  }
  .home-hero { min-height: 620px; align-items: end; }
  .home-hero__image { background-position: 38% center; }
  .home-hero__shade { background: linear-gradient(0deg, rgba(7, 24, 39, 0.98), rgba(7, 24, 39, 0.36)); }
  .home-hero__content { padding-block: 3rem 2.3rem; }
  .home-hero h1 { max-width: 440px; font-size: clamp(2rem, 10vw, 3rem); }
  .home-hero__content > p { font-size: 0.86rem; }
  .hero-search { border-radius: 14px; padding: 0.5rem; }
  .hero-search__fields { grid-template-columns: 1fr; gap: 0; }
  .search-field { min-height: 59px; padding-inline: 0.7rem; }
  .hero-search__button { margin-top: 0.45rem; width: 100%; }
  .hero-quick-links { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.2rem; }
  .hero-quick-links > * { flex-shrink: 0; }
  .section { padding-block: 3rem; }
  .section-heading { align-items: center; margin-bottom: 1rem; }
  .section-heading h2 { font-size: 1.45rem; }
  .section-heading > a { font-size: 0.73rem; }
  .category-scroller {
    display: flex;
    gap: 0.65rem;
    width: calc(100% + 0.55rem);
    overflow-x: auto;
    padding: 0.25rem 0 0.75rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .category-card { min-width: 118px; min-height: 126px; scroll-snap-align: start; }
  .category-card > span { width: 44px; height: 44px; }
  .listings-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .listing-card { display: grid; grid-template-columns: 42% 58%; min-height: 174px; }
  .listing-card__media { aspect-ratio: auto; height: 100%; }
  .listing-card__body { min-width: 0; padding: 0.75rem; }
  .listing-card__eyebrow { font-size: 0.62rem; }
  .listing-card h3 { min-height: 2.7em; margin-block: 0.3rem 0.15rem; font-size: 0.84rem; }
  .listing-card__location { margin-bottom: 0.45rem; font-size: 0.67rem; }
  .listing-card__facts { gap: 0.45rem; padding-bottom: 0.45rem; }
  .listing-card__facts span { font-size: 0.62rem; }
  .listing-card__facts span:nth-child(n+3) { display: none; }
  .listing-card__footer { padding-top: 0.45rem; }
  .listing-card__footer strong { font-size: 0.82rem; }
  .listing-card__footer > span { font-size: 0.62rem; }
  .listing-card__badges { inset-block-start: 0.5rem; inset-inline-start: 0.5rem; flex-direction: column; align-items: flex-start; }
  .badge { min-height: 24px; font-size: 0.6rem; }
  .favorite-button { inset-block-start: 0.45rem; inset-inline-end: auto; inset-inline-start: calc(42% - 42px); width: 35px; height: 35px; }
  .listing-card__manage { grid-column: 1 / -1; }
  .dashboard-listings-grid .listing-card { grid-template-columns: 1fr; }
  .dashboard-listings-grid .listing-card__media { aspect-ratio: 16 / 9; }
  .local-callout { bottom: -1.5rem; flex-direction: column; align-items: stretch; padding: 1rem; }
  .local-callout > div { align-items: flex-start; }
  .local-callout .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-about { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; padding-block: 1rem; }
  .search-page { padding-top: 1.2rem; }
  .mobile-filter-button { display: inline-flex; }
  .search-layout { grid-template-columns: 1fr; }
  .filters-panel {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: none;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    padding: 1rem 1rem calc(2rem + env(safe-area-inset-bottom));
  }
  .filters-panel.is-open { display: block; }
  .filters-panel__header { position: sticky; top: 0; z-index: 2; min-height: 54px; background: white; }
  .filters-panel__header button { width: 42px; height: 42px; display: grid; place-items: center; }
  .results-toolbar { align-items: center; }
  .results-toolbar label > span { display: none; }
  .results-toolbar select { max-width: 160px; }
  .property-page { padding-top: 0; }
  .property-breadcrumbs { min-height: 38px; }
  .property-gallery { width: 100%; grid-template-columns: 1fr; grid-template-rows: 280px; border-radius: 0; }
  .property-gallery__main { grid-row: auto; }
  .property-gallery > button:not(.property-gallery__main):not(.gallery-count) { display: none; }
  .property-gallery--single { height: 280px; }
  .property-layout { width: 100%; padding-top: 0; gap: 0.75rem; }
  .property-content { border-inline: 0; border-radius: 0; }
  .property-title-row { flex-direction: column; }
  .property-share-actions { width: 100%; }
  .property-share-actions button { flex: 1; justify-content: center; }
  .property-price-row { flex-wrap: wrap; }
  .property-price-row strong { width: 100%; font-size: 1.4rem; }
  .property-key-facts { grid-template-columns: repeat(2, 1fr); }
  .details-list { grid-template-columns: 1fr; }
  .details-list > div:nth-child(odd) { border-inline-end: 0; }
  .details-list > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .details-list > div:last-child { border-bottom: 0; }
  .amenities-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { margin-inline: 0.6rem; box-shadow: none; }
  .mobile-contact-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 68px;
    z-index: 115;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding: 0.45rem 0.55rem;
    border-top: 1px solid var(--line);
    background: white;
    box-shadow: 0 -6px 20px rgba(7, 24, 39, 0.1);
  }
  .mobile-contact-bar a,
  .mobile-contact-bar button {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border: 0;
    border-radius: 9px;
    background: var(--navy-900);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
  }
  .mobile-contact-bar a:nth-child(2) { background: #1fa56b; }
  .related-section { padding-bottom: 2rem; }
  .auth-page { display: block; min-height: auto; }
  .auth-visual { display: none; }
  .auth-form-wrap { min-height: calc(100vh - var(--header-height) - 68px); padding: 1.25rem 0.6rem; }
  .auth-card { padding: 1.15rem; border-radius: var(--radius); box-shadow: none; }
  .field-row,
  .field-row--3,
  .field-row--4 { grid-template-columns: 1fr; }
  .dashboard-page,
  .admin-page { padding-top: 1rem; }
  .dashboard-layout,
  .admin-layout { width: 100%; gap: 0.75rem; }
  .dashboard-sidebar,
  .admin-sidebar { margin-inline: 0.6rem; }
  .dashboard-user,
  .admin-badge { display: none; }
  .dashboard-sidebar nav,
  .admin-sidebar nav { gap: 0.25rem; overflow-x: auto; }
  .dashboard-sidebar nav a,
  .admin-sidebar nav a { min-height: 40px; padding-inline: 0.65rem; font-size: 0.7rem; }
  .dashboard-content,
  .admin-content { padding-inline: 0.6rem; }
  .page-heading { align-items: flex-start; }
  .page-heading__actions { width: 100%; }
  .page-heading__actions .button { flex: 1; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .stat-card { padding: 0.7rem; gap: 0.5rem; }
  .stat-card__icon { width: 38px; height: 38px; }
  .stat-card strong { font-size: 1.1rem; }
  .stat-card small { display: none; }
  .dashboard-grid-two,
  .settings-grid,
  .profile-grid { grid-template-columns: 1fr; }
  .dashboard-listings-panel .listings-grid { grid-template-columns: 1fr; }
  .mini-chart { height: 160px; }
  .listing-form-page { padding-top: 1rem; }
  .form-page-container { width: 100%; }
  .form-page-top { display: grid; padding-inline: 0.6rem; }
  .form-page-top h1 { font-size: 1.55rem; }
  .add-mode-tabs { width: 100%; }
  .add-mode-tabs a { flex: 1; justify-content: center; }
  .form-progress { position: sticky; top: var(--header-height); z-index: 60; border-radius: 0; padding: 0.55rem 0.7rem; }
  .form-progress button strong { display: none; }
  .form-progress button > span { width: 30px; height: 30px; }
  .form-step,
  #bulk-listings-form { padding-inline: 0.6rem; }
  .form-card { padding: 0.9rem; }
  .choice-cards label > span { min-height: 86px; }
  .amenities-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .image-previews { grid-template-columns: repeat(2, 1fr); }
  .form-navigation--sticky {
    position: sticky;
    bottom: 68px;
    z-index: 50;
    margin-inline: -0.6rem;
    padding: 0.55rem;
    border-top: 1px solid var(--line);
    background: white;
  }
  .bulk-item { padding: 0.85rem; }
  .bulk-item__head small { display: none; }
  .admin-filters { align-items: stretch; flex-direction: column; }
  .admin-filters select { width: 100%; }
  .static-page { padding-top: 1rem; }
  .static-page__layout { width: 100%; gap: 0; }
  .static-page aside { border-radius: 0; }
  .static-page article { border-inline: 0; border-radius: 0; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 90vh; border-radius: 20px 20px 0 0; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .modal--gallery { height: 100vh; max-height: 100vh; border-radius: 0; }
  .gallery-modal__main { height: 70vh; }
  .toast-region { inset-inline: 0.6rem; inset-block-start: 0.6rem; }
  .toast { min-width: 0; width: 100%; }
}

@media (max-width: 430px) {
  .header-actions { gap: 0.35rem; }
  .home-hero { min-height: 650px; }
  .listing-card { grid-template-columns: 40% 60%; }
  .favorite-button { inset-inline-start: calc(40% - 40px); }
  .property-gallery,
  .property-gallery--single { height: 245px; grid-template-rows: 245px; }
  .property-key-facts { gap: 0.45rem; }
  .property-key-facts > div > span { width: 38px; height: 38px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card > div > span { white-space: normal; line-height: 1.25; }
  .form-navigation { align-items: stretch; flex-direction: column-reverse; }
  .form-navigation .button { width: 100%; }
  .bulk-item__head { grid-template-columns: auto 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Threaded messaging: mobile first. */
.chat-layout { display:grid; gap:16px; grid-template-columns:minmax(0,1fr); }
.chat-thread { display:grid; gap:6px; padding:14px; border-bottom:1px solid #e2e8e6; color:inherit; overflow-wrap:anywhere; }
.chat-thread.is-unread { background:#e6f5ee; }
.chat-thread small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-log { display:flex; flex-direction:column; gap:12px; max-height:55vh; overflow:auto; padding:8px; margin-bottom:16px; }
.chat-bubble { background:#f0f3f2; padding:12px; border-radius:14px; max-width:90%; align-self:flex-start; overflow-wrap:anywhere; }
.chat-bubble--mine { background:#dff4e9; align-self:flex-end; }
.chat-bubble p { white-space:pre-wrap; margin:8px 0; }
.chat-bubble small { font-size:11px; }
.moderation-by { display:inline-block; line-height:1.55; color:#176b50; }
.muted { color:#71808a; }
.admin-action-link { border:0; background:transparent; font:inherit; cursor:pointer; width:100%; text-align:inherit; }
@media(min-width:900px) { .chat-layout { grid-template-columns:minmax(180px,1fr) minmax(0,2fr); } }
