/* Default-hidden legacy modal containers (toggled by JS) */
.modal { display: none; }
.modal[style*="display: block"], .modal.is-open { display: block; }

/* =========================================================
   Easy House — internal pages stylesheet
   Builds on top of home-new.css design tokens
   --cream #F1EDE2  --paper #FAF7EE  --surface #FFF
   --ink #1A2238    --ink-soft #2A3247  --muted #6B6759
   --border #E0DBC9  --accent #1F3A6E  --accent-hover #16294F
   Font: Onest
   ========================================================= */

/* ============ BASE ============ */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Onest', system-ui, sans-serif;
}

.main {
  flex: 1 0 auto;
}

.eh-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 56px);
}

.eh-container--narrow {
  max-width: 720px;
}

.eh-container--wide {
  max-width: 1480px;
}

/* ============ NAV: INNER VARIANT (cream solid) ============ */
.nav--inner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  padding: 14px clamp(16px, 3vw, 56px);
}

.nav--inner .nav__logo {
  background: var(--accent);
  color: #FFF;
}

.nav--inner .nav__city {
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
  backdrop-filter: none;
}

.nav--inner .nav__city:hover { background: #FAF7EE; }

.nav--inner .nav__city .pin { color: var(--accent); }

.nav--inner .nav__links a,
.nav--inner .nav__login {
  color: var(--ink);
  opacity: 0.78;
}

.nav--inner .nav__links a:hover,
.nav--inner .nav__login:hover { opacity: 1; }

.nav--inner .nav__signup {
  background: var(--accent);
  color: #FFF;
}

.nav--inner .nav__signup:hover {
  background: var(--accent-hover);
}

.nav--inner .nav__burger {
  background: var(--surface);
  border-color: var(--border);
}

.nav--inner .nav__burger-line { background: var(--ink); }

/* ============ NAV: ICON LINKS + USER DROPDOWN ============ */
.nav__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: inherit;
  opacity: 0.85;
  transition: background .15s ease, opacity .15s ease;
}

.nav__icon-link:hover { opacity: 1; background: rgba(0, 0, 0, 0.06); }

.nav--inner .nav__icon-link:hover { background: rgba(0, 0, 0, 0.04); }

.nav__user { position: relative; }

.nav__user-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s ease;
}

.nav__user-btn:hover { background: rgba(255, 255, 255, 0.2); }

.nav--inner .nav__user-btn {
  background: var(--surface);
  border: 1px solid var(--border);
}

.nav--inner .nav__user-btn:hover { background: #FAF7EE; }

.nav__avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFF;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.nav__avatar--lg { width: 44px; height: 44px; font-size: 18px; }

.nav__user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(26, 34, 56, 0.15);
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.nav__user-menu[hidden] { display: none; }

.nav__user-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  transition: background .15s ease;
}

.nav__user-menu a:hover { background: var(--cream); }

.nav__user-menu a i { width: 18px; color: var(--accent); }

.nav__user-divider { height: 1px; background: var(--border); margin: 6px 4px; }

.nav__user-logout { color: #B5343C !important; }

.nav__user-logout i { color: #B5343C !important; }

.nav__drawer-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 12px;
}

.nav__drawer-user-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.nav__drawer-user-email {
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}

/* ============ BUTTONS ============ */
.eh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  border: 1px solid transparent;
  text-decoration: none;
  min-height: 44px;
}

.eh-btn--primary {
  background: var(--accent);
  color: #FFF;
}

.eh-btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(31, 58, 110, 0.25);
}

.eh-btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.eh-btn--ghost:hover { background: #FAF7EE; }

.eh-btn--text {
  background: transparent;
  color: var(--accent);
  padding: 6px 10px;
  min-height: 0;
}

.eh-btn--text:hover { color: var(--accent-hover); text-decoration: underline; }

.eh-btn--block { width: 100%; }

.eh-btn--lg { padding: 16px 24px; font-size: 16px; min-height: 52px; }

.eh-btn--sm { padding: 8px 14px; font-size: 13.5px; min-height: 36px; border-radius: 10px; }

.eh-btn[disabled],
.eh-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ============ FORMS ============ */
.eh-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.eh-form__group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.eh-form__group input[type="text"],
.eh-form__group input[type="email"],
.eh-form__group input[type="password"],
.eh-form__group input[type="number"],
.eh-form__group input[type="tel"],
.eh-form__group select,
.eh-form__group textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}

