/* MyRoomiz — Airbnb-inspired landing page
   Font: Funnel Display, loaded via Google Fonts in index.html <head> */

:root {
  --brand: #FF6A2C;
  --brand-soft: #FFF1E8;
  --brand-deep: #E54E0F;
  --ink: #0F1216;
  --ink-2: #1A1F26;
  --muted: #5B6571;
  --muted-2: #8A929C;
  --line: #E7E9ED;
  --bg: #FFFFFF;
  --bg-soft: #F6F7F9;
  --bg-warm: #FBF6F2;
  --shadow-sm: 0 1px 2px rgba(15, 18, 22, 0.04), 0 1px 1px rgba(15, 18, 22, 0.03);
  --shadow-md: 0 8px 24px -8px rgba(15, 18, 22, 0.10), 0 2px 6px rgba(15, 18, 22, 0.04);
  --shadow-lg: 0 24px 48px -16px rgba(15, 18, 22, 0.18);
  --shadow-pill: 0 3px 12px rgba(15,18,22,0.08), 0 1px 2px rgba(15,18,22,0.06);
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }
[hidden] { display: none !important; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Funnel Display', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}
h1, h2, h3, h4, h5 {
  font-family: 'Funnel Display', system-ui, sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0; color: var(--muted); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 64px);
  padding-right: clamp(20px, 5vw, 64px);
}
@media (max-width: 1024px) {
  .container { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 600px) {
  .container { padding-left: 16px; padding-right: 16px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px;
  font-family: 'Funnel Display', sans-serif;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: white; box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-outline { background: white; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost.dark { color: white; border-color: rgba(255,255,255,0.35); }
.btn-ghost.dark:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15.5px; }

/* ============ Top bar (Airbnb-style condensed search pill in the nav) ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  height: 84px;
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 28px; width: auto; }

.search-widget {
  display: flex; align-items: center;
  flex: 1;
  min-width: 0;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.sw-fields { display: flex; align-items: center; gap: 10px; width: 100%; }
.sw-trigger {
  display: none;
  align-items: center; gap: 10px;
  width: 100%; height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  text-align: left;
}
.sw-trigger svg { width: 17px; height: 17px; color: var(--muted-2); flex-shrink: 0; }
.sw-trigger span {
  font-size: 14px; font-weight: 500; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sw-field-wrap { position: relative; flex: 1; min-width: 0; }
.sw-field-wrap.sw-filters-wrap { flex: none; }
.sw-field {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  height: 46px; padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  transition: border-color .15s ease;
}
.sw-field:focus-within { border-color: var(--ink); }
.sw-field svg { width: 16px; height: 16px; color: var(--muted-2); flex-shrink: 0; }
.sw-field input {
  border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 14px; color: var(--ink);
  width: 100%; min-width: 0;
}
.sw-field input::placeholder { color: var(--muted-2); }
.sw-filters {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: white; color: var(--ink);
  font-weight: 600; font-size: 14px;
  flex-shrink: 0;
  transition: border-color .15s ease;
}
.sw-filters:hover { border-color: var(--ink); }
.sw-filters svg { width: 16px; height: 16px; }
.sw-filters.has-active { border-color: var(--ink); background: var(--brand-soft); }
.filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--ink); color: white;
  font-size: 11px; font-weight: 700;
}

.sw-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: white; border: 1px solid var(--line); border-radius: 16px;
  padding: 10px; z-index: 80;
  max-height: 340px; overflow-y: auto;
}
.sw-dd-section { padding: 6px 4px; }
.sw-dd-section + .sw-dd-section { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }
.sw-dd-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); padding: 4px 10px 6px;
}
.sw-dd-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 9px 10px; border-radius: 10px; border: 0;
  background: none; font-family: inherit; font-size: 14px;
  color: var(--ink); cursor: pointer;
}
.sw-dd-item:hover { background: var(--bg-soft); }
.sw-dd-item svg { width: 15px; height: 15px; color: var(--muted-2); flex-shrink: 0; }

.filters-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 320px; background: white; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg, 0 20px 40px -12px rgba(15,18,22,0.18));
  padding: 20px; z-index: 80;
}
.filters-panel h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); margin: 0 0 10px;
}
.filters-panel h4:not(:first-child) { margin-top: 18px; }
.filter-check-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 2px; font-size: 14px; color: var(--ink-2); cursor: pointer;
}
.filter-check-row input { accent-color: var(--brand); width: 16px; height: 16px; flex-shrink: 0; }
.filter-price-row { display: flex; align-items: center; gap: 10px; }
.filter-price-row input {
  flex: 1; min-width: 0; height: 38px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0 10px; font-family: inherit; font-size: 13px; outline: none;
}
.filter-price-row input:focus { border-color: var(--ink); }
.filter-actions { display: flex; gap: 10px; margin-top: 18px; }
.filter-actions .btn { flex: 1; height: 40px; padding: 0; font-size: 13px; }
.sw-submit {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 999px; border: 0;
  background: var(--brand); color: white;
  font-weight: 700; font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--brand) 70%, transparent);
  transition: background .15s ease;
}
.sw-submit:hover { background: var(--brand-deep); }
.sw-submit svg { width: 16px; height: 16px; }

.topbar-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Minimal wizard header (list-property / list-roommate) */
.wz-minimal-nav .search-widget,
.wz-minimal-nav .list-link,
.wz-minimal-nav .globe-btn,
.wz-minimal-nav .user-pill,
.wz-minimal-nav .account-cluster { display: none !important; }
.wz-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.wz-header-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: white;
  font-family: inherit; font-weight: 600; font-size: 13.5px; color: var(--ink);
  cursor: pointer; transition: border-color .15s ease;
}
.wz-header-btn:hover { border-color: var(--ink); }
.wz-help-mark { display: none; font-weight: 800; }
@media (max-width: 600px) {
  .wz-help-btn { width: 38px; height: 38px; padding: 0; flex-shrink: 0; }
  .wz-help-label { display: none; }
  .wz-help-mark { display: inline-flex; align-items: center; justify-content: center; }
  #wzSaveExitBtn { padding: 0 14px; font-size: 13px; }
}
.list-link { font-size: 14.5px; font-weight: 600; padding: 0 14px; height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
.list-link:hover { background: var(--bg-soft); }
.globe-btn {
  width: 44px; height: 44px;
  border-radius: 999px; border: 0; background: transparent;
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.globe-btn:hover { background: var(--bg-soft); }
.globe-btn svg { width: 20px; height: 20px; }
.user-pill {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 4px 6px 4px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font-family: inherit;
}
.user-pill span { font-size: 14px; font-weight: 600; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--ink); color: white;
  display: grid; place-items: center;
  font-family: 'Funnel Display'; font-weight: 700; font-size: 13px;
}
.user-avatar svg { width: 16px; height: 16px; }

/* ============ Account cluster (logged-in header state) ============ */
.account-cluster { position: relative; display: flex; align-items: center; gap: 10px; }
.account-avatar {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--brand); color: white;
  border: 0; cursor: pointer;
  display: grid; place-items: center;
  font-family: 'Funnel Display'; font-weight: 700; font-size: 15px;
  overflow: hidden;
}
.account-avatar-img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; }
.account-menu-btn {
  width: 44px; height: 44px; border-radius: 999px;
  background: white; color: var(--ink);
  border: 1px solid var(--line); cursor: pointer;
  display: grid; place-items: center;
}

.account-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 260px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 60;
}
.ad-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.ad-avatar {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--brand); color: white;
  display: grid; place-items: center; flex-shrink: 0;
  font-family: 'Funnel Display'; font-weight: 700; font-size: 14px;
  overflow: hidden;
}
.ad-name { font-family: 'Funnel Display'; font-weight: 700; font-size: 14px; color: var(--ink); }
.ad-email { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.ad-item {
  display: block; width: 100%; text-align: left;
  padding: 10px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  border: 0; background: none; font-family: inherit; cursor: pointer;
}
.ad-item:hover { background: var(--bg-soft); }
.ad-logout { color: var(--brand-deep); font-weight: 600; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 12px; }
.ad-mobile-close { display: none; }
.ad-list-btn { display: none; }

/* Phones: the account menu becomes a full-screen sheet instead of a small
   anchored dropdown, replacing the old bottom quick-nav bar entirely. */
@media (max-width: 767px) {
  .account-dropdown {
    /* .topbar's backdrop-filter creates a new containing block for
       fixed-position descendants, so percentage/inset sizing collapses to
       the header's own height instead of the viewport — use vw/vh instead. */
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    border: 0; border-radius: 0; box-shadow: none;
    padding: 20px 20px 28px;
    display: flex; flex-direction: column;
    overflow-y: auto; z-index: 200;
  }
  .ad-mobile-close {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-bottom: 8px; align-self: flex-end;
    border-radius: 999px; border: 1px solid var(--line); background: white; color: var(--ink);
    cursor: pointer; flex-shrink: 0;
  }
  .ad-header { padding: 8px 10px 18px; }
  .ad-avatar { width: 52px; height: 52px; font-size: 17px; }
  .ad-name { font-size: 17px; }
  .ad-email { font-size: 13.5px; }
  .ad-item { padding: 15px 10px; font-size: 16px; }
  .ad-logout { margin-top: 8px; }
  .ad-list-btn { display: flex; align-items: center; justify-content: center; margin-top: 20px; height: 50px; font-size: 15px; }
}

/* ============ Auth modal ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,18,22,0.55);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 24px;
}
.auth-modal {
  position: relative;
  width: min(420px, 100%);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 32px 32px;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 999px;
  border: 0; background: var(--bg-soft); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.modal-close:hover { background: var(--line); }
.auth-brand { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-mark { height: 30px; width: auto; }
.auth-title { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 22px; }
.auth-sub { text-align: center; font-size: 14px; color: var(--muted); margin: -10px 0 20px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 6px; }
.auth-field input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  outline: none; box-sizing: border-box;
}
.auth-field input:focus { border-color: var(--ink); }
.auth-field textarea {
  width: 100%; padding: 12px 14px; resize: vertical; min-height: 100px;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 14.5px; line-height: 1.5; color: var(--ink);
  outline: none; box-sizing: border-box;
}
.auth-field textarea:focus { border-color: var(--ink); }
.auth-continue { width: 100%; height: 48px; font-size: 15px; }

/* ============ Message host modal ============ */
.msg-host-modal {
  position: relative;
  width: min(420px, 100%);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 32px 32px;
}
.msg-host-header { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.msg-host-avatar {
  width: 48px; height: 48px; border-radius: 999px; flex-shrink: 0;
  background: var(--brand); color: white;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.msg-host-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.msg-host-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.msg-host-success-icon {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
#msgHostSuccess { text-align: center; }
#msgHostSuccess .auth-title { margin-bottom: 6px; }
#msgHostSuccess .auth-sub { margin: 0 0 24px; }

/* ============ Delete conversation confirm modal ============ */
.msg-delete-modal { text-align: center; }
.msg-delete-icon {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 999px;
  background: #FEF2F2; color: #EF4444;
  display: grid; place-items: center;
}
.msg-delete-actions { display: flex; gap: 10px; }
.msg-delete-actions .btn { flex: 1; }
.msg-delete-btn { background: #EF4444; color: white; border: 0; }
.msg-delete-btn:hover { background: #DC2626; }
.msg-delete-icon.logout-icon { background: var(--bg-soft); color: var(--ink-2); }

/* ============ Share property modal ============ */
.share-modal { width: min(440px, 100%); }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.share-option {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--ink-2); font-size: 13px; font-weight: 600;
}
.share-option:hover { border-color: var(--ink); }
.share-option-icon { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; color: white; flex-shrink: 0; }
.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-x { background: #000; }
.share-tg { background: #26A5E4; }
.share-li { background: #0A66C2; }
.share-email { background: var(--ink-2); }
.share-copy-row { display: flex; gap: 8px; }
.share-copy-row input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft);
  font-family: inherit; font-size: 13.5px; color: var(--ink-2);
}
.share-copy-row .btn { display: flex; align-items: center; gap: 6px; padding: 0 18px; border-radius: 10px; white-space: nowrap; height: 46px; }

/* ============ Verified host modal ============ */
.verify-modal { width: min(460px, 100%); }
.verify-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #34D058, #1A8F3C);
  border-radius: 20px; padding: 26px 22px; color: white; margin-bottom: 22px;
}
.verify-card-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.verify-card-name { font-family: 'Funnel Display'; font-size: 21px; font-weight: 800; }
.verify-card-since { font-size: 13.5px; color: rgba(255,255,255,0.78); margin-top: 4px; }
.verify-card-avatar {
  width: 60px; height: 60px; border-radius: 14px; flex-shrink: 0;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3);
  color: white; display: grid; place-items: center; font-weight: 700; font-size: 18px;
}
.verify-card-quote { margin-top: 26px; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,0.94); max-width: 72%; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--muted); font-size: 13px;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-social {
  width: 100%; height: 48px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: white; font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink);
  cursor: pointer; margin-bottom: 10px;
}
.auth-social:hover { background: var(--bg-soft); }
.auth-fine { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 18px; line-height: 1.5; }
.auth-back {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; font-family: inherit;
  font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; margin-bottom: 14px;
}
.auth-back:hover { color: var(--ink); }
.auth-hint {
  font-size: 12.5px; color: var(--brand-deep);
  background: var(--brand-soft); border-radius: 8px;
  padding: 10px 12px; margin: -6px 0 16px;
}
.auth-resend {
  display: block; width: 100%; text-align: center;
  border: 0; background: none; font-family: inherit;
  font-size: 13.5px; font-weight: 600; color: var(--brand);
  cursor: pointer; margin-top: 14px;
}
.auth-resend:hover { text-decoration: underline; }

/* ============ Language / region / currency modal ============ */
.region-modal {
  position: relative;
  width: min(680px, 100%);
  height: min(600px, 82vh);
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.region-tabs {
  display: flex; gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 40px 32px 0;
  flex-shrink: 0;
}
.region-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 32px 32px;
}
.region-tab {
  padding-bottom: 14px;
  font-size: 15px; font-weight: 600; color: var(--muted);
  border: 0; background: none; cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
}
.region-tab:hover { color: var(--ink); }
.region-tab.active { color: var(--ink); border-color: var(--ink); }

.translate-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 32px;
  gap: 20px;
}
.translate-row h4 { font-size: 16px; font-weight: 700; }
.translate-row p { font-size: 13.5px; margin-top: 4px; max-width: 46ch; }
.toggle-switch {
  width: 48px; height: 28px; border-radius: 999px;
  background: var(--ink);
  position: relative; border: 0; cursor: pointer; flex-shrink: 0;
}
.toggle-switch .knob {
  width: 22px; height: 22px; border-radius: 999px; background: white;
  position: absolute; top: 3px; left: 23px;
  display: grid; place-items: center;
  transition: left .15s ease;
}
.toggle-switch .knob svg { width: 12px; height: 12px; color: var(--ink); }
.toggle-switch.off { background: var(--line); }
.toggle-switch.off .knob { left: 3px; }
.toggle-switch.off .knob svg { display: none; }

.region-section-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.region-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px 16px;
  margin-bottom: 36px;
}
.region-item {
  text-align: left;
  background: none; border: 1px solid transparent; border-radius: 12px;
  padding: 8px 10px; cursor: pointer; font-family: inherit;
}
.region-item:hover { background: var(--bg-soft); }
.region-item.selected { border-color: var(--ink); }
.region-item b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.region-item span { font-size: 12.5px; color: var(--muted); }

.currency-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 12px; }
.currency-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; font-family: inherit; background: none; text-align: left;
}
.currency-item:hover { background: var(--bg-soft); }
.currency-item.selected { border-color: var(--ink); background: var(--bg-soft); }
.currency-item .cur-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.currency-item .cur-code { font-size: 12.5px; color: var(--muted); }

@media (max-width: 540px) {
  .region-modal { width: 100%; height: min(560px, 88vh); border-radius: 22px; }
  .region-tabs { padding: 32px 20px 0; }
  .region-scroll { padding: 20px 20px 24px; }
  .region-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .currency-grid { grid-template-columns: 1fr; }
  .translate-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1100px) {
  .list-link { display: none; }
  .search-widget { max-width: none; }
  .sw-trigger { display: flex; }
  .sw-fields { display: none; }
  .search-widget.expanded .sw-fields {
    display: flex;
    flex-direction: column; align-items: stretch;
    gap: 12px;
    position: absolute;
    top: calc(100% + 10px); left: 0; right: 0;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 16px;
    z-index: 85;
  }
  .search-widget.expanded .sw-submit { width: 100%; justify-content: center; }
  .search-widget.expanded .filters-panel {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-top: 6px;
  }
}

/* Tablet: keep "List your property" in the header by shrinking the search bar
   down to its compact trigger width, instead of hiding the link and expanding
   the search to fill the row (that only happens on phones, see below). */
@media (min-width: 768px) and (max-width: 1100px) {
  .topbar-inner { gap: 12px; }
  .list-link { display: inline-flex; padding: 0 10px; font-size: 13.5px; }
  .search-widget { max-width: 240px; }
}

@media (max-width: 540px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding-top: 16px; padding-bottom: 16px; row-gap: 12px; }
  .search-widget { order: 3; flex-basis: 100%; }
}

/* ============ Category rail ============ */
.category-rail {
  border-bottom: 1px solid var(--line);
  background: white;
}
.category-rail .container { padding-top: 18px; padding-bottom: 14px; }
.cat-scroll {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  row-gap: 16px;
}
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity .15s, border-color .15s, color .15s;
}
.cat-item:hover { opacity: 1; color: var(--ink); }
.cat-item.active { opacity: 1; color: var(--ink); border-color: var(--ink); }
.cat-item svg { width: 24px; height: 24px; stroke-width: 1.6; }
.cat-item span { font-size: 12px; font-weight: 600; white-space: normal; text-align: center; max-width: 104px; line-height: 1.25; }

/* The six categories total roughly 690px including gaps, so they still fit
   centred on any tablet. This used to switch to a left-aligned scrolling rail
   below 1100px, which is why the icons sat hard against the left edge on
   tablet instead of centred like the desktop. Only phones actually need the
   scroller now. */
