:root {
  color-scheme: light;
  --page: #f3f3ee;
  --page-soft: #f8f8f4;
  --surface: #ffffff;
  --surface-soft: #f5f6f1;
  --surface-raised: #ffffff;
  --ink: #18221c;
  --ink-soft: #3d4941;
  --muted: #6c756f;
  --line: #dfe3dc;
  --line-strong: #cbd2ca;
  --brand: #174c37;
  --brand-deep: #103a2a;
  --brand-bright: #287a58;
  --brand-soft: #e8f1ec;
  --on-primary: #ffffff;
  --gold: #a8792f;
  --gold-soft: #f7efe1;
  --danger: #a53f42;
  --danger-soft: #faecec;
  --success: #24704e;
  --success-soft: #e7f3eb;
  --shadow-sm: 0 8px 24px rgba(26, 42, 33, 0.07);
  --shadow-md: 0 18px 48px rgba(26, 42, 33, 0.11);
  --shadow-lg: 0 32px 80px rgba(15, 38, 27, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1280px;
  --font: "Noto Sans Georgian", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0f1713;
  --page-soft: #111c16;
  --surface: #17231c;
  --surface-soft: #1b2a21;
  --surface-raised: #1d2d24;
  --ink: #edf3ef;
  --ink-soft: #cbd5ce;
  --muted: #9eaca3;
  --line: #2c3c32;
  --line-strong: #3a4d41;
  --brand: #4ca47b;
  --brand-deep: #0c2d20;
  --brand-bright: #6cbe94;
  --brand-soft: #1b3729;
  --on-primary: #07150e;
  --gold: #d4ad69;
  --gold-soft: #352c1d;
  --danger: #e28084;
  --danger-soft: #3c2326;
  --success: #65bc8f;
  --success-soft: #1b3729;
  --shadow-sm: 0 8px 26px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 20px 54px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea { font-family: var(--font); }

body.menu-open { overflow: hidden; }

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

button,
a,
select,
input[type="file"] { -webkit-tap-highlight-color: transparent; }

button,
a { touch-action: manipulation; }

button { color: inherit; }
button:not(:disabled), select:not(:disabled) { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.52; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:root .leaflet-popup-content-wrapper,
:root .leaflet-popup-tip { background: var(--surface); color: var(--ink); }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
input[type="file"]::file-selector-button {
  background: var(--surface-soft);
  color: var(--ink);
  border-color: var(--line-strong);
}
svg { display: block; }
[hidden] { display: none !important; }
::selection { background: rgba(40, 122, 88, 0.2); }

:focus-visible {
  outline: 3px solid rgba(40, 122, 88, 0.3);
  outline-offset: 2px;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong, b { letter-spacing: -0.02em; }
h1, h2, h3 { line-height: 1.25; }
main { display: block; }
.muted { color: var(--muted); }
.error { color: var(--danger); }

.eyebrow,
.section-label,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
textarea { padding: 12px 14px; }
select { padding: 10px 38px 10px 13px; }
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.72; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 4px rgba(40, 122, 88, 0.12);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

label > span { min-height: 17px; }

.primary,
.plain,
.secondary-button,
.text-button,
.filter-button,
.load-more {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.primary {
  background: var(--brand);
  color: var(--on-primary);
  box-shadow: 0 10px 24px rgba(23, 76, 55, 0.17);
}

:root[data-theme="dark"] .primary {
  background: var(--brand-bright);
  color: var(--on-primary);
}

.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--brand-deep);
  box-shadow: 0 14px 30px rgba(23, 76, 55, 0.22);
}

:root[data-theme="dark"] .primary:hover:not(:disabled) { background: #7dcc9f; }

.plain,
.secondary-button,
.filter-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.plain:hover:not(:disabled),
.secondary-button:hover:not(:disabled),
.filter-button:hover:not(:disabled) {
  border-color: var(--brand-bright);
  background: var(--brand-soft);
  color: var(--brand-bright);
}

.text-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--brand-bright);
}

.text-button:hover:not(:disabled) { color: var(--brand); }

.danger {
  color: var(--danger) !important;
  border-color: rgba(165, 63, 66, 0.24) !important;
  background: var(--danger-soft) !important;
}

/* Header and brand */

.site-header,
body.auth-page > header,
body.admin-page > header,
body.dashboard-page > header,
body.listing-page > header {
  position: sticky;
  z-index: 200;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-shell,
body.auth-page > header,
body.admin-page > header,
body.dashboard-page > header,
body.listing-page > header {
  width: min(var(--container), calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.brand-symbol {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 76, 55, 0.18);
}

:root[data-theme="dark"] .brand-symbol {
  background: var(--brand-bright);
  color: #07150e;
}

.brand-symbol svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.brand-name {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1;
}

.brand-wordmark {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.brand-wordmark i { font-style: normal; color: var(--brand-bright); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 0 13px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.nav:hover,
.nav.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.header-actions {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions select {
  width: auto;
  min-width: 107px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background-color: transparent;
  font-size: 12px;
  font-weight: 700;
}

/* Keep full language names visible, including compact/mobile headers. */
:is(#language, #info-language, .listing-page > header .header-actions select) {
  width: 124px;
  min-width: 124px;
  max-width: none;
  flex-shrink: 0;
  padding-inline: 12px 28px;
}
:is(#language, #info-language, .listing-page > header .header-actions select) option {
  background-color: var(--surface);
  color: var(--ink);
}

.theme-toggle,
.header-icon-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  padding: 0;
  display: grid;
  place-items: center;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-toggle:hover,
.header-icon-button:hover {
  border-color: var(--brand-bright);
  color: var(--brand-bright);
}

.header-icon-button {
  min-height: 40px;
  border-radius: 10px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 750;
}

.header-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-icon-button b {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-page:not(.auth-ready) .account-actions { visibility: hidden; }

.auth-login,
.auth-register,
.header-text-button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.auth-login:hover,
.header-text-button:hover {
  background: var(--surface-soft);
  color: var(--brand);
}

.auth-register {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.header-add {
  min-height: 42px;
  padding-inline: 15px;
  white-space: nowrap;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  display: none;
  place-items: center;
  background: var(--surface);
}

.listing-pagination {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.listing-pagination button {
  min-width: 112px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
}

.listing-pagination button:hover:not(:disabled) {
  border-color: var(--brand-bright);
  color: var(--brand);
}

.listing-pagination span {
  min-width: 110px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

/* Home hero */

.home-page > main {
  width: min(var(--container), calc(100% - 48px));
  margin: 28px auto 0;
}

.hero {
  min-height: 610px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  background: #143d2d;
  color: #f7faf8;
  box-shadow: var(--shadow-lg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(58px, 6vw, 88px) clamp(40px, 5.2vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: -160px;
  left: -140px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-kicker {
  margin-bottom: 24px;
  color: #b9dbc9;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(39px, 4.15vw, 66px);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1.19;
}

.hero h1 em {
  color: #a9d4bd;
  font-style: normal;
  font-weight: 570;
}

.hero-copy > p {
  max-width: 570px;
  margin: 26px 0 0;
  color: rgba(247, 250, 248, 0.74);
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions .primary {
  min-height: 52px;
  background: #f4f7f5;
  color: #143d2d;
  box-shadow: none;
}

.hero-actions .primary:hover { background: #ffffff; }

.hero-actions .secondary-button {
  min-height: 52px;
  border-color: rgba(255, 255, 255, 0.23);
  background: transparent;
  color: #ffffff;
}

.hero-actions .secondary-button:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hero-features {
  width: 100%;
  margin-top: auto;
  padding-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  color: rgba(247, 250, 248, 0.72);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.55;
}

.hero-features span {
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 13px;
}

.hero-features b {
  display: block;
  margin-bottom: 4px;
  color: #a9d4bd;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.hero-picture {
  position: relative;
  min-height: 610px;
  margin: 10px 10px 10px 0;
  border-radius: 0 23px 23px 0;
  overflow: hidden;
  background: #21382d;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slider::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 25, 17, 0.03) 45%, rgba(8, 25, 17, 0.55) 100%);
  pointer-events: none;
}

.hero-slide {
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1.25s ease, transform 6.8s ease;
}

.hero-slide.active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.hero-image-label {
  position: absolute;
  z-index: 4;
  top: 26px;
  right: 26px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 25, 17, 0.4);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-image-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #85d3a8;
  box-shadow: 0 0 0 4px rgba(133, 211, 168, 0.18);
}

.hero-info-card {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 24px;
  left: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: grid;
  gap: 4px;
  background: rgba(14, 35, 24, 0.72);
  color: #ffffff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-info-card span {
  color: #aed8c1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-info-card strong { font-size: 14px; font-weight: 700; }
.hero-info-card small { color: rgba(255, 255, 255, 0.62); font-size: 10px; }

/* Search */

.search-panel {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0 26px 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.search-tabs {
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-tabs button {
  position: relative;
  align-self: stretch;
  border: 0;
  padding: 2px 17px 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.search-tabs button::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
}

.search-tabs button:hover,
.search-tabs button.selected { color: var(--brand); }
.search-tabs button.selected::after { background: var(--brand-bright); }

.search-tabs > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

#search {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(170px, 1.25fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(110px, 0.65fr) auto auto;
  align-items: end;
  gap: 10px;
}

.search-panel input,
.search-panel select {
  min-height: 52px;
  background-color: var(--page-soft);
}

.search-panel .filter-button,
.search-panel .search-button {
  min-height: 52px;
  white-space: nowrap;
}

#extra-fields {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}

#extra-fields .text-button {
  min-height: 50px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
}

.quick-types {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.quick-types > span {
  margin-right: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.quick-types button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.quick-types button:hover,
.quick-types button.selected {
  border-color: var(--brand-bright);
  background: var(--brand-soft);
  color: var(--brand);
}

/* Listing sections */

.listings { margin-top: 76px; }

.promotion-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3.2vw, 44px);
}

.vip-section {
  border-color: color-mix(in srgb, var(--gold) 28%, var(--line));
  background: linear-gradient(145deg, var(--gold-soft), var(--surface) 48%);
}

.premium-section {
  background: linear-gradient(145deg, var(--brand-soft), var(--surface) 48%);
}

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

.section-heading > div:first-child { min-width: 0; }

.section-heading h2 {
  margin: 8px 0 7px;
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 760;
  letter-spacing: -0.045em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.section-label b {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--brand);
  color: #ffffff;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.vip-section .section-label { color: var(--gold); }
.vip-section .section-label b { background: var(--gold); }

.section-index {
  color: var(--line-strong);
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.listing-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.listing-controls select {
  width: auto;
  min-width: 170px;
  min-height: 43px;
  font-size: 11px;
  font-weight: 700;
}

.view-switch {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  display: flex;
  background: var(--surface);
}

.view-switch button {
  min-width: 58px;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.view-switch button.selected {
  background: var(--brand-soft);
  color: var(--brand);
}

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

.standard-section > .cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.promotion-section > .cards {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 64px) / 5);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.promotion-section > .cards::-webkit-scrollbar {
  display: none;
}

.promotion-section > .cards .card {
  scroll-snap-align: start;
}

.carousel-heading-actions {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.carousel-controls {
  display: flex;
  gap: 7px;
}

.carousel-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.carousel-controls button:hover {
  border-color: var(--brand-bright);
  background: var(--brand-soft);
  color: var(--brand);
}

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(18, 43, 29, 0.02);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand-bright) 36%, var(--line));
  box-shadow: var(--shadow-md);
}

.card.tier-vip { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.card.tier-premium { border-color: color-mix(in srgb, var(--brand-bright) 48%, var(--line)); }
.card.unavailable .card-photo img { filter: grayscale(0.82); opacity: 0.68; }

.card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-soft);
}

.card-photo > a,
.card-photo img {
  width: 100%;
  height: 100%;
}

.card-photo img {
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.badge,
.photo-count {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: rgba(14, 27, 20, 0.74);
  color: #ffffff;
  font-size: 9px;
  font-weight: 750;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.badge { top: 13px; left: 13px; padding: 7px 10px; }
.photo-count { right: 13px; bottom: 13px; padding: 6px 9px; }

.heart {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.88);
  color: #27372e;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.11);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.heart svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.heart:hover,
.heart.saved { color: #b3424b; }
.heart.saved svg { fill: currentColor; }

.card-body {
  min-height: 284px;
  padding: 18px 19px 17px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card-topline {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.property-type {
  color: var(--brand-bright);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card .price {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.price small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.unit-price { margin-top: 2px; color: var(--muted); font-size: 9px; }

.card-title {
  margin-top: 14px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title:hover { color: var(--brand-bright); }

.card .location {
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.specs {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.specs span {
  border-radius: 7px;
  padding: 5px 8px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
}

.card-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.card-footer a { color: var(--brand-bright); font-weight: 800; }

.card-manage {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.card-manage button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 8px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
}

.listing-expiry,
.promotion-expiry {
  margin: 8px 0 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
}

.promotion-empty,
.empty {
  min-height: 170px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  text-align: center;
}

.promotion-empty b,
.empty strong { font-size: 15px; }
.promotion-empty span,
.empty span { color: var(--muted); font-size: 11px; }
.empty .text-button { margin-top: 12px; }

.load-more {
  min-width: 180px;
  margin: 30px auto 0;
  border: 1px solid var(--line-strong);
  display: flex;
  background: var(--surface);
}

#listing-map {
  width: 100%;
  height: 620px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-soft);
}

.map-popup {
  min-width: 160px;
  display: grid;
  gap: 5px;
  color: var(--ink);
}

.map-popup span { color: var(--brand); font-weight: 700; }

.ad-slot {
  min-height: 116px;
  margin-top: 42px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 0 48%, color-mix(in srgb, var(--line) 45%, transparent) 49% 51%, transparent 52%),
    var(--surface-soft);
  text-align: center;
}

.ad-slot.wide {
  min-height: 150px;
  margin-top: 70px;
}

.ad-slot > div,
.ad-slot > a {
  width: 100%;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.ad-slot span {
  color: var(--brand-bright);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-slot strong {
  color: var(--ink-soft);
  font-size: 14px;
}

.ad-slot small {
  color: var(--muted);
  font-size: 9px;
}

.ad-slot.has-ad {
  border-style: solid;
  padding: 0;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.ad-slot.has-ad > a,
.ad-slot.has-ad > div {
  min-height: inherit;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1fr);
  text-align: left;
}

.ad-slot.has-ad img {
  width: 100%;
  height: 110px;
  border-radius: 10px;
  object-fit: cover;
}

.ad-slot.has-ad > a > div,
.ad-slot.has-ad > div > div {
  align-items: flex-start;
}

.sell-banner {
  margin: 82px 0;
  border-radius: var(--radius-xl);
  padding: clamp(34px, 5vw, 66px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: #143d2d;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.sell-banner > div { max-width: 720px; }
.sell-banner .section-label { color: #a9d4bd; }

.sell-banner h2 {
  margin: 9px 0 10px;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 720;
  letter-spacing: -0.045em;
}

.sell-banner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.sell-banner .primary {
  min-height: 54px;
  flex: 0 0 auto;
  background: #ffffff;
  color: #143d2d;
  box-shadow: none;
}

/* Skeletons */

.skeleton-card { pointer-events: none; }

.skeleton-photo,
.skeleton-card .card-body i {
  position: relative;
  overflow: hidden;
  background: var(--surface-soft);
}

.skeleton-photo::after,
.skeleton-card .card-body i::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 74%, transparent), transparent);
  animation: skeleton 1.4s infinite;
}

.skeleton-photo { aspect-ratio: 4 / 3; }
.skeleton-card .card-body { gap: 12px; }

.skeleton-card .card-body i {
  width: 100%;
  height: 12px;
  border-radius: 4px;
}

.skeleton-card .card-body i:nth-child(2) { width: 54%; height: 25px; }
.skeleton-card .card-body i:nth-child(3) { width: 82%; }
.skeleton-card .card-body i:nth-child(4) { width: 68%; }

@keyframes skeleton { to { transform: translateX(100%); } }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-shell {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 26px;
  display: grid;
  grid-template-columns: 1.2fr .7fr .8fr 1fr 1fr;
  gap: 44px;
}

.footer-brand p {
  max-width: 300px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.footer-column strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 12px;
}

.footer-column a:hover,
.footer-column button:hover { color: var(--brand-bright); }

.footer-column button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.footer-shell > small {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 23px;
  color: var(--muted);
  font-size: 9px;
}

/* Shared contact links: compact in the footer, detailed on /contact. */
.contact-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-method {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 160ms ease, background 160ms ease;
}
.contact-method:hover { border-color: var(--brand-bright); background: var(--surface-soft); }
.contact-method-icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: var(--brand-soft); color: var(--brand-bright); }
.contact-method-icon svg { width: 23px; height: 23px; }
.contact-method-copy { display: grid; gap: 6px; min-width: 0; }
.contact-method-copy strong { font-size: 15px; }
.contact-method-copy > span { font-size: 11px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.contact-help { margin-top: 22px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-soft); }
.contact-help h2 { margin: 0 0 10px; font-size: 17px; line-height: 1.6; }
.contact-help p { margin: 0 0 18px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.contact-help .plain { border: 1px solid var(--line-strong); }
.footer-contact .contact-methods { grid-template-columns: repeat(3, 36px); gap: 12px 8px; }
.footer-contact .contact-method { padding: 0; width: 36px; height: 36px; justify-content: center; border-radius: 10px; background: var(--surface-soft); }
.footer-contact .contact-method-icon { width: auto; height: auto; border-radius: 0; background: none; color: inherit; }
.footer-contact .contact-method-icon svg { width: 18px; height: 18px; }
.footer-contact .contact-method-copy { display: none; }
.footer-contact .contact-method--phone { grid-column: 1 / -1; width: auto; height: auto; justify-content: flex-start; gap: 7px; border: 0; background: none; white-space: nowrap; }
.footer-contact .contact-method--phone .contact-method-copy { display: block; }
.footer-contact .contact-method--phone .contact-method-copy strong { display: none; }
.footer-contact .contact-method--phone .contact-method-copy > span { color: var(--ink-soft); font-size: 11px; }
.footer-contact .contact-method--phone .contact-method-icon svg { width: 15px; height: 15px; }
.footer-contact .contact-method:hover { color: var(--brand-bright); border-color: var(--brand-bright); }

/* Dialogs and listing editor */

dialog {
  width: min(720px, calc(100% - 30px));
  max-height: min(88vh, 920px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

dialog::backdrop {
  background: rgba(4, 14, 9, 0.68);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

dialog .close {
  position: sticky;
  z-index: 4;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  margin: -10px -10px 0 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

dialog h2 {
  margin: 8px 0;
  font-size: 28px;
}

#detail,
#review { width: min(900px, calc(100% - 30px)); }

#notice {
  width: min(460px, calc(100% - 30px));
  text-align: center;
}

#notice .primary { margin-top: 10px; }
#editor { width: min(860px, calc(100% - 30px)); }

.add-form {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.add-form .full { grid-column: 1 / -1; }

.upload {
  min-height: 116px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface-soft);
  color: var(--brand-bright);
  text-align: center;
}

.upload input {
  width: auto;
  min-height: 0;
  margin-top: 12px;
  border: 0;
  padding: 0;
  background: transparent;
}

.upload small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.photo-previews {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.photo-previews > div {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-soft);
}

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

.photo-previews button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(20, 28, 23, 0.82);
  color: #ffffff;
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
}

.consent input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 1px;
}

.map-picker {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-soft);
}

.map-picker .plain { min-height: 40px; }
.map-picker span { font-size: 10px; }

#picker-map {
  width: 100%;
  height: 470px;
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft);
}

.map-actions,
.moderate-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

#toast {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  max-width: min(430px, calc(100% - 44px));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 13px 16px;
  transform: translateY(18px);
  visibility: hidden;
  background: #173b2b;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  font-size: 11px;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

#toast.show {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

/* Authentication */

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 14%, color-mix(in srgb, var(--brand-soft) 75%, transparent), transparent 32%),
    radial-gradient(circle at 86% 92%, color-mix(in srgb, var(--gold-soft) 72%, transparent), transparent 30%),
    var(--page);
}

.auth-page > header,
.admin-page > header,
.dashboard-page > header,
.listing-page > header { padding: 0; }

.auth-box {
  width: min(510px, calc(100% - 30px));
  margin: clamp(46px, 7vw, 90px) auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 48px);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.auth-box h1 {
  margin: 9px 0 8px;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.045em;
}

.auth-box > p {
  color: var(--muted);
  font-size: 12px;
}

.auth-tabs {
  margin: 25px 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-soft);
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.auth-tabs button.selected {
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.auth-box form {
  display: grid;
  gap: 14px;
}

.auth-box form > .primary {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
}

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

.forgot {
  width: 100%;
  min-height: 38px;
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: var(--brand-bright);
}

.auth-divider {
  margin: 23px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.social-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.social-buttons button {
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

#oauth-note {
  margin: 9px 0 0;
  text-align: center;
  font-size: 8px;
}

.auth-back {
  margin: 24px 0 0 !important;
  text-align: center;
}

.auth-back a {
  color: var(--brand-bright);
  font-weight: 700;
}

/* Member dashboard */

.dashboard-page {
  background:
    radial-gradient(circle at 8% 10%, color-mix(in srgb, var(--brand-soft) 62%, transparent), transparent 25%),
    var(--page);
}

.dashboard-header-label {
  border-left: 1px solid var(--line);
  padding-left: 17px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 34px auto 90px;
}

.dashboard-welcome {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  background: #143d2d;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.dashboard-welcome::after {
  content: "";
  position: absolute;
  top: -130px;
  right: -100px;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.profile-summary {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.cover-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 20px; margin-bottom: 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-soft); }
.cover-preview { width: 180px; aspect-ratio: 4 / 3; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 12px; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-picker > div:last-child { flex: 1 1 180px; }
.cover-picker h3 { margin: 0 0 8px; font-size: 16px; }
.cover-picker p,.media-hint { font-size: 11px; line-height: 1.8; color: var(--muted); }
.cover-file-button { position: relative; display: inline-flex; width: auto; border: 1px solid var(--line-strong); cursor: pointer; }
.cover-file-button input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.cover-file-button:focus-within { outline: 3px solid var(--brand-bright); outline-offset: 3px; }
#editor-photo-count { margin: 14px 0 0; font-size: 11px; }
.photo-previews > .is-cover { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
.photo-previews .media-cover-select { top: auto; bottom: 6px; left: 6px; right: 6px; width: auto; height: auto; min-height: 29px; padding: 5px; border-radius: 6px; font-size: 9px; line-height: 1.4; }
.photo-previews .media-cover-select[aria-pressed="true"] { background: var(--brand); color: var(--on-primary); }
:root[data-theme="dark"] .photo-previews .media-cover-select[aria-pressed="true"] { background: var(--brand-bright); }
.profile-avatar,.seller-avatar { overflow: hidden; }
.profile-avatar img,.seller-avatar img,.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-editor { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-soft); }
.profile-photo-preview { flex: 0 0 82px; width: 82px; height: 82px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--brand-soft); color: var(--brand-bright); font-size: 30px; font-weight: 800; }
.profile-photo-editor > div:last-child { flex: 1 1 180px; }
.profile-photo-editor strong { font-size: 14px; }
.profile-photo-editor p { font-size: 10px; line-height: 1.8; margin: 8px 0 12px; }
.profile-photo-editor .plain { min-height: 40px; margin: 0 6px 6px 0; font-size: 11px; }
.confirm-email-panel { display: grid; gap: 15px; margin: 24px 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-soft); }
.confirm-email-panel p { margin: 0; font-size: 12px; line-height: 1.9; }
.confirm-email-panel > strong { overflow-wrap: anywhere; font-size: 14px; color: var(--brand-bright); }
.confirm-email-panel #confirmation-status { color: var(--ink-soft); }
.confirm-email-panel .primary { width: 100%; }

.profile-avatar {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 31px;
  font-weight: 800;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.profile-summary .eyebrow {
  color: #a9d4bd;
}

.profile-summary h1 {
  margin: 4px 0 3px;
  color: #ffffff;
  font-size: clamp(27px, 3.4vw, 42px);
  letter-spacing: -0.045em;
}

.profile-summary p {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 10px;
}

.profile-rating {
  display: flex;
  align-items: center;
  gap: 7px;
}

.profile-rating .rating-stars svg {
  width: 16px;
  height: 16px;
}

.profile-rating strong {
  color: #ffffff;
  font-size: 12px;
}

.profile-rating > span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
}

.dashboard-welcome-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-welcome-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #ffffff;
}

.dashboard-welcome-actions .secondary-button:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.dashboard-welcome-actions .primary {
  background: #ffffff;
  color: #143d2d;
  box-shadow: none;
}

.dashboard-metrics {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 23px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.dashboard-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dashboard-metrics span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  font-weight: 650;
}

.dashboard-metrics strong {
  color: #ffffff;
  font-size: 24px;
  font-weight: 750;
}

.dashboard-nav {
  position: sticky;
  z-index: 80;
  top: 84px;
  margin: 24px 0 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.dashboard-nav button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.dashboard-nav button:hover,
.dashboard-nav button.selected {
  background: var(--brand-soft);
  color: var(--brand);
}

.dashboard-panel {
  min-height: 360px;
}

.dashboard-listings {
  display: grid;
  gap: 10px;
}

.dashboard-listing-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto minmax(190px, 0.72fr);
  align-items: center;
  gap: 17px;
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dashboard-listing-row:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand-bright) 34%, var(--line));
  box-shadow: var(--shadow-sm);
}

.dashboard-listing-photo {
  width: 132px;
  height: 100px;
  border-radius: 11px;
  overflow: hidden;
  background: var(--surface-soft);
}

.dashboard-listing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-listing-info {
  min-width: 0;
}

.dashboard-listing-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.promotion-tag {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  display: inline-flex;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.promotion-tag.vip {
  background: var(--gold-soft);
  color: var(--gold);
}

.dashboard-listing-info h3 {
  margin: 8px 0 4px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-listing-info p,
.dashboard-listing-info small {
  margin: 0;
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.dashboard-listing-price {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.dashboard-listing-price strong {
  font-size: 18px;
}

.dashboard-listing-price small {
  color: var(--muted);
  font-size: 8px;
}

.dashboard-listing-actions {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.dashboard-listing-actions button,
.dashboard-listing-actions a,
.history-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
}

.dashboard-listing-actions .promote-action {
  border-color: color-mix(in srgb, var(--gold) 32%, var(--line));
  background: var(--gold-soft);
  color: var(--gold);
}

.dashboard-listing-actions button:hover,
.dashboard-listing-actions a:hover,
.history-actions button:hover {
  border-color: var(--brand-bright);
  color: var(--brand);
}

.dashboard-empty {
  min-height: 190px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--surface);
  text-align: center;
}

.dashboard-empty strong {
  font-size: 14px;
}

.dashboard-empty span {
  color: var(--muted);
  font-size: 10px;
}

.dashboard-subheading {
  margin: 28px 0 12px;
  font-size: 15px;
}

.promotion-price-strip {
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.promotion-price-strip > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 14px;
  background: var(--surface);
}

.promotion-price-strip span {
  grid-row: 1 / 3;
  border-radius: 9px;
  padding: 10px;
  align-self: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
}

.promotion-price-strip > div:first-child span {
  background: var(--gold-soft);
  color: var(--gold);
}

.promotion-price-strip strong {
  font-size: 15px;
}

.promotion-price-strip small {
  color: var(--muted);
  font-size: 9px;
}

.compact-history {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.history-listing-row {
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(150px, 0.6fr) 90px auto;
  align-items: center;
  gap: 13px;
}

.history-listing-row:last-child {
  border-bottom: 0;
}

.history-listing-row > img {
  width: 70px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-soft);
}

.history-listing-row > div:nth-child(2) {
  min-width: 0;
  display: grid;
}

.history-listing-row > div:nth-child(2) strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-listing-row > div:nth-child(2) span,
.history-listing-row time,
.history-reason {
  color: var(--muted);
  font-size: 8px;
}

.history-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.dashboard-orders {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.dashboard-order-row {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 100px 150px 90px;
  align-items: center;
  gap: 14px;
  font-size: 9px;
}

.dashboard-order-row:last-child {
  border-bottom: 0;
}

.dashboard-order-row > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.dashboard-order-row > div strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-order-row > span,
.dashboard-order-row time {
  color: var(--muted);
}

.order-status {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  font-weight: 700;
}

.order-status.paid {
  background: var(--success-soft);
  color: var(--success);
}

.order-status.pending {
  background: var(--gold-soft);
  color: var(--gold);
}

.order-status.cancelled,
.order-status.failed {
  background: var(--danger-soft);
  color: var(--danger);
}

.profile-editor-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 50px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.profile-editor-grid h2 {
  margin: 8px 0;
  font-size: 30px;
}

.profile-editor-grid p {
  font-size: 10px;
}

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

.profile-form .full {
  grid-column: 1 / -1;
}

.promotion-options {
  margin: 22px 0 17px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.promotion-options button {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  background: var(--surface-soft);
  text-align: left;
}

.promotion-options button:hover,
.promotion-options button.selected {
  border-color: var(--brand-bright);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-bright) 12%, transparent);
}

.promotion-options button:first-child:hover,
.promotion-options button:first-child.selected {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 12%, transparent);
}

.promotion-options span {
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
}

.promotion-options button:first-child span {
  color: var(--gold);
}

.promotion-options strong {
  margin-top: 8px;
  font-size: 17px;
}

.promotion-options small {
  color: var(--muted);
  font-size: 9px;
}

.promotion-total {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-soft);
}

.promotion-total span {
  color: var(--muted);
  font-size: 10px;
}

.promotion-total strong {
  font-size: 20px;
}

.payment-security {
  margin: 12px 0;
  color: var(--muted);
  font-size: 9px;
}

#promotion-checkout {
  width: 100%;
}

/* Admin */

.admin-label {
  border-left: 1px solid var(--line);
  padding-left: 17px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-page > main {
  width: min(1180px, calc(100% - 48px));
  margin: 46px auto 80px;
}

.gate {
  max-width: 660px;
  margin: 80px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.gate.compact {
  max-width: none;
  margin: 20px 0;
  padding: 36px;
  box-shadow: none;
}

.gate h1 {
  margin: 8px 0;
  font-size: 36px;
}

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

.admin-intro h1 {
  margin: 8px 0 3px;
  font-size: 40px;
  letter-spacing: -0.045em;
}

.admin-intro p { margin-bottom: 0; font-size: 11px; }

.stats {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--surface);
  color: var(--muted);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.stat:hover {
  transform: translateY(-2px);
  border-color: var(--brand-bright);
  box-shadow: var(--shadow-sm);
}

.stat span { font-size: 10px; font-weight: 700; }
.stat strong { color: var(--ink); font-size: 30px; }

.admin-nav {
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 2px;
  overflow-x: auto;
}

.admin-nav button {
  position: relative;
  min-height: 51px;
  border: 0;
  padding: 0 15px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.admin-nav button::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: -1px;
  left: 15px;
  height: 2px;
  background: transparent;
}

.admin-nav button.selected { color: var(--brand); }
.admin-nav button.selected::after { background: var(--brand-bright); }

.admin-toolbar {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-pills button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.status-pills button.selected {
  border-color: var(--brand-bright);
  background: var(--brand-soft);
  color: var(--brand);
}

.search-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.admin-row {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(230px, 0.72fr);
  align-items: stretch;
  gap: 17px;
  background: var(--surface);
}

.row-image {
  min-height: 132px;
  border: 0;
  border-radius: 11px;
  padding: 0;
  overflow: hidden;
  background: var(--surface-soft);
}

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

.row-info {
  min-width: 0;
  align-self: center;
}

.row-info h3 { margin: 8px 0 5px; font-size: 15px; }

.row-info p,
.row-info small {
  margin: 2px 0;
  color: var(--muted);
  font-size: 9px;
}

.status {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  display: inline-flex;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status.approved { background: var(--success-soft); color: var(--success); }
.status.pending,
.status.draft { background: var(--gold-soft); color: var(--gold); }
.status.rejected,
.status.deleted { background: var(--danger-soft); color: var(--danger); }

.row-controls {
  border-left: 1px solid var(--line);
  padding-left: 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.row-controls > strong { font-size: 20px; }

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.row-actions button {
  min-height: 31px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 9px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
}

.row-actions button.approve {
  border-color: color-mix(in srgb, var(--success) 28%, var(--line));
  background: var(--success-soft);
  color: var(--success);
}

.pagination {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.user-row,
.report-row,
.history-row {
  margin-bottom: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--surface);
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.user-row p,
.user-row small,
.report-row p,
.report-row small,
.history-row span,
.history-row small,
.history-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.user-row > button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface-soft);
  font-size: 9px;
  font-weight: 700;
}

.report-row h3 { margin: 10px 0 4px; }
.report-row .row-actions { margin-top: 12px; justify-content: flex-start; }

.history-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(120px, 0.6fr) auto;
  align-items: center;
  gap: 10px 20px;
}

.history-row p { grid-column: 1 / -1; }

.review-main {
  width: 100%;
  max-height: 490px;
  border-radius: var(--radius);
  object-fit: cover;
}

.gallery-thumbs,
.property-thumbs {
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.gallery-thumbs button {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: var(--surface-soft);
}

.gallery-thumbs img,
.property-thumbs img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.promotion-fields {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--surface-soft);
}

.promotion-fields p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 9px;
}

.admin-section-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-intro-actions,
.admin-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.business-stats > button {
  min-height: 142px;
  border: 1px solid color-mix(in srgb, var(--brand-bright) 20%, var(--line));
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--brand-soft) 50%, var(--surface)));
  color: var(--ink);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.business-stats > button:hover {
  transform: translateY(-2px);
  border-color: var(--brand-bright);
  box-shadow: var(--shadow-sm);
}

.business-stats span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.business-stats strong {
  margin: auto 0 2px;
  color: var(--brand);
  font-size: clamp(25px, 3vw, 35px);
  letter-spacing: -0.04em;
}

.business-stats small {
  color: var(--muted);
  font-size: 8px;
}

.admin-panel-heading {
  margin: 28px 0 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.admin-panel-heading h2 {
  margin: 6px 0 2px;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.admin-panel-heading p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.admin-user-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.admin-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 15px;
  font-weight: 850;
}

.user-state {
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 8px;
  font-weight: 800;
}

.user-state.blocked {
  background: var(--danger-soft);
  color: var(--danger);
}

.admin-order-filters {
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.admin-order-filters button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.admin-order-filters button.selected {
  border-color: var(--brand-bright);
  background: var(--brand-soft);
  color: var(--brand);
}

.admin-order-row {
  margin-bottom: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 17px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 120px 115px 150px minmax(170px, auto);
  align-items: center;
  gap: 17px;
  background: var(--surface);
}

.admin-order-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-order-main > div,
.admin-order-row > div:not(.row-actions) {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-order-row strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-order-row span:not(.promotion-tag):not(.order-status),
.admin-order-row small {
  color: var(--muted);
  font-size: 8px;
}

.admin-order-row .plain {
  min-height: 31px;
  padding: 0 9px;
  font-size: 8px;
}

.cms-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: 16px;
}

.cms-controls,
.ad-editor {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 23px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.cms-controls label,
.ad-editor > label {
  border-radius: 10px;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.cms-controls label.selected {
  padding: 10px;
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-bright) 35%, transparent);
}

.cms-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.cms-price-grid label {
  position: relative;
}

.cms-price-grid label span {
  position: absolute;
  right: 12px;
  bottom: 14px;
  color: var(--muted);
  font-size: 8px;
}

.cms-price-grid input { padding-right: 45px; }

.cms-tip {
  margin: 0;
  border-radius: 9px;
  padding: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 9px;
  line-height: 1.6;
}

.live-preview-shell {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: var(--shadow-md);
}

.live-preview-bar {
  height: 45px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: #ffffff;
}

.live-preview-bar span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 750;
}

.live-preview-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #47d47e;
  box-shadow: 0 0 0 4px rgba(71, 212, 126, 0.14);
}

.live-preview-bar small { color: rgba(255,255,255,.58); font-size: 8px; }

#site-preview {
  width: 100%;
  height: 690px;
  border: 0;
  display: block;
  background: var(--surface);
}

.live-preview-shell {
  min-height: 735px;
}

.admin-preview-editable {
  cursor: pointer !important;
  outline: 3px dashed rgba(30, 128, 84, 0.72) !important;
  outline-offset: 5px !important;
}

.admin-preview-editable:hover {
  outline-style: solid !important;
  box-shadow: 0 0 0 8px rgba(30, 128, 84, 0.12) !important;
}

.ads-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  align-items: start;
  gap: 16px;
}

.ads-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.admin-ad-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  opacity: 0.7;
}

.admin-ad-card.enabled { opacity: 1; }

.admin-ad-card > img,
.ad-card-placeholder {
  width: 116px;
  height: 82px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--brand-soft);
}

.ad-card-placeholder {
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 17px;
  font-weight: 850;
}

.admin-ad-card h3 { margin: 3px 0; font-size: 13px; }
.admin-ad-card p,
.admin-ad-card small,
.admin-ad-card span { margin: 0; color: var(--muted); font-size: 8px; }

.ad-editor { position: sticky; top: 92px; }

.ad-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ad-editor-heading h3 { margin: 5px 0 0; font-size: 18px; }

.compact-button { min-height: 34px; padding: 0 9px; font-size: 8px; }

.toggle-label {
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 9px !important;
  background: var(--surface-soft);
}

.toggle-label input { width: 17px; height: 17px; }
.toggle-label span { font-size: 9px; font-weight: 700; }

.ad-mini-preview {
  min-height: 150px;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: var(--brand);
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.ad-mini-preview span { font-size: 7px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.ad-mini-preview strong { margin: 4px 0; font-size: 16px; }
.ad-mini-preview small { font-size: 8px; opacity: .75; }

/* Property detail page */

.property {
  width: min(1180px, calc(100% - 48px));
  margin: 35px auto 80px;
}

.property > .plain {
  min-height: 40px;
  margin-bottom: 18px;
}

.availability-banner {
  margin-bottom: 17px;
  border: 1px solid color-mix(in srgb, var(--danger) 26%, var(--line));
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11px;
  font-weight: 750;
}

.property-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(350px, 0.82fr);
  align-items: start;
  gap: 28px;
}

.property-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--surface-soft);
  box-shadow: var(--shadow-sm);
}

.property-gallery { min-width: 0; }
.property-gallery-stage { position: relative; touch-action: pan-y pinch-zoom; }
.property-gallery-open { width: 100%; display: block; border: 0; padding: 0; border-radius: var(--radius-lg); background: var(--surface-soft); color: var(--ink); overflow: hidden; cursor: zoom-in; }
.property-gallery-open:disabled { cursor: default; }
.property-gallery-open .property-main { display: block; }
.gallery-control { width: 42px; height: 42px; padding: 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.gallery-control svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-control:focus-visible,.property-gallery-open:focus-visible,.property-thumbs button:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; }
.property-gallery-stage > .gallery-control { position: absolute; top: calc(50% - 21px); }
.property-gallery-stage > [data-gallery-direction="-1"] { left: 12px; }
.property-gallery-stage > [data-gallery-direction="1"] { right: 12px; }
.property-gallery-counter { position: absolute; bottom: 14px; right: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 12px; pointer-events: none; }
.property-thumbs button { aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--surface-soft); }
.property-thumbs button[aria-pressed="true"] { border-color: var(--brand-bright); }
.property-thumbs button img { display: block; border-radius: 6px; }
body.gallery-open { overflow: hidden; }
dialog.photo-viewer { width: min(1280px, calc(100% - 20px)); height: min(900px, calc(100dvh - 20px)); max-width: none; max-height: calc(100dvh - 20px); padding: 14px; border-radius: 16px; overflow: hidden; background: var(--surface); color: var(--ink); }
.photo-viewer[open] { display: flex; flex-direction: column; gap: 12px; }
.photo-viewer-toolbar { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.photo-viewer-toolbar strong { margin-right: auto; font-size: 14px; }
.photo-viewer-toolbar [data-gallery-counter] { color: var(--muted); font-size: 13px; }
.photo-viewer-toolbar [aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand-bright); }
.photo-viewer-stage { min-height: 0; flex: 1; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: var(--page); touch-action: pan-y pinch-zoom; }
.photo-viewer-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.photo-viewer-stage.is-zoomed { display: block; overflow: auto; touch-action: pan-x pan-y pinch-zoom; }
.photo-viewer-stage.is-zoomed .photo-viewer-image { width: auto; min-width: 100%; max-width: none; height: auto; min-height: 100%; object-fit: contain; cursor: zoom-out; }
.photo-viewer-navigation { display: flex; justify-content: center; gap: 14px; flex-shrink: 0; }
@media(max-width:600px) {
  .property-gallery .property-thumbs { display: flex; overflow-x: auto; padding-bottom: 5px; }
  .property-gallery .property-thumbs button { flex: 0 0 76px; }
  .property-gallery-stage > .gallery-control { width: 36px; height: 36px; padding: 7px; }
  dialog.photo-viewer { padding: 10px; }
  .photo-viewer-toolbar strong { font-size: 11px; }
}

.property-info {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.property-info h1 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.045em;
}

.property-info .location {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
}

.property-info > .price {
  color: var(--brand);
  font-size: 34px;
  font-weight: 820;
  letter-spacing: -0.05em;
}

.property-specs {
  margin: 23px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.property-specs span {
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 10px;
}

.seller-panel {
  margin: 23px 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: var(--surface-soft);
}

.seller-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
}

.seller-copy {
  min-width: 0;
  display: grid;
}

.seller-copy > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.seller-copy > strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-panel .plain {
  min-height: 36px;
  padding-inline: 10px;
  font-size: 9px;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rating-stars svg {
  width: 14px;
  height: 14px;
  fill: transparent;
  stroke: var(--gold);
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.rating-stars svg.filled {
  fill: var(--gold);
}

.rating-stars small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 8px;
}

.rating-picker {
  margin: 18px 0 22px;
  display: flex;
  gap: 7px;
}

.rating-picker button {
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--line-strong);
  font-family: Arial, sans-serif;
  font-size: 27px;
}

.rating-picker button:hover,
.rating-picker button.selected {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
}

#rating-submit {
  width: 100%;
  margin-top: 15px;
}

.property-info h2 {
  margin: 25px 0 10px;
  font-size: 16px;
}

.description {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-line;
}

.property-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.property-actions .call-action { grid-column: 1 / -1; }
.property-actions .plain { min-height: 42px; font-size: 10px; }

/* Information, help and legal pages */

.info-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 4%, rgba(40, 122, 88, 0.09), transparent 31rem),
    var(--page);
}

.info-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  backdrop-filter: blur(18px);
}

.info-header-shell {
  width: min(var(--container), calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.info-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.info-header-actions select,
.info-header-actions .plain {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.info-header-actions .theme-toggle { width: 42px; padding: 0; }

.info-main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 96px;
}

.info-hero {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  border-radius: var(--radius-xl);
  padding: 62px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    radial-gradient(circle at 84% 22%, rgba(116, 203, 158, 0.27), transparent 19rem),
    linear-gradient(135deg, #0d3425 0%, #174c37 58%, #266b4e 100%);
  box-shadow: var(--shadow-lg);
}

.info-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -135px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(255,255,255,.035), 0 0 0 110px rgba(255,255,255,.025);
}

.info-hero > * { position: relative; z-index: 1; }
.info-hero .eyebrow { color: #9ed9bc; }

.info-hero h1 {
  max-width: 780px;
  margin: 11px 0 12px;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.13;
  letter-spacing: -0.045em;
}

.info-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.77);
  font-size: 14px;
  line-height: 1.8;
}

.info-hero small {
  margin-top: 20px;
  color: rgba(255,255,255,.52);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .035em;
}

.info-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.info-navigation {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px;
  display: grid;
  gap: 4px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.info-navigation a {
  position: relative;
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.info-navigation a:hover { color: var(--ink); transform: translateX(2px); }

.info-navigation a.selected {
  background: var(--brand-soft);
  color: var(--brand-bright);
}

.info-navigation a.selected::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 3px;
  height: 18px;
  border-radius: 8px;
  background: var(--brand-bright);
  transform: translateY(-50%);
}

.info-content { display: grid; gap: 13px; }

.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 20px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(22, 45, 32, .045);
}

.info-card > span {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-bright);
  font-size: 10px;
  font-weight: 800;
}

.info-card h2 {
  margin: 2px 0 8px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.info-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.85;
}

.info-footer .footer-shell { grid-template-columns: 1.3fr .9fr .8fr 1fr; }

@media (max-width: 1000px) {
  .footer-shell,
  .info-footer .footer-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .info-header-shell,
  .info-main { width: min(100% - 30px, var(--container)); }
  .info-header-shell { min-height: 68px; gap: 12px; }
  .info-header-actions { gap: 6px; }
  .info-header-actions .plain { padding-inline: 10px; }
  .info-header-actions #info-home-link { display: none; }
  .info-main { padding: 28px 0 68px; }
  .info-hero { min-height: 255px; padding: 34px 26px; border-radius: 24px; }
  .info-layout { grid-template-columns: 1fr; }
  .info-navigation {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .info-navigation a { text-align: center; }
  .info-navigation a:hover { transform: none; }
  .info-navigation a.selected::before { display: none; }
  .info-card { padding: 24px 20px; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
  .info-card > span { width: 36px; height: 36px; }
  .info-footer .footer-shell { grid-template-columns: 1fr 1fr; }
  .info-footer .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .contact-methods { grid-template-columns: 1fr; }
  .contact-method { padding: 21px; }
  .contact-help { padding: 23px; }
  .info-header-actions select { max-width: 112px; }
  .info-navigation { grid-template-columns: 1fr; }
  .info-card { grid-template-columns: 1fr; }
  .info-card > span { width: auto; justify-self: start; padding-inline: 12px; }
  .info-footer .footer-shell { grid-template-columns: 1fr; }
  .info-footer .footer-brand { grid-column: auto; }
}

/* Responsive */

@media (max-width: 1180px) {
  .header-shell,
  body.auth-page > header,
  body.admin-page > header,
  body.dashboard-page > header,
  body.listing-page > header,
  .home-page > main,
  .footer-shell,
  .admin-page > main,
  .dashboard-shell,
  .property {
    width: min(100% - 36px, var(--container));
  }

  .header-shell { gap: 15px; }
  .main-nav { gap: 0; }
  .nav { padding-inline: 9px; }
  .header-icon-button span,
  .auth-register { display: none; }
  .hero-copy { padding-inline: 42px; }

  #search { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .search-panel .filter-button,
  .search-panel .search-button { grid-column: span 2; }
  #extra-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .site-header { position: sticky; }

  .header-shell {
    min-height: 70px;
    flex-wrap: wrap;
    gap: 0;
  }

  .menu-toggle { display: grid; }

  .main-nav,
  .site-header .header-actions {
    width: calc(100% + 36px);
    margin-right: -18px;
    margin-left: -18px;
    display: none;
    background: var(--surface);
  }

  body.menu-open .main-nav,
  body.menu-open .site-header .header-actions { display: flex; }

  .main-nav {
    order: 3;
    border-top: 1px solid var(--line);
    padding: 12px 18px 4px;
    gap: 5px;
  }

  .main-nav .nav {
    flex: 1;
    background: var(--surface-soft);
  }

  .site-header .header-actions {
    order: 4;
    max-height: calc(100vh - 130px);
    padding: 8px 18px 18px;
    flex-wrap: wrap;
    overflow-y: auto;
  }

  .site-header .header-actions select {
    flex: 1;
    border: 1px solid var(--line);
    background: var(--surface-soft);
  }

  .site-header .header-actions .header-icon-button span,
  .site-header .header-actions .auth-register { display: inline-flex; }
  .site-header .header-actions .header-add { width: 100%; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 520px;
    padding: 64px 48px 48px;
  }

  .hero-picture {
    min-height: 500px;
    margin: 0 10px 10px;
    border-radius: 18px 18px 23px 23px;
  }

  .cards,
  .standard-section > .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .promotion-section > .cards {
    grid-template-columns: none;
    grid-auto-columns: calc((100% - 32px) / 3);
  }

  .property-grid { grid-template-columns: 1fr; }
  .property-info { position: static; }

  .dashboard-listing-row {
    grid-template-columns: 120px minmax(0, 1fr) auto;
  }

  .dashboard-listing-photo {
    width: 120px;
    height: 92px;
  }

  .dashboard-listing-actions {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 11px;
    padding-left: 0;
    justify-content: flex-start;
  }

  .dashboard-order-row {
    grid-template-columns: minmax(200px, 1fr) 120px 90px 130px;
  }

  .dashboard-order-row time {
    display: none;
  }

  .admin-row {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .row-controls {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 12px;
    padding-left: 0;
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 720px) {
  .header-shell,
  body.auth-page > header,
  body.admin-page > header,
  body.dashboard-page > header,
  body.listing-page > header,
  .home-page > main,
  .footer-shell,
  .admin-page > main,
  .dashboard-shell,
  .property {
    width: min(100% - 28px, var(--container));
  }

  body.auth-page > header,
  body.admin-page > header,
  body.dashboard-page > header,
  body.listing-page > header {
    min-height: 68px;
    gap: 9px;
  }

  body.auth-page > header .header-actions,
  body.admin-page > header .header-actions,
  body.dashboard-page > header .header-actions,
  body.listing-page > header .header-actions { gap: 5px; }

  body.auth-page > header .header-actions select,
  body.admin-page > header .header-actions select,
  body.dashboard-page > header .header-actions select,
  body.listing-page > header .header-actions select {
    width: 88px;
    min-width: 0;
  }

  .brand-symbol { width: 34px; height: 34px; }
  .brand-name { font-size: 17px; }

  .admin-label,
  .dashboard-header-label,
  .admin-page > header .header-actions .plain,
  .dashboard-page > header .dashboard-home-link { display: none; }

  .home-page > main { margin-top: 14px; }
  .hero { border-radius: 22px; }

  .hero-copy {
    min-height: 480px;
    padding: 48px 25px 35px;
  }

  .hero-kicker {
    margin-bottom: 18px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: clamp(35px, 10.8vw, 49px);
    line-height: 1.23;
  }

  .hero-copy > p {
    margin-top: 20px;
    font-size: 13px;
  }

  .hero-actions {
    width: 100%;
    margin-top: 25px;
    display: grid;
  }

  .hero-actions > * { width: 100%; }

  .hero-features {
    padding-top: 38px;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .hero-features span {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    padding-top: 9px;
  }

  .hero-features b { margin: 0; }

  .hero-picture {
    min-height: 390px;
    margin: 0 7px 7px;
  }

  .hero-image-label { top: 16px; right: 16px; }

  .hero-info-card {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 17px;
  }

  .search-panel {
    margin-top: 14px;
    border-radius: 18px;
    padding: 0 15px 18px;
  }

  .search-tabs {
    min-height: auto;
    padding: 8px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .search-tabs button {
    min-height: 40px;
    border-radius: 8px;
    padding: 0 5px;
    background: var(--surface-soft);
    font-size: 10px;
  }

  .search-tabs button::after,
  .search-tabs > span { display: none; }
  .search-tabs button.selected { background: var(--brand-soft); }

  #search,
  #extra-fields { grid-template-columns: 1fr; }

  .search-panel .filter-button,
  .search-panel .search-button { grid-column: auto; }

  .quick-types { align-items: flex-start; }
  .quick-types > span { width: 100%; }
  .listings { margin-top: 54px; }

  .promotion-section {
    border-radius: 22px;
    padding: 23px 14px 15px;
  }

  .section-heading {
    margin-bottom: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .section-heading h2 { font-size: 27px; }
  .section-index { display: none; }
  .listing-controls { width: 100%; }
  .listing-controls > * { flex: 1; }
  .listing-controls select { min-width: 0; }

  .cards,
  .standard-section > .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .promotion-section > .cards {
    grid-template-columns: none;
    grid-auto-columns: min(84vw, 320px);
  }

  .carousel-heading-actions {
    width: 100%;
    align-items: center;
    justify-content: flex-end;
  }

  .card-body { min-height: 265px; }

  .sell-banner {
    margin: 56px 0;
    border-radius: 22px;
    padding: 33px 24px;
    align-items: stretch;
    flex-direction: column;
  }

  .sell-banner .primary { width: 100%; }

  .footer-shell {
    padding-top: 42px;
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .footer-brand,
  .footer-shell > small { grid-column: 1 / -1; }

  dialog {
    max-height: 92vh;
    border-radius: 18px;
    padding: 22px 17px;
  }

  .add-form { grid-template-columns: 1fr; }
  .add-form .full { grid-column: auto; }
  .photo-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #picker-map { height: 360px; }

  .auth-box {
    margin: 28px auto 50px;
    border-radius: 22px;
  }

  .auth-names,
  .social-buttons { grid-template-columns: 1fr; }

  .dashboard-shell {
    margin-top: 18px;
  }

  .dashboard-welcome {
    grid-template-columns: 1fr;
    border-radius: 22px;
    padding: 28px 22px;
  }

  .profile-avatar {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
    border-radius: 19px;
    font-size: 25px;
  }

  .profile-summary h1 {
    font-size: 28px;
  }

  .dashboard-welcome-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-nav {
    top: 74px;
    margin-block: 14px 25px;
  }

  .dashboard-listing-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 11px;
  }

  .dashboard-listing-photo {
    width: 92px;
    height: 78px;
  }

  .dashboard-listing-price {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    align-items: flex-start;
  }

  .promotion-price-strip,
  .profile-editor-grid {
    grid-template-columns: 1fr;
  }

  .profile-editor-grid {
    gap: 25px;
    border-radius: 18px;
  }

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

  .profile-form .full {
    grid-column: auto;
  }

  .history-listing-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .history-listing-row > img {
    width: 58px;
    height: 48px;
  }

  .history-reason,
  .history-listing-row time {
    display: none;
  }

  .history-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .dashboard-order-row {
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
  }

  .dashboard-order-row > span:nth-child(2) {
    display: none;
  }

  .promotion-options {
    grid-template-columns: 1fr;
  }

  .ad-slot.has-ad > a,
  .ad-slot.has-ad > div {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .admin-page > main { margin-top: 30px; }

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

  .admin-intro h1 { font-size: 32px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 94px; }

  .admin-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 11px;
  }

  .row-image { min-height: 100px; }

  .row-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .row-actions { justify-content: flex-start; }
  .history-row { grid-template-columns: 1fr; }
  .history-row p { grid-column: auto; }
  .property { margin-top: 22px; }
  .property-main { border-radius: 17px; }
  .property-info { border-radius: 18px; }
  .property-actions { grid-template-columns: 1fr; }
  .property-actions .call-action { grid-column: auto; }
  #listing-map { height: 480px; }
}

@media (max-width: 420px) {
  .header-icon-button span,
  .site-header .header-actions .header-icon-button span { display: none; }
  .hero-copy { padding-inline: 21px; }
  .hero h1 { font-size: 35px; }

  .listing-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-shell { grid-template-columns: 1fr; }
  .footer-brand,
  .footer-shell > small { grid-column: auto; }
  .stats { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 1fr; }
  .row-image { min-height: 190px; }
  .promotion-fields { grid-template-columns: 1fr; }
  .promotion-fields p { grid-column: auto; }
}

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

  .admin-order-row {
    grid-template-columns: minmax(240px, 1fr) 110px 100px 140px;
  }

  .admin-order-row > .row-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .cms-workspace,
  .ads-workspace {
    grid-template-columns: 1fr;
  }

  .live-preview-shell,
  .ad-editor {
    position: static;
  }
}

@media (max-width: 720px) {
  .admin-intro-actions,
  .admin-panel-actions {
    width: 100%;
  }

  .admin-intro-actions > *,
  .admin-panel-actions > * {
    flex: 1;
  }

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

  .business-stats > button { min-height: 118px; padding: 15px; }

  .admin-user-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .admin-user-card > button {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .admin-order-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .admin-order-main,
  .admin-order-row > .row-actions {
    grid-column: 1 / -1;
  }

  .admin-order-row > .row-actions { justify-content: flex-start; }
  .cms-price-grid { grid-template-columns: 1fr; }
  .live-preview-shell { min-height: 575px; }
  #site-preview { height: 530px; }

  .admin-ad-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .admin-ad-card > img,
  .ad-card-placeholder {
    width: 84px;
    height: 70px;
  }

  .admin-ad-card > .row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .business-stats { grid-template-columns: 1fr; }
  .business-stats > button { min-height: 105px; }
  .admin-intro-actions,
  .admin-panel-actions { align-items: stretch; flex-direction: column; }
  .admin-order-row { grid-template-columns: 1fr; }
  .admin-order-main,
  .admin-order-row > .row-actions { grid-column: auto; }
  .cms-controls,
  .ad-editor { padding: 17px; }
  .live-preview-shell { min-height: 525px; }
  #site-preview { height: 480px; }
}

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