.eh-form__group input:focus,
.eh-form__group select:focus,
.eh-form__group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 58, 110, 0.12);
}

.eh-form__group .eh-form__error {
  display: none;
  color: #B5343C;
  font-size: 13px;
}

.eh-form__group.has-error .eh-form__error { display: block; }

.eh-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
}

.eh-form__consent input { margin-top: 3px; }

.eh-form__consent a { color: var(--accent); text-decoration: underline; }

.eh-form__success {
  text-align: center;
  padding: 24px 12px;
}

.eh-form__success i {
  font-size: 48px;
  color: #2C9F66;
  margin-bottom: 12px;
}

.eh-form__success p {
  font-size: 15px;
  color: var(--ink-soft);
}

.eh-form__separator {
  position: relative;
  text-align: center;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.eh-form__separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.eh-form__separator span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: var(--surface);
}

.eh-btn--google {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  font-weight: 500;
}

.eh-btn--google:hover { background: #FAF7EE; }

.eh-btn--google img { width: 18px; height: 18px; }

/* ============ MODAL (generic) ============ */
.eh-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.eh-modal[hidden] { display: none; }

.eh-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 28, 0.55);
  backdrop-filter: blur(2px);
}

.eh-modal__panel {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  padding: 28px;
  max-width: 460px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(15, 17, 28, 0.35);
}

.eh-modal__panel--wide { max-width: 760px; }

.eh-modal__panel--xl { max-width: 1080px; padding: 0; }
.eh-modal__panel--xl .eh-modal__close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.92); z-index: 10;
}
.pd .pd__info { padding-top: 56px; }

.eh-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .15s ease;
}

.eh-modal__close:hover { background: var(--border); }

.eh-modal__title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.eh-modal__subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ============ FEEDBACK ============ */
.feedback__direct {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--cream);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 14px;
}

.feedback__direct i { color: var(--accent); }

.feedback__direct a { color: var(--accent); font-weight: 600; }

/* ============ AUTH ============ */
.auth-card {
  max-width: 460px;
  margin: clamp(40px, 8vw, 80px) auto;
  background: var(--surface);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(15, 17, 28, 0.06);
}

.auth-card__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.auth-card__subtitle {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 24px;
}

.auth-card__alt {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.auth-card__alt a {
  color: var(--accent);
  font-weight: 600;
}

.auth-card__forgot {
  display: block;
  text-align: right;
  margin: -8px 0 16px;
  font-size: 13.5px;
  color: var(--accent);
}

.auth-card__forgot:hover { text-decoration: underline; }

/* ============ SEARCH PAGE LAYOUT ============ */
.search-layout {
  display: grid;
  grid-template-columns: 296px 1fr;
  gap: clamp(20px, 2.5vw, 36px);
  padding: clamp(24px, 3vw, 40px) clamp(16px, 3vw, 56px);
  max-width: 1480px;
  margin: 0 auto;
  align-items: start;
}

.search-layout__sidebar {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.search-layout__content { min-width: 0; }

.search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.search-toolbar__count {
  font-size: 14.5px;
  color: var(--muted);
}

.search-toolbar__count strong { color: var(--ink); font-weight: 700; }

.search-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.search-sort__btn {
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s ease, border-color .15s ease;
  cursor: pointer;
}

.search-sort__btn:hover { background: #FAF7EE; }

.search-sort__btn.is-active {
  background: var(--ink);
  color: #FFF;
  border-color: var(--ink);
}

/* ============ FILTER SIDEBAR ============ */
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  position: relative;
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.filters__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.filters__reset {
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 6px;
}

.filters__reset:hover { text-decoration: underline; }

.filters__group {
  margin-bottom: 18px;
}

.filters__group:last-child { margin-bottom: 0; }

.filters__group-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filters__group select,
.filters__group input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

.filters__group select:focus,
.filters__group input:focus {
  outline: none;
  border-color: var(--accent);
}

.filters__range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

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

.filters__chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}

.filters__chip input { display: none; }

.filters__chip:has(input:checked),
.filters__chip.is-checked {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFF;
}

.filters__chip:hover { border-color: var(--accent); }

.filters__apply {
  margin-top: 18px;
}

/* Disabled filters overlay (gate for non-premium) */
.filters--locked {
  position: relative;
  overflow: hidden;
}

.filters--locked > * {
  pointer-events: none;
  filter: grayscale(0.6) opacity(0.55);
  user-select: none;
}

.filters__lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.85) 40%);
  backdrop-filter: blur(1px);
  cursor: pointer;
  filter: none !important;
  pointer-events: auto !important;
  z-index: 2;
}