@media (max-width: 767px) {
  .cat-scroll {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .cat-scroll::-webkit-scrollbar { display: none; }
  .cat-item { scroll-snap-align: start; }
  .cat-item span { white-space: nowrap; max-width: none; }
}

/* Tablet: keep the centred layout, just tighten it so the row doesn't crowd
   the edges of a narrower screen. */
@media (min-width: 768px) and (max-width: 1100px) {
  .cat-scroll { gap: clamp(16px, 2.6vw, 30px); }
  .cat-item svg { width: 22px; height: 22px; }
  .cat-item span { font-size: 11.5px; max-width: 92px; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px);
  background: var(--bg-warm);
  overflow: hidden;
}
.hero-blob {
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 85% 10%, rgba(255,106,44,0.14) 0%, rgba(255,106,44,0) 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  max-width: 14ch;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand) 0%, #FF9457 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy p { font-size: 16.5px; margin-top: 18px; max-width: 46ch; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-trustline {
  display: flex; align-items: center; gap: 12px;
  margin-top: 34px;
}
.avatar-stack { display: flex; }
.avatar-stack .mini-avatar {
  width: 34px; height: 34px; border-radius: 999px;
  border: 2px solid var(--bg-warm);
  margin-left: -10px;
  display: grid; place-items: center;
  color: white; font-family: 'Funnel Display'; font-weight: 700; font-size: 12px;
}
.avatar-stack .mini-avatar:first-child { margin-left: 0; }
.hero-trustline .tt { font-size: 13.5px; color: var(--ink-2); }
.hero-trustline .tt b { color: var(--ink); }

.hero-collage {
  position: relative;
  height: clamp(360px, 46vw, 480px);
}
.collage-img {
  position: absolute;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-soft);
}
.collage-img img { width: 100%; height: 100%; object-fit: cover; }
.collage-1 { top: 0; left: 8%; width: 56%; height: 62%; z-index: 2; }
.collage-2 { bottom: 0; right: 0; width: 48%; height: 54%; z-index: 1; }
.collage-3 { top: 12%; right: 4%; width: 30%; height: 34%; z-index: 3; display: none; }

.floating-card {
  position: absolute;
  bottom: 6%; left: 0;
  z-index: 4;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  max-width: 230px;
}
.floating-card .fc-icon {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; flex-shrink: 0;
}
.floating-card .fc-icon svg { width: 18px; height: 18px; }
.floating-card .fc-title { font-family: 'Funnel Display'; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.floating-card .fc-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-collage { margin-top: 12px; height: 360px; }
  .collage-3 { display: none !important; }
}

/* ============ Section base ============ */
.section { padding: clamp(20px, 2vw, 28px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: white; }
.section-dark p { color: rgba(255,255,255,0.68); }
.section-dark h2 { color: white; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 24px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(18px, 2vw, 24px); font-weight: 800; white-space: nowrap; text-wrap: nowrap; }
@media (max-width: 380px) {
  .section-head h2 { white-space: normal; text-wrap: wrap; }
}
.section-head p { margin-top: 8px; max-width: 48ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  color: var(--brand);
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--brand-soft);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.section-dark .eyebrow { background: rgba(255,106,44,0.16); color: #FFB68A; }
.see-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--ink); flex-shrink: 0; }
.see-all svg { width: 16px; height: 16px; transition: transform .15s; }
.see-all:hover svg { transform: translateX(3px); }

/* ============ Listing cards (Airbnb card DNA) ============ */
.carousel-wrap { position: relative; }
.listing-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.listing-scroll::-webkit-scrollbar { display: none; }
.car-nav {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink);
  z-index: 5;
  transition: transform .15s ease;
}
.car-nav:hover { transform: translateY(-50%) scale(1.06); }
.car-nav svg { width: 18px; height: 18px; }
.car-prev { left: -14px; }
.car-next { right: -14px; }
.card {
  display: flex; flex-direction: column; gap: 6px;
  cursor: pointer;
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 5 * 20px) / 6);
  min-width: 170px;
}
.card-media {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: white;
  padding: 6px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.card-fav {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 999px;
  border: none; background: rgba(15,18,22,0.28);
  display: grid; place-items: center;
  transition: background .15s;
}
.card-fav:hover { background: rgba(15,18,22,0.45); }
.card-fav svg { width: 16px; height: 16px; stroke: white; fill: rgba(0,0,0,0.15); stroke-width: 2; }
.card-fav.active svg { fill: var(--brand); stroke: var(--brand); }
.card-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.card-dots span { width: 5px; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.55); }
.card-dots span.on { background: white; }

.card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-title { font-family: 'Funnel Display'; font-weight: 700; font-size: 15px; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--ink); flex-shrink: 0; }
.card-rating svg { width: 13px; height: 13px; fill: var(--ink); }
.card-loc { font-size: 13.5px; color: var(--muted); margin-top: -5px; }
.card-price { font-size: 14px; color: var(--ink); margin-top: -5px; }
.card-price b { font-weight: 700; }

@media (max-width: 1400px) { .card { flex-basis: calc((100% - 3 * 20px) / 4); } }
@media (max-width: 1000px) { .card { flex-basis: calc((100% - 2 * 20px) / 3); } }

/* Tablet landscape — five cards rather than four.
   Placed after the two rules above deliberately: they share this selector's
   specificity, so this only wins by coming later in the file.
   A tighter gap plus a smaller card lets a fifth fit without the row feeling
   cramped, and the type steps down with it so the card keeps its proportions
   instead of looking like desktop text squeezed into a smaller box. */
@media (min-width: 1001px) and (max-width: 1400px) {
  .listing-scroll { gap: 14px; }
  .card { flex-basis: calc((100% - 4 * 14px) / 5); min-width: 150px; }
  .card-media { border-radius: 14px; }
  .card-title { font-size: 13.5px; }
  .card-loc { font-size: 12.5px; }
  .card-price { font-size: 13px; }
  .card-rating { font-size: 12.5px; }
  .card-rating svg { width: 12px; height: 12px; }
  .card-badge { font-size: 10.5px; padding: 4px 9px; }
  .card-fav { width: 30px; height: 30px; }
  .card-fav svg { width: 15px; height: 15px; }
  .car-nav { width: 36px; height: 36px; }
  .car-nav svg { width: 16px; height: 16px; }
  .car-prev { left: -10px; }
  .car-next { right: -10px; }
  .section-head h2 { font-size: clamp(17px, 1.8vw, 21px); }
}
@media (max-width: 720px) {
  .listing-scroll { gap: 14px; }
  .card { flex-basis: calc((100% - 14px) / 2); min-width: 140px; }
  .car-nav { display: none; }
}
@media (max-width: 480px) { .card { flex-basis: 78%; } }

/* ============ Cities strip ============ */
.city-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--bg-soft);
}
.city-card img { width: 100%; height: 100%; object-fit: cover; }
.city-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,18,22,0) 40%, rgba(15,18,22,0.72) 100%);
}
.city-card .city-info {
  position: absolute; left: 14px; bottom: 12px; z-index: 2; color: white;
}
.city-card .city-info b { font-family: 'Funnel Display'; font-weight: 700; font-size: 15.5px; display: block; }
.city-card .city-info span { font-size: 12px; color: rgba(255,255,255,0.85); }

/* ============ How it works ============ */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.step-card { display: flex; flex-direction: column; gap: 14px; }
.step-num-badge {
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
  font-family: 'Funnel Display'; font-weight: 800; font-size: 16px;
}
.step-card h3 { font-size: 17px; font-weight: 700; }
.step-card p { font-size: 14px; line-height: 1.6; }
@media (max-width: 880px) { .steps-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps-row { grid-template-columns: 1fr; } }

/* ============ Trust strip ============ */
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.trust-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.trust-card .trust-icon {
  width: 42px; height: 42px; border-radius: 999px;
  background: rgba(255,106,44,0.18); color: #FFB68A;
  display: grid; place-items: center; margin-bottom: 16px;
}
.trust-card .trust-icon svg { width: 20px; height: 20px; }
.trust-card h4 { color: white; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.trust-card p { font-size: 13.5px; }
@media (max-width: 880px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .trust-grid { grid-template-columns: 1fr; } }

/* ============ Testimonials ============ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 16px;
}
.testi-stars { color: var(--brand); font-size: 14px; letter-spacing: 2px; }
.testi p.testi-quote { color: var(--ink-2); font-size: 15px; line-height: 1.6; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.mini-avatar, .testi-author .avatar {
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  color: white; font-family: 'Funnel Display'; font-weight: 700; font-size: 14px;
}
.t-name { font-family: 'Funnel Display'; font-weight: 700; font-size: 14px; color: var(--ink); }
.t-role { font-size: 12.5px; color: var(--muted); }
@media (max-width: 880px) { .testi-grid { grid-template-columns: 1fr; } }

/* ============ CTA banner ============ */
.cta-banner {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink);
  border-radius: var(--radius-lg);
}
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,18,22,0.75) 0%, rgba(15,18,22,0.4) 55%, rgba(15,18,22,0.2) 100%);
  z-index: -1;
}
.cta-inner {
  padding: clamp(48px, 7vw, 80px) clamp(28px, 5vw, 64px);
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: space-between;
}
.cta-copy { flex: 1 1 480px; min-width: 0; }
.cta-copy h2 { color: white; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; max-width: 18ch; }
.cta-copy p { color: rgba(255,255,255,0.82); margin-top: 14px; max-width: 48ch; font-size: 15px; line-height: 1.6; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ Footer — carried over from the core MyRoomiz site ============ */
.footer {
  background: white;
  padding: 64px 0 0;
  border-top: 1px solid var(--line);
}
.footer-mini-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.footer-mini-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--brand); color: white;
  font-size: 14.5px; font-weight: 600;
  box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--brand) 70%, transparent);
  transition: background .15s ease;
}
.footer-mini-cta:hover { background: var(--brand-deep); }
.footer-mini-cta svg { flex-shrink: 0; width: 16px; height: 16px; color: white; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand p { font-size: 14px; margin-top: 16px; max-width: 28ch; }
.footer h5 { font-family: 'Funnel Display'; font-weight: 700; font-size: 14px; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer ul { display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: 14px; color: var(--muted); transition: color .15s; }
.footer ul a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer-bottom .links { display: flex; gap: 22px; }
.footer-bottom .links a { color: var(--muted); }
.footer-bottom .links a:hover { color: var(--ink); }

.footer-legal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal .dot { color: var(--muted-2); }
.privacy-choices { display: inline-flex; align-items: center; gap: 6px; }
.privacy-choices svg { color: var(--ink); flex-shrink: 0; }

.footer-meta { display: flex; align-items: center; gap: 20px; }
.meta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
}
.meta-btn:hover { text-decoration: underline; }
.meta-btn svg { width: 16px; height: 16px; }
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a { color: var(--ink); display: inline-flex; }
.footer-social svg { width: 18px; height: 18px; }
.footer-social a:hover { opacity: 0.7; }

@media (max-width: 720px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}
.watermark {
  display: block; width: 100%; margin-top: 12px; margin-bottom: 0;
  line-height: 0; font-size: 0; user-select: none; pointer-events: none; overflow: hidden;
}
.watermark img { display: block; width: 100%; height: auto; }

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:nth-child(n+4) { grid-column: span 1; }
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* Utility avatar colors */
.av-1 { background: #FF6A2C; } .av-2 { background: #2E6FED; } .av-3 { background: #17A672; }
.av-4 { background: #A855F7; } .av-5 { background: #E54E0F; } .av-6 { background: #0EA5B7; }

/* ============ Page hero (sub-pages) ============ */
.page-hero { background: var(--bg-warm); padding: 64px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-hero h1 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; }
.page-hero-right { color: var(--muted); max-width: 380px; font-size: 14.5px; text-align: right; line-height: 1.6; }
@media (max-width: 720px) {
  .page-hero-inner { flex-direction: column; align-items: flex-start; }
  .page-hero-right { text-align: left; }
}

/* ============ About page ============ */
.about-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-collage-big img { width: 100%; border-radius: 20px; aspect-ratio: 4/3.2; object-fit: cover; }
.about-collage-side { display: flex; gap: 16px; margin-top: 16px; }
.about-collage-small { flex: 1; border-radius: 16px; overflow: hidden; aspect-ratio: 1/1; }
.about-collage-small img { width: 100%; height: 100%; object-fit: cover; }
.about-rating-card { background: var(--ink); color: white; border-radius: 16px; padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.about-rating-n { font-family: 'Funnel Display'; font-weight: 800; font-size: 28px; }
.about-rating-stars { color: var(--brand); margin: 4px 0; font-size: 13px; }
.about-rating-l { font-size: 11.5px; color: rgba(255,255,255,0.7); }
.about-hero-copy h2 { margin-bottom: 4px; }
.about-hero-copy p { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.about-divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.about-stat-n { font-family: 'Funnel Display'; font-weight: 800; font-size: 32px; color: var(--brand); }
.about-stat-l { font-size: 13px; color: var(--muted); margin-top: 4px; }
.about-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-checks { display: flex; flex-direction: column; gap: 28px; }
.about-check { position: relative; padding-left: 44px; }
.about-check-icon { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.about-check-icon svg { width: 15px; height: 15px; }
.about-check h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.about-check p { font-size: 13.5px; line-height: 1.65; }
.about-why-card { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; background: var(--bg-soft); }
.about-why-card img { width: 100%; height: 100%; object-fit: cover; }
.about-why-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,18,22,0) 40%, rgba(15,18,22,0.88) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; gap: 14px; }
.about-why-overlay h3 { color: white; font-size: 20px; }
.about-why-overlay p { color: rgba(255,255,255,0.75); font-size: 13px; }
.about-cta { background: var(--ink); border-radius: 28px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.about-cta h2 { color: white; }
.about-cta p { color: rgba(255,255,255,0.75); }
.about-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 540px) {
  .about-cta { padding: 32px 24px; }
}
@media (max-width: 880px) {
  .about-hero-grid, .about-why-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ============ Career page ============ */
.career-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.career-value .cv-num { font-family: 'Funnel Display'; font-weight: 800; color: var(--brand); font-size: 14px; margin-bottom: 10px; }
.career-value h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.career-value p { font-size: 13.5px; line-height: 1.6; }
.jobs-list { display: flex; flex-direction: column; gap: 12px; }
.job-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; flex-wrap: wrap; }
.job-title { font-family: 'Funnel Display'; font-weight: 700; font-size: 15.5px; }
.job-tags { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.job-tag { background: var(--brand-soft); color: var(--brand); font-weight: 600; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.job-dot { color: var(--muted-2); }
.job-apply { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.job-apply svg { width: 15px; height: 15px; }
.perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.perk { display: flex; align-items: center; gap: 10px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; font-weight: 600; }
.perk-check { width: 24px; height: 24px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.perk-check svg { width: 13px; height: 13px; }
@media (max-width: 880px) {
  .career-values, .perks-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .job-row { flex-direction: column; align-items: flex-start; }
  .career-values, .perks-grid { grid-template-columns: 1fr; }
}

/* ============ Contact page ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.ch-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; gap: 12px; align-items: center; }
.ch-icon { width: 40px; height: 40px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.ch-icon svg { width: 17px; height: 17px; }
.ch-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.ch-value { font-family: 'Funnel Display'; font-weight: 600; font-size: 13.5px; color: var(--ink); margin-top: 2px; display: block; }
.contact-form-card { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 32px; }
.contact-form-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.contact-form-card > p { font-size: 13.5px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-family: inherit; font-size: 14px; outline: none; background: white; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-select { position: relative; }
.ct-select-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; background: white; text-align: left;
  font-family: inherit; font-size: 14px; color: var(--ink);
  transition: border-color .15s ease;
}
.ct-select-btn span { color: var(--ink); }
.ct-select-btn:hover { border-color: var(--ink); }
.ct-select.expanded .ct-select-btn { border-color: var(--ink); }
.ct-select-btn.invalid { border-color: var(--brand-deep); }
.ct-select-btn svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--muted-2); transition: transform .15s ease; }
.ct-select.expanded .ct-select-btn svg { transform: rotate(180deg); }
.ct-select-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: white; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; max-height: 260px; overflow-y: auto;
}
.ct-select-option {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border: 0; border-radius: 8px; background: none;
  font-family: inherit; font-size: 14px; color: var(--ink); cursor: pointer;
}
.ct-select-option:hover { background: var(--bg-soft); }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.check-row input { accent-color: var(--brand); }
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-channels, .field-row { grid-template-columns: 1fr; }
}

/* ============ Legal pages (Privacy / Terms / Cookies) ============ */
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 100px; }
.legal-toc-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 14px; }
.legal-toc ul { display: flex; flex-direction: column; gap: 10px; }
.legal-toc a { font-size: 13.5px; color: var(--muted); }
.legal-toc a.active, .legal-toc a:hover { color: var(--ink); font-weight: 600; }
.legal-intro { font-size: 15px; color: var(--ink-2); line-height: 1.75; margin-bottom: 32px; }
.legal-section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal-section:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.legal-section h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.legal-section p { font-size: 14px; line-height: 1.75; color: var(--muted); margin-bottom: 12px; }
.legal-list { margin-top: 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal-list li { font-size: 14px; color: var(--muted); line-height: 1.6; }
.legal-contact { background: var(--bg-soft); border-radius: 16px; padding: 24px; margin-top: 32px; }
.legal-contact h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.legal-contact p { font-size: 13.5px; color: var(--muted); }
.legal-contact a { color: var(--brand); font-weight: 600; }
@media (max-width: 880px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* ============ Products page ============ */
.pb-headline { font-family: 'Funnel Display'; font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; margin-bottom: 48px; max-width: 24ch; }
.pb-stack { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 80px); }
.pb-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.pb-row.pb-reverse .pb-image { order: 2; }
.pb-image { border-radius: 24px; overflow: hidden; aspect-ratio: 4/3.3; background: var(--bg-soft); }
.pb-image img { width: 100%; height: 100%; object-fit: cover; }
.pb-title { font-family: 'Funnel Display'; font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.pb-para { font-size: 14px; line-height: 1.7; color: var(--muted); margin-bottom: 12px; }
.pb-benefits { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.pb-b-title { font-family: 'Funnel Display'; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.pb-b-desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
@media (max-width: 880px) {
  .pb-row { grid-template-columns: 1fr; }
  .pb-row.pb-reverse .pb-image { order: 0; }
  .pb-benefits { grid-template-columns: 1fr; }
}

/* ============ Blog ============ */
.blog-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.blog-cat-pill { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: white; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; font-family: inherit; }
.blog-cat-pill.active { background: var(--ink); color: white; border-color: var(--ink); }
.blog-featured-wrap { margin-bottom: 36px; }
.blog-card { display: block; border-radius: 20px; overflow: hidden; background: white; border: 1px solid var(--line); }
.blog-card.featured { display: grid; grid-template-columns: 1.2fr 1fr; }
.blog-card-img { position: relative; aspect-ratio: 16/10; background: var(--bg-soft); }
.blog-card.featured .blog-card-img { aspect-ratio: auto; height: 100%; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-cat { position: absolute; top: 14px; left: 14px; background: white; padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--ink); }
.blog-card-body { padding: 22px; }
.blog-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.blog-card-title { font-family: 'Funnel Display'; font-weight: 700; font-size: 17px; margin-bottom: 8px; line-height: 1.3; color: var(--ink); }
.blog-card.featured .blog-card-title { font-size: 24px; }
.blog-card-excerpt { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.blog-author { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.blog-author-avatar { width: 26px; height: 26px; border-radius: 999px; background: var(--brand); color: white; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) {
  .blog-card.featured { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .blog-grid { grid-template-columns: 1fr; }
}


/* ============ Help-article style About page ============ */
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb span { color: var(--ink); }
.breadcrumb .bc-sep { color: var(--muted-2); }

.help-layout { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }
.help-eyebrow { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.help-title { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; margin-top: 10px; }
.help-intro { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin-top: 14px; max-width: none; }

.help-toc { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.help-toc-label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.help-toc ul { display: flex; flex-direction: column; gap: 12px; }
.help-toc li { display: flex; align-items: flex-start; gap: 8px; }
.help-toc svg { width: 14px; height: 14px; color: var(--ink); margin-top: 3px; flex-shrink: 0; }
.help-toc a { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.help-toc a:hover { color: var(--brand); }

.help-section { margin-top: 40px; scroll-margin-top: 100px; }
.help-section h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.help-section p { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); margin-bottom: 12px; max-width: none; }
.help-section p a, .help-section li a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.help-section p a:hover, .help-section li a:hover { color: var(--brand); }
.help-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; padding-left: 4px; }
.help-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.help-list li::before { content: ''; width: 5px; height: 5px; border-radius: 999px; background: var(--muted-2); margin-top: 8px; flex-shrink: 0; }

.help-vote { display: flex; align-items: center; gap: 14px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.help-vote span { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.help-vote-btn { height: 36px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: white; font-size: 13.5px; font-weight: 600; color: var(--ink); font-family: inherit; cursor: pointer; }
.help-vote-btn:hover { border-color: var(--ink); }
.help-vote-btn.voted { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }

.help-related { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.help-related h2 { font-size: 19px; font-weight: 800; margin-bottom: 18px; }
.help-related-item { display: block; padding: 18px 0; border-top: 1px solid var(--line); }
.help-related-item:first-of-type { border-top: 0; }
.hr-tags { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.hr-title { font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; margin-bottom: 4px; }
.help-related-item:hover .hr-title { color: var(--brand); }
.hr-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; max-width: none; }

.help-sidebar { position: sticky; top: 100px; }
.help-contact-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.help-contact-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.help-feedback { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.help-feedback a { color: var(--ink); text-decoration: underline; font-weight: 600; }
.help-feedback a:hover { color: var(--brand); }

@media (max-width: 880px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-sidebar { position: static; }
}

/* ============ Reader-style blog layout ============ */
.reader-layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.reader-toolbar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.reader-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; height: 44px; padding: 0 16px; flex: 1; min-width: 200px; max-width: 280px; }
.reader-search svg { width: 16px; height: 16px; color: var(--muted-2); flex-shrink: 0; }
.reader-search input { border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 14px; width: 100%; color: var(--ink); }
.reader-topics { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reader-topics-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.reader-topic-pill { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: white; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; font-family: inherit; }
.reader-topic-pill.active { background: var(--ink); color: white; border-color: var(--ink); }

.reader-articles-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.reader-articles-head h2 { font-size: 20px; font-weight: 800; }
.reader-sort { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: white; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; font-family: inherit; }
.reader-sort svg { width: 14px; height: 14px; }

.reader-list { display: flex; flex-direction: column; }
.reader-article { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.reader-article:first-child { padding-top: 0; }
.reader-article:last-child { border-bottom: 0; }
.ra-body { flex: 1; min-width: 0; }
.ra-byline { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ra-avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--brand); color: white; display: grid; place-items: center; font-size: 12px; font-weight: 700; font-family: 'Funnel Display'; flex-shrink: 0; }
.ra-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.ra-role { font-size: 12px; color: var(--muted); }
.ra-date { font-size: 12px; color: var(--muted-2); margin-left: auto; flex-shrink: 0; }
.ra-title { font-size: 19px; font-weight: 800; margin-bottom: 10px; line-height: 1.3; }
.ra-title a { color: var(--ink); }
.ra-title a:hover { color: var(--brand); }
.ra-excerpt { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.ra-tags { display: flex; align-items: center; gap: 10px; }
.ra-tag { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }
.ra-read { font-size: 12px; color: var(--muted-2); }
.ra-media { width: 180px; height: 130px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: var(--bg-soft); }
.ra-media img { width: 100%; height: 100%; object-fit: cover; }

.reader-sidebar { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 100px; }
.reader-promo { background: var(--ink); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; color: white; }
.reader-promo h3 { color: white; font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.reader-promo p { color: rgba(255,255,255,0.7); font-size: 12.5px; line-height: 1.5; margin-bottom: 18px; }
.reader-promo-art { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; margin-bottom: 16px; }
.reader-promo-art svg { width: 22px; height: 22px; }
.reader-promo-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.reader-promo-form input {
  height: 42px; padding: 0 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08);
  color: white; font-family: inherit; font-size: 13.5px; outline: none; width: 100%; box-sizing: border-box;
}
.reader-promo-form input::placeholder { color: rgba(255,255,255,0.5); }
.reader-promo-form input:focus { border-color: var(--brand); }
.reader-promo-form button { height: 42px; font-size: 13.5px; width: 100%; }

.reader-people h3, .reader-list-widget h3 { font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.rp-person { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rp-person:last-child { margin-bottom: 0; }
.rp-avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--ink); color: white; display: grid; place-items: center; font-size: 13px; font-weight: 700; font-family: 'Funnel Display'; flex-shrink: 0; }
.rp-info { flex: 1; min-width: 0; }
.rp-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.rp-role { font-size: 11.5px; color: var(--muted); }
.rp-follow { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: white; font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer; font-family: inherit; flex-shrink: 0; }
.rp-follow:hover { border-color: var(--ink); }
.rp-follow.following { background: var(--ink); color: white; border-color: var(--ink); }

.rl-item { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.rl-item:last-child { margin-bottom: 0; }
.rl-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--bg-soft); }
.rl-title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 4px; }
.rl-meta { font-size: 11.5px; color: var(--muted); }

/* ============ Blog single-post article ============ */
.article-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 24px; }
.article-back svg { width: 16px; height: 16px; }
.article-back:hover { color: var(--ink); }
.article-tag { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); margin-bottom: 16px; }
.article-title { font-size: 32px; font-weight: 800; line-height: 1.2; margin-bottom: 22px; }
.article-byline { margin-bottom: 28px; }
.article-hero { border-radius: 20px; overflow: hidden; margin-bottom: 32px; aspect-ratio: 16 / 9; background: var(--bg-soft); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body { font-size: 16px; line-height: 1.75; color: var(--ink-2); max-width: 70ch; }
.article-body p { margin-bottom: 22px; }
.article-body p:last-child { margin-bottom: 0; }

.related-section { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.related-section h2 { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.related-card { display: block; }
.related-card-media { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 14px; background: var(--bg-soft); }
.related-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s ease; }
.related-card:hover .related-card-media img { transform: scale(1.04); }
.related-card-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--brand); margin-bottom: 6px; display: block; }
.related-card-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 6px; }
.related-card-meta { font-size: 12px; color: var(--muted); }

@media (max-width: 820px) {
  .article-title { font-size: 25px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .reader-layout { grid-template-columns: 1fr; }
  .reader-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .reader-sidebar > * { flex: 1; min-width: 260px; }
}
@media (max-width: 680px) {
  .reader-article { flex-direction: column; }
  .ra-media { width: 100%; height: 180px; order: -1; }
  .reader-sidebar { flex-direction: column; }
  .reader-toolbar { flex-direction: column; align-items: stretch; }
  .reader-search { max-width: none; }
}

/* ============ Products overview cards ============ */
.product-card { display: block; }
.product-card-img { border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-soft); margin-bottom: 14px; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-title { font-family: 'Funnel Display'; font-weight: 700; font-size: 15.5px; color: var(--ink); margin-bottom: 4px; }
.product-card-desc { font-size: 13px; line-height: 1.55; color: var(--muted); }
.pb-row { scroll-margin-top: 100px; }

@media (max-width: 880px) {
  .region-grid[style] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 540px) {
  .region-grid[style] { grid-template-columns: 1fr !important; }
}

/* ============ Products page (icon/text style, matches other subpages) ============ */
.product-overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.product-overview-card { display: block; padding: 22px; border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.product-overview-card:hover { border-color: var(--ink); box-shadow: var(--shadow-md); }
.product-overview-icon { width: 40px; height: 40px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.product-overview-icon svg { width: 18px; height: 18px; }
.product-overview-title { font-family: 'Funnel Display'; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.product-overview-desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

.product-detail { border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin-bottom: 20px; scroll-margin-top: 100px; }
.product-detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.product-detail-icon { width: 44px; height: 44px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.product-detail-icon svg { width: 20px; height: 20px; }
.product-detail h3 { font-size: 18px; font-weight: 800; }
.product-detail-para { font-size: 14px; line-height: 1.7; color: var(--ink-2); margin-bottom: 16px; }
.product-detail-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }

@media (max-width: 880px) {
  .product-overview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .product-overview-grid { grid-template-columns: 1fr; }
  .product-detail-benefits { grid-template-columns: 1fr; }
}

/* ============ FAQs page ============ */
.faqs-layout { display: grid; gap: 40px; align-items: start; grid-template-columns: 240px 240px 1fr; }
.faqs-side { position: sticky; top: 100px; }
.faqs-side > p { margin-top: 10px; font-size: 14px; max-width: 28ch; color: var(--muted); }
.faq-search { position: relative; margin-top: 0; }
.faq-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); width: 16px; height: 16px; }
.faq-search input {
  width: 100%; padding: 12px 14px 12px 40px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 14px; outline: none; box-sizing: border-box; background: white; color: var(--ink);
}
.faq-search input:focus { border-color: var(--ink); }
.faq-cat-list { display: flex; flex-direction: column; margin-top: 18px; border-top: 1px solid var(--line); }
.faq-cat-link {
  padding: 13px 4px 13px 16px; border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent;
  background: none; color: var(--muted); font-family: 'Funnel Display'; font-size: 14px; font-weight: 600;
  text-align: left; cursor: pointer;
}
.faq-cat-link:hover { color: var(--ink); }
.faq-cat-link.active { border-left-color: var(--brand); color: var(--ink); background: var(--bg-soft); }
.faq-still { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.faq-still h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.faq-still p { font-size: 13px; margin-bottom: 14px; line-height: 1.5; }
.faq-channels { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.faq-channel { display: flex; align-items: center; gap: 12px; }
.faq-channel-icon { width: 36px; height: 36px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.faq-channel-icon svg { width: 16px; height: 16px; }
.faq-ch-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.faq-ch-value { font-family: 'Funnel Display'; font-weight: 600; font-size: 13.5px; color: var(--ink); }

.faq-sections { display: flex; flex-direction: column; gap: 36px; }
.faq-section-pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--brand-soft);
  color: var(--brand-deep); font-family: 'Funnel Display'; font-weight: 700; font-size: 13px;
  margin-bottom: 16px;
}
.faq-section-items { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; transition: border-color .2s ease; }
.faq-item.open { border-color: var(--ink); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; background: none; border: 0;
  font-family: 'Funnel Display'; font-weight: 600; font-size: 15.5px; color: var(--ink);
  text-align: left; cursor: pointer;
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s ease; color: var(--muted); }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--ink); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .2s ease, opacity .2s ease; font-size: 14px; line-height: 1.65; color: var(--muted); opacity: 0; }
.faq-item.open .faq-a { max-height: 260px; padding: 0 20px 20px; opacity: 1; }
.faq-empty { padding: 48px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 14px; }

@media (max-width: 880px) {
  .faqs-layout { grid-template-columns: 1fr; }
  .faqs-side { position: static; }
}

/* ============ Guest preview banner (property-preview.html) ============ */
.preview-banner { background: var(--ink); color: white; padding: 14px 0; position: sticky; top: 0; z-index: 40; }
.preview-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.preview-banner-text { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.preview-banner-text svg { flex-shrink: 0; color: var(--brand); }
.preview-banner-btn { flex-shrink: 0; height: 38px; padding: 0 18px; background: white; color: var(--ink); border-color: white; }
.preview-owner-note { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ============ Property detail page ============ */
.pd-container { padding-top: 24px; }
.pd-back-dash {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700;
  color: var(--ink-2); text-decoration: none; margin-bottom: 16px;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: white;
}
.pd-back-dash:hover { border-color: var(--ink); color: var(--ink); }
.pd-back-dash svg { width: 15px; height: 15px; }
.pd-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.pd-title { font-size: clamp(20px, 2.5vw, 26px); font-weight: 800; }
.pd-topline-actions { display: flex; gap: 4px; flex-shrink: 0; }
.pd-icon-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 8px; border: 0; background: none; font-weight: 600; font-size: 14px; text-decoration: underline; color: var(--ink); }
.pd-icon-btn:hover { background: var(--bg-soft); }
.pd-icon-btn.active svg { fill: var(--brand); stroke: var(--brand); }

.pg-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 8px; height: 420px; border-radius: 16px; overflow: hidden; margin-bottom: 32px; position: relative; }
.pg-main { grid-row: 1 / 3; grid-column: 1; position: relative; border: 0; padding: 0; cursor: pointer; min-height: 0; min-width: 0; }
.pg-thumbs { display: contents; }
.pg-thumb { border: 0; padding: 0; cursor: pointer; min-height: 0; min-width: 0; position: relative; }
.pg-main img, .pg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .15s ease; }
.pg-main:hover img, .pg-thumb:hover img { filter: brightness(0.92); }
.pg-more-badge {
  position: absolute; inset: 0; background: rgba(15,18,22,0.55); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Funnel Display'; font-weight: 700; font-size: 15px; pointer-events: none;
}
.pg-thumb-extra { display: none; }
.pg-mobile-counter { display: none; }

/* Tablet and desktop keep the mosaic grid untouched (per breakpoint below, only true
   mobile widths switch to the swipeable single-image carousel). */
@media (max-width: 640px) {
  .pg-grid { display: flex; overflow-x: auto; height: 300px; gap: 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pg-grid::-webkit-scrollbar { display: none; }
  .pg-main, .pg-thumb { flex: 0 0 100%; scroll-snap-align: start; }
  .pg-thumb-extra { display: block; }
  .pg-more-badge { display: none; }
  .pg-mobile-counter {
    display: block; position: absolute; bottom: 14px; right: 14px; z-index: 5;
    background: rgba(15,18,22,0.65); color: white; font-size: 12.5px; font-weight: 700;
    padding: 5px 11px; border-radius: 999px; pointer-events: none;
  }
}

.pd-grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; padding: 8px 0 48px; }
.pd-aside { position: sticky; top: 100px; }
@media (max-width: 980px) {
  .pd-grid { grid-template-columns: 1fr; gap: 32px; }
  .pd-aside { position: static; }
}

.pd-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; }
.pd-subtitle { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.pd-loc { color: var(--muted); font-size: 14.5px; }

.pd-host-row { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-host-badge { width: 40px; height: 40px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.pd-host-badge-title { font-weight: 700; font-size: 14.5px; }
.pd-host-badge-sub { color: var(--muted); font-size: 13px; max-width: 340px; }
.pd-host-rating { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.pd-host-rating svg { width: 14px; height: 14px; fill: var(--ink); }
.pd-host-rating a { text-decoration: underline; font-weight: 600; color: var(--ink); }

.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0; }
.pd-tag { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }

.pd-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.pd-h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }

.pd-basics { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 24px; }
.pd-basic-item { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.pd-basic-icon { width: 22px; height: 22px; color: var(--ink); flex-shrink: 0; }
.pd-basic-icon svg { width: 100%; height: 100%; }

.pd-para { font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 70ch; }
.pd-showmore { margin-top: 10px; background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; font-size: 14.5px; cursor: pointer; color: var(--ink); }

.pd-amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 24px; }
.pd-amenity { display: flex; align-items: center; gap: 14px; font-size: 14.5px; color: var(--ink-2); }
.pd-a-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--ink); }
.pd-a-icon svg { width: 100%; height: 100%; }

.pd-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 24px; }
.pd-info-label { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.pd-info-val { font-size: 14.5px; font-weight: 600; color: var(--ink); }

/* Roommate Preference — deliberately loud so it can't be scrolled past unnoticed */
.pd-pref-card { border: 2px solid var(--brand); background: var(--brand-soft); border-radius: var(--radius-lg); padding: 26px 28px; }
.pd-pref-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand-deep); margin-bottom: 8px; }
.pd-pref-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--brand); }
.pd-pref-heading { font-size: 21px; color: var(--ink); margin-bottom: 18px; }
.pd-pref-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pd-pref-grid .pd-info-pair { background: white; border: 1px solid color-mix(in oklab, var(--brand) 30%, transparent); border-radius: 12px; padding: 12px 14px; }
.pd-pref-grid .pd-info-label { color: var(--brand-deep); font-weight: 700; }
@media (max-width: 560px) { .pd-pref-card { padding: 20px; } }

.pd-rates { display: flex; flex-direction: column; gap: 10px; }
.pd-rate { display: flex; justify-content: space-between; padding: 12px 16px; background: var(--bg-soft); border-radius: 10px; font-size: 14.5px; color: var(--ink-2); }
.pd-rate b { color: var(--ink); }

.pd-extra-divider { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

.pd-rooms-list { display: flex; flex-direction: column; gap: 16px; }
.pd-room-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: stretch; }
.pd-room-card-media { position: relative; padding: 0; border: 0; border-right: 1px solid var(--line); cursor: pointer; width: 220px; flex-shrink: 0; background: var(--bg-soft); }
.pd-room-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-room-photo-more { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(15,18,22,0.7); color: white; font-size: 11.5px; font-weight: 700; }
.pd-room-card-body { flex: 1; min-width: 0; padding: 20px 22px; }
.pd-room-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.pd-room-head h4 { font-size: 16px; font-weight: 800; color: var(--ink); }
.pd-room-price { font-size: 14.5px; font-weight: 700; color: var(--brand); flex-shrink: 0; white-space: nowrap; }
.pd-room-meta { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.pd-room-section-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 8px; }
.pd-room-section-label + .pd-room-tags { margin-bottom: 14px; }
.pd-room-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-room-tag { padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.pd-room-tag.rule { background: var(--brand-soft); color: var(--brand-deep); }
@media (max-width: 560px) {
  .pd-room-card { flex-direction: column; }
  .pd-room-card-media { width: 100%; height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
}

.pd-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-bottom: 24px; }
.pd-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pd-review-avatar { width: 40px; height: 40px; border-radius: 999px; color: white; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.pd-review-name { font-weight: 700; font-size: 14.5px; }
.pd-review-meta { font-size: 12.5px; color: var(--muted); }
.pd-review-text { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 720px) { .pd-review-grid { grid-template-columns: 1fr; } }

.pd-map { position: relative; height: 320px; border-radius: 16px; overflow: hidden; margin-top: 16px; border: 1px solid var(--line); }
.pd-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.pd-map-link { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; text-decoration: underline; color: var(--ink); }
.pd-loc-line { color: var(--muted); font-size: 14.5px; margin-bottom: 4px; }

.pd-things-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pd-things-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.pd-things-card ul { display: flex; flex-direction: column; gap: 8px; }
.pd-things-card li { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 820px) { .pd-things-grid { grid-template-columns: 1fr; } }

.pd-price-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-md); }
.pd-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.pd-price-value { font-size: 34px; font-weight: 800; color: var(--brand); letter-spacing: -0.01em; }
.pd-price-unit { color: var(--muted); font-size: 15px; font-weight: 600; }
.pd-price-sub { color: var(--muted); font-size: 13px; }
.pd-price-total { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 600; }

.pd-owner-card { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; text-align: center; }
.pd-owner-avatar { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 999px; background: var(--brand); color: white; display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.pd-owner-name { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 17px; color: var(--ink); }
.pd-owner-check { width: 18px; height: 18px; flex-shrink: 0; display: block; }
.pd-owner-check-btn { padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; line-height: 0; }
.pd-owner-loc { color: var(--muted); font-size: 14px; margin-top: 2px; margin-bottom: 18px; }
.pd-owner-call, .pd-owner-wa { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; border-radius: 999px; font-weight: 700; font-size: 14.5px; margin-bottom: 12px; font-family: inherit; cursor: pointer; }
.pd-owner-call { background: var(--brand); color: white; }
.pd-owner-call:hover { background: var(--brand-deep); }
.pd-owner-wa { border: 1px solid var(--line); color: var(--ink); background: white; }
.pd-owner-wa:hover { border-color: var(--ink); }
.pd-owner-wa svg { color: var(--ink-2); flex-shrink: 0; }
.pd-owner-info { text-align: left; padding-top: 18px; margin-top: 6px; border-top: 1px solid var(--line); grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.pd-owner-bio { text-align: left; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.pd-owner-bio p { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-top: 6px; }
.pd-owner-report { width: 100%; height: 46px; margin-top: 20px; border-radius: 999px; border: 1px solid var(--brand); background: none; color: var(--brand); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.pd-owner-report:hover { background: var(--brand-soft); }

.lb-backdrop { position: fixed; inset: 0; background: rgba(15,18,22,0.95); z-index: 200; display: flex; align-items: center; justify-content: center; }
.lb-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 999px; background: rgba(255,255,255,0.1); color: white; border: 0; font-size: 22px; cursor: pointer; line-height: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,0.1); color: white; border: 0; font-size: 24px; cursor: pointer; }
.lb-nav.prev { left: 20px; } .lb-nav.next { right: 20px; }
.lb-stage { max-width: 90vw; max-height: 85vh; text-align: center; }
.lb-stage img { max-width: 90vw; max-height: 80vh; border-radius: 8px; }
.lb-counter { color: white; margin-top: 10px; font-size: 13px; }

/* ============ Search results page (city.html) ============ */
.search-page { min-height: calc(100vh - 84px); }

.search-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 20px clamp(20px, 5vw, 64px) 0; scrollbar-width: none; }
.search-tabs::-webkit-scrollbar { display: none; }
.search-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: white; color: var(--ink-2); font-family: inherit;
  font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.search-tab svg { width: 15px; height: 15px; flex-shrink: 0; }
.search-tab:hover { border-color: var(--ink); }
.search-tab.active { background: var(--brand); border-color: var(--brand); color: white; }

.search-title-row { padding: 22px clamp(20px, 5vw, 64px) 0; }
.search-title-row h1 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 800; }
.search-title-row p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ---- Mega filter (category-aware advanced search) ---- */
.mega-filter { margin: 18px clamp(20px, 5vw, 64px) 0; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px clamp(20px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.mega-filter-title-row {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; padding: 0; margin: 0 0 22px; cursor: pointer; font-family: inherit; text-align: left;
}
.mega-filter-title { font-size: clamp(20px, 2.2vw, 25px); font-weight: 800; margin: 0; }
.mega-filter-chevron { width: 22px; height: 22px; color: var(--ink-2); flex-shrink: 0; transition: transform 0.2s ease; }
.mega-filter.collapsed .mega-filter-title-row { margin-bottom: 0; }
.mega-filter.collapsed .mega-filter-chevron { transform: rotate(-90deg); }
.mega-filter.collapsed #megaFilterBody { display: none; }
.mega-filter-fields { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; width: 100%; }
.mega-filter-field { flex: 1 1 150px; min-width: 130px; }
.mega-filter-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-filter-input {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px;
  font-family: inherit; font-size: 14px; color: var(--ink); background: var(--bg-soft); outline: none; box-sizing: border-box;
}
.mega-filter-input:focus { border-color: var(--ink); background: white; }
.mega-filter-fields .wz-dd-trigger { width: 100%; height: 46px; background: var(--bg-soft); border-radius: 10px; padding: 0 14px; }
.mega-filter-fields .wz-dd.open .wz-dd-trigger, .mega-filter-input:focus + * { background: white; }
.mega-filter-field-btn { flex: 1 1 150px; min-width: 140px; }
.mega-filter-field-btn label { visibility: hidden; }
.mega-filter-search-btn { width: 100%; height: 46px; padding: 0 20px; border-radius: 10px; background: var(--ink); color: white; border: 0; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.mega-filter-search-btn:hover { background: var(--brand-deep); }
@media (max-width: 700px) {
  .mega-filter { padding: 22px 18px; }
  .mega-filter-fields { flex-direction: column; align-items: stretch; }
  .mega-filter-field, .mega-filter-field-btn { flex: 1 1 auto; width: 100%; }
  .mega-filter-field-btn label { display: none; }
}

.search-filters-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 16px clamp(20px, 5vw, 64px);
}
.search-filters-left { display: flex; gap: 10px; flex-wrap: wrap; }
.search-filters-left .wz-dd { width: 176px; }
.search-filters-left .wz-dd-trigger { padding: 10px 12px; font-size: 13.5px; }
.search-view-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.search-view-btn { display: flex; align-items: center; gap: 6px; padding: 9px 16px; background: white; border: 0; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.search-view-btn.active { background: var(--bg-soft); color: var(--ink); }
.search-view-btn svg { width: 15px; height: 15px; }

/* 6 equal columns, same math as the home page's .card flex-basis (100% - 5*20px)/6 — cards
   render at the identical pixel size to the home carousels. The map is a single grid item
   pinned to columns 5-6 across every row, so cards fill columns 1-4 around it. */
.search-results-layout { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; padding: 4px clamp(20px, 5vw, 64px) 60px; }
#searchCards { display: contents; }
.search-map-col {
  grid-column: 5 / 7; grid-row: 1 / 30; align-self: start;
  position: sticky; top: 96px; height: calc(100vh - 130px); min-height: 420px;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
}
#searchMap { width: 100%; height: 100%; }

.search-results-layout.view-grid .search-map-col { display: none; }

.leaflet-price-marker {
  background: white; border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 11px;
  font-family: 'Funnel Display', sans-serif; font-weight: 700; font-size: 12.5px; color: var(--ink);
  box-shadow: var(--shadow-sm); white-space: nowrap; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.leaflet-price-marker.active { background: var(--ink); color: white; border-color: var(--ink); }

.city-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; max-width: 480px; margin: 0 auto; }
.city-empty-icon { width: 92px; height: 92px; margin: 0 auto 20px; display: block; }
.city-empty h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.city-empty p { color: var(--muted); margin-bottom: 22px; }

/* Below each breakpoint the map steps aside and cards take the full row, matching the
   home page's own .card breakpoints exactly so sizing never diverges from the home screen. */
@media (max-width: 1400px) {
  .search-results-layout { grid-template-columns: repeat(4, 1fr); }
  .search-map-col { display: none; }
}
@media (max-width: 1000px) {
  .search-results-layout { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .search-results-layout { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .search-results-layout { grid-template-columns: 1fr; }
}

/* ============ List-a-property wizard ============ */
.wizard-page { min-height: calc(100vh - 84px); display: flex; flex-direction: column; background: var(--bg-soft); }
.wizard-page.has-bar { padding-bottom: 130px; }
.wz-wrap { max-width: 900px; width: 100%; margin: 0 auto; flex: 1; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 56px; padding-bottom: 40px; }
.wz-wrap > div { width: 100%; }
.wz-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.wz-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 700; margin-bottom: 18px;
}
.wz-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin-bottom: 12px; }
.wz-subtitle { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.wz-upload-rules { font-size: 12.5px; margin-top: 4px; }
.wz-step-label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.wz-title-line { display: block; white-space: nowrap; }
.wz-head-wide { max-width: 820px; }
@media (max-width: 820px) { .wz-head-wide .wz-title-line { white-space: normal; } }

.wz-details-narrow { max-width: 640px; margin: 0 auto; }
.wz-upload-row { display: flex; align-items: center; gap: 10px; }
.wz-upload-row .wz-input { flex: 1; color: var(--muted); cursor: default; }
.wz-attach-btn {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  height: 46px; padding: 0 18px; border-radius: 10px; border: 0;
  background: var(--brand); color: white; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.wz-attach-btn:hover { background: var(--brand-deep); }
.wz-agree { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 28px; }
.wz-agree a { color: var(--ink); text-decoration: underline; }

textarea.wz-input { min-height: 130px; }

.wz-basics-list { display: flex; flex-direction: column; }
.wz-counter-row { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; border-bottom: 1px solid var(--line); }
.wz-counter-row:last-child { border-bottom: 0; }
.wz-counter-row-label { font-size: 16px; font-weight: 600; color: var(--ink); }
.wz-counter-row .wz-dd { width: 220px; }
.wz-stepper { display: flex; align-items: center; gap: 18px; }
.wz-stepper-btn {
  width: 32px; height: 32px; border-radius: 999px; border: 0; background: var(--bg-soft);
  color: var(--ink-2); font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.wz-stepper-btn:hover:not(:disabled) { background: var(--line); color: var(--ink); }
.wz-stepper-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.wz-stepper-val { min-width: 22px; text-align: center; font-weight: 600; font-size: 15px; }

/* ---- Custom dropdown (replaces native <select> in wizard forms) ---- */
.wz-dd { position: relative; }
.wz-dd-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; background: white;
  padding: 12px 14px; font-family: inherit; font-size: 14.5px; color: var(--ink); text-align: left;
}
.wz-dd-trigger:hover { border-color: var(--ink); }
.wz-dd.open .wz-dd-trigger { border-color: var(--ink); }
.wz-dd-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-dd-value.is-placeholder { color: var(--muted-2); }
.wz-dd-chevron { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; transition: transform .15s ease; }
.wz-dd.open .wz-dd-chevron { transform: rotate(180deg); }
.wz-dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 6px; display: flex; flex-direction: column;
}
/* Long option lists (country/state/city/university…) get a search box —
   it stays put while .wz-dd-optlist below it does the scrolling, so
   typing to filter never gets scrolled out of view. */
.wz-dd-search {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px;
  font-family: inherit; font-size: 13.5px; color: var(--ink); background: var(--bg-soft); flex-shrink: 0;
}
.wz-dd-search:focus { outline: none; border-color: var(--ink); background: white; }
.wz-dd-optlist { max-height: 240px; overflow-y: auto; }
.wz-dd-empty { padding: 10px 12px; font-size: 13px; color: var(--muted); font-style: italic; }
.wz-dd-option {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; border: 0;
  background: none; font-family: inherit; font-size: 14px; color: var(--ink-2);
}
.wz-dd-option:hover { background: var(--bg-soft); }
.wz-dd-option.active { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }

.wz-role-narrow { max-width: 560px; margin: 0 auto; }
@keyframes wzShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
.wz-shake { animation: wzShake 0.4s; }

/* Marks a required field left empty when "Save & Continue" was pressed.
   Cleared as soon as the host types in or opens that field.
   .wz-dd is only a positioning wrapper with no border of its own — the
   visible control is the .wz-dd-trigger button inside it, so styling the
   wrapper would be painted over and the host would see no highlight at all. */
.wz-input.wz-invalid,
.wz-dd.wz-invalid > .wz-dd-trigger {
  border-color: var(--brand-deep);
  background: #FFF7F4;
}
.wz-input.wz-invalid:focus,
.wz-dd.wz-invalid > .wz-dd-trigger:hover { border-color: var(--brand-deep); }

.wz-typegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wz-typecard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-align: left; padding: 26px 22px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: white; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.wz-typecard:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.wz-typecard.active { border-color: var(--brand); background: var(--brand-soft); }
.wz-typecard-icon { display: block; margin-bottom: 10px; color: var(--ink); }
.wz-typecard-icon svg { width: 28px; height: 28px; display: block; }
.wz-typecard-label { font-size: 16px; font-weight: 700; color: var(--ink); }
.wz-typecard-desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 880px) { .wz-typegrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .wz-typegrid { gap: 12px; }
  .wz-typecard { padding: 16px 14px; }
  .wz-typecard-icon svg { width: 22px; height: 22px; }
  .wz-typecard-label { font-size: 14px; }
  .wz-typecard-desc { font-size: 12.5px; }
}

.wz-ptype-grid { gap: 14px; }
.wz-ptype-grid .wz-typecard { padding: 18px 18px; gap: 8px; }
.wz-ptype-grid .wz-typecard-icon { margin-bottom: 4px; }
.wz-ptype-grid .wz-typecard-icon svg { width: 24px; height: 24px; }
.wz-ptype-grid .wz-typecard-label { font-size: 14.5px; font-weight: 600; }

.wz-amenity-cat-title { font-size: 16px; font-weight: 800; margin: 30px 0 14px; }
.wz-amenity-cat-title:first-child { margin-top: 0; }
.wz-amenity-cat-grid { margin-bottom: 6px; }

.wizard-next:disabled { opacity: 0.4; cursor: not-allowed; }
.wizard-next:disabled:hover { background: var(--brand); }

.wz-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
}
.wz-fields.wz-fields-plain { background: none; border: 0; padding: 0; }
@media (max-width: 620px) { .wz-fields { padding: 20px; grid-template-columns: 1fr; } }
.wzf { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.wzf-half { grid-column: span 1; }
.wzf label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.wz-input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-family: inherit; font-size: 14.5px; color: var(--ink);
  outline: none; transition: border-color .15s ease; resize: vertical;
}
.wz-input:focus { border-color: var(--ink); }
.wz-select { position: relative; }
.wz-select select {
  width: 100%; appearance: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 36px 12px 14px; font-family: inherit; font-size: 14.5px; color: var(--ink);
  background: white url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%235B6571" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 12px center / 16px 16px;
  outline: none; cursor: pointer;
}
.wz-counter { display: flex; align-items: center; gap: 16px; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; width: fit-content; }
.wz-counter button { width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--line); background: white; font-size: 16px; line-height: 1; cursor: pointer; }
.wz-counter button:hover { border-color: var(--ink); }
.wz-counter span { min-width: 16px; text-align: center; font-weight: 700; }

.wz-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.wz-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: white; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.wz-chip:hover { border-color: var(--ink); }
.wz-chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.wz-chip-check { font-weight: 800; }

.wz-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wz-photo {
  position: relative; aspect-ratio: 1; border-radius: 14px; border: 1.5px dashed var(--line);
  background: var(--bg-soft); display: grid; place-items: center; cursor: pointer; overflow: hidden;
}
.wz-photo:hover { border-color: var(--brand); }
.wz-photo.has { border-style: solid; }
.wz-photo img, .wz-photo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wz-photo-ph { color: var(--muted-2); width: 26px; height: 26px; }
.wz-photo-ph svg { width: 100%; height: 100%; }
.wz-photo-cover { position: absolute; bottom: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(15,18,22,0.75); color: white; font-size: 10.5px; font-weight: 700; }
.wz-photo.cover-slot.has { border-color: #2E90FA; box-shadow: 0 0 0 3px rgba(46,144,250,0.18); }
.wz-photo-add { width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: white; display: flex; align-items: center; justify-content: center; }
.wz-photo-add svg { width: 20px; height: 20px; }
/* AI Property Image Review — shown on a slot while its upload is out
   being checked by /api/verify-image. */
.wz-photo.checking { cursor: default; border-style: solid; }
.wz-photo-checking-label {
  position: relative; padding-top: 34px; font-size: 11.5px; font-weight: 700; color: var(--muted);
}
.wz-photo-checking-label::before {
  content: ''; position: absolute; top: 0; left: 50%; margin-left: -11px;
  width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--brand);
  animation: wzPhotoSpin .7s linear infinite;
}
@keyframes wzPhotoSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wz-photo-checking-label::before { animation: none; } }
.wz-photo-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 999px; background: rgba(15,18,22,0.6); color: white;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.wz-photo-play svg { width: 16px; height: 16px; }

@media (max-width: 560px) { .wz-photos { grid-template-columns: repeat(2, 1fr); } }

/* ============ Graphical listing review (wzStepReview) ============ */
.wz-review-wrap { max-width: 880px; margin: 0 auto; }
.wz-review-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.wz-review-section:first-child { padding-top: 0; }
.wz-review-section:last-child { border-bottom: 0; }
.wz-review-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.wz-review-section-head .pd-h3 { margin-bottom: 0; }
.wz-review-edit-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: white; font-size: 13px; font-weight: 700; color: var(--ink);
  cursor: pointer; flex-shrink: 0; white-space: nowrap;
}
.wz-review-edit-btn svg { width: 14px; height: 14px; }
.wz-review-edit-btn:hover { background: var(--bg-soft); }
.wz-review-chip-edit { margin-left: 8px; font-size: 12.5px; font-weight: 700; text-decoration: underline; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; }

.wz-review-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 90px; gap: 8px; border-radius: 16px; overflow: hidden; margin-bottom: 4px; }
.wz-review-gallery .wz-review-photo-tile:first-child { grid-row: span 2; grid-column: span 2; }
.wz-review-photo-tile { overflow: hidden; background: var(--bg-soft); position: relative; }
.wz-review-photo-tile img, .wz-review-photo-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wz-review-photo-tile .wz-photo-play { width: 30px; height: 30px; }
.wz-review-gallery-empty {
  display: flex; align-items: center; justify-content: center; height: 220px; border-radius: 16px;
  background: var(--bg-soft); color: var(--muted); font-size: 14.5px; font-weight: 600; margin-bottom: 4px; text-align: center; padding: 20px;
}

.wz-review-title { font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.wz-review-subtitle { color: var(--muted); font-size: 14.5px; }

.wz-review-rules { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-review-rule-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-deep); font-size: 12.5px; font-weight: 600;
}
.wz-review-rule-tag svg { width: 14px; height: 14px; }

.wz-review-price-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.wz-review-price-row { display: flex; align-items: baseline; gap: 8px; }
.wz-review-price-value { font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: -0.01em; }
.wz-review-price-unit { color: var(--muted); font-size: 14px; font-weight: 600; }
.wz-review-price-sub { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--ink-2); font-weight: 600; }

.wz-review-host-row { display: flex; align-items: center; gap: 14px; }
.wz-review-host-avatar { width: 52px; height: 52px; border-radius: 999px; background: var(--brand); color: white; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.wz-review-host-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.wz-review-host-loc { color: var(--muted); font-size: 13.5px; }
.wz-review-host-note { color: var(--muted); font-size: 12.5px; margin-top: 10px; }

@media (max-width: 560px) {
  .wz-review-gallery { grid-auto-rows: 70px; }
}

.wz-room-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.wz-room-card {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px;
}
.wz-room-card-thumb {
  width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0; overflow: hidden;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center; color: var(--muted-2);
}
.wz-room-card-thumb img, .wz-room-card-thumb video { width: 100%; height: 100%; object-fit: cover; }
.wz-room-card-body { flex: 1; min-width: 0; }
.wz-room-card-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.wz-room-card-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.wz-room-card-actions { display: flex; gap: 8px; flex-shrink: 0; }
.wz-room-card-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: white;
  display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer;
}
.wz-room-card-btn:hover { border-color: var(--brand); color: var(--brand); }
.wz-room-card-btn.danger:hover { border-color: #E03131; color: #E03131; }

.wz-add-room-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; border-radius: var(--radius-lg); border: 1.5px dashed var(--line);
  background: white; color: var(--ink); font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.wz-add-room-btn:hover { border-color: var(--brand); color: var(--brand); }

.wz-success { text-align: center; max-width: 480px; margin: 40px auto 0; }
.wz-success-ring {
  width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
  animation: wzRingPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.wz-success-check { stroke-dasharray: 24; stroke-dashoffset: 24; animation: wzCheckDraw 0.4s ease-out 0.35s forwards; }
@keyframes wzRingPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes wzCheckDraw {
  to { stroke-dashoffset: 0; }
}
.wz-success h1 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.wz-success p { color: var(--muted); line-height: 1.6; margin-bottom: 26px; }
.wz-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.wz-success-actions .btn { min-width: 190px; }

.wizard-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  display: flex; flex-direction: column;
  background: white;
}
/* The progress track doubles as the divider line above the bar: at 0% it's
   just the muted line color end-to-end, and fills with brand color as the
   wizard advances — no separate border-top needed. */
.wz-progress-track { position: relative; width: 100%; height: 3px; background: var(--line); flex-shrink: 0; }
.wz-progress-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--brand); transition: width .25s ease; }
.wizard-bar-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(20px, 5vw, 64px) 14px;
}
.wizard-back { background: none; border: 0; font-weight: 700; font-size: 14.5px; color: var(--ink); cursor: pointer; padding: 10px 8px; }
.wizard-back:hover { text-decoration: underline; }
.wizard-next { height: 44px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--brand); color: white; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.wizard-next:hover { background: var(--brand-deep); }

@media (max-width: 1024px) {
  .wizard-bar-row { padding: 9px clamp(16px, 4vw, 32px) 11px; }
  .wizard-back { font-size: 13.5px; padding: 8px 6px; }
  .wizard-next { height: 40px; padding: 0 20px; font-size: 13.5px; }
}

/* ============ List a Roommate — guided flow ============ */
.rm-welcome { display: flex; align-items: center; min-height: calc(100vh - 84px); }
.rm-welcome-wrap { max-width: 560px; margin: 0 auto; text-align: center; padding: 40px 0; }
.rm-welcome-illus { display: flex; justify-content: center; gap: 14px; margin-bottom: 28px; }
.rm-illus-chip {
  width: 64px; height: 64px; border-radius: 999px; background: var(--bg-soft);
  display: grid; place-items: center; font-size: 28px; border: 1px solid var(--line);
}
.rm-illus-2 { transform: translateY(-10px); background: var(--brand-soft); }
.rm-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 32px; text-align: left; }
.rm-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.rm-feature span { color: #2EBD6B; font-weight: 800; }
.rm-est-time { margin-top: 16px; font-size: 13px; color: var(--muted); }

.rm-flow-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; padding: 40px 0 40px; }
.rm-flow-main { min-width: 0; }
.rm-flow-side { position: sticky; top: 100px; }
@media (max-width: 980px) { .rm-flow-wrap { grid-template-columns: 1fr; } .rm-flow-side { position: static; order: -1; } }

.rm-step-head { text-align: left; margin: 0 0 28px; max-width: none; }
.rm-subhead { font-size: 15px; font-weight: 700; margin: 28px 0 16px; }

.rm-rolewrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.rm-rolecard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  text-align: left; padding: 24px; border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  background: white; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.rm-rolecard:hover { border-color: var(--ink); }
.rm-rolecard.active { border-color: var(--brand); background: var(--brand-soft); }
.rm-rolecard-icon { display: block; margin-bottom: 6px; color: var(--ink); }
.rm-rolecard-icon svg { width: 26px; height: 26px; display: block; }
.rm-rolecard-title { font-weight: 700; font-size: 15.5px; }
.rm-rolecard-desc { font-size: 13px; color: var(--muted); }
@media (max-width: 620px) { .rm-rolewrap { grid-template-columns: 1fr; } }

.rm-subfields { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.rm-upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rm-upload {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 24px 16px; border: 1.5px dashed var(--line); border-radius: 14px;
  background: var(--bg-soft); cursor: pointer; width: 100%; font-family: inherit;
}
.rm-upload:hover { border-color: var(--brand); }
.rm-upload.has-file { border-style: solid; border-color: #2EBD6B; background: white; }
.rm-upload svg { width: 26px; height: 26px; color: var(--muted-2); margin-bottom: 4px; }
.rm-upload-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.rm-upload-sub { font-size: 12px; color: var(--muted); }
.rm-upload-video { border: 1.5px dashed var(--line); }
@media (max-width: 620px) { .rm-upload-row { grid-template-columns: 1fr; } }

.rm-location-search { position: relative; display: flex; align-items: center; margin-bottom: 16px; }
.rm-location-search svg { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--muted-2); }
.rm-location-search .wz-input { padding-left: 44px; }
.rm-addr-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: white; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); max-height: 260px; overflow-y: auto; padding: 6px;
}
.rm-addr-item { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; font-family: inherit; font-size: 13.5px; border-radius: 8px; cursor: pointer; }
.rm-addr-item:hover { background: var(--bg-soft); }
.rm-map { height: 260px; margin-bottom: 28px; }
.rm-tip { margin-top: 20px; padding: 14px 16px; background: var(--bg-soft); border-radius: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }

.rm-typegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rm-typecard-sm { padding: 20px 18px; min-height: 92px; justify-content: center; }
.rm-typecard-sm .wz-typecard-emoji { font-size: 24px; margin-bottom: 4px; }
.rm-typecard-sm .wz-typecard-label { font-size: 13.5px; }
.rm-typecard-sm.active { border-color: var(--ink); border-width: 2px; }
@media (max-width: 720px) { .rm-typegrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .rm-typegrid { grid-template-columns: 1fr; } }

.rm-char-count { font-size: 12px; color: var(--muted); text-align: right; }

.rm-basics-card { background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px 28px; }
.rm-basics-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rm-basics-row:last-child { border-bottom: 0; }
.rm-basics-row > span:first-child { font-size: 15px; font-weight: 600; color: var(--ink); }
@media (max-width: 620px) { .rm-basics-card { padding: 4px 20px; } }

.wz-segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.wz-seg { padding: 8px 18px; border-radius: 999px; border: 0; background: none; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.wz-seg.active { background: var(--ink); color: white; }

.rm-amenity-search { margin-bottom: 28px; }
.rm-amenity-group { margin-bottom: 32px; }
.rm-amenity-group:last-child { margin-bottom: 0; }
.rm-amenity-group h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 14px; }
.rm-amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rm-amenity-card {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px;
  min-height: 84px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: white;
  cursor: pointer; text-align: left; transition: border-color .15s ease;
}
.rm-amenity-card:hover { border-color: var(--ink-2); }
.rm-amenity-card.active { border-color: var(--ink); border-width: 2px; background: var(--bg-soft); }
.rm-amenity-icon { font-size: 20px; }
.rm-amenity-label { font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.3; }
@media (max-width: 720px) { .rm-amenity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .rm-amenity-grid { grid-template-columns: 1fr; } }

.rm-freq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rm-freq-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; font-weight: 600; font-size: 13.5px; cursor: pointer; text-align: center; }
.rm-freq-card:hover { border-color: var(--ink); }
.rm-freq-card.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
@media (max-width: 560px) { .rm-freq-grid { grid-template-columns: 1fr 1fr; } }
.rm-optional { color: var(--muted); font-weight: 500; }

.rm-summary { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.rm-summary h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-bottom: 14px; }
.rm-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--ink-2); }
.rm-summary-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 15px; color: var(--ink); }