.filters__lock-overlay i {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 10px;
}

.filters__lock-overlay p {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 12px;
  max-width: 220px;
}

/* Mobile filters drawer */
.filters-drawer__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 28, 0.5);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.filters-drawer-open .filters-drawer__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.filters-drawer-open .search-layout__sidebar {
  transform: translateX(0) !important;
}

.filters-drawer-open .filters-fab {
  display: none;
}

.filters-fab {
  display: none;
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom, 0));
  right: 16px;
  z-index: 90;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFF;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(15, 17, 28, 0.25);
  border: none;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

.filters-fab i { color: #FFF; }

/* ============ LOCKED BANNER ============ */
.locked-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #FFF7E6 0%, #FFE9C9 100%);
  border: 1px solid #FFE0AC;
  border-radius: 14px;
  margin-bottom: 20px;
}

.locked-banner__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: #FFD58A;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.locked-banner__text {
  flex: 1;
  min-width: 0;
}

.locked-banner__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.locked-banner__sub {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.locked-banner__cta {
  flex-shrink: 0;
}

/* ============ LISTING CARDS ============ */
.listings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.listings--locked .listing {
  cursor: pointer;
}

.listing {
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.listing:hover {
  border-color: #C9C2A8;
  box-shadow: 0 12px 32px rgba(15, 17, 28, 0.08);
  transform: translateY(-2px);
}

.listing--inactive { opacity: 0.65; }

.listing__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
}

.listing__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.listing:hover .listing__img { transform: scale(1.04); }

.listing__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.listing__badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--surface);
  color: var(--ink);
}

.listing__badge--rent { background: #DDF0E5; color: #1A6B41; }
.listing__badge--sale { background: #FFE7D5; color: #A55317; }
.listing__badge--inactive { background: #F4D5D8; color: #993036; }

.listing__lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 17, 28, 0.65), rgba(15, 17, 28, 0.45));
  color: #FFF;
  font-size: 28px;
  opacity: 0;
  transition: opacity .2s ease;
}

.listing--locked:hover .listing__lock-overlay { opacity: 1; }

.listing__body {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  min-width: 0;
}

.listing__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing__title a { color: inherit; }

.listing__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.listing__location i { color: var(--accent); }

.listing__location a { color: inherit; }

.listing__location a:hover { color: var(--accent); }

.listing__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.listing__spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.listing__spec i { color: var(--accent); font-size: 12px; }

.listing__desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.listing__price {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.listing__price .cur { font-size: 14px; font-weight: 600; color: var(--muted); }

.listing__date {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.listing__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.listing__icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.listing__icon-btn:hover { background: var(--border); }

.listing__icon-btn--active { background: #FFE0E4; color: #C92F3C; }
.listing__icon-btn--active:hover { background: #FFC9D0; }

.listing__details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--ink);
  color: #FFF;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease;
  cursor: pointer;
}

.listing__details:hover { background: var(--accent); }

/* Locked card simplified view */
.listing--locked .listing__body {
  padding: 14px 16px;
}

.listing--locked .listing__title-locked {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.listing--locked .listing__title-locked i { color: var(--accent); }

/* ============ PAGINATION ============ */
.pagination-new {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
}

.pagination-new__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease;
}

.pagination-new__btn:hover { background: #FAF7EE; }

.pagination-new__btn.is-active {
  background: var(--ink);
  color: #FFF;
  border-color: var(--ink);
}

.pagination-new__btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============ EMPTY STATE ============ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  margin: clamp(24px, 5vw, 56px) auto;
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px);
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 32px -18px rgba(26, 34, 56, .25);
  color: var(--muted);
}

.empty-state > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  font-size: 30px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, #fff);
  border-radius: 50%;
}

.empty-state__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.empty-state__text {
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 340px;
  margin: 0 auto;
}

/* ============ PROPERTY DETAIL MODAL ============ */
.pd {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
}

.pd__gallery {
  position: relative;
  background: #0F111C;
  min-height: 360px;
}

.pd__gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  height: 100%;
  aspect-ratio: 4/3;
}