.rm-dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 40px 20px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--bg-soft); cursor: pointer;
}
.rm-dropzone:hover { border-color: var(--brand); }
.rm-dropzone svg { width: 30px; height: 30px; color: var(--muted-2); }
.rm-photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.rm-photo-slot { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; cursor: grab; }
.rm-photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-photo-remove { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 999px; border: 0; background: rgba(15,18,22,0.75); color: white; font-size: 15px; line-height: 1; cursor: pointer; }
@media (max-width: 620px) { .rm-photo-grid { grid-template-columns: repeat(3, 1fr); } }

.rm-ai-check { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.rm-ai-check h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.rm-ai-row { font-size: 13.5px; padding: 4px 0; }
.rm-ai-row.ok { color: #1F9254; }
.rm-ai-row.warn { color: var(--brand-deep); }
.rm-checklist { display: flex; flex-wrap: wrap; gap: 10px; }

.rm-mini-preview { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: white; box-shadow: var(--shadow-sm); }
.rm-mini-preview-img { height: 150px; background: var(--bg-soft); }
.rm-mini-preview-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-mini-preview-body { padding: 16px; }
.rm-mini-preview-title { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.rm-mini-preview-loc { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.rm-mini-preview-price { font-weight: 700; font-size: 15px; color: var(--brand); margin-bottom: 10px; }
.rm-mini-preview-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.rm-badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; background: var(--bg-soft); font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.rm-badge-verified { background: #E9F9EF; color: #1F9254; }

.rm-preview-full { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.rm-preview-gallery { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-auto-rows: 110px; gap: 4px; }
.rm-preview-gallery-img:first-child { grid-row: 1 / 3; }
.rm-preview-gallery-img { min-height: 0; min-width: 0; }
.rm-preview-gallery-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-preview-body { padding: 24px; }
.rm-preview-badgerow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rm-preview-body h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.rm-preview-price { font-size: 20px; font-weight: 800; color: var(--brand); margin-bottom: 6px; }
.rm-preview-loc { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.rm-preview-body h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin: 20px 0 10px; }
.rm-preview-amenities { display: flex; flex-wrap: wrap; gap: 10px; }
.rm-preview-amenities span { font-size: 13px; color: var(--ink-2); padding: 6px 12px; background: var(--bg-soft); border-radius: 999px; }
.rm-preview-rules { padding-left: 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
.rm-muted { color: var(--muted); font-size: 14px; line-height: 1.6; }
.rm-preview-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 620px) { .rm-preview-gallery { grid-template-columns: 1fr 1fr; } }

.rm-done { padding-top: 60px; }
.rm-while-waiting { text-align: left; max-width: 320px; margin: 0 auto 26px; padding: 16px 20px; background: var(--bg-soft); border-radius: 14px; }
.rm-while-waiting div { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.rm-while-waiting ul { padding-left: 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }

.rm-bar-right { display: flex; align-items: center; gap: 16px; }
.rm-autosave { font-size: 12.5px; color: var(--muted); transition: opacity .3s ease; }
.rm-autosave.flash { color: #2EBD6B; font-weight: 700; }

/* ============ Account / Profile page ============ */
.account-page { min-height: calc(100vh - 84px); padding: 48px 0 80px; }
.account-layout { display: grid; grid-template-columns: 220px 1px 1fr; gap: 40px; align-items: start; }
.account-sidebar { min-width: 0; }
.account-content { min-width: 0; }
.account-divider { background: var(--line); align-self: stretch; }

/* Messages fills the remaining viewport height instead of sitting in a fixed-
   height card with empty space below it; the sidebar divider stretches to
   match, touching the header immediately instead of starting 48px below it.
   Scoped to widths where sidebar+content show side by side — on narrower
   screens the mobile master-detail nav-list/content toggle takes over and
   must keep its own display:none/:block logic untouched. */
@media (min-width: 901px) {
  .account-page:has(#tabMessages:not([hidden])) {
    padding-top: 0; padding-bottom: 0;
    display: flex; flex-direction: column;
  }
  .account-page:has(#tabMessages:not([hidden])) .account-layout {
    flex: 1; min-height: 0; align-items: stretch;
  }
  .account-page:has(#tabMessages:not([hidden])) .account-sidebar {
    padding: 32px 0;
  }
  .account-page:has(#tabMessages:not([hidden])) .account-content {
    display: flex; flex-direction: column; min-height: 0;
    padding: 32px 0 24px;
  }
  .account-page:has(#tabMessages:not([hidden])) #tabMessages {
    flex: 1; display: flex; flex-direction: column; min-height: 0;
  }
  .account-page:has(#tabMessages:not([hidden])) .msg-layout {
    flex: 1; height: auto; min-height: 0;
  }
}

.account-sidebar-title { font-size: 26px; font-weight: 800; margin-bottom: 22px; }
.account-mobile-user { display: none; }
.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav-secondary { display: none; }
.account-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  border: 0; background: none; font-family: inherit; font-size: 14.5px; font-weight: 600;
  color: var(--ink-2); text-align: left; cursor: pointer;
}
.account-nav-item:hover { background: var(--bg-soft); }
.account-nav-item.active { background: var(--bg-soft); color: var(--ink); }
.account-nav-icon { width: 34px; height: 34px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.account-nav-item.active .account-nav-icon { background: var(--brand-soft); color: var(--brand); }
.account-nav-icon svg { width: 17px; height: 17px; }
.account-nav-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.account-nav-sub { display: none; }
.account-nav-chevron { display: none; flex-shrink: 0; color: var(--muted-2); }
.account-nav-chevron svg { width: 16px; height: 16px; }

/* Phones: sidebar "home" screen — user summary card + grouped-card nav lists
   with chevrons and subtitles, replacing the old flat borderless link list. */
@media (max-width: 900px) {
  .account-mobile-user {
    display: flex; align-items: center; gap: 12px;
    padding: 16px; margin-bottom: 20px;
    background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  }
  .account-mobile-user-avatar, .account-mobile-user-avatar-img {
    width: 48px; height: 48px; border-radius: 999px; flex-shrink: 0;
  }
  .account-mobile-user-avatar {
    background: var(--brand); color: white; display: grid; place-items: center;
    font-family: 'Funnel Display'; font-weight: 700; font-size: 17px;
  }
  .account-mobile-user-avatar-img { object-fit: cover; }
  .account-mobile-user-meta { flex: 1; min-width: 0; }
  .account-mobile-user-name { font-family: 'Funnel Display'; font-weight: 700; font-size: 15.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account-mobile-user-email { font-size: 13px; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account-mobile-user-edit {
    width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0;
    border: 1px solid var(--line); background: white; color: var(--ink);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
  }

  .account-nav {
    gap: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 4px; margin-bottom: 20px;
  }
  .account-nav-item { padding: 14px 12px; border-radius: 0; }
  .account-nav-item:first-child { border-radius: 14px 14px 0 0; }
  .account-nav-item:last-child { border-radius: 0 0 14px 14px; }
  .account-nav-item:only-child { border-radius: 14px; }
  .account-nav-item:not(:last-child) { border-bottom: 1px solid var(--line); }
  .account-nav-label { font-size: 15px; }
  .account-nav-sub { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }
  .account-nav-chevron { display: flex; }
  .account-nav-secondary { display: flex; }
}

.account-content h1 { font-size: 26px; font-weight: 800; }
.account-subtitle { color: var(--muted); font-size: 14px; margin-top: 4px; margin-bottom: 24px; }
.account-h2 { font-size: 19px; font-weight: 800; margin-bottom: 18px; }
.profile-details-card + .account-h2 { margin-top: 30px; }
.account-hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

.account-tab-head { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.account-tab-head .account-h2 { margin: 0; }
.account-edit-btn { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.account-edit-btn:hover { border-color: var(--ink); }

/* ---- Profile hero (banner + avatar + name + verified badge) ---- */
.profile-hero { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.profile-hero-banner { height: 150px; background: linear-gradient(120deg, #a8f0d8 0%, #cdf0c2 45%, #eef8d0 100%); background-size: cover; background-position: center; }
.profile-hero-editbtn {
  position: absolute; top: 20px; right: 24px; z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: white; color: var(--ink);
  font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.profile-hero-editbtn:hover { border-color: var(--ink); }
.profile-hero-avatarwrap {
  position: relative; width: 112px; height: 112px; margin: -56px 0 0 32px; border-radius: 999px;
  border: 4px solid white; box-shadow: 0 2px 10px rgba(0,0,0,.1); cursor: pointer; z-index: 2;
}
.profile-hero-below { padding: 14px 32px 30px; }
.profile-hero-name-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.profile-hero-name { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0; }
.profile-verified-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: #e7f9ee; color: #1a7f4e; font-size: 13px; font-weight: 700; border: 1px solid #bfeeda;
}
.profile-verify-btn {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: white; color: var(--ink);
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.profile-verify-btn:hover { border-color: var(--ink); }
.profile-verify-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.profile-hero-startdate { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.profile-hero-startdate svg { flex-shrink: 0; }

.about-avatar { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; border-radius: 999px; background: var(--brand); color: white; font-family: 'Funnel Display'; font-weight: 800; font-size: 34px; }
.about-avatar-img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; display: block; }
.about-avatar-edit {
  position: absolute; bottom: -2px; right: -2px; width: 28px; height: 28px; border-radius: 999px;
  background: var(--ink); color: white; border: 2px solid white; display: flex; align-items: center; justify-content: center;
}
.about-avatar-edit svg { width: 14px; height: 14px; }

/* ---- Profile details card ---- */
.profile-details-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; margin-bottom: 30px; }
.profile-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px 24px; }
.profile-detail-item { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.profile-detail-label { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.profile-detail-value { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (max-width: 560px) {
  .profile-hero-editbtn { top: 14px; right: 16px; padding: 8px 14px; font-size: 12.5px; }
  .profile-hero-avatarwrap { margin-left: 20px; width: 92px; height: 92px; margin-top: -46px; }
  .profile-hero-below { padding-left: 20px; padding-right: 20px; }
}

/* ---- Avatar crop modal ---- */
.crop-modal { position: relative; width: min(400px, 100%); background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 32px; text-align: center; }
.crop-title { font-size: 19px; font-weight: 800; margin-bottom: 20px; }
.crop-stage { position: relative; width: 280px; height: 280px; margin: 0 auto 20px; border-radius: 14px; overflow: hidden; background: #111; cursor: grab; touch-action: none; }
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; top: 0; left: 0; max-width: none; user-select: none; -webkit-user-drag: none; }
.crop-mask { position: absolute; top: 20px; left: 20px; right: 20px; bottom: 20px; border-radius: 999px; box-shadow: 0 0 0 2000px rgba(0,0,0,0.55); border: 2px solid white; pointer-events: none; }
.crop-zoom-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--muted); }
.crop-zoom-row input[type="range"] { flex: 1; accent-color: var(--brand); }
.crop-actions { display: flex; gap: 12px; justify-content: center; }

.about-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 24px; margin-top: 18px; }
.about-fact-body { display: flex; flex-direction: column; }
.about-fact-q { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.about-fact-text { font-size: 15px; font-weight: 700; color: var(--ink); }

.about-tagline { margin-top: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---- Edit-section modals (About / Personal info) ---- */
.about-edit-scroll { max-height: 50vh; overflow-y: auto; padding-right: 4px; margin-bottom: 6px; }
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) {
  .field-row-2 { grid-template-columns: 1fr; }
}

/* ---- ID verification upload ---- */
.id-upload-drop {
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 20px; text-align: center;
  cursor: pointer; color: var(--muted); font-size: 13.5px;
}
.id-upload-drop:hover { border-color: var(--ink); }
.id-upload-drop svg { width: 24px; height: 24px; margin-bottom: 8px; color: var(--muted); }
.id-upload-preview { max-width: 100%; max-height: 160px; border-radius: 8px; display: block; margin: 0 auto; }

.about-interests { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 24px; }
.about-interest { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.about-interest-icon { width: 20px; height: 20px; flex-shrink: 0; }
.about-interest-icon svg { width: 100%; height: 100%; }

/* ============ Interests picker modal ============ */
.interests-modal { width: min(520px, 100%); }
.interests-picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.interest-pick-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 10px; border: 1px solid var(--line); border-radius: 12px; background: white;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-align: center;
}
.interest-pick-item:hover { border-color: var(--ink); }
.interest-pick-item.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.interest-pick-icon { width: 22px; height: 22px; }
.interest-pick-icon svg { width: 100%; height: 100%; }
@media (max-width: 480px) {
  .interests-picker-grid { grid-template-columns: repeat(2, 1fr); }
}

.about-reviews-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.about-reviews-link:hover { text-decoration: underline; }
.about-reviews-icon { width: 20px; height: 20px; }
.about-reviews-icon svg { width: 100%; height: 100%; }

/* ---- Messages tab ---- */
.msg-layout { display: grid; grid-template-columns: 320px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; height: 640px; background: white; }

.msg-sidebar { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--line); }
.msg-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px; flex-shrink: 0; }
.msg-sidebar-title { font-size: 26px; font-weight: 800; color: var(--brand); margin: 0; }
.msg-sidebar-actions { display: flex; gap: 8px; }
.msg-icon-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink-2); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.msg-icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.msg-icon-btn svg { width: 16px; height: 16px; }

.msg-search-row { padding: 0 20px 14px; flex-shrink: 0; }
.msg-search-row input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; font-family: inherit; font-size: 13.5px; outline: none; box-sizing: border-box; }
.msg-search-row input:focus { border-color: var(--ink); }

.msg-list-scroll { flex: 1; overflow-y: auto; padding-bottom: 8px; }
.msg-section-label { display: flex; align-items: center; gap: 7px; padding: 10px 20px 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.msg-section-label svg { width: 13px; height: 13px; flex-shrink: 0; }

.msg-thread-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 20px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font-family: inherit; }
.msg-thread-item:hover { background: var(--bg-soft); }
.msg-thread-item.active { background: var(--brand-soft); }
.msg-avatar { width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: white; flex-shrink: 0; }
.msg-avatar svg { width: 20px; height: 20px; }
.msg-thread-meta { min-width: 0; flex: 1; }
.msg-thread-name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.msg-thread-name { font-size: 14.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-thread-time { font-size: 11px; color: var(--muted-2); flex-shrink: 0; }
.msg-thread-preview-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.msg-thread-preview { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 4px; min-width: 0; }
.msg-thread-preview.typing { color: #1DA851; font-weight: 600; }
.msg-thread-preview svg { width: 13px; height: 13px; flex-shrink: 0; }
.msg-unread-badge { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #EF4444; color: white; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.msg-read-tick { color: var(--brand); flex-shrink: 0; }

.msg-thread { display: flex; flex-direction: column; height: 100%; min-width: 0; min-height: 0; }
#msgThreadBody { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.msg-thread-head { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.msg-thread-head-row { display: flex; align-items: center; gap: 12px; padding: 14px 22px; }
.msg-back-link { display: none; }
.msg-thread-head-avatar { width: 46px; height: 46px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: white; flex-shrink: 0; }
.msg-thread-head-avatar svg { width: 21px; height: 21px; }
.msg-thread-head-meta { flex: 1; min-width: 0; }
.msg-thread-head-name { font-size: 16px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-thread-head-status { font-size: 12.5px; color: #1DA851; font-weight: 600; margin-top: 1px; }
.msg-thread-head-status.idle { color: var(--muted); font-weight: 500; }
.msg-thread-head-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.msg-thread-head-actions button { width: 36px; height: 36px; border-radius: 999px; border: 0; background: none; color: var(--ink-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.msg-thread-head-actions button:hover { background: var(--bg-soft); color: var(--ink); }
.msg-thread-head-actions svg { width: 18px; height: 18px; }

.msg-more-wrap { position: relative; }
.msg-more-menu {
  position: absolute; top: 44px; right: 0; z-index: 20; min-width: 200px;
  background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.msg-more-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; height: auto; padding: 10px 12px; border: 0; background: none;
  border-radius: 8px; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer;
}
.msg-more-menu button:hover { background: var(--bg-soft); color: var(--ink); }
.msg-more-menu button svg { width: 16px; height: 16px; flex-shrink: 0; }
.msg-more-menu button.danger { color: #EF4444; }
.msg-more-menu button.danger:hover { background: #FEF2F2; }

.msg-bubbles { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 16px; background: var(--bg-soft); }
.msg-date-divider { align-self: center; padding: 6px 16px; border-radius: 999px; background: white; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }
.msg-group { display: flex; flex-direction: column; gap: 6px; max-width: 72%; }
.msg-group.mine { align-self: flex-end; align-items: flex-end; }
.msg-group.theirs { align-self: flex-start; align-items: flex-start; }
.msg-group-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.msg-group-name { font-weight: 700; color: var(--ink); }
.msg-group-time { color: var(--muted-2); }
.msg-bubble { padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.55; }
.msg-group.theirs .msg-bubble { background: white; color: var(--ink); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.msg-group.mine .msg-bubble { background: var(--brand); color: white; border-bottom-right-radius: 4px; }
.msg-bubble .msg-mention { color: var(--brand); font-weight: 700; }
.msg-group.mine .msg-bubble .msg-mention { color: white; text-decoration: underline; }
.msg-bubble a { color: var(--brand); text-decoration: underline; word-break: break-all; }
.msg-group.mine .msg-bubble a { color: white; }
.msg-bubble-media { padding: 4px; overflow: hidden; }
.msg-bubble-media img, .msg-bubble-media video { display: block; max-width: 220px; max-height: 220px; border-radius: 12px; }
.msg-bubble-file { display: flex; align-items: center; gap: 10px; }
.msg-bubble-file svg { width: 20px; height: 20px; flex-shrink: 0; }
.msg-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 14px; background: var(--bg-soft); }

.msg-reply-row { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-top: 1px solid var(--line); flex-shrink: 0; background: white; }
.msg-reply-icon { width: 38px; height: 38px; border-radius: 999px; border: 0; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.msg-reply-icon:hover { background: var(--bg-soft); color: var(--ink); }
.msg-reply-icon svg { width: 19px; height: 19px; }
.msg-reply-row input { flex: 1; height: 42px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; font-family: inherit; font-size: 14px; outline: none; background: var(--bg-soft); min-width: 0; }
.msg-reply-row input:focus { border-color: var(--ink); background: white; }
.msg-reply-send { width: 42px; height: 42px; border-radius: 999px; border: 0; background: var(--brand); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.msg-reply-send:hover { background: var(--brand-deep); }
.msg-reply-send svg { width: 17px; height: 17px; }

/* Phones: airier list rows and a leaner composer — matching a single-column
   messenger layout instead of the denser desktop/tablet density. */
@media (max-width: 600px) {
  .msg-sidebar-head { padding: 18px 16px 12px; }
  .msg-sidebar-actions .msg-icon-btn[title="New message"] { display: none; }
  .msg-thread-item { padding: 14px 16px; gap: 14px; }
  .msg-avatar { width: 52px; height: 52px; font-size: 17px; }
  .msg-thread-name { font-size: 15px; }
  .msg-thread-preview { font-size: 13px; }
  .msg-thread-head-row { padding: 12px 16px; }
  .msg-bubbles { padding: 16px; }
  .msg-reply-row { padding: 10px 14px; }
  .msg-reply-row .msg-reply-icon[title="Voice message"] { display: none; }
}

/* ---- My Favorite tab ---- */
.fav-grid { display: flex; flex-wrap: wrap; gap: 20px; }

/* ============================================================
   Host Dashboard (My Listings tab: Analytics / My Listings / Promotion)
   ============================================================ */
.dash-root {
  --viz-1: #2a78d6; --viz-2: #eb6834; --viz-3: #1baf7a; --viz-4: #eda100;
  --viz-good: #0ca30c; --viz-warning: #fab219; --viz-critical: #d03b3b;
  --viz-grid: #e1e0d9; --viz-axis: #c3c2b7;
}
.dash-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-subtabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.dash-subtab {
  border: 0; background: none; padding: 12px 4px; margin-right: 22px; font-family: inherit; font-size: 14.5px; font-weight: 700;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; flex-shrink: 0;
}
.dash-subtab:hover { color: var(--ink); }
.dash-subtab.active { color: var(--ink); border-bottom-color: var(--brand); }

/* ---- Filters row ---- */
.dash-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-filters .wz-dd { width: auto; min-width: 160px; }
.dash-filters .wz-dd-trigger { padding: 0 14px; height: 40px; border-radius: 999px; }

/* ---- KPI cards ---- */
.dash-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
#dashListingKpiGrid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { #dashListingKpiGrid { grid-template-columns: 1fr; } }
.dash-kpi-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; background: white; }
.dash-kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-kpi-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.dash-kpi-icon svg { width: 17px; height: 17px; }
.dash-kpi-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.dash-kpi-delta.up { color: var(--viz-good); background: rgba(12,163,12,0.1); }
.dash-kpi-delta.down { color: var(--viz-critical); background: rgba(208,59,59,0.1); }
.dash-kpi-delta svg { width: 10px; height: 10px; }
.dash-kpi-value { font-size: 25px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 4px; }
.dash-kpi-label { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---- Generic dashboard card ---- */
.dash-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; background: white; margin-bottom: 20px; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.dash-card-title { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.dash-card-sub { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.dash-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-full { grid-column: 1 / -1; }

/* ---- Granularity / mini pill toggle ---- */
.dash-granularity, .dash-pilltabs { display: flex; gap: 2px; background: var(--bg-soft); border-radius: 999px; padding: 3px; }
.dash-granularity button, .dash-pilltabs button {
  border: 0; background: none; padding: 6px 13px; border-radius: 999px; font-family: inherit; font-size: 12.5px; font-weight: 700;
  color: var(--muted); cursor: pointer;
}
.dash-granularity button.active, .dash-pilltabs button.active { background: white; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---- Line/area chart ---- */
.dash-linechart-wrap { position: relative; }
.dash-linechart { width: 100%; height: auto; overflow: visible; }
.dash-linechart .grid-line { stroke: var(--viz-grid); stroke-width: 1; }
.dash-linechart .axis-label { fill: var(--muted); font-size: 10.5px; font-family: inherit; }
.dash-linechart .area-fill { fill: url(#dashAreaGradient); }
.dash-linechart .line-path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dash-linechart .hover-dot { fill: var(--brand); stroke: white; stroke-width: 2; opacity: 0; transition: opacity .1s; }
.dash-linechart .hover-line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.dash-chart-tooltip {
  position: absolute; pointer-events: none; background: var(--ink); color: white; padding: 8px 12px; border-radius: 10px;
  font-size: 12px; font-weight: 600; white-space: nowrap; transform: translate(-50%, -115%); opacity: 0; transition: opacity .1s;
  z-index: 5; box-shadow: var(--shadow-md);
}
.dash-chart-tooltip .tt-sub { color: rgba(255,255,255,0.65); font-weight: 500; font-size: 11px; margin-top: 2px; }

/* ---- Legend ---- */
.dash-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.dash-legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.dash-legend-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }

/* ---- Donut ---- */
.dash-donut-row { display: flex; align-items: center; gap: 24px; }
.dash-donut-row svg { flex-shrink: 0; }
.dash-donut-center-value { font-size: 18px; font-weight: 800; fill: var(--ink); }
.dash-donut-center-label { font-size: 9.5px; fill: var(--muted); font-weight: 600; }
.dash-legend-col { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.dash-legend-row { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.dash-legend-row .dash-legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.dash-legend-row-label { flex: 1; color: var(--ink-2); font-weight: 600; }
.dash-legend-row-value { color: var(--ink); font-weight: 800; }

/* ---- Horizontal bar list ---- */
.dash-barlist { display: flex; flex-direction: column; gap: 14px; }
.dash-barlist-row { display: grid; grid-template-columns: 120px 1fr 56px; align-items: center; gap: 12px; }
.dash-barlist-label { font-size: 13px; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-barlist-track { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.dash-barlist-fill { height: 100%; border-radius: 999px; background: var(--brand); }
.dash-barlist-value { font-size: 12.5px; font-weight: 700; color: var(--ink); text-align: right; }

/* ---- Top listings table-ish list ---- */
.dash-toplist { display: flex; flex-direction: column; }
.dash-toplist-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.dash-toplist-row:last-child { border-bottom: 0; }
.dash-toplist-rank { width: 22px; font-size: 13px; font-weight: 800; color: var(--muted); flex-shrink: 0; }
.dash-toplist-media { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--bg-soft); }
.dash-toplist-media img { width: 100%; height: 100%; object-fit: cover; }
.dash-thumb-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted-2); }
.dash-thumb-empty svg { width: 40%; height: 40%; }
.dash-toplist-body { flex: 1; min-width: 0; }
.dash-toplist-title { font-size: 13.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-toplist-sub { font-size: 12px; color: var(--muted); }
.dash-toplist-metrics { display: flex; gap: 16px; flex-shrink: 0; }
.dash-toplist-metric { text-align: right; }
.dash-toplist-metric b { display: block; font-size: 13.5px; color: var(--ink); }
.dash-toplist-metric span { font-size: 11px; color: var(--muted); }

/* ---- Data table (inquiries) ---- */
.dash-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dash-table th { text-align: left; padding: 0 12px 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
.dash-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table td:first-child, .dash-table th:first-child { padding-left: 0; }
.dash-table td:last-child, .dash-table th:last-child { padding-right: 0; }

/* ---- Activity feed ---- */
.dash-activity { display: flex; flex-direction: column; }
.dash-activity-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dash-activity-item:last-child { border-bottom: 0; }
.dash-activity-icon { width: 32px; height: 32px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); display: grid; place-items: center; flex-shrink: 0; }
.dash-activity-icon svg { width: 15px; height: 15px; }
.dash-activity-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.dash-activity-text b { color: var(--ink); font-weight: 700; }
.dash-activity-time { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---- Recommendations ---- */
.dash-reco-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dash-reco-card { display: flex; gap: 12px; padding: 16px; border-radius: 14px; background: var(--bg-soft); }
.dash-reco-icon { width: 34px; height: 34px; border-radius: 10px; background: white; color: var(--brand); display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.dash-reco-icon svg { width: 16px; height: 16px; }
.dash-reco-title { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.dash-reco-text { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---- Heatmap (best days/times) ---- */
.dash-heatmap-wrap { overflow-x: auto; }
.dash-heatmap { display: grid; grid-template-columns: 56px repeat(7, 1fr); gap: 4px; min-width: 480px; }
.dash-heatmap-corner { }
.dash-heatmap-daylabel, .dash-heatmap-rowlabel { font-size: 11px; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.dash-heatmap-rowlabel { justify-content: flex-start; }
.dash-heatmap-cell { aspect-ratio: 1.6; border-radius: 6px; }
.dash-heatmap-legend { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 11.5px; color: var(--muted); }
.dash-heatmap-legend-swatch { width: 14px; height: 14px; border-radius: 4px; }
.dash-insight-callout { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--brand-soft); margin-top: 16px; }
.dash-insight-callout svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.dash-insight-callout p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.dash-insight-callout b { color: var(--ink); }

/* ---- Status badge ---- */
.dash-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 10px 4px 8px; border-radius: 999px; }
.dash-status::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.dash-status.active { color: var(--viz-good); background: rgba(12,163,12,0.1); }
.dash-status.inactive { color: var(--muted-2); background: var(--bg-soft); }
.dash-status.draft { color: #B36B00; background: rgba(250,178,25,0.16); }

/* ---- My Listings: cards ---- */
.dash-listing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-status-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-status-filters button {
  height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: white;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.dash-status-filters button.active { background: var(--ink); color: white; border-color: var(--ink); }
.dash-listing-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.dash-listing-card { flex: 0 1 300px; min-width: 260px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: white; display: flex; flex-direction: column; }
.dash-listing-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.dash-listing-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-listing-media-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.dash-listing-promo-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--ink); color: white; }
.dash-listing-promo-badge svg { width: 11px; height: 11px; }
.dash-listing-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.dash-listing-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.dash-listing-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.dash-listing-loc { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.dash-listing-price { font-size: 13.5px; font-weight: 700; color: var(--brand); margin-bottom: 14px; }
.dash-listing-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto; }
.dash-listing-metric { text-align: center; }
.dash-listing-metric b { display: block; font-size: 14px; font-weight: 800; color: var(--ink); }
.dash-listing-metric span { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.dash-create-card {
  flex: 0 1 300px; min-width: 260px;
  border: 1.5px dashed var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 40px 20px; text-align: center; color: var(--ink); text-decoration: none; min-height: 280px;
}
.dash-create-card:hover { border-color: var(--brand); background: var(--brand-soft); }
.dash-create-icon { width: 48px; height: 48px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.dash-create-icon svg { width: 22px; height: 22px; }
.dash-create-card b { font-size: 14.5px; }
.dash-create-card span { font-size: 12.5px; color: var(--muted); }

/* ---- My Listings: table toolbar + table ---- */
.dash-table-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-table-search { position: relative; flex: 1 1 240px; min-width: 200px; }
.dash-table-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); pointer-events: none; }
.dash-table-search input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); padding: 0 16px 0 40px; font-family: inherit; font-size: 13.5px; color: var(--ink); }
.dash-table-search input:focus { outline: 2px solid var(--brand); outline-offset: -1px; background: white; }
.dash-table-toolbar .wz-dd { width: auto; min-width: 150px; }
.dash-table-toolbar .wz-dd-trigger { padding: 0 14px; height: 40px; border-radius: 999px; }
.dash-table-wrap { overflow-x: auto; }
.dash-listing-table { min-width: 780px; }
.dash-listing-table .dash-prop-cell { display: flex; align-items: center; gap: 12px; }
.dash-listing-table .dash-prop-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--bg-soft); }
.dash-listing-table .dash-prop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-listing-table .dash-prop-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.dash-listing-table .dash-prop-id { font-size: 12px; color: var(--muted); font-weight: 600; }
.dash-listing-table .dash-promo-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); white-space: nowrap; }
.dash-listing-table .dash-promo-pill svg { width: 11px; height: 11px; }
.dash-listing-table .dash-promo-pill.off { background: var(--bg-soft); color: var(--muted-2); }
.dash-listing-table .dash-row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.dash-listing-table .dash-row-action-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: white; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.dash-listing-table .dash-row-action-btn:hover { border-color: var(--ink); color: var(--ink); }
.dash-listing-table .dash-row-action-btn svg { width: 15px; height: 15px; }
.dash-table-empty { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 13.5px; }

/* ---- Property management page ---- */
.manage-page { min-height: 60vh; }
.manage-page-head {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 24px; border-bottom: 1px solid var(--line);
}
.manage-back-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); background: none; border: 0; cursor: pointer; padding: 8px 12px; border-radius: 999px; text-decoration: none; }
.manage-back-btn:hover { background: var(--bg-soft); color: var(--ink); }
.manage-back-btn svg { width: 16px; height: 16px; }
.manage-overlay-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.manage-page-body { padding: 30px 24px 64px; max-width: 900px; }
.manage-notfound { text-align: center; padding: 90px 20px; }
.manage-notfound h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.manage-notfound p { color: var(--muted); margin-bottom: 24px; }

/* ---- Listing detail, in-page within the dashboard (sidebar stays put) ---- */
.dash-listing-detail-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
/* No max-width here on purpose — the body should span the same width as
   .dash-listing-detail-head above it (the Unpublish/Delete/Save changes
   toolbar row), which has no cap either. A narrower fixed max-width left a
   dead gap on the right of the gallery/info when the dashboard pane is
   wide. */
@media (max-width: 700px) { .dash-listing-detail-head { align-items: stretch; } }

/* Gallery */
.manage-gallery-wrap { position: relative; margin-bottom: 30px; }
.manage-gallery-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; border-radius: var(--radius-lg); overflow: hidden; height: 300px; }
.manage-gallery-hero { height: 100%; background: var(--bg-soft); }
.manage-gallery-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.manage-gallery-thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; height: 100%; }
.manage-gallery-thumb { position: relative; background: var(--bg-soft); overflow: hidden; }
.manage-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.manage-gallery-more { position: absolute; inset: 0; background: rgba(15,18,22,0.55); color: white; font-size: 18px; font-weight: 800; display: grid; place-items: center; }
.manage-edit-fab {
  position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: white; color: var(--ink);
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-md);
}
.manage-edit-fab:hover { background: var(--bg-soft); }
.manage-edit-fab svg { width: 15px; height: 15px; }

/* Title block */
.manage-titleblock { margin-bottom: 30px; }
.manage-titleblock-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.manage-type-badge { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--ink-2); background: var(--bg-soft); padding: 4px 11px; border-radius: 999px; }
.manage-titleblock-row { display: flex; align-items: flex-start; gap: 10px; }
.manage-titleblock-row h1 { font-size: 26px; font-weight: 800; margin: 0; line-height: 1.2; }
.manage-loc-view { display: flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.manage-loc-view svg { width: 16px; height: 16px; flex-shrink: 0; }
.manage-edit-pencil {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line);
  background: white; color: var(--ink-2); display: grid; place-items: center; cursor: pointer;
}
.manage-edit-pencil:hover { border-color: var(--ink); color: var(--ink); }
.manage-edit-pencil svg { width: 15px; height: 15px; }

/* Section-level edit-in-place panel */
.manage-section-edit { margin-top: 16px; padding: 20px; background: var(--bg-soft); border-radius: 14px; }
.manage-section-edit-head { margin-bottom: 14px; }
.manage-section-edit-head h3 { font-size: 15px; font-weight: 800; margin: 0 0 3px; }
.manage-section-edit-head p { font-size: 12.5px; color: var(--muted); margin: 0; }
.manage-done-btn { margin-top: 16px; }

.manage-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px; }
.manage-stat-tile { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--bg-soft); }
.manage-stat-tile b { display: block; font-size: 18px; font-weight: 800; color: var(--ink); }
.manage-stat-tile span { font-size: 11px; color: var(--muted); font-weight: 600; }

.manage-card-section { padding: 28px 0; border-top: 1px solid var(--line); }
.manage-section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.manage-section-title-row h2 { font-size: 17px; font-weight: 800; margin: 0; }

.manage-price-view { display: flex; align-items: baseline; gap: 8px; }
.manage-price-amount { font-size: 25px; font-weight: 800; color: var(--brand); }
.manage-price-unit { font-size: 14px; color: var(--muted); font-weight: 600; }

.manage-desc-view { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); margin: 0; white-space: pre-wrap; }

.manage-view-chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.manage-view-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); padding: 8px 14px; border-radius: 999px; }
.manage-view-chip svg { width: 15px; height: 15px; color: var(--viz-good); flex-shrink: 0; }
.manage-empty-note { font-size: 13.5px; color: var(--muted); font-style: italic; margin: 0; }

.manage-chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.manage-chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: white; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.manage-chip.active { background: var(--ink); color: white; border-color: var(--ink); }
.manage-photo-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.manage-photo-tile { position: relative; width: 116px; height: 116px; border-radius: 12px; overflow: hidden; background: white; }
.manage-photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.manage-photo-remove { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 999px; border: 0; background: rgba(15,18,22,0.72); color: white; cursor: pointer; font-size: 15px; line-height: 1; display: grid; place-items: center; }
.manage-photo-add { width: 116px; height: 116px; border-radius: 12px; border: 1.5px dashed var(--line); background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; }
.manage-photo-add:hover { border-color: var(--brand); color: var(--brand); }
.manage-photo-add svg { width: 20px; height: 20px; }
.manage-footer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.btn-outline-danger { border-color: rgba(208,59,59,0.3); color: var(--viz-critical); }
.btn-outline-danger:hover { background: #FEF2F2; border-color: var(--viz-critical); }
@media (max-width: 700px) {
  .manage-page-body { padding: 20px; }
  .manage-page-head { padding: 12px 16px; }
  .manage-stats-grid { grid-template-columns: 1fr 1fr; }
  .manage-gallery-grid { grid-template-columns: 1fr; height: auto; }
  .manage-gallery-hero { height: 220px; }
  .manage-gallery-thumbs { display: none; }
}

/* ---- Promotion tab ---- */
.dash-promo-hero { border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--ink) 0%, #2A2F38 100%); color: white; padding: 28px 30px; margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dash-promo-hero h2 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.dash-promo-hero p { font-size: 13.5px; color: rgba(255,255,255,0.7); max-width: 46ch; line-height: 1.5; }
.dash-promo-hero .btn { flex-shrink: 0; }
.dash-promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 32px; }
.dash-promo-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: white; }
.dash-promo-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.dash-promo-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-promo-card-body { padding: 16px 18px; }
.dash-promo-progress-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.dash-promo-progress-track { height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin-bottom: 14px; }
.dash-promo-progress-fill { height: 100%; border-radius: 999px; background: var(--brand); }
.dash-promo-uplift { display: flex; gap: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.dash-promo-uplift div b { display: block; font-size: 15px; font-weight: 800; color: var(--viz-good); }
.dash-promo-uplift div span { font-size: 11px; color: var(--muted); }

/* ---- Promotion modal ---- */
.dash-promo-modal { max-width: 560px; width: 92vw; max-height: 86vh; overflow-y: auto; }
.dash-promo-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 24px; }
.dash-promo-step-dot { flex: 1; height: 4px; border-radius: 999px; background: var(--line); }
.dash-promo-step-dot.done, .dash-promo-step-dot.active { background: var(--brand); }
.dash-promo-pick-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; max-height: 320px; overflow-y: auto; }
.dash-promo-pick-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.dash-promo-pick-row.selected { border-color: var(--brand); background: var(--brand-soft); }
.dash-promo-pick-row img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.dash-promo-pick-row-body { flex: 1; min-width: 0; }
.dash-promo-pick-row-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.dash-promo-pick-row-sub { font-size: 12px; color: var(--muted); }
.dash-promo-pick-check { width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--line); flex-shrink: 0; display: grid; place-items: center; color: white; }
.dash-promo-pick-row.selected .dash-promo-pick-check { background: var(--brand); border-color: var(--brand); }
.dash-promo-pick-check svg { width: 12px; height: 12px; }
.dash-promo-package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.dash-promo-package { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 14px; cursor: pointer; text-align: center; }
.dash-promo-package.selected { border-color: var(--brand); background: var(--brand-soft); }
.dash-promo-package-days { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.dash-promo-package-price { font-size: 17px; font-weight: 800; color: var(--brand); margin-bottom: 4px; }
.dash-promo-package-note { font-size: 11px; color: var(--muted); }
.dash-promo-summary-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.dash-promo-summary-row:last-of-type { border-bottom: 0; }
.dash-promo-summary-total { font-weight: 800; color: var(--ink); font-size: 15px; }
.dash-promo-success { text-align: center; padding: 20px 0; }
.dash-promo-success-ring { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.dash-promo-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

.dash-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: white; padding: 12px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 200; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.dash-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 980px) {
  .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-chart-grid { grid-template-columns: 1fr; }
  .dash-reco-grid { grid-template-columns: 1fr; }
  .dash-promo-package-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dash-kpi-grid { grid-template-columns: 1fr 1fr; }
  .dash-toplist-metrics { display: none; }
  .dash-barlist-row { grid-template-columns: 90px 1fr 44px; }
  .dash-donut-row { flex-direction: column; align-items: flex-start; }
}

.account-back-btn { display: none; align-items: center; gap: 6px; margin-bottom: 20px; border: 0; background: none; padding: 0; font-family: inherit; font-weight: 700; font-size: 14.5px; color: var(--ink); cursor: pointer; }

.account-back-btn { display: none; align-items: center; gap: 6px; margin-bottom: 20px; border: 0; background: none; padding: 0; font-family: inherit; font-weight: 700; font-size: 14.5px; color: var(--ink); cursor: pointer; }
/* Two "back" controls stacked (← Profile above ← Messages) is confusing —
   once a conversation is open, the single ← Messages link is enough. */
.account-layout:has(#tabMessages:not([hidden]) .msg-layout.thread-open) .account-back-btn { display: none; }

@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-divider { display: none; }
  .account-nav { flex-direction: column; overflow-x: visible; gap: 8px; }
  .account-nav-item { width: 100%; }
  .about-interests { grid-template-columns: repeat(2, 1fr); }
  .msg-layout { grid-template-columns: 1fr; height: 70vh; min-height: 460px; }

  /* Mobile master-detail: sidebar nav is the "home" screen, content is a separate
     screen you navigate into. .content-open (added on tab select) swaps between them. */
  .account-content { display: none; }
  .account-layout.content-open .account-sidebar { display: none; }
  .account-layout.content-open .account-content { display: block; }
  .account-back-btn { display: inline-flex; }

  /* Mobile master-detail within Messages: thread list is the default view; opening a
     thread (.thread-open) swaps to the conversation, with a back arrow to return. */
  .msg-thread { display: none; }
  .msg-layout.thread-open .msg-sidebar { display: none; }
  .msg-layout.thread-open .msg-thread { display: flex; }
  .msg-back-link {
    display: flex; align-items: center; gap: 6px;
    margin: 0 0 20px; padding: 0; border: 0; background: none;
    font-family: inherit; font-weight: 700; font-size: 14.5px; color: var(--ink); cursor: pointer;
  }
  .msg-back-link svg { flex-shrink: 0; }

  /* The conversation "sits plain" on phones — no card border/shadow once a
     thread is open, just the plain header + bubbles + composer. */
  .msg-layout.thread-open {
    border: 0; border-radius: 0; box-shadow: none; background: none;
  }
}

/* Tablet: the account/profile page (About me, Listings, Messages, My Favorite,
   Subscription) uses desktop-scale type and spacing that reads oversized on a
   tablet-width screen — scale it down without changing the layout structure. */
@media (min-width: 601px) and (max-width: 1024px) {
  .account-sidebar-title { font-size: 21px; margin-bottom: 16px; }
  .account-nav-item { font-size: 13.5px; padding: 9px 10px; }
  .account-nav-icon { width: 30px; height: 30px; }
  .account-nav-icon svg { width: 15px; height: 15px; }
  .account-content h1 { font-size: 21px; }
  .account-subtitle { font-size: 13px; margin-bottom: 18px; }
  .account-h2 { font-size: 16px; margin-bottom: 14px; }
  .account-edit-btn { font-size: 12.5px; padding: 7px 14px; }

  .profile-hero-banner { height: 110px; }
  .profile-hero-avatarwrap { width: 84px; height: 84px; margin-top: -42px; margin-left: 24px; }
  .profile-hero-below { padding: 12px 24px 22px; }
  .profile-hero-name { font-size: 21px; }
  .profile-verified-pill, .profile-verify-btn { font-size: 12px; padding: 6px 12px; }
  .profile-hero-startdate { font-size: 12.5px; }
  .profile-hero-editbtn { padding: 8px 14px; font-size: 12.5px; }

  .profile-details-card { padding: 20px 22px; }
  .profile-detail-label { font-size: 11.5px; }
  .profile-detail-value { font-size: 13.5px; }
  .about-fact-q { font-size: 11.5px; }
  .about-fact-text { font-size: 13.5px; }
  .about-interest { font-size: 13px; }
  .about-tagline { font-size: 13px; }

  .msg-sidebar-title { font-size: 21px; }
  .msg-thread-name { font-size: 13.5px; }
  .msg-thread-preview { font-size: 12px; }
  .msg-avatar { width: 38px; height: 38px; font-size: 13px; }
  .msg-thread-head-name { font-size: 14px; }
  .msg-thread-head-avatar { width: 40px; height: 40px; }
  .msg-bubble { font-size: 13px; padding: 9px 13px; }

  .city-empty h2 { font-size: 18px; }
  .city-empty p { font-size: 13px; }
}

/* ============ Subscription / pricing page ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.pricing-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; background: white;
}
.pricing-card.featured { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
.pricing-card-badge {
  position: absolute; top: -13px; left: 24px; background: var(--brand); color: white;
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
}
.pricing-card-name { font-size: 20px; font-weight: 800; }
.pricing-card-tag { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pricing-card-price { font-family: 'Funnel Display'; font-size: 32px; font-weight: 800; margin-top: 20px; }
.pricing-card-price span { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.pricing-card-list { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pricing-card-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.pricing-card-list li svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.pricing-card-best { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 16px; line-height: 1.5; }
.pricing-card-best b { color: var(--ink); display: block; margin-bottom: 2px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.pricing-card-cta { width: 100%; }
.pricing-card-cta.current { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); cursor: default; }
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pricing-grid { grid-template-columns: 1fr; } }
@media (min-width: 601px) and (max-width: 1024px) {
  .pricing-card { padding: 20px 18px; }
  .pricing-card-name { font-size: 17px; }
  .pricing-card-price { font-size: 24px; }
  .pricing-card-list li { font-size: 12.5px; }
}

.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare-table th, .compare-table td { padding: 14px 20px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; font-weight: 600; color: var(--ink); }
.compare-table thead th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-check { color: var(--brand); font-weight: 700; }
.compare-dash { color: var(--muted-2); }

.slots-card { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 36px; }
.slots-card h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; margin-bottom: 8px; }
.slots-card > p { color: var(--muted); margin-bottom: 20px; }
.slots-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.slots-list li { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.slots-list li b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; }
@media (max-width: 620px) { .slots-list { grid-template-columns: 1fr; } }

/* ============ Account: Subscription tab ============ */
.sub-current-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; max-width: 480px; }
.sub-current-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.sub-current-name { font-family: 'Funnel Display'; font-size: 24px; font-weight: 800; margin-top: 6px; }
.sub-current-price { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.sub-current-features { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 10px; }
.sub-current-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.sub-current-features li svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.pricing-card.is-current { background: var(--bg-soft); }
.pricing-card-current-badge {
  display: block; width: 100%; box-sizing: border-box; text-align: center;
  padding: 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep);
  font-size: 14px; font-weight: 700;
}

/* ============ Mobile bottom quick-nav — retired ============
   Replaced by the full-screen account menu (see .account-dropdown's
   max-width:767px rules above); .mbn markup may still be present in older
   pages but is always hidden. */
.mbn { display: none !important; }
.mbn-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  flex: 1; height: 100%; color: var(--muted); text-decoration: none;
}
.mbn-item svg { width: 22px; height: 22px; }
.mbn-item span { font-size: 10.5px; font-weight: 600; }
.mbn-item:hover, .mbn-item.active { color: var(--brand); }
.mbn-fab {
  position: relative; top: -20px; flex-shrink: 0;
  width: 54px; height: 54px; border-radius: 999px;
  background: var(--brand); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(255,106,44,0.4); border: 4px solid white;
}
.mbn-fab svg { width: 24px; height: 24px; }
.mbn-fab:hover { background: var(--brand-deep); }

/* =============================================================================
   RoomieAI — floating launcher (FAB) + teaser bubble.
   Both open the single "ai-modal" (see below) rather than a chat panel of
   their own.
   ========================================================================== */
#roomieRoot { position: fixed; inset: auto; z-index: 150; }

.roomie-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); display: grid; place-items: center;
  box-shadow: 0 10px 26px -10px rgba(255,106,44,0.5), 0 2px 8px rgba(15,18,22,0.08);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background .15s ease;
  /* Gentle idle bounce so the launcher catches the eye without being
     asked — uses the standalone `translate` property (not `transform`)
     so it composes cleanly with the hover scale below instead of the two
     fighting over the same property. */
  animation: roomieFabBounce 4.5s ease-in-out infinite;
}
.roomie-fab:hover { background: var(--brand-deep); transform: scale(1.06); box-shadow: 0 14px 30px -10px rgba(255,106,44,0.55), 0 2px 8px rgba(15,18,22,0.1); }
.roomie-fab.is-open { animation-play-state: paused; translate: 0 0; }
@keyframes roomieFabBounce {
  0%, 100% { translate: 0 0; }
  18% { translate: 0 -11px; }
  36% { translate: 0 0; }
  50% { translate: 0 -5px; }
  64% { translate: 0 0; }
}
.roomie-fab-icon { position: absolute; width: 27px; height: 27px; transition: transform .25s ease, opacity .2s ease; color: white; }
.roomie-fab-icon svg { width: 100%; height: 100%; display: block; }
.roomie-fab-icon-close { opacity: 0; transform: rotate(-45deg) scale(.6); }
.roomie-fab.is-open .roomie-fab-icon-chat { opacity: 0; transform: rotate(45deg) scale(.6); }
.roomie-fab.is-open .roomie-fab-icon-close { opacity: 1; transform: rotate(0) scale(1); }
.roomie-fab-pulse {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55); opacity: 0; pointer-events: none;
  animation: roomiePulse 2.8s ease-out infinite;
}
.roomie-fab.is-open .roomie-fab-pulse { animation: none; opacity: 0; }
@keyframes roomiePulse {
  0% { transform: scale(0.88); opacity: .5; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

.roomie-teaser {
  position: fixed; right: 24px; bottom: 92px; z-index: 149;
  max-width: 264px; background: white; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  border-radius: 20px; padding: 12px 34px 12px 12px;
  box-shadow: 0 20px 40px -16px rgba(15,18,22,0.2), 0 2px 8px rgba(15,18,22,0.06);
  font-size: 13.5px; line-height: 1.5; cursor: pointer;
  opacity: 0; transform: translateY(14px) scale(.95); transition: opacity .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.roomie-teaser.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.roomie-teaser-avatar { width: 30px; height: 30px; flex-shrink: 0; color: var(--brand); }
.roomie-teaser-avatar svg { width: 100%; height: 100%; display: block; }
.roomie-teaser-text { color: var(--muted); }
.roomie-teaser-text b { color: var(--ink); }
.roomie-teaser-close {
  position: absolute; top: 6px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted-2); font-size: 16px; line-height: 1; cursor: pointer;
}
.roomie-teaser-close:hover { background: var(--bg-soft); color: var(--ink); }

.roomie-has-bottom-bar .roomie-fab { bottom: 96px; }
.roomie-has-bottom-bar .roomie-teaser { bottom: 164px; }

@media (max-width: 640px) {
  .roomie-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .roomie-teaser { right: 12px; left: 12px; bottom: 80px; max-width: none; }
  .roomie-has-bottom-bar .roomie-fab { bottom: 88px; }
  .roomie-has-bottom-bar .roomie-teaser { bottom: 146px; }
}

/* =============================================================================
   Save-confirmation toast — used by account.html so a save (profile edit,
   subscription upgrade, etc.) always gives visible feedback instead of
   silently succeeding or failing.
   ========================================================================== */
.mr-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300;
  transform: translateX(-50%) translateY(12px);
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: white;
  padding: 12px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  max-width: calc(100vw - 32px);
}
.mr-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.mr-toast.is-error { background: #C0392B; }
.mr-toast-icon { width: 18px; height: 18px; flex-shrink: 0; display: grid; place-items: center; }
.mr-toast-icon svg { width: 100%; height: 100%; }

/* =============================================================================
   Fluid scroll reveal — see assets/js/mr-scroll.js
   ========================================================================== */
.mr-reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s cubic-bezier(.16,.84,.44,1), transform .55s cubic-bezier(.16,.84,.44,1); will-change: opacity, transform; }
.mr-reveal-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .mr-reveal { opacity: 1; transform: none; transition: none; }
}

/* =============================================================================
   RoomieAI modal — assets/js/roomieai.js
   One question/answer visible at a time, centered content throughout.
   Used both for the free-form "ask anything" assistant and the guided
   "find my match" wizard — same shell, different content. Anchored above
   the launcher (FAB) like a popover — no dimmed/blurred backdrop, the
   invisible full-screen layer only exists to catch a click-outside-to-close.
   ========================================================================== */
.ai-modal-backdrop {
  position: fixed; inset: 0; z-index: 400;
  background: transparent;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.ai-modal-backdrop.is-visible { opacity: 1; pointer-events: auto; }
.ai-modal {
  position: fixed; right: 24px; bottom: 92px;
  width: min(92vw, 400px); max-height: min(600px, calc(100vh - 140px));
  background: white; border-radius: 28px;
  /* With no dimmed backdrop behind it, the modal needs its own separation
     from whatever page content happens to sit underneath — a near, crisp
     layer for edge definition plus a soft, wide layer for depth. */
  box-shadow: 0 2px 10px rgba(15,18,22,0.07), 0 12px 28px -6px rgba(15,18,22,0.14), 0 28px 56px -20px rgba(15,18,22,0.22);
  padding: 22px 24px 20px; display: flex; flex-direction: column; overflow-y: auto;
  transform-origin: bottom right;
  transform: translateY(18px) scale(.94); opacity: 0;
  transition: transform .28s cubic-bezier(.16,.84,.44,1), opacity .28s ease;
}
.ai-modal-backdrop.is-visible .ai-modal { transform: translateY(0) scale(1); opacity: 1; }
.roomie-has-bottom-bar .ai-modal { bottom: 164px; }
@media (max-width: 640px) {
  .ai-modal { right: 8px; left: 8px; bottom: 74px; width: auto; max-height: min(70vh, 560px); }
  .roomie-has-bottom-bar .ai-modal { bottom: 146px; }
}
.ai-modal-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer;
}
.ai-modal-close svg { width: 15px; height: 15px; }
.ai-modal-close:hover { background: var(--line); color: var(--ink); }

.ai-modal-history {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin: 4px 30px 0;
}
.ai-modal-history-tag {
  font-size: 11px; font-weight: 700; color: var(--ink-2); background: var(--bg-soft);
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}

/* Fluid animated orb */
.ai-orb-wrap { display: flex; justify-content: center; margin: 14px 0 4px; }
.ai-orb { width: 84px; height: 84px; position: relative; }
.ai-orb-blob {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 28% 28%, #ffd6e8 0%, transparent 58%),
    radial-gradient(circle at 72% 36%, #cfe0ff 0%, transparent 58%),
    radial-gradient(circle at 50% 75%, #ffe9c2 0%, transparent 58%),
    radial-gradient(circle at 35% 65%, #dcc9ff 0%, transparent 58%),
    radial-gradient(circle at 65% 65%, #c6f5e0 0%, transparent 58%);
  filter: blur(7px) saturate(1.15);
  animation: aiOrbMorph 5s ease-in-out infinite, aiOrbSpin 14s linear infinite;
}
@keyframes aiOrbMorph {
  0%, 100% { transform: scale(1); border-radius: 50%; }
  33% { transform: scale(1.08); border-radius: 46% 54% 52% 48%; }
  66% { transform: scale(0.96); border-radius: 54% 46% 48% 52%; }
}
@keyframes aiOrbSpin { from { filter: blur(7px) saturate(1.15) hue-rotate(0deg); } to { filter: blur(7px) saturate(1.15) hue-rotate(360deg); } }
.ai-orb.is-thinking .ai-orb-blob { animation-duration: 1.6s, 4s; }

.ai-modal-question {
  text-align: center; font-size: 19px; font-weight: 800; color: var(--ink);
  margin: 14px 6px 0; line-height: 1.35; min-height: 52px;
  transition: opacity .22s ease, transform .22s ease;
}
.ai-modal-question.is-wiping { opacity: 0; transform: translateY(-6px); }
.ai-modal-question.ai-modal-nudge { animation: aiModalShake .4s ease; }
@keyframes aiModalShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
/* A knowledge-base answer is a paragraph, not a short prompt — same slot,
   readable body-text treatment instead of a big bold headline, but still
   centered like everything else in this modal. */
.ai-modal-question.is-answer {
  text-align: center; font-size: 14.5px; font-weight: 400; color: var(--ink-2);
  line-height: 1.6; min-height: 0;
}

.ai-modal-links { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 14px; transition: opacity .2s ease, transform .2s ease; }
.ai-modal-links.is-wiping { opacity: 0; transform: translateY(6px); }
.ai-modal-link {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
  color: var(--ink); background: var(--bg-soft); border: 1px solid transparent; border-radius: 12px;
  padding: 10px 14px; text-decoration: none; transition: border-color .15s ease, color .15s ease;
}
.ai-modal-link:hover { border-color: var(--brand); color: var(--brand-deep); }

.ai-modal-chips {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 18px; transition: opacity .2s ease, transform .2s ease;
}
.ai-modal-chips.is-wiping { opacity: 0; transform: translateY(6px); }
.ai-modal-chip {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: white; color: var(--ink); font-family: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.ai-modal-chip:hover { border-color: var(--brand); background: #FFF6F1; }
.ai-modal-chip:active { transform: scale(.96); }

.ai-modal-result { text-align: center; margin-top: 16px; }
.ai-modal-result-summary { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; margin: 0 0 16px; }
.ai-modal-result-summary b { color: var(--ink); }
.ai-modal-cta {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px;
  border-radius: 999px; background: var(--brand); color: white; font-weight: 700; font-size: 14px;
  text-decoration: none; box-shadow: 0 8px 18px -8px rgba(255,106,44,0.5);
}
.ai-modal-cta:hover { background: var(--brand-deep); }
.ai-modal-restart {
  display: block; margin: 14px auto 0; background: none; border: 0; color: var(--muted);
  font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer;
}

.ai-modal-input-row {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.ai-modal-input-row input {
  flex: 1; min-width: 0; border: 0; background: none; font-family: inherit; font-size: 14px;
  color: var(--ink); padding: 6px 2px;
}
.ai-modal-input-row input::placeholder { color: var(--muted); }
.ai-modal-input-row input:focus { outline: none; }
.ai-modal-send {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink); color: white;
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
}
.ai-modal-send:hover { background: var(--brand-deep); }
.ai-modal-send svg { width: 16px; height: 16px; }

@media (max-width: 480px) {
  .ai-modal { padding: 20px 18px 18px; border-radius: 22px; }
  .ai-modal-question { font-size: 17px; }
}

/* Address autocomplete suggestion panel on account.html's profile editor —
   reuses .wz-dd-menu/.wz-dd-option (see list-property.html's wizard) which
   is positioned absolute against the nearest position:relative ancestor. */
.ac-address-field { position: relative; }

/* =============================================================================
   Google Places Autocomplete — the suggestion dropdown it renders
   (.pac-container) is injected straight into <body>, outside any of this
   site's own markup, so it has to be restyled globally rather than scoped
   to one page. Only applies once assets/js/mr-google-places.js actually
   loads the Google Maps script (a configured API key).
   ========================================================================== */
.pac-container {
  font-family: 'Funnel Display', system-ui, sans-serif; border-radius: 12px;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); margin-top: 6px; padding: 6px;
}
.pac-item { padding: 10px 12px; border: 0; border-top: 1px solid var(--bg-soft); font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.pac-item:first-child { border-top: 0; }
.pac-item:hover, .pac-item-selected { background: var(--bg-soft); }
.pac-item-query { color: var(--ink); font-size: 13.5px; }
.pac-icon { display: none; }
.pac-matched { font-weight: 700; }

/* =============================================================================
   Skeleton loading — a reusable shimmer state for any text/avatar that's
   waiting on a network fetch, so a slow connection reads as "still
   loading" instead of "your info is gone". Apply .mr-skel to a text
   element (it goes transparent, a shimmer bar takes its place at a fixed
   min-width so short values like dashes don't collapse to nothing) or
   .mr-skel-circle to an avatar-shaped container (hides its children,
   shimmers the container itself instead).
   ========================================================================== */
.mr-skel {
  display: inline-block; min-width: 90px; max-width: 100%; height: 15px; border-radius: 6px;
  color: transparent !important; background: linear-gradient(90deg, var(--bg-soft) 25%, #EBEDF0 37%, var(--bg-soft) 63%);
  background-size: 400% 100%; animation: mrSkelShimmer 1.4s ease infinite; user-select: none; vertical-align: middle;
}
.mr-skel-circle { position: relative; }
.mr-skel-circle > * { visibility: hidden; }
.mr-skel-circle::after {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--bg-soft) 25%, #EBEDF0 37%, var(--bg-soft) 63%);
  background-size: 400% 100%; animation: mrSkelShimmer 1.4s ease infinite;
}
@keyframes mrSkelShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) {
  .mr-skel, .mr-skel-circle::after { animation: none; background-position: 50% 50%; }
}

/* Banner on a listing detail page that isn't publicly visible. Only the owner
   can ever load such a page (RLS enforces that), so this tells them why the
   public can't see what they're looking at. */
.pd-status-notice {
  background: #FFF6E5; color: #8A5A00; border-radius: 12px;
  padding: 12px 16px; font-size: 13.5px; line-height: 1.6; margin-bottom: 18px;
}
.pd-status-notice b { color: #6B4600; }