.pd__gallery-track::-webkit-scrollbar { display: none; }

.pd__gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  cursor: zoom-in;
}

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

.pd__gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  border: none;
  transition: background .15s ease;
}

.pd__gallery-arrow:hover { background: #FFF; }

.pd__gallery-arrow--prev { left: 12px; }
.pd__gallery-arrow--next { right: 12px; }

.pd__gallery-counter {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 10px;
  background: rgba(15, 17, 28, 0.75);
  color: #FFF;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
}

.pd__info {
  background: var(--surface);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: 80vh;
}

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

.pd__title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.pd__loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.pd__loc i { color: var(--accent); }

.pd__price {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.pd__price .cur { font-size: 16px; font-weight: 600; color: var(--muted); }

.pd__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  padding: 14px;
  background: var(--cream);
  border-radius: 12px;
}

.pd__spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pd__spec-label {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pd__spec-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.pd__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.pd__contact {
  background: var(--cream);
  border-radius: 14px;
  padding: 16px;
}

.pd__contact--locked {
  text-align: center;
}

.pd__contact-label {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.pd__contact-phone {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.pd__contact-phone a { color: var(--accent); text-decoration: none; }

.pd__contact-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  margin-top: 6px;
}

.pd__map {
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
}

.pd__map iframe {
  width: 100%;
  height: 240px;
  border: none;
  display: block;
}

.pd__similar {
  padding: clamp(20px, 3vw, 32px);
  background: var(--paper);
  border-top: 1px solid var(--border);
  grid-column: 1 / -1;
}

.pd__similar-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.pd__similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.pd__similar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
  color: inherit;
}

.pd__similar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 17, 28, 0.08);
}

.pd__similar-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.pd__similar-card__body { padding: 10px 12px; }

.pd__similar-card__price { font-size: 15px; font-weight: 700; }

.pd__similar-card__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ============ OWNER PAGE ============ */
.owner-hero {
  padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 56px) 12px;
  max-width: 1480px;
  margin: 0 auto;
}

.owner-hero__card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.owner-hero__avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFF;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
}

.owner-hero__name {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  margin-bottom: 4px;
}

.owner-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
}

.owner-hero__meta i { color: var(--accent); margin-right: 4px; }

.owner-listings {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 56px) clamp(40px, 6vw, 80px);
}

/* ============ FOOTER (new) ============ */
.footer-new {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(40px, 5vw, 64px) clamp(16px, 3vw, 56px) 24px;
  margin-top: clamp(40px, 6vw, 80px);
}

.footer-new__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
}

.footer-new__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-new__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 8px;
}

.footer-new__brand .nav__logo {
  background: #FFF;
  color: var(--ink);
}

.footer-new__tagline {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.footer-new__social {
  display: flex;
  gap: 10px;
}

.footer-new__social-link {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: #FFF;
  transition: background .15s ease;
}

.footer-new__social-link:hover { background: rgba(255, 255, 255, 0.1); }

.footer-new__h4 {
  font-size: 13px;
  font-weight: 700;
  color: #FFF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.footer-new__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-new__link:hover { color: #FFF; }

.footer-new__link--with-icon i { color: rgba(255, 255, 255, 0.6); }

.footer-new__bottom {
  max-width: 1320px;
  margin: clamp(32px, 4vw, 48px) auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ============ MOBILE BOTTOM NAV ============ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0));
  justify-content: space-around;
  align-items: center;
}

.mobile-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  flex: 1;
}

.mobile-bottom-nav__item i {
  font-size: 18px;
  color: var(--muted);
}

.mobile-bottom-nav__item.is-active,
.mobile-bottom-nav__item.is-active i {
  color: var(--accent);
}

/* ============ 404 / 500 ============ */
.errpage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px) 20px;
}

.errpage__inner {
  text-align: center;
  max-width: 480px;
}

.errpage__code {
  font-size: clamp(80px, 14vw, 140px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), #4068C0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.errpage__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 12px;
}

.errpage__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 28px;
}

.errpage__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ PREMIUM MODAL ============ */
.pm {
  padding: clamp(24px, 4vw, 40px);
}

.pm__head {
  text-align: center;
  margin-bottom: 28px;
}

.pm__eyebrow {
  display: inline-block;
  padding: 5px 12px;
  background: var(--cream);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.pm__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.pm__sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

.pm__plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-bottom: 4px;
}

.pm__plan {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.pm__plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 34, 56, 0.10) !important;
}

.pm__plan--featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 12px 30px rgba(31, 58, 110, 0.14) !important;
}

.pm__plan--trial {
  border-color: #E2B765;
  background: linear-gradient(180deg, #FFFBF2 0%, var(--surface) 60%);
}

.pm__plan-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 11px;
  background: var(--accent);
  color: #FFF;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.pm__plan--trial .pm__plan-tag { background: #C8881F; }

.pm__plan-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.pm__plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.pm__plan-price .per {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.pm__plan-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pm__plan-feats li {
  position: relative;
  padding-left: 26px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.pm__plan-feats li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(31, 58, 110, 0.10);
  color: var(--accent);
  font-size: 8px;
  display: grid;
  place-items: center;
}

.pm__plan--trial .pm__plan-feats li::before {
  background: rgba(200, 136, 31, 0.14);
  color: #C8881F;
}

.pm__plan-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.pm__plan-cta {
  margin-top: 20px;
}

.pm__plan:not(.pm__plan--featured) .pm__plan-cta {
  background: var(--surface);
  color: var(--accent);
  border: 1.5px solid var(--border);
}

.pm__plan:not(.pm__plan--featured) .pm__plan-cta:hover {
  background: var(--accent);
  color: #FFF;
  border-color: var(--accent);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1439px) {
  .search-layout { grid-template-columns: 264px 1fr; }
  .listing { grid-template-columns: 240px 1fr; }
}

@media (max-width: 1199px) {
  .nav__user-name { display: none; }
  .footer-new__inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-new__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  /* Filter sidebar becomes drawer */
  .search-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .search-layout__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(360px, 88vw);
    max-height: 100vh;
    background: var(--paper);
    z-index: 100;
    padding: 20px;
    transform: translateX(-105%);
    transition: transform .3s ease;
    overflow-y: auto;
    box-shadow: 12px 0 32px rgba(15, 17, 28, 0.15);
  }

  .filters-fab { display: inline-flex; }

  .search-toolbar { padding-top: 4px; }

  .listing { grid-template-columns: 200px 1fr; }
  .listing__title { font-size: 15px; }

  .pd { grid-template-columns: 1fr; }
  .pd__gallery { aspect-ratio: 16/10; min-height: 280px; }
  .pd__info { max-height: none; }
  .pd__similar { padding: 20px; }
}

@media (max-width: 767px) {
  .nav__center { display: none; }
  .nav__right > *:not(.nav__burger):not(.nav__user) { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__icon-link { display: none; }

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

  .locked-banner {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .locked-banner__text {
    flex: 1 1 auto;
    width: calc(100% - 58px);
  }
  .locked-banner__cta {
    flex: 1 1 100%;
  }
  .locked-banner__cta .eh-btn {
    width: 100%;
    justify-content: center;
  }

  .listing__media { aspect-ratio: 16/10; }

  .listing__title { font-size: 15px; }

  .footer-new__inner { grid-template-columns: 1fr 1fr; }
  .footer-new__col--brand { grid-column: 1 / -1; }

  .mobile-bottom-nav { display: flex; }
  .page { padding-bottom: 70px; }
  .page:has(.mobile-bottom-nav) { padding-bottom: 70px; }
}

@media (max-width: 599px) {
  .footer-new__inner { grid-template-columns: 1fr; }
  .auth-card { margin: 24px 12px; padding: 24px; }
  .eh-modal { padding: 8px; }
  .eh-modal__panel { padding: 22px; border-radius: 14px; }
  .listing__title { font-size: 14.5px; }
  .listing__price { font-size: 18px; }
  .listing__date { display: none; }
  .pagination-new__btn { min-width: 36px; height: 36px; font-size: 13px; }
  .search-toolbar__count { font-size: 13.5px; }
}

@media (max-width: 389px) {
  .nav { padding: 12px 14px; }
  .eh-container { padding: 0 12px; }
  .listing__body { padding: 12px 14px; }
}

/* ============ UTILS ============ */
.is-hidden { display: none !important; }
.is-mobile-only { display: none; }

@media (max-width: 767px) {
  .is-mobile-only { display: inline-flex; }
  .is-desktop-only { display: none !important; }
}

.normalize-link { color: inherit; text-decoration: none; }

.text-muted { color: var(--muted); }
