﻿/* ═══════════════════════════════════════════════════════════
   SkylerAI – css/custom.css
   Brand-specific styles on top of Bootstrap 5.3
   No SCSS. No build step. Edit here and rebuild with:
     node build/render.js
   ═══════════════════════════════════════════════════════════ */
   /* @import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap'); */
/* ── Design tokens ── */
:root {
  --sky-blue: #2196F3;
  --sky-dark: #1e40af;
  --sky-light: #eff6ff;
  --text-dark: #000000;
  --text-muted: #1b1b1b;
  --text-subtle: #000000;
  --text-body: #1b1b1b;
  --text-faint: #cbd5e1;
  --border: #e2e8f0;
  --border-light: #e8edf3;
  --border-accent: #bfdbfe;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --surface-hover: #f8fafc;
  --page-bg: #f4f7fb;
  --sidebar-width: min(320px, 85vw);
  --site-accent: #2196F3;
  --site-accent-light: #f5f3ff;
  --site-accent-border: #2196F3;
  --site-icon-bg: #eef2ff;
  --site-icon-inactive: #2196F3;
  --color-success: #16a34a;
  --color-success-bg: #dcfce7;
  --color-success-text: #166534;
  --color-warning-bg: #fef3c7;
  --color-warning-text: #92400e;
  --color-muted: #475569;
  --green: #28a745;
  --header-height: 5.25rem;

  /* Typography */
  --font-family-base: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* --font-family-serif: Georgia, "Times New Roman", Times, serif; */
  --font-size-xs: 0.75rem;
  --font-size-2xs: 0.625rem;
  --font-size-xxs: 0.6875rem;
  --font-size-sm: 16px;
  --font-size-md: 0.875rem;
  --font-size-body: 0.9375rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-display-sm: 1.375rem;
  --font-size-display-md: 1.75rem;
  --font-size-display-lg: 4.5rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --line-height-tight: 1.25;
  --line-height-base: 1.5;
  --line-height-relaxed: 1.625;
}

/* ── Global ── */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  color: var(--text-dark);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-base);
}
body.modal-open {
  overflow: hidden;
}
button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
}
.page-shell,
.page-shell button,
.page-shell input,
.page-shell select,
.page-shell textarea,
.page-shell optgroup {
  font-family: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-dark);
}
h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-md); }
p,
li,
label,
small,
span,
a,
td,
th {
  font-weight: inherit;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ════════════════════════════════════════
   LOGO
   ════════════════════════════════════════ */
.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.logo-img {
  display: block;
  height: 2rem;
  width: auto;
}

/* ════════════════════════════════════════
   SITE HEADER
   ════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Home index: transparent over hero until scroll */
.page-home .site-header {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
.page-home .site-header.is-scrolled {
  background: #fff;
  border-bottom-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 27%;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}
.header-start,
.header-end {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.header-start {
  justify-self: start;
  grid-column: 1;
  min-width: 0;
}
.header-end {
  justify-self: end;
  grid-column: 3;
  min-width: 0;
}

.btn-hamburger {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.25rem;
  flex-shrink: 0;
}
.btn-hamburger svg {
  width: 1.5rem;
  height: 1.5rem;
}

.site-header .logo-img {
  height: 2.125rem;
}

/* Hide search bar + network pill + community on mobile */
@media (max-width: 1023px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    padding: 0.75rem 1rem;
  }

  .header-search,
  .site-switch,
  .header-community {
    display: none !important;
  }

  .header-end {
    gap: 1rem;
  }
}

.btn-header-search-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .btn-header-search-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    padding: 0.25rem;
    text-decoration: none;
    flex-shrink: 0;
  }
  .btn-header-search-mobile svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
  }
}

.header-search {
  grid-column: 2;
  justify-self: center;
  width: min(30rem, 100%);
  max-width: 23rem;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.3rem 0.3rem 0.3rem 1.125rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.header-search:focus-within {
  border-color: rgba(33, 150, 243, 0.45);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}
.header-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  /* padding: 0.45rem 0.35rem 0.45rem 0; */
  color: var(--text-dark);
  font-size: var(--font-size-sm);
  outline: none;
  box-shadow: none;
}
.header-search input::placeholder {
  color: #94a3b8;
}
.header-search-btn {
  flex-shrink: 0;
  width: 2.125rem;
  height: 2.125rem;
  border: none;
  border-radius: 50%;
  background: var(--sky-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.header-search-btn:hover {
  background: #1e88e5;
}
.header-search-btn svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 1024px) and (max-width: 1280px) {
  .header-search {
    width: min(26rem, 100%);
    max-width: 26rem;
  }
}

.btn-network {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.btn-network:hover {
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.btn-network svg {
  width: 1rem;
  height: 1rem;
}

.btn-community {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition:
    background 0.15s,
    box-shadow 0.15s,
    color 0.15s;
  flex-shrink: 0;
}
.btn-community:hover {
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.btn-community svg {
  width: 1rem;
  height: 1rem;
}

.site-switch .dropdown-toggle::after {
  display: none;
}
.site-switch-chevron {
  opacity: 0.65;
  transition: transform 0.2s;
}
.site-switch.show .site-switch-chevron {
  transform: rotate(180deg);
}

/* Switch Site dropdown panel */
.site-switch-menu {
  --bs-dropdown-min-width: 18rem;
  width: min(18rem, calc(100vw - 2rem));
  padding: 0;
  margin-top: 0.625rem !important;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 1rem;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.03),
    0 12px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.site-switch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}
.site-switch-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  line-height: 1.2;
}
.site-switch-header-title svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--site-accent);
  flex-shrink: 0;
}

.site-switch-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #e8edf3;
  background: #f8fafc;
  color: #94a3b8;
  border-radius: 0.5rem;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.site-switch-close:hover {
  background: #f1f5f9;
  color: var(--text-muted);
  border-color: #dbe3ee;
}
.site-switch-close svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

.site-switch-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1rem 1.125rem 1.125rem;
  background: #fff;
}

.site-switch-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 8px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  /* border: 1.5px solid #e8edf3; */
  border-radius: 5px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.site-switch-item:hover:not(.is-active) {
  border-color: #dbe3ee;
  color: inherit;
}
.site-switch-item.is-active {
  background: var(--site-accent-light);
  border-color: var(--site-accent-border);
}
.site-switch-item.is-active .site-switch-item-name {
  color: var(--site-accent);
}
.site-switch-item.is-active .site-switch-item-icon {
  background: var(--site-accent);
  color: #fff;
}

.site-switch-item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--site-icon-bg);
  color: var(--site-icon-inactive);
}
.site-switch-item-icon svg {
  width: 1.0625rem;
  height: 1.0625rem;
}

.site-switch-item-name {
  flex: 1;
  min-width: 0;
  font-size: 0.8em;
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  line-height: 1.25;
}

.site-switch-item-check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2em;
  border-radius: 50%;
  background: var(--site-accent);
  color: #fff;
  margin-left: 0.25rem;
}
.site-switch-item-check svg {
  width: 0.7rem;
  height: 0.7rem;
  stroke-width: 3;
}

.site-header .btn-signin {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  background: #fff;
  color: var(--sky-blue);
  padding: 0.625rem 1.125rem 0.625rem 1rem;
  border-radius: 999px;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.14);
  transition:
    background 0.15s,
    box-shadow 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.site-header .btn-signin:hover {
  background: #fff;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}
.site-header .btn-signin:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.btn-signin-icon,
.btn-signin-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sky-blue);
  flex-shrink: 0;
}
.btn-signin-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 2;
}
.btn-signin-chevron svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.25;
}

.btn-signin-divider {
  width: 1px;
  height: 1.125rem;
  background: rgba(59, 130, 246, 0.28);
  flex-shrink: 0;
}

.btn-signin-text {
  color: var(--sky-blue);
  font-weight: var(--font-weight-bold);
}

@media (max-width: 1023px) {
  .site-header .btn-signin {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 0;
    border-radius: 0;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
  }
  .site-header .btn-signin:hover,
  .site-header .btn-signin:active {
    background: transparent;
    border: none;
    box-shadow: none;
    transform: none;
  }
  .btn-signin-icon,
  .btn-signin-divider,
  .btn-signin-chevron {
    display: none !important;
  }
}

/* Header icon actions (feed / logged-in) */
.btn-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.btn-header-icon:hover {
  background: #f1f5f9;
  color: var(--text-dark);
}
.btn-header-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.btn-header-avatar {
  padding: 0;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  overflow: hidden;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  background: #fff;
  flex-shrink: 0;
}
.btn-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* User profile dropdown */
.user-profile .dropdown-toggle::after {
  display: none;
}
.user-profile-menu {
  --bs-dropdown-min-width: 17.5rem;
  width: min(17.5rem, calc(100vw - 2rem));
  padding: 0;
  margin-top: 0.625rem !important;
  border: 1px solid #e8edf3;
  border-radius: 0.75rem;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.02),
    0 10px 32px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}
.user-profile-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
}
.user-profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #7c5cfc;
  color: #fff;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  font-family: var(--font-family-base);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.user-profile-avatar:hover {
  background: #6d4ef0;
}
.user-profile-avatar:focus-visible {
  outline: 2px solid #7c5cfc;
  outline-offset: 2px;
}
.user-profile-avatar.has-image {
  background: transparent;
  overflow: hidden;
}
.user-profile-avatar.has-image:hover {
  background: transparent;
  opacity: 0.92;
}
.user-profile-avatar.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.user-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}
.user-profile-name {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  color: var(--text-dark);
  line-height: 1.3;
}
.user-profile-email {
  font-size: var(--font-size-sm);
  color: #94a3b8;
  line-height: 1.35;
  word-break: break-word;
}
.user-profile-divider {
  margin: 0;
  border-color: #eef2f7;
  opacity: 1;
}
.user-profile-links {
  display: flex;
  flex-direction: column;
  padding: 0.375rem 0;
}
.user-profile-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.125rem;
  text-decoration: none;
  color: #334155;
  font-size: var(--font-size-body);
  line-height: 1.2;
  transition: background 0.15s, color 0.15s;
}
.user-profile-item:hover {
  background: #f8fafc;
  color: var(--text-dark);
}
.user-profile-item svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
button.user-profile-item {
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

/* Edit My Info modal */
.edit-info-modal {
  --edit-accent: #7c5cfc;
  --edit-accent-hover: #6d4ef0;
  --edit-border: #e2e8f0;
  --edit-muted: #94a3b8;
  --edit-cancel-bg: #f2f0ee;
  --edit-cancel-hover: #e8e6e3;
  --edit-save-bg: #2d241e;
  --edit-save-hover: #1f1814;
}
.edit-info-modal-dialog {
  max-width: 28rem;
  width: calc(100% - 2rem);
  margin: 1rem auto;
}
.edit-info-modal-content {
  background: #fff;
  border: 1px solid var(--edit-border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  max-height: min(90dvh, 36rem);
}
.edit-info-modal-header {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid #eef2f7;
  text-align: center;
}
.edit-info-modal-title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: var(--text-dark);
}
.edit-info-modal-body {
  padding: 1.5rem 1.5rem 0.5rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.edit-info-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 9.5rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1.5px dashed #d1d5db;
  border-radius: 0.625rem;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.edit-info-upload:hover {
  border-color: var(--edit-accent);
  background: #f8f7ff;
}
.edit-info-upload:focus-within {
  outline: 2px solid var(--edit-accent);
  outline-offset: 2px;
}
.edit-info-upload-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: #9ca3af;
  overflow: hidden;
  border-radius: 0.375rem;
}
.edit-info-upload-preview svg {
  width: 2rem;
  height: 2rem;
}
.edit-info-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.edit-info-upload.has-image .edit-info-upload-preview {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.5rem;
}
.edit-info-upload-text {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: #8b735b;
  line-height: 1.2;
}
.edit-info-field {
  margin-bottom: 1.25rem;
}
.edit-info-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
  line-height: 1.3;
}
.edit-info-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-normal);
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.edit-info-input::placeholder {
  color: #cbd5e1;
}
.edit-info-input:focus {
  outline: none;
  border-color: var(--edit-accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.12);
}
.edit-info-modal-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem;
  margin-top: auto;
  flex-shrink: 0;
}
.edit-info-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.edit-info-btn-save {
  border: 1px solid var(--site-accent);
  background: var(--site-accent);
  color: #fff;
}
.edit-info-btn-save:hover {
  background: var(--site-accent);
  border-color: var(--site-accent);
}
.edit-info-btn-cancel {
  border: 1px solid #e2e8f0;
  background: var(--edit-cancel-bg);
  color: var(--text-dark);
}
.edit-info-btn-cancel:hover {
  background: var(--edit-cancel-hover);
  border-color: #d8d6d3;
}
@media (max-width: 575.98px) {
  .edit-info-modal-body {
    padding: 1.25rem 1.25rem 0.25rem;
  }
  .edit-info-modal-footer {
    padding: 0.875rem 1.25rem 1.25rem;
  }
  .edit-info-upload {
    min-height: 8.5rem;
    padding: 1.25rem;
  }
}

/* Avatar crop modal */
.crop-modal {
  --crop-purple: #7c5cfc;
  --crop-purple-light: #f3f0ff;
  --crop-purple-hover: #6d4ef0;
  --crop-canvas: #1a2332;
  --crop-border: #e2e8f0;
  --crop-muted: var(--text-muted);
  --crop-zoom-pct: 50%;
}
.crop-modal-dialog {
  max-width: 36rem;
  width: calc(100% - 2rem);
  margin: 1rem auto;
}
.crop-modal-content {
  background: #fff;
  border: 1px solid var(--crop-border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  max-height: min(92dvh, 44rem);
}
.crop-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1rem;
}
.crop-modal-header-start {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  min-width: 0;
}
.crop-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: var(--crop-purple-light);
  color: var(--crop-purple);
}
.crop-modal-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}
.crop-modal-heading {
  min-width: 0;
}
.crop-modal-title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: var(--text-dark);
}
.crop-modal-subtitle {
  margin: 0.25rem 0 0;
  font-size: var(--font-size-sm);
  line-height: 1.4;
  color: var(--crop-muted);
}
.crop-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: 0.375rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.crop-modal-close:hover {
  background: #f1f5f9;
  color: var(--text-dark);
}
.crop-modal-close svg {
  width: 1.125rem;
  height: 1.125rem;
}
.crop-modal-body {
  padding: 0 1.5rem;
}
.crop-canvas {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16rem;
  padding: 1.5rem;
  background: var(--crop-canvas);
  border-radius: 0.75rem;
  overflow: hidden;
}
.crop-canvas-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.crop-preview-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10rem;
  height: 10rem;
  background: var(--crop-purple);
  color: #fff;
  font-size: var(--font-size-display-lg);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  transform-origin: center center;
  transition: transform 0.1s ease-out;
}
.crop-frame {
  position: relative;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 9999px rgba(26, 35, 50, 0.72);
  transition: width 0.2s ease, height 0.2s ease;
  cursor: move;
}
.crop-frame[data-aspect="square"] {
  width: 9.5rem;
  height: 9.5rem;
}
.crop-frame[data-aspect="landscape"] {
  width: 13rem;
  height: 8rem;
}
.crop-frame[data-aspect="portrait"] {
  width: 8rem;
  height: 13rem;
}
.crop-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.55) 1px, transparent 1px) 33.333% 0 / 33.333% 100% no-repeat,
    linear-gradient(to right, rgba(255, 255, 255, 0.55) 1px, transparent 1px) 66.666% 0 / 33.333% 100% no-repeat,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.55) 1px, transparent 1px) 0 33.333% / 100% 33.333% no-repeat,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.55) 1px, transparent 1px) 0 66.666% / 100% 33.333% no-repeat;
  pointer-events: none;
}
.crop-handle {
  position: absolute;
  background: #fff;
  pointer-events: none;
}
.crop-handle--nw,
.crop-handle--ne,
.crop-handle--se,
.crop-handle--sw {
  width: 0.875rem;
  height: 0.875rem;
}
.crop-handle--nw {
  top: -2px;
  left: -2px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
}
.crop-handle--ne {
  top: -2px;
  right: -2px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
}
.crop-handle--se {
  bottom: -2px;
  right: -2px;
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
}
.crop-handle--sw {
  bottom: -2px;
  left: -2px;
  border-bottom: 3px solid #fff;
  border-left: 3px solid #fff;
}
.crop-handle--n,
.crop-handle--s {
  left: 50%;
  width: 1.25rem;
  height: 3px;
  transform: translateX(-50%);
}
.crop-handle--n { top: -2px; }
.crop-handle--s { bottom: -2px; }
.crop-handle--e,
.crop-handle--w {
  top: 50%;
  width: 3px;
  height: 1.25rem;
  transform: translateY(-50%);
}
.crop-handle--e { right: -2px; }
.crop-handle--w { left: -2px; }

.crop-modal-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem 0.5rem;
}
.crop-tool-label {
  display: block;
  margin-bottom: 0.625rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
}
.crop-zoom-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.crop-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--crop-border);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--crop-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.crop-icon-btn:hover {
  border-color: #cbd5e1;
  color: var(--text-dark);
  background: #f8fafc;
}
.crop-icon-btn svg {
  width: 1rem;
  height: 1rem;
}
.crop-zoom-range {
  flex: 1;
  height: 0.375rem;
  appearance: none;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--crop-purple) 0%,
    var(--crop-purple) var(--crop-zoom-pct),
    #e2e8f0 var(--crop-zoom-pct),
    #e2e8f0 100%
  );
}
.crop-zoom-range::-webkit-slider-thumb {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--crop-purple);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(124, 92, 252, 0.35);
  cursor: pointer;
}
.crop-zoom-range::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--crop-purple);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(124, 92, 252, 0.35);
  cursor: pointer;
}
.crop-zoom-range::-moz-range-track {
  height: 0.375rem;
  border-radius: 999px;
  background: transparent;
}
.crop-aspect-row {
  display: flex;
  gap: 0.5rem;
}
.crop-aspect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--crop-border);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--text-dark);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.crop-aspect-btn svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: var(--crop-muted);
}
.crop-aspect-btn.is-active {
  border-color: var(--crop-purple);
  color: var(--crop-purple);
  background: #fff;
}
.crop-aspect-btn.is-active svg {
  color: var(--crop-purple);
}
.crop-aspect-btn:hover:not(.is-active) {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.crop-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem 1.25rem;
  margin-top: auto;
  flex-shrink: 0;
}
.crop-modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.crop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5625rem 1rem;
  border-radius: 0.5rem;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.crop-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}
.crop-btn-reset {
  border: 1px solid var(--crop-border);
  background: #fff;
  color: var(--text-dark);
}
.crop-btn-reset:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.crop-btn-cancel {
  border: 1px solid var(--crop-border);
  background: #fff;
  color: var(--text-dark);
}
.crop-btn-cancel:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.crop-btn-save {
  border: 1px solid var(--crop-purple);
  background: var(--crop-purple);
  color: #fff;
}
.crop-btn-save:hover {
  background: var(--crop-purple-hover);
  border-color: var(--crop-purple-hover);
}

@media (max-width: 575px) {
  .crop-modal-tools {
    grid-template-columns: 1fr;
  }
  .crop-aspect-row {
    flex-wrap: wrap;
  }
  .crop-aspect-btn {
    flex: 1 1 calc(33.333% - 0.375rem);
  }
  .crop-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .crop-modal-footer-actions {
    justify-content: flex-end;
  }
  .crop-canvas {
    min-height: 14rem;
    padding: 1.25rem;
  }
  .crop-frame[data-aspect="square"] {
    width: 8rem;
    height: 8rem;
  }
  .crop-frame[data-aspect="landscape"] {
    width: 10.5rem;
    height: 6.5rem;
  }
  .crop-frame[data-aspect="portrait"] {
    width: 6.5rem;
    height: 10.5rem;
  }
}

/* Feed page: hide hamburger on desktop (sidebar visible) */
@media (min-width: 992px) {
  .page-feed .header-start .btn-hamburger {
    display: block;
  }
}

/* ════════════════════════════════════════
   PAGE SHELL
   ════════════════════════════════════════ */
.page-shell {
  position: relative;
}

/* ════════════════════════════════════════
   BOOTSTRAP 5 INTEGRATION
   ════════════════════════════════════════ */

/* Site nav offcanvas — scoped to avoid fighting default Bootstrap */
.offcanvas.site-nav-drawer {
  width: var(--sidebar-width);
  border: none;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.08);
  z-index: 1050;
  padding: 1.25rem 1.5rem 1.5rem;
}
.site-nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 1.25rem;
  margin-bottom: 0;
  border-bottom: none;
}
.site-nav-drawer-header .logo-img {
  height: 1.75rem;
}
.site-nav-drawer-body {
  display: flex;
  flex-direction: column;
  padding: 0;
  flex: 1;
  overflow-y: auto;
  min-height: calc(100vh - 4rem);
  min-height: calc(100dvh - 4rem);
}
.site-nav-drawer-body .offcanvas-footer {
  margin-top: auto;
}

/* Wizard modals (Bootstrap fullscreen) */
.wizard-modal {
  --bs-modal-zindex: 2000;
}
.wizard-modal .modal-dialog {
  margin: 0;
  max-width: 100%;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}
.wizard-modal .modal-content,
.wizard-modal .wizard-modal-content {
  background: transparent;
  border: none;
  border-radius: 0;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.wizard-modal.show {
  overflow: hidden;
}
.wizard-modal .wizard-modal-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}
body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Legacy offcanvas rules — kept for reference, superseded by site-nav-drawer */
.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    left 0.3s ease;
}
.offcanvas-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  left: var(--sidebar-width);
}

.offcanvas-close {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
}
.offcanvas-close:hover {
  color: #0f172a;
  border-color: #cbd5e1;
  background: #f8fafc;
}
.offcanvas-close svg {
  width: 1rem;
  height: 1rem;
}

.offcanvas-search {
  position: relative;
  margin-bottom: 1.5rem;
  display: none;
}
.offcanvas-search input {
  width: 100%;
  background: #f1f5f9;
  border: none;
  border-radius: 2rem;
  padding: 0.65rem 2.5rem 0.65rem 1.125rem;
  color: var(--text-dark);
  font-size: var(--font-size-md);
  outline: none;
  transition: background 0.15s;
}
.offcanvas-search input::placeholder {
  color: #94a3b8;
}
.offcanvas-search input:focus {
  background: #e2e8f0;
}
.offcanvas-search .search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
  pointer-events: none;
}

.offcanvas-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.offcanvas-nav a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: #334155;
  text-decoration: none;
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-body);
  transition:
    background 0.15s,
    color 0.15s;
}
.offcanvas-nav a:hover {
  background: #f8fafc;
  color: #0f172a;
}
.offcanvas-nav a.is-active {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: var(--font-weight-semibold);
}
.offcanvas-nav a.is-active svg {
  color: #0f172a;
}
.offcanvas-nav a svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: var(--text-muted);
}
.offcanvas-nav a.has-badge {
  justify-content: flex-start;
}
.offcanvas-nav .nav-badge {
  margin-left: auto;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-muted);
}
.offcanvas-nav .nav-add-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  flex-shrink: 0;
}
.offcanvas-nav .nav-add-icon svg {
  width: 1rem;
  height: 1rem;
  color: #fff;
}

.offcanvas-footer {
  padding-top: 1rem;
  margin-top: auto;
  display: none;
}
.offcanvas-footer .btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: none;
  background: transparent;
  color: #334155;
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.offcanvas-footer .btn-logout:hover {
  background: #f8fafc;
  color: #0f172a;
}
.offcanvas-footer .btn-logout svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--text-muted);
}

/* ════════════════════════════════════════
   HERO
   — Banner image anchored bottom so city
     skyline sits at the base. Text is DARK
     because the sky is bright/light.
   ════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-home .hero {
  margin-top: calc(-1 * var(--header-height));
  min-height: 100vh;
}
@media (max-width: 768px) {
  .page-home .hero {
    /* margin-top: 0; */
    min-height: 85vh;
  }
  .hero-ctas{
    flex-direction: column !important;
  }
  .hero-cta-card{
    height:4rem !important;
    padding: 1rem !important;
  }
  .hero-cta-text{
    font-size:14px !important;
  }
}
/* banner.png: sky at top, buildings at bottom */
.hero-sky {
  position: absolute;
  inset: 0;
  background: url("../images/banner.png") bottom center / cover no-repeat;
}

/* Clouds layer — intentionally empty */
.hero-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.5rem 5rem;
  width: 100%;
}
.page-home .hero-content {
  padding: calc(var(--header-height) + 1rem) 1.5rem 5rem;
}

/* Dark text on light sky background */
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.12;
  color: var(--text-dark);
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 auto;
}

/* Hero CTA cards — white cards with top-right radio indicator */
.hero-cta-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 240px;
  max-width: 250px;
  min-height: 7.5rem;
  padding: 2rem 2.25rem 1.75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  text-align: center;
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    border-color 0.2s;
  margin: 0;
}
.hero-cta-card:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}
.hero-cta-card:has(.hero-cta-input:checked) {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.15);
}

.hero-cta-text {
  font-weight: var(--font-weight-bold);
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: var(--text-dark);
  line-height: 1.35;
}

.hero-cta-radio-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  pointer-events: none;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.hero-cta-radio-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s;
}

.hero-cta-input:checked + .hero-cta-radio-indicator {
  border-color: var(--sky-blue);
  background: var(--sky-blue);
}
.hero-cta-input:checked + .hero-cta-radio-indicator::after {
  transform: translate(-50%, -50%) scale(1);
}

.hero-cta-input:focus-visible + .hero-cta-radio-indicator {
  outline: 2px solid var(--sky-blue);
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .hero-ctas {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.625rem;
    padding: 0 0.75rem;
    max-width: none;
  }
  .hero-cta-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    min-height: 4rem;
    padding: 1.625rem 0.625rem 1.25rem;
  }
  .hero-cta-text {
    font-size: 0.75rem;
    line-height: 1.25;
  }
  .hero-cta-text br {
    display: none;
  }
  .hero-cta-radio-indicator {
    top: 0.625rem;
    right: 0.625rem;
    width: 1.125rem;
    height: 1.125rem;
  }
}

/* Legacy hero button classes — kept for backwards compatibility */
.btn-hero {
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-dark);
  padding: 1.125rem 1.75rem;
  border-radius: 1rem;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-body);
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 210px;
  transition:
    background 0.2s,
    transform 0.2s;
  line-height: 1.4;
}
.btn-hero:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
}
.btn-hero-dot {
  display: block;
  width: 0.625rem;
  height: 0.625rem;
  min-width: 0.625rem;
  min-height: 0.625rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.btn-hero-dot.active {
  background: var(--sky-blue);
}
.btn-hero-dot.inactive {
  background: #d1d5db;
}

/* ════════════════════════════════════════
   SECTION HEADER (shared)
   ════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  font-weight: var(--font-weight-normal);
  color: var(--text-dark);
}
.section-title strong {
  color: var(--text-dark);
  font-weight: var(--font-weight-bold);
}
.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-size: var(--font-size-body);
  line-height: 1.6;
}

/* ════════════════════════════════════════
   PAGE SECTIONS
   ════════════════════════════════════════ */
.section-properties {
  padding: 4rem 0;
  background: #fff;
}
.section-articles {
  padding: 4rem 0;
  background: #eef4fb;
}

/* ════════════════════════════════════════
   PROPERTY CARD + BADGE
   ════════════════════════════════════════ */
.property-card {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.property-card:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.14);
  transform: translateY(-3px);
}
.property-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.property-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Custom badge — uses original .badge class from property-card.tpl */
.property-card-img .badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  background: #0f172a;
  color: #fff;
  font-size: var(--font-size-xxs);
  font-weight: var(--font-weight-semibold);
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  letter-spacing: 0.03em;
  z-index: 1;
  /* Override Bootstrap .badge styles */
  display: inline-block;
}
.property-card-img--placeholder svg {
  color: #94a3b8;
}
.property-card-img--placeholder i svg {
  width: 3rem;
  height: 3rem;
}
.property-price {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  padding: 0.2rem 0.7rem;
  border-radius: 2rem;
  backdrop-filter: blur(4px);
}
.property-card-body {
  padding: 1rem 1.25rem;
}
.property-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.property-address {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.property-specs {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  align-items: center;
  margin: 0;
}
.spec-num {
  font-weight: var(--font-weight-semibold);
}
.spec-sep {
  color: #cbd5e1;
}

/* ════════════════════════════════════════
   ARTICLE CARD
   ════════════════════════════════════════ */
.article-card {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.article-card:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.14);
  transform: translateY(-3px);
}
.article-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-card-img img {
  transform: scale(1.04);
}
.article-card-body {
  padding: 1.25rem;
}
.article-eyebrow {
  text-transform: uppercase;
  font-size: var(--font-size-xxs);
  font-weight: var(--font-weight-bold);
  color: var(--sky-blue);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.article-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.article-excerpt {
  font-size: var(--font-size-md);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Homepage articles carousel — equal-height cards */
.page-home .articles-swiper .swiper-wrapper {
  align-items: stretch;
}
.page-home .articles-swiper .swiper-slide {
  height: auto;
  display: flex;
  align-items: stretch;
}
.page-home .articles-swiper .article-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.page-home .articles-swiper .article-card-img {
  flex-shrink: 0;
}
.page-home .articles-swiper .article-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.page-home .articles-swiper .article-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(2 * 1.4 * 1em);
}
.page-home .articles-swiper .article-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  flex: 1;
  min-height: calc(4 * 1.6 * var(--font-size-md));
}

/* ════════════════════════════════════════
   SWIPER CUSTOM UI
   ════════════════════════════════════════ */
.properties-swiper-wrap {
  overflow: hidden;
}
.page-home .properties-swiper .swiper-slide {
  height: auto;
  display: flex;
}
.page-home .properties-swiper .feed-listing-card, .page-search .search-results-grid .feed-listing-card {
  width: 100%;
  margin: 0;
}
.page-home .properties-swiper .feed-listing-specs, .page-search .search-results-grid .feed-listing-specs {
  flex-wrap: wrap;
}

/* Compact listing card — home slider + search results */
.page-home .properties-swiper .feed-listing-media, .page-search .search-results-grid .feed-listing-media {
  aspect-ratio: 16 / 11;
  min-height: 9.75rem;
}
.page-home .properties-swiper .feed-listing-body, .page-search .search-results-grid .feed-listing-body {
  padding: 0.75rem 0.875rem 0.875rem;
}
.page-home .properties-swiper .feed-listing-price, .page-search .search-results-grid .feed-listing-price {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.1rem;
}
.page-home .properties-swiper .feed-listing-name, .page-search .search-results-grid .feed-listing-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}
.page-home .properties-swiper .feed-listing-address, .page-search .search-results-grid .feed-listing-address {
  font-size: 14px;
  margin-bottom: 0.65rem;
}
.page-home .properties-swiper .feed-listing-specs, .page-search .search-results-grid .feed-listing-specs {
  font-size:14px;
  line-height: 1.45;
}
.page-home .properties-swiper .feed-listing-badge, .page-search .search-results-grid .feed-listing-badge {
  top: 0.625rem;
  left: 0.625rem;
  font-size: var(--font-size-2xs);
  padding: 0.2rem 0.5rem;
}
.page-home .properties-swiper .feed-listing-fav--star, .page-search .search-results-grid .feed-listing-fav--star {
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  background: #fff;
  border: none;
  backdrop-filter: none;
  color: #111827;
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.12),
    0 1px 3px rgba(15, 23, 42, 0.08);
  transition:
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
.page-home .properties-swiper .feed-listing-fav--star:hover, .page-search .search-results-grid .feed-listing-fav--star:hover {
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.16),
    0 2px 4px rgba(15, 23, 42, 0.08);
  transform: scale(1.04);
}
.page-home .properties-swiper .feed-listing-fav--star svg, .page-search .search-results-grid .feed-listing-fav--star svg {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 1.75;
}
.page-home .properties-swiper .feed-listing-fav--star.is-saved, .page-search .search-results-grid .feed-listing-fav--star.is-saved {
  background: #fff;
  color: #ef4444;
}
.page-home .properties-swiper .feed-listing-fav--star.is-saved svg, .page-search .search-results-grid .feed-listing-fav--star.is-saved svg {
  fill: currentColor;
  stroke: currentColor;
}

@media (min-width: 480px) {
  .page-home .properties-swiper .feed-listing-media, .page-search .search-results-grid .feed-listing-media {
    aspect-ratio: 5 / 4;
    min-height: 11rem;
  }
  .page-home .properties-swiper .feed-listing-body, .page-search .search-results-grid .feed-listing-body {
    padding: 0.875rem 1rem 1rem;
  }
  .page-home .properties-swiper .feed-listing-price, .page-search .search-results-grid .feed-listing-price {
    font-size:18px;
  }
  .page-home .properties-swiper .feed-listing-name, .page-search .search-results-grid .feed-listing-name {
    font-size: var(--font-size-md);
  }
}

@media (min-width: 640px) {
  .page-home .properties-swiper .feed-listing-media, .page-search .search-results-grid .feed-listing-media {
    aspect-ratio: 4 / 3;
    min-height: 12rem;
  }
}

/* Laptop & desktop — fixed image height */
@media (min-width: 768px) {
  .page-home .properties-swiper .feed-listing-media, .page-search .search-results-grid .feed-listing-media {
    aspect-ratio: auto;
    min-height: 0;
    height: 145px;
  }
}

@media (min-width: 1024px) {
  .page-home .properties-swiper .feed-listing-price, .page-search .search-results-grid .feed-listing-price {
    font-size: var(--font-size-body);
    margin-bottom: 0.625rem;
  }
  .page-home .properties-swiper .feed-listing-name, .page-search .search-results-grid .feed-listing-name {
    font-size: var(--font-size-sm);
  }
  .page-home .properties-swiper .feed-listing-body, .page-search .search-results-grid .feed-listing-body {
    padding: 1rem 1.125rem 1.125rem;
  }
}
p.feed-listing-specs span {
  font-weight: 700;
}
.properties-swiper-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.swiper-progress {
  flex: 1;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}
.swiper-progress-fill {
  height: 100%;
  background: var(--sky-blue);
  border-radius: 2px;
  width: 25%;
  transition: width 0.3s ease;
}
.swiper-nav {
  display: flex;
  gap: 0.5rem;
}
.swiper-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.swiper-nav-btn:hover {
  background: var(--sky-blue);
  border-color: var(--sky-blue);
  color: #fff;
}
.swiper-nav-btn svg {
  width: 1rem;
  height: 1rem;
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  /* padding-top: 4rem; */
}
.site-footer .logo-text {
  color: #fff;
}

/* Responsive grid for footer columns */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 575px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand-desc {
  font-size: var(--font-size-md);
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 1rem;
}
.footer-col h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col ul a {
  color: #94a3b8;
  text-decoration: none;
  font-size: var(--font-size-md);
  transition: color 0.15s;
}
.footer-col ul a:hover {
  color: #f8fafc;
}
.footer-bottom {
  background: rgba(0, 0, 0, 0.25);
  text-align: center;
  padding: 1.25rem;
  margin-top: 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ════════════════════════════════════════
   MODAL OVERLAY
   ════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.modal-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  filter: blur(4px) brightness(0.92) saturate(1.08);
  transform: scale(1.08);
}
.modal-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(239, 246, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.18) 100%
  );
  pointer-events: none;
}

/* Main — centers the white card in the viewport */
.modal-main {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  padding: 4.75rem 2rem 4.5rem;
}

/* Topbar — full-width page header over the blur */
.modal-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 2rem;
  pointer-events: none;
}
.modal-topbar-back,
.modal-topbar-close {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
  flex-shrink: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-topbar-back:hover,
.modal-topbar-close:hover {
  background: rgba(15, 23, 42, 0.48);
  transform: scale(1.06);
}
.modal-topbar-back svg,
.modal-topbar-close svg {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 2.25;
}
.modal-topbar-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
.modal-topbar-logo .logo-img {
  height: 2rem;
}

/* Step dots — bottom of wizard shell */
.wizard-modal .modal-step-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.625rem;
  margin: 0;
  pointer-events: none;
  flex-shrink: 0;
}
.modal-step-dot {
  width: 3.5rem;
  height: 0.4rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition:
    background 0.2s,
    transform 0.2s;
}
.modal-step-dot.active {
  background: var(--sky-blue);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Modal card */
.modal-card {
  position: relative;
  background: #fff;
  border-radius: 2rem;
  width: min(48.25rem, 68vw);
  max-width: 56.25rem;
  min-height: 29.25rem;
  height: min(32rem, calc(100dvh - 10rem));
  max-height: min(32rem, calc(100dvh - 10rem));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.2);
}

/* Step panels */
.modal-step {
  display: none;
  padding: 3.25rem 3.5rem 3.25rem;
  min-height: 0;
  height: 100%;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}
.modal-step.is-active {
  display: flex;
}
.modal-step-title {
  font-size: clamp(2rem, 2.2vw, 1.75rem);
  font-weight: var(--font-weight-bold);
  text-align: center;
  color: #1e293b;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
  letter-spacing: 0.6px;
}
.modal-step-subtitle {
  font-size: 18px;
  color: #64748b;
  text-align: center;
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 0;
  line-height: 1.5;
}

/* Option cards */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
}
.option-card {
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1.125rem;
  background: #fff;
  cursor: pointer;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 1rem;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
  width: 100%;
  /* min-height: 6.75rem; */
}
.option-card:hover {
  border-color: #cbd5e1;
}
.option-card.is-selected {
  border-color: #6366f1;
  background: #f8fbff;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.14);
}
.option-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #38bdf8;
}
.option-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.option-card.is-selected .option-card-icon {
  background: #dbeafe;
  color: #3b82f6;
}
.option-card-text {
  flex: 1;
  min-width: 0;
}
.option-card-label {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.option-card-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.option-radio {
  flex-shrink: 0;
  align-self: start;
  margin-top: 0.125rem;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}
.option-card.is-selected .option-radio {
  border-color: #6366f1;
}
.option-radio-dot {
  width: 0.5625rem;
  height: 0.5625rem;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s;
}
.option-card.is-selected .option-radio-dot {
  background: #6366f1;
}

/* Property type grid */
.type-grid {
  --type-grid-gap: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--type-grid-gap);
  margin-bottom: 0;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow-y: auto;
}

.type-grid-row {
  display: grid;
  gap: var(--type-grid-gap);
  width: 100%;
}

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

.type-grid-row--2 {
  display: flex;
  justify-content: center;
  gap: var(--type-grid-gap);
}

.type-grid-row--2 .type-card {
  flex: 0 1 calc((100% - (2 * var(--type-grid-gap))) / 3);
  max-width: calc((100% - (2 * var(--type-grid-gap))) / 3);
  min-width: 0;
}

.type-card {
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.125rem 1.25rem;
  background: #fff;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.75rem;
  width: 100%;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}
.type-card:hover {
  border-color: #cbd5e1;
}
.type-card.is-selected {
  border-color: #6366f1;
  background: #f8fbff;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.14);
}
.type-card-label {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
}
.type-radio {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}
.type-card.is-selected .type-radio {
  border-color: #6366f1;
}
.type-radio-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s;
}
.type-card.is-selected .type-radio-dot {
  background: #6366f1;
}

/* Counter grid (beds / baths) */
.counter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: auto;
  flex: 1;
  align-content: center;
}
.counter-box {
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  background: #fafbfc;
}
.counter-label {
  display: block;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.counter-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.125rem;
}
.counter-btn {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: var(--font-size-display-sm);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.counter-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.counter-value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  min-width: 2.25rem;
  text-align: center;
}

/* Price range slider */
.modal-range-pad {
  padding: 1rem 0;
  margin-bottom: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.range-wrap {
  position: relative;
  height: 1.5rem;
}
.range-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
}
.range-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--sky-blue);
}
.range-wrap input[type="range"] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
}
.range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--sky-blue);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  pointer-events: all;
  cursor: pointer;
}
.range-wrap input[type="range"]::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--sky-blue);
  border: 2px solid #fff;
  cursor: pointer;
}

/* Location search input */
.location-search {
  position: relative;
  margin-bottom: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location-search input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 2rem;
  padding: 1rem 3.25rem 1rem 1.5rem;
  font-size: var(--font-size-base);
  outline: none;
  color: var(--text-dark);
  transition: border-color 0.15s;
}
.location-search input:focus {
  border-color: var(--sky-blue);
}
.location-search input::placeholder {
  color: #94a3b8;
}
.location-search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.location-search-icon svg {
  width: 1rem;
  height: 1rem;
}

/* Modal footer */
.wizard-modal .modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 !important;
  border-top: none !important;
  gap: 1rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: none !important;
  gap: 1rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.modal-step-label {
  font-size: 20px;
  color: #161718;
  white-space: nowrap;
}
.modal-btn-group {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.btn-back {
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #475569;
  padding: 0.8rem 3.75rem;
  border-radius: 0.625rem;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: background 0.15s;
}
.btn-back:hover {
  background: #f1f5f9;
}
.btn-next {
  border: none;
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 55%, #2563eb 100%);
  color: #fff;
  padding: 0.6875rem 4rem;
  border-radius: 0.625rem;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  transition:
    filter 0.15s,
    transform 0.15s;
}
.btn-next:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn-next:disabled {
  background: #bfdbfe;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 767px) {
  .modal-main {
    padding: 4rem 1rem 3.75rem;
    align-items: center;
  }
  .modal-card {
    width: calc(100% - 1.5rem);
    max-width: none;
    min-height: auto;
    height: calc(100dvh - 8rem);
    max-height: calc(100dvh - 8rem);
    border-radius: 1.5rem;
  }
  .modal-topbar {
    padding: 1rem 1.25rem;
  }
  .modal-topbar-back,
  .modal-topbar-close {
    width: 2.25rem;
    height: 2.25rem;
  }
  .modal-topbar-logo .logo-img {
    height: 1.75rem;
  }
  .wizard-modal .modal-step-dots {
    bottom: 0.875rem;
  }
  .modal-step {
    padding: 2rem 1.5rem 1rem;
    min-height: 0;
  }
  .modal-step-subtitle {
    margin-bottom: 1.5rem;
    font-size: var(--font-size-md);
  }
  .type-grid {
    gap: 0.75rem;
    --type-grid-gap: 0.75rem;
  }
  .type-grid-row--3,
  .type-grid-row--2 {
    display: grid;
    grid-template-columns: 1fr;
  }
  .type-grid-row--2 .type-card {
    flex: none;
    max-width: none;
  }
  .option-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .option-card {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: none;
    justify-items: stretch;
    align-items: start;
    text-align: left;
    min-height: 5.75rem;
    padding: 1rem 0.75rem;
    gap: 0.625rem;
  }
  .option-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
  }
  .option-card-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  .option-card-label {
    font-size: var(--font-size-md);
  }
  .option-card-desc {
    font-size: var(--font-size-xxs);
    -webkit-line-clamp: 2;
  }
  .option-radio {
    justify-self: end;
    align-self: start;
  }
  .wizard-modal .modal-footer,
  .modal-footer {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 0 !important;
  }
  .modal-btn-group {
    justify-content: flex-end;
  }
  .btn-back,
  .btn-next {
    padding: 0.625rem 1.25rem;
    font-size: var(--font-size-sm);
  }
  .modal-step-dot {
    width: 2.25rem;
  }
}

@media (max-width: 479px) {
  .option-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .option-card {
    min-height: auto;
    padding: 1rem 1rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .type-grid-row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .type-grid-row--2 {
    display: flex;
    justify-content: center;
  }
}

/* ════════════════════════════════════════
   MY FEED DASHBOARD
   ════════════════════════════════════════ */
.page-feed {
  background: var(--page-bg);
}

.page-shell--feed {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.feed-container {
  flex: 1;
  /* max-width: 1600px; */
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.feed-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 260px;
  gap: 10px;
  width: 100%;
  align-items: start;
}

.feed-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}
.feed-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.feed-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.625rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  transition: background 0.15s, color 0.15s;
}
.feed-nav-link svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: var(--text-muted);
}
.feed-nav-link:hover {
  background: #f8fafc;
  color: var(--text-dark);
}
.feed-nav-link.is-active {
  background: #f1f5f9;
  color: var(--text-dark);
  font-weight: var(--font-weight-semibold);
}
.feed-nav-link.is-active svg {
  color: var(--text-dark);
}

.feed-main {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
  margin-top: 5px;
}

.feed-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  /* box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); */
}

.feed-claim-card {
  padding: 2rem 2.25rem;
  text-align: center;
}
.feed-claim-title {
  font-size: clamp(1.375rem, 2.5vw, 1.2rem);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.feed-claim-desc {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: var(--font-size-body);
  line-height: 1.55;
}
.feed-claim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.btn-feed-primary {
  border: none;
  background: var(--sky-blue);
  color: #fff;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-body);
  padding: 0.75rem 1.5rem;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}
.btn-feed-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn-feed-secondary {
  border: none;
  background: #f1f5f9;
  color: var(--text-dark);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-body);
  padding: 0.75rem 1.5rem;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-feed-secondary:hover {
  background: #e2e8f0;
}

.feed-list-section {
  padding: 1.5rem 1.75rem 1.75rem;
}
.feed-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.feed-section-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  margin: 0;
}
.feed-section-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.feed-sort .dropdown-toggle::after {
  margin-left: 0.5rem;
  vertical-align: 0.15em;
}
.feed-sort-btn {
  display: inline-flex;
  align-items: center;
  min-width: 6.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--text-dark);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.feed-sort-btn:hover,
.feed-sort-btn.show {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.feed-sort-menu {
  min-width: 11rem;
  padding: 0.375rem;
  border: 1px solid #e8edf3;
  border-radius: 0.625rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
.feed-sort-menu .dropdown-item {
  border-radius: 0.375rem;
  font-size: var(--font-size-md);
  padding: 0.5rem 0.75rem;
}
.feed-sort-menu .dropdown-item.active {
  background: #f1f5f9;
  color: var(--text-dark);
  font-weight: var(--font-weight-semibold);
}
.feed-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.feed-filter-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: var(--text-dark);
}
.feed-filter-btn svg {
  width: 1rem;
  height: 1rem;
}
.feed-listings {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feed-listing-card {
  border: 1px solid #eef2f7;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.feed-listing-card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
.feed-listing-card:focus-visible {
  outline: 2px solid var(--sky-blue);
  outline-offset: 2px;
}
.feed-listing-media {
  position: relative;
  aspect-ratio: 16 / 7;
  background: #e2e8f0;
}
.feed-listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feed-listing-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--sky-blue);
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  padding: 0.3rem 0.65rem;
  border-radius: 0.375rem;
}
.feed-listing-fav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.feed-listing-fav svg {
  width: 1rem;
  height: 1rem;
}
.feed-listing-fav.is-saved {
  background: #fff;
  color: #ef4444;
  border-color: #fff;
}
.feed-listing-fav.is-saved svg {
  fill: currentColor;
}

/* ── Favorites toast ── */
.feed-fav-toast {
  position: fixed;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(36rem, calc(100vw - 2rem));
  padding: 0.875rem 1.125rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.06);
  animation: feed-fav-toast-in 0.28s ease;
}
@keyframes feed-fav-toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.feed-fav-toast-icon {
  flex-shrink: 0;
  display: flex;
  color: #22c55e;
}
.feed-fav-toast-message {
  flex: 1;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  white-space: nowrap;
}
.feed-fav-toast-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.feed-fav-toast-link {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--sky-blue);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.feed-fav-toast-link:hover {
  text-decoration: underline;
  color: #2563eb;
}
.feed-fav-toast-sep {
  color: #cbd5e1;
  font-size: var(--font-size-md);
  user-select: none;
}
.feed-rail.is-highlighted {
  outline: 2px solid var(--sky-blue);
  outline-offset: 4px;
  border-radius: 0.75rem;
  transition: outline-color 0.2s ease;
}
.feed-section-desc {
  margin: 0 0 1.25rem;
  font-size: var(--font-size-body);
  color: var(--text-muted);
  line-height: 1.5;
}
.feed-wishlist-summary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.feed-wishlist-summary li {
  font-size: var(--font-size-md);
  color: var(--text-body);
}
.feed-wishlist-summary strong {
  color: var(--text-dark);
  font-weight: var(--font-weight-bold);
}
@media (max-width: 640px) {
  .feed-fav-toast {
    flex-wrap: wrap;
    top: auto;
    bottom: 1rem;
    max-width: calc(100vw - 1.5rem);
  }
  .feed-fav-toast-message {
    white-space: normal;
    flex: 1 1 100%;
  }
  .feed-fav-toast-actions {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
}
.feed-listing-body {
  padding: 1.125rem 1.25rem 1.25rem;
}
.feed-listing-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.2rem;
}
.feed-listing-price {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-dark);
  margin: 0 0 0.15rem;
  line-height: 1.2;
}
.feed-listing-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  margin: 0;
}
.feed-listing-share {
  border: none;
  background: transparent;
  color: var(--text-subtle);
  padding: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
}
.feed-listing-share svg {
  width: 1.125rem;
  height: 1.125rem;
}
.feed-listing-address {
  color: var(--text-muted);
  font-size: var(--font-size-md);
  margin: 0 0 0.5rem;
}
.feed-listing-specs {
  color: #000;
  font-size: var(--font-size-sm);
  margin: 0;
  line-height: 1.5;
}
.feed-spec-sep {
  margin: 0 0.35rem;
  color: var(--text-faint);
}

/* ── Wishlist page — 2-column listing grid ── */
.page-wishlist {
  color: var(--text-dark);
}
.page-wishlist .feed-listings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.page-wishlist .feed-listing-media {
  aspect-ratio: 16 / 9;
}
.page-wishlist .feed-listing-body {
  padding: 1rem 1.125rem 1.125rem;
}
.page-wishlist .feed-listing-price,
.page-wishlist .feed-listing-name,
.page-wishlist .feed-section-title,
.page-wishlist .feed-welcome-title,
.page-wishlist .feed-rail-title {
  color: var(--text-dark);
}
.page-wishlist .feed-listing-price {
  font-size: var(--font-size-lg);
}
.page-wishlist .feed-listing-name {
  font-size: var(--font-size-body);
}
.page-wishlist .feed-listing-address,
.page-wishlist .feed-listing-specs,
.page-wishlist .feed-welcome-text {
  color: var(--text-muted);
}
.page-wishlist .feed-listing-address {
  font-size: var(--font-size-sm);
}
.page-wishlist .feed-listing-specs {
  font-size: var(--font-size-xs);
}
.page-wishlist .feed-listing-share {
  color: var(--text-subtle);
}
.page-wishlist .feed-spec-sep {
  color: var(--text-faint);
}
.page-wishlist .feed-wishlist-summary li {
  color: var(--text-body);
}

/* ── Wishlist benefits sidebar ── */
.wishlist-benefits-card {
  padding: 1.5rem 1.375rem;
  /* background: #faf9f6; */
  border-color: #f1efe8;
}
.wishlist-benefits-group + .wishlist-benefits-group {
  margin-top: 1.75rem;
}
.wishlist-benefits-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  color: var(--text-dark);
  margin: 0 0 1rem;
  line-height: 1.3;
}
.wishlist-benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.wishlist-benefits-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--font-size-body);
  line-height: 1.45;
  color: var(--text-muted);
}
.wishlist-benefits-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  color: #fff;
  margin-top: 0.1rem;
}
.wishlist-benefits-icon svg {
  width: 0.75rem;
  height: 0.75rem;
}
.wishlist-benefits-icon--buyer {
  background: #6fcf97;
}
.wishlist-benefits-icon--owner {
  background: #7ec8f7;
}

.feed-rail {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}
.feed-welcome-card {
  position: relative;
  padding: 1.25rem 1.25rem 1.5rem;
}
.feed-welcome-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.feed-welcome-close svg {
  width: 1rem;
  height: 1rem;
}
.feed-welcome-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  margin: 0 2rem 0.875rem 0;
}
.feed-welcome-illustration {
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.875rem;
}
.feed-welcome-illustration img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.feed-welcome-text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1rem;
}
.btn-feed-gotit {
  border: none;
  background: var(--sky-blue);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
}
.feed-rail-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  margin: 0 0 1rem;
}
.feed-whitelist-card {
  padding: 1.25rem;
}
.feed-whitelist-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feed-whitelist-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #eef2f7;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.feed-whitelist-item:hover {
  border-color: #dbe3ee;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  color: inherit;
}
.feed-whitelist-item img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
}
.feed-whitelist-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}
.feed-whitelist-name {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
}
.feed-whitelist-address,
.feed-whitelist-specs {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-footer--feed {
  background: #fff;
  border-top: 1px solid #eef2f7;
  margin-top: auto;
}
.page-shell--feed .site-footer-bar,
.page-shell--search .site-footer-bar {
  margin-top: auto;
}
.page-shell--search .site-footer-bar {
  flex-shrink: 0;
}
.site-footer-bar {
  background: #fff;
  border-top: 1px solid #eef2f7;
}
.site-footer.site-footer-bar {
  color: inherit;
}
.site-footer-bar .container {
  max-width: 1600px;
}
.site-footer-bar-inner,
.feed-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.125rem 1.5rem;
}
.site-footer-bar-nav,
.feed-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.site-footer-bar-nav a,
.feed-footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--font-size-md);
  transition: color 0.15s;
}
.site-footer-bar-nav a:hover,
.feed-footer-nav a:hover {
  color: var(--text-dark);
}
.site-footer-bar-copy,
.feed-footer-copy {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}
.site-footer-bar .logo-img {
  height: 1.75rem;
  width: auto;
}

@media (max-width: 1199px) {
  .feed-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .feed-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
    gap: 1rem;
  }
}

@media (max-width: 991px) {
  .feed-container {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .feed-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .feed-sidebar {
    display: block;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
  }
  .feed-rail {
    grid-template-columns: 1fr;
  }
  .feed-claim-card {
    padding: 1.5rem 1.25rem;
  }
  .feed-list-section {
    padding: 1.25rem;
  }
  .page-wishlist .feed-listings {
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .page-feed .feed-container {
    padding-bottom: calc(6.75rem + env(safe-area-inset-bottom, 0px));
  }
  .feed-layout {
    grid-template-columns: 1fr;
  }
  .feed-sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 1030;
  }
  .feed-nav {
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    gap: 0;
    border: none;
    border-top: 1px solid #e8edf3;
    border-radius: 0;
    padding: 0.375rem 0.25rem calc(0.375rem + env(safe-area-inset-bottom, 0px));
    /* box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08); */
  }
  .feed-nav-link {
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.375rem 0.125rem;
    font-size: var(--font-size-2xs);
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    text-align: center;
    border-radius: 0.5rem;
    background: transparent;
  }
  .feed-nav-link span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .feed-nav-link svg {
    width: 1.25rem;
    height: 1.25rem;
    padding: 0.375rem;
    border-radius: 0.625rem;
    box-sizing: content-box;
  }
  .feed-nav-link.is-active {
    background: transparent;
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
  }
  .feed-nav-link.is-active svg {
    background: #f1f5f9;
    color: var(--text-dark);
  }

  /* Floating Add Listing FAB — bottom right, icon only */
  .feed-nav-link--add {
    position: fixed;
    right: 1rem;
    left: auto;
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    transform: none;
    z-index: 1035;
    flex: none;
    width: auto;
    min-width: 0;
    padding: 0;
    gap: 0;
    background: transparent;
    pointer-events: auto;
  }
  .feed-nav-link--add:hover {
    background: transparent;
  }
  .feed-nav-link--add.is-active {
    background: transparent;
  }
  .feed-nav-link--add .feed-nav-add-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: var(--sky-blue);
    box-shadow:
      0 4px 14px rgba(37, 99, 235, 0.4),
      0 2px 6px rgba(15, 23, 42, 0.12);
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .feed-nav-link--add .feed-nav-add-icon svg {
    width: 1.375rem;
    height: 1.375rem;
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-sizing: border-box;
    color: #fff;
    display: block;
  }
  .feed-nav-link--add:active .feed-nav-add-icon {
    transform: scale(0.96);
  }
  .feed-nav-link--add > span:not(.feed-nav-add-icon) {
    display: none;
  }

  .page-wishlist .feed-listings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .feed-claim-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-feed-primary,
  .btn-feed-secondary {
    width: 100%;
  }
  .feed-footer-inner,
  .site-footer-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .feed-footer-nav,
  .site-footer-bar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ════════════════════════════════════════
   USER PROFILE PAGE
   ════════════════════════════════════════ */
.page-profile .profile-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.profile-container {
  /* max-width: 1600px; */
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-hero-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.profile-cover {
  position: relative;
  height: 14rem;
  overflow: hidden;
  background: #e2e8f0;
}
.profile-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-hero-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 2rem 1.5rem;
}
.profile-hero-start {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  min-width: 0;
}
.profile-avatar {
  width: 7.5rem;
  height: 7.5rem;
  margin-top: -3.75rem;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  z-index: 9;
}
.profile-identity {
  padding-bottom: 0.25rem;
  min-width: 0;
}
.profile-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.375rem;
}
.profile-name {
  margin: 0;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--text-dark);
}
.profile-verified {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: var(--font-size-xxs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.profile-title {
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--sky-blue);
}
.btn-profile-share {
  flex-shrink: 0;
  border: none;
  background: var(--sky-blue);
  color: #fff;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  padding: 0.75rem 1.375rem;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}
.btn-profile-share:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr) minmax(0, 300px);
  gap: 1.25rem;
  align-items: start;
}
.profile-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}
.profile-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.profile-stats-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 1rem 1.125rem;
}
.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}
.profile-stat-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.3;
}
.profile-stat-value {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  line-height: 1.2;
}
.profile-about-card {
  padding: 1.25rem 1.375rem;
}
.profile-section-title {
  margin: 0 0 1rem;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
}
.profile-section-title--lg {
  font-size: var(--font-size-lg);
  margin-bottom: 0;
}
.profile-about-text {
  color: var(--text-muted);
  font-size: var(--font-size-md);
  line-height: 1.65;
}
.profile-about-text p {
  margin: 0 0 0.875rem;
}
.profile-about-text p:last-child {
  margin-bottom: 0;
}
.profile-read-more {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--sky-blue);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
}
.profile-read-more:hover {
  text-decoration: underline;
}

.profile-listings-panel {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  padding: 1.25rem 1.375rem 1.375rem;
}
.profile-listings-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}
.profile-listings-panel .profile-section-title--lg {
  margin-bottom: 0;
}
.profile-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.profile-filter {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--text-dark);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  padding: 0.4375rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.2;
}
.profile-filter:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.profile-filter.is-active {
  background: var(--sky-blue);
  border-color: var(--sky-blue);
  color: #fff;
}
.profile-listings {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Active listings cards — profile page */
.profile-listings-panel .feed-listing-card {
  border: 1px solid #eef2f7;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #fff;
}
.profile-listings-panel .feed-listing-media {
  aspect-ratio: 16 / 8;
}
.profile-listings-panel .feed-listing-badge {
  top: 0.875rem;
  left: 0.875rem;
  background: #22c55e;
  color: #fff;
  font-size: var(--font-size-xxs);
  font-weight: var(--font-weight-bold);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  letter-spacing: 0.02em;
}
.profile-listings-panel .feed-listing-fav {
  top: 0.875rem;
  right: 0.875rem;
  width: 2.125rem;
  height: 2.125rem;
  border: none;
  background: #fff;
  color: #94a3b8;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
  backdrop-filter: none;
}
.profile-listings-panel .feed-listing-body {
  padding: 1rem 1.125rem 1.125rem;
}
.profile-listings-panel .feed-listing-top {
  margin-bottom: 0.25rem;
}
.profile-listings-panel .feed-listing-price {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}
.profile-listings-panel .feed-listing-name {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
}
.profile-listings-panel .feed-listing-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
}
.profile-listings-panel .feed-listing-share:hover {
  background: #e2e8f0;
  color: var(--text-muted);
}
.profile-listings-panel .feed-listing-share svg {
  width: 1rem;
  height: 1rem;
}
.profile-listings-panel .feed-listing-address {
  font-size: var(--font-size-sm);
  color: var(--text-subtle);
  margin-bottom: 0.375rem;
}
.profile-listings-panel .feed-listing-specs {
  font-size: var(--font-size-xs);
  color: var(--text-subtle);
  line-height: 1.5;
}
.profile-listings-panel .feed-listing-specs > span:not(.feed-spec-sep) {
  font-weight: var(--font-weight-bold);
  color: var(--text-muted);
}

.profile-events-panel {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  padding: 1.25rem 1.375rem 1.375rem;
}
.profile-events-panel .profile-section-title--lg {
  margin-bottom: 1rem;
}
.profile-events {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.profile-event-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 0.875rem;
}
.profile-event-media {
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  overflow: hidden;
}
.profile-event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-event-body {
  padding: 0.875rem 1rem 1rem;
}
.profile-event-title {
  margin: 0 0 0.375rem;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  line-height: 1.35;
}
.profile-event-owner {
  margin: 0 0 0.375rem;
  font-size: var(--font-size-xs);
  line-height: 1.4;
  color: #94a3b8;
}
.profile-event-owner strong {
  color: var(--text-dark);
  font-weight: var(--font-weight-bold);
}
.profile-event-time {
  margin: 0;
  font-size: var(--font-size-xxs);
  color: #94a3b8;
  line-height: 1.45;
}

@media (max-width: 1199px) {
  .profile-layout {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  }
  .profile-col--right {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991px) {
  .profile-container {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-col--right {
    display: block;
  }
  .profile-hero-body {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1.25rem 1.25rem;
  }
  .btn-profile-share {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .profile-cover {
    height: 10rem;
  }
  .profile-avatar {
    width: 5.5rem;
    height: 5.5rem;
    margin-top: -2.75rem;
  }
  .profile-hero-start {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .profile-stats-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .profile-stat {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ════════════════════════════════════════
   PROPERTY DETAIL MODAL
   ════════════════════════════════════════ */
.property-detail-modal .modal-backdrop.show {
  opacity: 0.65;
}
.property-detail-dialog {
  display: flex;
  flex-direction: column;
  max-width: 65rem;
  width: calc(100% - 2rem);
  margin: 1rem auto;
  max-height: calc(100vh - 0.5em);
  height: calc(100vh - 0.5rem);
}
.property-detail-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  /* max-height: calc(100vh - 2rem); */
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}
.property-detail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.property-detail-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  flex-shrink: 0;
  z-index: 2;
}
.property-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-dark);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  justify-self: start;
}
.property-detail-back svg {
  width: 1rem;
  height: 1rem;
}
.property-detail-logo {
  justify-self: center;
}
.property-detail-logo .logo-img,
.property-detail-logo img {
  height: 1.75rem;
  width: auto;
}
.property-detail-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
}
.property-detail-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--text-dark);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}
.property-detail-action-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}
.property-detail-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3px;
  margin: 0.625rem 1rem 0;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #fff;
  height: 25rem;
}
.property-detail-gallery-main-wrap {
  position: relative;
  height: 100%;
  min-height: 0;
}
.property-detail-gallery-main {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  background: #e2e8f0;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
  cursor: pointer;
  text-align: left;
}
.property-detail-gallery-trigger:focus-visible {
  outline: 2px solid var(--sky-blue);
  outline-offset: 2px;
}
.property-detail-gallery-hero {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.property-detail-status {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: var(--font-size-xxs);
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
  line-height: 1.2;
  z-index: 2;
}
.property-detail-status svg {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  color: var(--text-muted);
}
.property-detail-tour-thumb {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.375rem;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  z-index: 2;
  padding: 0;
  background: #e2e8f0;
}
.property-detail-tour-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.property-detail-tour-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
}
.property-detail-tour-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.property-detail-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  height: 100%;
  min-height: 0;
}
.property-detail-gallery-item {
  position: relative;
  border: none;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  background: #e2e8f0;
  min-height: 0;
  cursor: pointer;
}
.property-detail-gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.property-detail-photos-btn {
  position: absolute;
  right: 0.375rem;
  bottom: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: var(--font-size-xxs);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}
.property-detail-photos-btn svg {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}
.property-detail-body {
  padding: 1.25rem 1.25rem 2rem;
  background: #fff;
}
.property-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: 2rem;
  align-items: start;
}
.property-detail-price {
  margin: 0 0 0.25rem;
  font-size: var(--font-size-display-md);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-dark);
  line-height: 1.2;
}
.property-detail-address {
  margin: 0 0 1rem;
  font-size: var(--font-size-md);
  color: var(--text-muted);
}
.property-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid #eef2f7;
  border-radius: 0.625rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.property-detail-stat {
  flex: 1 1 auto;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  border-right: 1px solid #eef2f7;
  min-width: 0;
}
.property-detail-stat:last-child {
  border-right: none;
}
.property-detail-stat strong {
  display: block;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  margin-bottom: 0.125rem;
}
.property-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #eef2f7;
}
.property-detail-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--font-size-sm);
}
.property-detail-meta-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--sky-blue);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.property-detail-meta-label {
  display: block;
  color: #94a3b8;
  font-size: var(--font-size-xxs);
  margin-bottom: 0.125rem;
}
.property-detail-meta-value {
  display: block;
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
}
.property-detail-section {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #eef2f7;
}
.property-detail-section--last {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.property-detail-section-title {
  margin: 0 0 0.75rem;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
}
.property-detail-description,
.property-detail-zoning {
  margin: 0;
  font-size: var(--font-size-md);
  line-height: 1.65;
  color: var(--text-muted);
}
.property-detail-description--more {
  margin-top: 0.75rem;
}
.property-detail-read-more {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--sky-blue);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
}
.property-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.property-detail-tag {
  display: inline-flex;
  padding: 0.375rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  font-size: var(--font-size-xxs);
  font-weight: var(--font-weight-semibold);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.property-detail-accordion-toggle {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}
.property-detail-accordion-toggle .property-detail-section-title {
  margin: 0;
  flex: 1;
}
.property-detail-badge-occupied {
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  background: #fef3c7;
  color: #b45309;
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
}
.property-detail-accordion-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: #94a3b8;
  transition: transform 0.2s;
}
.property-detail-accordion-toggle[aria-expanded="true"] .property-detail-accordion-icon {
  transform: rotate(180deg);
}
.property-detail-space-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #eef2f7;
  border-radius: 0.625rem;
  background: #fafbfc;
}
.property-detail-space-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}
.property-detail-space-item svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--sky-blue);
}
.property-detail-space-item strong {
  width: 100%;
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
  padding-left: 1.375rem;
}
.property-detail-table-wrap {
  overflow-x: auto;
}
.property-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}
.property-detail-table th,
.property-detail-table td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
}
.property-detail-table th {
  font-weight: var(--font-weight-semibold);
  color: var(--text-muted);
  background: #f8fafc;
}
.property-detail-amenity-group {
  margin: 0 0 0.75rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--sky-blue);
}
.property-detail-amenity-block {
  margin-bottom: 1.25rem;
}
.property-detail-amenity-block:last-child {
  margin-bottom: 0;
}
.property-detail-amenity-group::before {
  content: "• ";
}
.property-detail-amenities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem 1rem;
}
.property-detail-amenity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}
.property-detail-amenity svg {
  width: 0.875rem;
  height: 0.875rem;
  color: #94a3b8;
  flex-shrink: 0;
}
.property-detail-sidebar-card {
  position: sticky;
  top: 1rem;
  padding: 1.25rem;
  border: 1px solid #eef2f7;
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.btn-property-request {
  width: 100%;
  border: none;
  background: var(--sky-blue);
  color: #fff;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.25);
}
.btn-property-request:hover {
  filter: brightness(1.05);
}
.property-detail-agent-label {
  display: block;
  font-size: var(--font-size-xs);
  color: #94a3b8;
  margin-bottom: 0.5rem;
}
.property-detail-agent-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.property-detail-agent-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}
.property-detail-agent-name {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
}

@media (max-width: 991px) {
  .property-detail-gallery {
    grid-template-columns: 1fr;
    height: auto;
    margin-inline: 0.75rem;
  }
  .property-detail-gallery-main {
    height: 9rem;
  }
  .property-detail-gallery-grid {
    height: 6.5rem;
  }
  .property-detail-layout {
    grid-template-columns: 1fr;
  }
  .property-detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .property-detail-amenities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .property-detail-sidebar-card {
    position: static;
  }
}

@media (max-width: 575px) {
  .property-detail-topbar {
    grid-template-columns: 1fr auto;
  }
  .property-detail-logo {
    display: none;
  }
  .property-detail-action-btn span {
    display: none;
  }
  .property-detail-stats {
    flex-direction: column;
  }
  .property-detail-stat {
    border-right: none;
    border-bottom: 1px solid #eef2f7;
  }
  .property-detail-stat:last-child {
    border-bottom: none;
  }
  .property-detail-meta-grid,
  .property-detail-amenities,
  .property-detail-space-grid {
    grid-template-columns: 1fr;
  }
}

/* Property photo gallery lightbox */
.property-gallery-modal {
  z-index: 1065 !important;
  padding: 0 !important;
}
.property-gallery-modal .property-gallery-dialog {
  max-width: none;
  width: 100%;
  height: 100%;
  margin: 0;
}
.modal-backdrop.property-gallery-backdrop {
  z-index: 1060 !important;
  background-color: rgba(15, 23, 42, 0.55);
}
.property-gallery-dialog {
  max-width: 100%;
  width: 100%;
  height: 100%;
  margin: 0;
}
.property-gallery-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100%;
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  padding-bottom: 0;
}
.property-gallery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 0.75rem;
  flex-shrink: 0;
}
.property-gallery-heading {
  min-width: 0;
  flex: 1 1 auto;
}
.property-gallery-title {
  margin: 0 0 0.25rem;
  /* font-family: var(--font-family-serif); */
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  text-align: center;
  line-height: var(--line-height-tight);
}
.property-gallery-address {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: #64748b;
  line-height: var(--line-height-base);
  justify-content: center;
}
.property-gallery-address svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: #94a3b8;
}
.property-gallery-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.property-gallery-close:hover {
  background: #e2e8f0;
}
.property-gallery-close svg {
  width: 1rem;
  height: 1rem;
}
.property-gallery-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
}
.property-gallery-carousel {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #0f172a;
}
.property-gallery-carousel .carousel-inner {
  width: 100%;
  height: 100%;
}
.property-gallery-carousel .carousel-item {
  height: 100%;
}
.property-gallery-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #ffffff;
}
.property-gallery-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
}
.property-gallery-counter {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  pointer-events: none;
}
.property-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
  transition: background 0.15s ease, transform 0.15s ease;
}
.property-gallery-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}
.property-gallery-nav svg {
  width: 1.125rem;
  height: 1.125rem;
}
.property-gallery-nav--prev {
  left: 0.75rem;
}
.property-gallery-nav--next {
  right: 0.75rem;
}
.property-gallery-view-larger {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease;
}
.property-gallery-view-larger:hover {
  background: rgba(15, 23, 42, 0.88);
}
.property-gallery-view-larger svg {
  width: 0.875rem;
  height: 0.875rem;
}
.property-gallery-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem 1.25rem;
  flex-shrink: 0;
  box-sizing: border-box;
}
.property-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 0.125rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.property-gallery-thumbs::-webkit-scrollbar {
  display: none;
}
.property-gallery-thumb {
  flex: 0 0 4.5rem;
  width: 4.5rem;
  height: 3.25rem;
  border: 2px solid transparent;
  border-radius: 0.375rem;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #e2e8f0;
  transition: border-color 0.15s ease;
}
.property-gallery-thumb.is-active {
  border-color: #22c55e;
}
.property-gallery-thumb:focus-visible {
  outline: 2px solid var(--sky-blue);
  outline-offset: 2px;
}
.property-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.property-gallery-thumbs-scroll {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  transition: background 0.15s ease;
}
.property-gallery-thumbs-scroll:hover {
  background: #f8fafc;
}
.property-gallery-thumbs-scroll svg {
  width: 1rem;
  height: 1rem;
}
.property-gallery-thumbs-scroll[hidden] {
  display: none;
}
@media (max-width: 575px) {
  .property-gallery-header,
  .property-gallery-thumbs-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .property-gallery-title {
    font-size: var(--font-size-lg);
  }
  .property-gallery-nav {
    width: 2rem;
    height: 2rem;
  }
  .property-gallery-nav--prev {
    left: 0.5rem;
  }
  .property-gallery-nav--next {
    right: 0.5rem;
  }
  .property-gallery-thumb {
    flex-basis: 3.75rem;
    width: 3.75rem;
    height: 2.75rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   Search page — map + results split layout
   ═══════════════════════════════════════════════════════════ */
.page-search {
  overflow: hidden;
}
.page-shell--search {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
}
.search-toolbar {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  padding: 0.625rem 1rem;
}
.search-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.search-toolbar-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
}
.search-select {
  appearance: none;
  border: 1px solid #dbe3ee;
  border-radius: 0.375rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.625rem center;
  padding: 0.4375rem 1.75rem 0.4375rem 0.625rem;
  font-size: var(--font-size-sm);
  color: #334155;
  min-width: 6.5rem;
  cursor: pointer;
}
.search-select:focus {
  outline: 2px solid var(--sky-blue);
  outline-offset: 1px;
}
.search-input-wrap {
  position: relative;
  flex: 1 1 12rem;
  min-width: 10rem;
  max-width: 18rem;
}
.search-input-wrap svg {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.875rem;
  height: 0.875rem;
  color: #94a3b8;
  pointer-events: none;
}
.search-input {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 0.375rem;
  padding: 0.4375rem 0.625rem 0.4375rem 2rem;
  font-size: var(--font-size-sm);
  color: #334155;
}
.search-input::placeholder {
  color: #94a3b8;
}
.search-input:focus {
  outline: 2px solid var(--sky-blue);
  outline-offset: 1px;
}
.search-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.375rem;
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
}
.search-filter-btn svg {
  width: 1rem;
  height: 1rem;
}
.search-price-dropdown {
  position: relative;
  flex-shrink: 0;
}
.search-price-dropdown-toggle {
  appearance: none;
  display: inline-block;
  min-width: 6.5rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.375rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.625rem center;
  padding: 0.4375rem 1.75rem 0.4375rem 0.625rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
  color: #334155;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.search-price-dropdown-toggle:hover,
.search-price-dropdown-toggle:focus {
  border-color: #cbd5e1;
  color: #334155;
}
.search-price-dropdown-toggle:focus {
  outline: 2px solid var(--sky-blue);
  outline-offset: 1px;
}
.search-price-dropdown-toggle.show,
.search-price-dropdown-toggle[aria-expanded="true"] {
  border-color: #cbd5e1;
}
.search-price-dropdown-menu {
  width: min(20rem, calc(100vw - 2rem));
  padding: 1.25rem 1.375rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  margin-top: 0.625rem !important;
  overflow: visible;
  position: relative;
}
.search-price-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -0.4375rem;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 0.875rem;
  height: 0.875rem;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
}
.search-price-popover-title {
  margin: 0 0 1rem;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: #0f172a;
}
.search-price-popover-inputs {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.125rem;
}
.search-price-popover-field {
  flex: 1 1 0;
  margin: 0;
  min-width: 0;
}
.search-price-popover-field input {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 0.5rem;
  padding: 0.5625rem 0.75rem;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: #0f172a;
  text-align: right;
  background: #fff;
}
.search-price-popover-field input:focus {
  outline: 2px solid #0f172a;
  outline-offset: 1px;
}
.search-price-popover-to {
  flex-shrink: 0;
  font-size: var(--font-size-sm);
  color: #94a3b8;
}
.search-price-popover-slider {
  margin-bottom: 1.25rem;
  height: 1.75rem;
}
.search-price-popover-slider .range-track {
  height: 5px;
  background: #e2e8f0;
  border-radius: 999px;
}
.search-price-popover-slider .range-fill {
  background: #0f172a;
  border-radius: 999px;
}
.search-price-popover-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  pointer-events: all;
  cursor: pointer;
}
.search-price-popover-slider input[type="range"]::-moz-range-thumb {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}
.search-price-popover-actions {
  display: flex;
  justify-content: flex-end;
}
.search-price-popover-apply {
  border: none;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #fff;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  padding: 0.5625rem 1.375rem;
  cursor: pointer;
}
.search-price-popover-apply:hover {
  background: #1e293b;
}
.search-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.375rem;
  padding: 0.4375rem 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.search-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}
.search-btn--primary {
  background: var(--sky-blue);
  color: #fff;
  border-color: var(--sky-blue);
}
.search-btn--primary:hover {
  filter: brightness(1.05);
}
.search-btn--save {
  background: #fff;
  color: var(--sky-blue);
  border-color: var(--sky-blue);
}
.search-btn--save.is-saved {
  background: #eff6ff;
}
.search-btn--clear {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}
.search-btn--clear:hover {
  filter: brightness(1.05);
}
.search-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 58fr 42fr;
}
.search-map-panel {
  position: relative;
  min-height: 0;
  background: #e2e8f0;
}
.search-map-frame,
.search-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.search-map-controls {
  position: absolute;
  z-index: 2;
  display: flex;
  background: #fff;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}
.search-map-controls--type {
  top: 0.75rem;
  left: 0.75rem;
}
.search-map-type {
  border: none;
  background: #fff;
  padding: 0.375rem 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  cursor: pointer;
}
.search-map-type.is-active {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: var(--font-weight-semibold);
}
.search-map-control-btn {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.25rem;
  background: #fff;
  color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}
.search-map-control-btn svg {
  width: 1rem;
  height: 1rem;
}
.search-map-control-btn--fullscreen {
  top: 0.75rem;
  right: 0.75rem;
}
.search-map-control-btn--street {
  bottom: 5.5rem;
  right: 0.75rem;
}
.search-map-controls--zoom {
  bottom: 0.75rem;
  right: 0.75rem;
  flex-direction: column;
}
.search-map-zoom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
}
.search-map-zoom + .search-map-zoom {
  border-top: 1px solid #eef2f7;
}
.search-map-zoom svg {
  width: 1rem;
  height: 1rem;
}
.search-results-panel {
  min-height: 0;
  background: #f8fafc;
  border-left: 1px solid #eef2f7;
}
.search-results-scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.875rem;
  -webkit-overflow-scrolling: touch;
}
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1199px) {
  .search-body {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991px) {
  .page-shell--search {
    height: auto;
    min-height: 100vh;
  }
  .page-search {
    overflow: auto;
  }
  .search-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(18rem, 40vh) auto;
  }
  .search-results-panel {
    border-left: none;
    border-top: 1px solid #eef2f7;
  }
  .search-results-scroll {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 575px) {
  .search-results-grid {
    grid-template-columns: 1fr;
  }
  .search-toolbar-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .search-toolbar-actions {
    justify-content: stretch;
  }
  .search-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Search filters offcanvas */
.search-filters-offcanvas {
  width: min(100%, 28rem);
  border-left: 1px solid #eef2f7;
  display: flex;
  flex-direction: column;
  --search-filters-pad-x: 1.5rem;
}
.search-filters-offcanvas .offcanvas-body {
  padding: 0 var(--search-filters-pad-x) 1.25rem;
}
.search-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--search-filters-pad-x);
  border-bottom: 1px solid #eef2f7;
  flex-shrink: 0;
}
.search-filters-title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
}
.search-filters-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 0.375rem;
}
.search-filters-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.search-filters-close svg {
  width: 1.125rem;
  height: 1.125rem;
}
.search-filters-body {
  padding-top: 1rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.search-filters-section {
  margin-bottom: 1.25rem;
}
.search-filters-section:last-child {
  margin-bottom: 0;
}
.search-filters-label,
.search-filters-section-title {
  margin: 0 0 0.625rem;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
}
.search-filters-section-title {
  font-size: var(--font-size-body);
}
.search-filters-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.search-filters-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: none;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--sky-blue);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  padding: 0.3125rem 0.625rem;
  cursor: pointer;
}
.search-filters-tag svg {
  width: 0.75rem;
  height: 0.75rem;
}
.search-filters-price .price-labels {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.75rem;
}
.search-filters-price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.search-filters-price-field {
  flex: 1 1 0;
  margin: 0;
}
.search-filters-price-field input {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 0.375rem;
  padding: 0.4375rem 0.625rem;
  font-size: var(--font-size-sm);
  color: #334155;
}
.search-filters-price-field input:focus {
  outline: 2px solid var(--sky-blue);
  outline-offset: 1px;
}
.search-filters-price-sep {
  color: #94a3b8;
  font-size: var(--font-size-md);
}
.search-filters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.875rem;
}
.search-filters-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin: 0;
}
.search-filters-field-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
}
.search-filters-select {
  appearance: none;
  border: 1px solid #dbe3ee;
  border-radius: 0.375rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.625rem center;
  padding: 0.4375rem 1.75rem 0.4375rem 0.625rem;
  font-size: var(--font-size-sm);
  color: #334155;
  width: 100%;
}
.search-filters-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.search-filters-toggle {
  border: 1px solid #dbe3ee;
  border-radius: 0.375rem;
  background: #fff;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  padding: 0.375rem 0.75rem;
  cursor: pointer;
}
.search-filters-toggle.is-active {
  background: var(--sky-blue);
  border-color: var(--sky-blue);
  color: #fff;
}
.search-filters-dual-input,
.search-filters-triple-input {
  display: grid;
  gap: 0.375rem;
}
.search-filters-dual-input {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.search-filters-triple-input {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.search-filters-dual-input input,
.search-filters-triple-input input {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 0.375rem;
  padding: 0.4375rem 0.5rem;
  font-size: var(--font-size-sm);
  text-align: center;
  color: #334155;
}
.search-filters-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem var(--search-filters-pad-x);
  border-top: 1px solid #eef2f7;
  background: #fff;
  flex-shrink: 0;
  margin-top: auto;
}
.search-filters-btn {
  flex: 1 1 0;
  border-radius: 0.375rem;
  padding: 0.625rem 1rem;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  border: 1px solid transparent;
}
.search-filters-btn--clear {
  background: #f1f5f9;
  color: var(--text-muted);
  border-color: #e2e8f0;
}
.search-filters-btn--clear:hover {
  background: #e2e8f0;
}
.search-filters-btn--save {
  background: var(--sky-blue);
  color: #fff;
  border-color: var(--sky-blue);
}
.search-filters-btn--save:hover {
  filter: brightness(1.05);
}

/* ----------------------------------------
   ADMIN / PROPERTY PAGES (new UI)
   ---------------------------------------- */
.page-admin .sa-mt-top {
  margin-top: 0;
  padding-top: 1.5rem;
}
.page-admin .main-wrap {
  padding-bottom: 2rem;
}

#propertyForm .form-group {
  margin-bottom: auto;
}
#propertyForm #step6 .form-group {
  position: relative;
}
#marketed_by_tags {
  width: fit-content !important;
}
#marketed_by_tags span{
  padding: 5px 15px !important;
  flex-direction: row;
}
.sel-dtls-bg {
  background-color: #e7eef7;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
}
.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: #495057;
  margin-bottom: 8px;
}

#propertyForm .form-label,
#unitForm .form-label {
  font-size: 13px !important;
  color: #292929 !important;
}
#propertyForm #div_amenities .form-label,
#propertyForm .amenities-section .form-label {
  color: #50575e !important;
  font-weight: var(--font-weight-normal);
}
#propertyForm #div_amenities h6.form-label {
  font-weight: var(--font-weight-semibold);
}

.new-input-group {
  position: relative;
}
.input-group-prepend {
  position: absolute;
  left: 15px;
  top: 16px;
  z-index: 6;
}

.input-group-text {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: var(--font-size-base);
  padding: 0;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  font-size: var(--font-size-md);
  transition: all 0.3s ease;
  /* background: white; */
}
.form-select {
  padding-right: 32px;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  padding: 30px 40px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}
.login-section .form-control {
  height: 50px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: var(--font-size-base);
  transition: all 0.3s ease;
  background: #f9fafb;
}
.login-section .form-select {
  height: 50px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background-color: #f9fafb;
}
textarea.form-control {
  height: 120px;
}
.login-form-wrapper .form-control {
  padding: 0 15px 0 45px;
  border-top-left-radius: 12px !important;
  border-bottom-left-radius: 12px !important;
}

.form-control:focus {
  border-color: #1d89fd;
  box-shadow: 0 0 0 3px rgba(29, 137, 253, 0.1);
  background: white;
  outline: none;
}

.filter-section .filter-item{
  flex-direction: column !important;
  align-items: flex-start !important;
    gap: 0 !important;
}
.filter-row{
  gap:10px !important;
}
.filter-item label{
  margin-bottom:0px !important;
}
.btn-reset-filters{
  padding:8px 20px !important;
  display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    
    /* background-color: #fff !important; */
}
#reset-filters svg{
  fill: #333 !important;
  width: 12px !important;
  height: 12px !important;
}
#reset-filters{
  background-color: #fff !important;
  border: 1px solid #333 !important;
}
.main-wrap {
  margin-top: 0px;
  /* margin-bottom: 60px; */
}
.sa-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
/* stape form css */
.form-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  /* overflow: hidden; */
}
.form-header {
  /* background: linear-gradient(135deg, #2497f2 0%, #1671bb 100%); */
  background: linear-gradient(135deg, #2497f2 0%, #1671bb 100%);
  padding: 40px;
  color: white;
  text-align: center;
}

.form-header h1 {
  font-size: var(--font-size-display-md);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 10px;
}

.form-header p {
  opacity: 0.9;
  font-size: var(--font-size-base);
  color: white;
}
.section-title {
  /* font-size: var(--font-size-xl); */
  font-weight: var(--font-weight-medium);
  color: #212529;
  margin-bottom: 20px;
  padding-bottom: 10px;
  /* border-bottom: 2px solid #2497f2; */
}
/* Progress Bar */
.progress-container {
  padding: 16px 40px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}
.progress-steps {
  /* display: flex;
  justify-content: space-between;
  align-items: center; */
  position: relative;
  margin-bottom: 15px;
}
.text-xs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.text-xs.text-blue-600 .step-circle {
  background: linear-gradient(135deg, #2497f2 0%, #1671bb 100%);
  border-color: #2497f2;
  color: white;
  transform: scale(1.1);
}
.step-label {
  font-size: var(--font-size-xs);
  color: #6c757d;
  font-weight: var(--font-weight-normal);
  text-align: center;
}
.text-xs.text-blue-600 .step-label {
  color: #2497f2;
  font-weight: var(--font-weight-semibold);
}
.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e9ecef;
  border-top-color: rgb(233, 236, 239);
  border-right-color: rgb(233, 236, 239);
  border-bottom-color: rgb(233, 236, 239);
  border-left-color: rgb(233, 236, 239);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-md);
  color: #6c757d;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  cursor: pointer;
}
.step-circle:hover {
  border-color: #2497f2;
  color: #2497f2;
}
.text-xs.text-blue-600 .step-circle {
  background: linear-gradient(135deg, #2497f2 0%, #1671bb 100%);
  border-color: #2497f2;
  color: white;
  transform: scale(1.1);
}
.sa-action-btn {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #495057;
  min-width: 44px;
  min-height: 44px;
}

.sa-action-btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sa-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sa-share-btn:hover {
  color: var(--green, #28a745);
  border-color: var(--green, #28a745);
}

.sa-wishlist-btn:hover {
  color: #ffc107;
  border-color: #ffc107;
}

.sa-wishlist-btn .sa-wishlist-icon.saved {
  color: #ffc107;
}

.sa-action-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}
.my-list-section {
  padding: 5rem 0 3rem;
}
.my-list-section .data-grid td {
  font-size: var(--font-size-xs);
}

.grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.grid-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.grid-header h5 {
  margin: 0;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: #0f172a;
}

.listing-count {
  font-size: var(--font-size-md);
  color: var(--text-muted);
}

.sa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.sa-btn-primary {
  background: #2563eb;
  color: white;
}

.sa-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.data-grid-wrapper {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  overflow: auto;
}

.data-grid {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.data-grid thead {
  background: #f8fafc;
}

.data-grid th {
  padding: 16px;
  text-align: left;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid rgba(15, 23, 42, 0.08);
}

.data-grid td {
  padding: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-size: var(--font-size-md);
}

.data-grid tbody tr {
  transition: background 0.2s ease;
}

.data-grid tbody tr:hover {
  background: #f8fafc;
}

.data-grid tbody tr:last-child td {
  border-bottom: none;
}

.id-cell {
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  /* font-family: "Courier New", monospace; */
}


.listing-id-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--font-size-sm);
}
.listing-id-block {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text-muted); 
}
.listing-id-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--font-size-xxs);
  font-weight: var(--font-weight-semibold);
  color: #9ca3af;
}
.listing-id-value {
  font-weight: var(--font-weight-semibold);
  color: #0f172a;
}
.listing-views-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.06);  
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.views-label {
  font-size: var(--font-size-xxs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #059669;
  font-weight: var(--font-weight-semibold);
}
.views-count {
  font-size: var(--font-size-sm);
  line-height: 17px;
  font-weight: var(--font-weight-bold);
  color: #065f46;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffffff;
}



.address-cell .address-main {
  font-weight: var(--font-weight-medium);
  color: #0f172a;
}

.location-cell .location-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.location-cell .city {
  font-weight: var(--font-weight-medium);
  color: #0f172a;
}

.location-cell .state-zip {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-transform: capitalize;
}

.status-type {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.status-subtype {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.status-purpose {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.actions-column {
  width: 140px;
}

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

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.btn-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-edit:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.btn-view:hover {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.btn-unit:hover {
  background: #8b5cf6;
  color: white;
  border-color: #8b5cf6;
}

.no-data {
  padding: 60px 20px !important;
  text-align: center;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
}

.empty-state svg {
  color: #cbd5e1;
}

.empty-state h3 {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: #0f172a;
}

.empty-state p {
  margin: 0;
  font-size: var(--font-size-md);
  color: var(--text-muted);
}

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

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

.page-link {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-md);
  transition: all 0.2s ease;
  gap: 6px;
}

.page-link:hover {
  background: #f8fafc;
  border-color: #2563eb;
  color: #2563eb;
}

.page-link.active {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

.page-ellipsis {
  padding: 0 8px;
  color: #94a3b8;
}

.page-numbers {
  display: flex;
  gap: 4px;
}

/* Responsive */
@media (max-width: 992px) {
  .data-grid-wrapper {
    overflow-x: auto;
  }

  .data-grid {
    min-width: 800px;
  }
}

@media (max-width: 768px) {
  .grid-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .grid-header h5 {
    font-size: var(--font-size-xl);
  }

  .sa-btn {
    width: 100%;
    margin-bottom: 16px !important;
    /* margin-left: 10px; */
    /* margin-right: 10px; */
  }
  .progress-container {
    padding: 16px 0px;
  }
  .progress-bar1 {
    top: 13px !important;
  }
  .step-circle {
    width: 28px;
    height: 28px;
  }
  .progress-steps {
    margin-bottom: 0px;
  }
  .form-container {
    border-radius: 0px;
    box-shadow: none;
  }
  .form-header h1 {
    font-size: var(--font-size-xl);
  }
  .form-header p {
    font-size: var(--font-size-md);
  }
  .form-actions {
    padding: 16px 10px;
  }
  .form-actions .btn {
    font-size: var(--font-size-md);
  }
  .btn-primary {
    padding: 4px 10px;
    border-radius: 10px;
  } 
  .sa-search-card {
    padding: 10px;
  }



  #step1 .p-10,
  #step2 .p-10,
  #step3 .p-10,
  #step4 .p-10 {
    padding: 16px !important;
  }


.my-list-section .filter-item label{
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-medium);
  color: #007bff;
  margin-bottom: 8px;
  background: #f7f7f7;
  padding: 2px 5px;
  border-radius: 20px;
  margin-bottom: -10px !important;
  z-index: 9;
  margin-left: 10px;
  border: 1px solid #efefef;
}
.my-list-section .filter-dropdown{
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: var(--font-size-md);
  color: #333;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-weight: var(--font-weight-medium);
}
.filter-item.filter-apply {
  flex-direction: row !important;
  justify-content: center !important;
  gap: 15px !important;
  align-items: flex-end !important;
}

/* Share modals (admin listings) */
.sa-share-modal .modal-dialog {
  max-width: 620px;
}

.sa-share-card {
  position: relative;
  border: none;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
  background: #fff;
}

/* Property Title Action Buttons */
.sa-action-btn {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #495057;
  min-width: 44px;
  min-height: 44px;
}

.sa-action-btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sa-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sa-share-btn:hover {
  color: var(--green, #28a745);
  border-color: var(--green, #28a745);
}

.sa-wishlist-btn:hover {
  color: #ffc107;
  border-color: #ffc107;
}

.sa-wishlist-btn .sa-wishlist-icon.saved {
  color: #ffc107;
}

.sa-action-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.sa-wishlist-icon {
  font-size: var(--font-size-lg);
  color: #6c757d;
  transition: all 0.3s ease;
}

.sa-wishlist-btn:hover .sa-wishlist-icon {
  color: #ffc107;
  transform: scale(1.1);
}

.sa-property-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 0;
  color: #107de4;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  line-height: 1.5;
}

.sa-location-icon {
  width: 20px;
  height: 20px;
  fill: #107de4;
  flex-shrink: 0;
}

.sa-location-text {
  flex: 1;
}
}
/* Responsive Design for Property Title */
@media (max-width: 768px) {
  .sa-property-title-main {
    font-size: var(--font-size-display-md);
    flex-direction: column;
    align-items: flex-start;
  }

  .sa-title-actions {
    align-self: flex-end;
    /* margin-top: 8px; */
  }

  .sa-title-share {
    flex-direction: column;
  }

  .sa-details-titie h2 {
    font-size: var(--font-size-display-md);
  }
}

@media (max-width: 480px) {
  .sa-property-title-main {
    font-size: var(--font-size-2xl);
  }

  .sa-details-titie h2 {
    font-size: var(--font-size-2xl);
  }

  .sa-action-btn {
    padding: 8px 10px;
    min-width: 40px;
    min-height: 40px;
  }

  .sa-action-icon {
    width: 18px;
    height: 18px;
  }

  .sa-wishlist-icon {
    font-size: var(--font-size-base);
  }

  .sa-property-location {
    font-size: var(--font-size-md);
  }
}

.sa-share-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.18);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sa-share-header {
  text-align: left;
  margin-bottom: 22px;
}

.sa-share-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--font-size-xxs);
  color: #94a3b8;
  margin-bottom: 6px;
}

.sa-share-header h4 {
  margin: 0;
  font-size: var(--font-size-display-sm);
  color: #0f172a;
}

.sa-share-subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: var(--font-size-md);
}

.sa-share-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #f8fafc;
  margin-bottom: 24px;
}

.sa-share-preview-img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.sa-share-preview-meta h5 {
  margin: 0 0 4px;
  font-size: var(--font-size-lg);
  color: #0f172a;
}

.sa-share-preview-meta p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.45;
}

.sa-share-preview-meta p + p {
  margin-top: 4px;
}

.sa-share-preview-specs {
  font-size: var(--font-size-xs) !important;
  color: #64748b !important;
}

.sa-share-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: var(--font-size-xxs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.sa-share-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sa-share-modal .sa-share-grid .sa-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: none;
  background: transparent;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
}

.sa-share-modal .sa-share-grid .sa-share-btn:hover {
  color: inherit;
  border-color: transparent;
  transform: translateY(-2px);
}

.sa-share-btn {
  border-radius: 14px;
  text-align: left;
  color: #0f172a;
  text-decoration: none;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.sa-share-btn:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
}

.sa-share-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  flex-shrink: 0;
}

.sa-share-modal .sa-share-icon svg {
  width: 18px;
  height: 18px;
}

.sa-share-icon.li {
  background: rgba(10, 102, 194, 0.15);
  color: #0a66c2;
}
.sa-share-icon.fb {
  background: rgba(24, 119, 242, 0.15);
  color: #1877f2;
}
.sa-share-icon.tw {
  background: rgba(0, 0, 0, 0.09);
  color: #000;
}
.sa-share-icon.wa {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}
.sa-share-icon.em {
  background: rgba(248, 113, 113, 0.2);
  color: #dc2626;
}
.sa-share-icon.link {
  background: rgba(79, 70, 229, 0.15);
  color: #4f46e5;
}

.sa-share-url {
  margin-top: 20px;
}

.sa-share-url-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sa-share-url-input {
  display: flex;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  font-size: var(--font-size-sm);
  color: #0f172a;
  justify-content: space-between;
  gap: 12px;
}

.sa-share-copy-link {
  border: none;
  background: #111827;
  color: #fff;
  font-size: var(--font-size-sm);
  border-radius: 8px;
  padding: 8px 14px;
}

@media (max-width: 575.98px) {
  .sa-share-card {
    padding: 22px;
  }
  .sa-share-preview {
    flex-direction: column;
  }
}

/* QR + feed share overlays (share-modal.tpl) */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.image-modal .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10061;
}
.qr-modal-enhanced {
  position: relative;
  z-index: 10062;
  max-width: 500px;
  width: 90%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  max-height: min(90dvh, 36rem);
}
.modal-header-enhanced {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title-enhanced {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.modal-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-banner-image {
  margin-top: 20px;
  text-align: center;
}
.modal-banner-image img {
  max-width: 200px;
  width: 100%;
  height: auto;
}
.modal-body-enhanced {
  padding: 20px;
  text-align: center;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.modal-qr-image {
  max-width: 200px;
  width: 100%;
  height: auto;
}
.modal-footer-enhanced {
  padding: 1rem 1.25rem 1.25rem;
  background: #f8f9fa;
  text-align: center;
  border-top: 1px solid #e9ecef;
  margin-top: auto;
  flex-shrink: 0;
}
.btn-download-qr {
  background: #fff;
  border: 2px solid #2196f3;
  color: #2196f3;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.ss_modalFeed {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10070;
  background: rgba(0, 0, 0, 0.5);
}
.ss_modalfeed-content {
  background: #fff;
  margin: 10% auto;
  padding: 24px;
  border-radius: 12px;
  width: 520px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.ss_modalfeed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.ss_modalfeed-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ss_modalfeed-title h2 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}
.ss_feedclose {
  color: #9ca3af;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}
.ss_optionfeed-group {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.ss_feed-option-card {
  flex: 1;
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  margin: 0;
}
.ss_feed-option-card:has(input:checked) {
  border-color: #3b82f6;
  background: #f0f7ff;
}
.ss_fieldsfeed {
  display: none;
}
.ss_formfeed-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: var(--font-weight-medium);
}
.ss_formfeed-group select,
.ss_formfeed-group textarea,
.ss_formfeed-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-sizing: border-box;
}
.ss_formfeed-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.ss_btn-undiscoverable-active {
  background-color: #28a745 !important;
  color: #fff !important;
}
.ss_btn-cancel {
  background: #fee2e2;
  color: #dc2626;
}
.ss_btn-share {
  background: #3b82f6;
  color: #fff;
}

/* ----------------------------------------
   ADD LISTING FORM (network_local UI)
   ---------------------------------------- */
.page-feed.page-admin {
  background: var(--page-bg);
}

.page-feed.page-admin .feed-container {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.add-listing-form {
  --add-gap-section: 2rem;
  --add-gap-header-body: 1.125rem;
  --add-gap-label-input: 0.375rem;
  --add-gap-field-stack: 1rem;
  --add-gap-columns: 1.75rem;
  --add-gap-input-group: 0.25rem;
}

.page-feed.page-admin .add-listing-form {
  font-size: var(--font-size-md);
  line-height: 1.45;
}

.page-feed.page-admin .add-listing-form .form-step.space-y-6 > * + * {
  margin-top: var(--add-gap-section);
}

.add-listing-form .space-y-4 > * + * {
  margin-top: var(--add-gap-section);
}

.add-listing-form .space-y-6 > * + * {
  margin-top: var(--add-gap-section);
}

.add-listing-form .pt-4 {
  padding-top: 0 !important;
}

.add-listing-form .gap-4,
.add-listing-form .gap-3 {
  gap: var(--add-gap-columns) !important;
}

.add-listing-form .mb-6,
.add-listing-form .mb-4,
.add-listing-form .mb-3 {
  margin-bottom: 0 !important;
}

.add-listing-form .mb-1 {
  margin-bottom: var(--add-gap-label-input) !important;
}

.add-listing-form .mt-4,
.add-listing-form .mt-6 {
  margin-top: 0 !important;
}

.add-listing-form .input-group {
  display: flex;
  align-items: stretch;
  /* gap: var(--add-gap-input-group); */
  margin-bottom: 0 !important;
}

.add-listing-form .input-group > .form-select,
.add-listing-form .input-group > .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

.add-listing-form .input-group > .form-select:first-child:not(:only-child) {
  flex: 0 0 auto;
  width: auto;
  min-width: 4.5rem;
}

.add-listing-form .add-listing-form-card {
  margin-bottom: 0 !important;
}

.page-feed.page-admin .feed-layout {
  grid-template-columns: 250px minmax(0, 1fr);
}

.add-listing-main {
  min-width: 0;
  padding-bottom: 0.5rem;
}

.add-listing-card.form-container {
  max-width: none;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.add-listing-top {
  padding: 1.75rem 2rem 1.25rem;
  /* border-bottom: 1px solid #eef2f6; */
}

.add-listing-title-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.add-listing-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  color: #0f172a;
  text-decoration: none;
  transition: background 0.15s;
}

.add-listing-back:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.add-listing-back svg {
  width: 1.25rem;
  height: 1.25rem;
}

.add-listing-title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.add-listing-stepper-rail {
  position: relative;
  padding: 0.25rem 0 0;
}

.add-listing-stepper-track {
  position: absolute;
  top: 9px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  z-index: 0;
}

.add-listing-stepper-fill {
  height: 100%;
  background: #22c55e;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.add-listing-stepper-steps {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 0.15rem;
}

.add-listing-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.add-listing-step-dot {
  box-sizing: border-box;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #fff;
  box-shadow: 0 0 0 4px #fff;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

.add-listing-step .step-label {
  font-size: 0.75rem;
  line-height: 1.2;
  color: #94a3b8;
  text-align: center;
  font-weight: var(--font-weight-medium);
  max-width: 100%;
  width: 100%;
  padding: 0 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.add-listing-step.is-active .add-listing-step-dot,
.add-listing-step.is-complete .add-listing-step-dot {
  border-color: #22c55e;
  background: #22c55e;
}

.add-listing-step.is-complete .add-listing-step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-listing-step.is-complete .add-listing-step-dot::after {
  content: "";
  display: block;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
}

.add-listing-step.is-active .step-label,
.add-listing-step.is-complete .step-label {
  color: #16a34a;
  font-weight: var(--font-weight-semibold);
}

.add-listing-step.is-pending .add-listing-step-dot {
  background: #fff;
  border-color: #cbd5e1;
}

.add-listing-top--drawer {
  padding: 0 0 1rem;
  margin-bottom: 0.5rem;
  /* border-bottom: 1px solid var(--border-light); */
}

.add-listing-step-body {
  padding: 1.25rem 1.5rem 1.25rem;
}

.add-listing-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.add-listing-field-row {
  gap: 0.625rem;
}

.add-listing-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

.add-listing-section-head .add-listing-subsection-title {
  margin-bottom: 0;
}

.add-listing-section-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: var(--font-weight-semibold);
  color: #0f172a;
  line-height: 1.3;
}

.add-listing-subsection-title {
  margin: 0 0 var(--add-gap-field-stack);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: #0f172a;
}

.add-listing-school-fields {
  display: flex;
  flex-wrap: wrap;
  gap: var(--add-gap-columns);
}

.add-listing-school-fields > div {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 767px) {
  .add-listing-school-fields {
    flex-direction: column;
  }

  .add-listing-school-fields > div {
    flex: 1 1 auto;
    width: 100%;
  }
}

.add-listing-sale-top-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--add-gap-columns);
  align-items: start;
}

.add-listing-undisclosed-field {
  display: flex;
  align-items: center;
  min-height: 2.375rem;
}

.add-listing-undisclosed-field .form-check {
  display: inline-flex;
  align-items: center;
  /* gap: 0.5rem; */
  margin: 0;
}

.add-listing-undisclosed-field .form-check-input {
  margin: 0;
  float: none;
}

.add-listing-undisclosed-field .form-check-label {
  margin: 0;
  line-height: 1.25;
}

.add-listing-undisclosed-col__spacer {
  visibility: hidden;
}

@media (max-width: 767px) {
  .add-listing-sale-top-row {
    grid-template-columns: 1fr;
  }
}

.add-listing-sale-fields {
  display: flex;
  flex-wrap: wrap;
  gap: var(--add-gap-columns);
}

.add-listing-sale-fields > div {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 767px) {
  .add-listing-sale-fields {
    flex-direction: column;
  }

  .add-listing-sale-fields > div {
    flex: 1 1 auto;
    width: 100%;
  }
}

.add-listing-agent-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--add-gap-columns);
}

@media (min-width: 768px) {
  .add-listing-agent-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.add-listing-agent-fields .form-group {
  position: relative;
  min-width: 0;
}

.add-listing-listing-details-grid,
.add-listing-property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--add-gap-columns);
}

@media (min-width: 768px) {
  .add-listing-listing-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

.add-listing-form-card {
  border-radius: 1rem;
  background: var(--surface);
}

.add-listing-form-card-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: var(--add-gap-header-body);
  padding: 0.5rem 1rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
}

.add-listing-form-card-head--split {
  justify-content: space-between;
  width: 100%;
}

.add-listing-form-card-head-main {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}

.add-listing-form-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  flex-shrink: 0;
}

.add-listing-form-card-icon--green {
  background: #ecfdf5;
  color: #10b981;
}

.add-listing-form-card-icon--blue {
  background: #eff6ff;
  color: #3b82f6;
}

.add-listing-form-card-icon--purple {
  background: #f5f3ff;
  color: #8b5cf6;
}

.add-listing-form-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.add-listing-form-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
  line-height: 1.3;
}

.add-listing-form-card-subtitle {
  margin: 0.25rem 0 0;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: 1.4;
  display: none;
}

.add-listing-form-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--add-gap-field-stack);
}

.add-listing-step-intro {
  margin-bottom: 1.5rem;
}

.add-listing-step-intro .add-listing-form-card-head {
  margin-bottom: 0;
  align-items: flex-start;
}

.add-listing-step-subtitle {
  margin: 0;
  font-size: var(--font-size-sm);
  color: #64748b;
  line-height: 1.5;
  display: none;
}

.add-listing-step-intro .add-listing-form-card-head-main {
  align-items: flex-start;
  min-width: 0;
}

.add-listing-step-intro .add-listing-form-card-head-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.add-listing-step-intro .add-listing-form-card-title {
  font-size: 1.0625rem;
  font-weight: var(--font-weight-semibold);
  color: #0f172a;
}

.add-listing-step-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.add-listing-commercial-industrial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--add-gap-columns);
  align-items: start;
}

@media (min-width: 768px) {
  .add-listing-commercial-industrial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.add-listing-commercial-industrial-grid > div {
  min-width: 0;
  margin-bottom: 0;
}

.commercial-industrial-section.add-listing-form-card {
  margin-bottom: 0;
}

.commercial-industrial-section .add-listing-form-card-head {
  margin-bottom: var(--add-gap-header-body);
}

.commercial-industrial-section .add-listing-form-card-head-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.commercial-industrial-section .add-listing-form-card-title {
  margin: 0;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: #0f172a;
  line-height: 1.35;
}

.major-tenants-block {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--add-gap-section);
}

.add-listing-form .space-y-4 > .major-tenants-block {
  margin-top: 0;
}

.major-tenants-header.add-listing-form-card-head {
  margin-top: 20px;
  margin-bottom: 20px;
}

.major-tenants-header .add-listing-form-card-head-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.major-tenants-header .add-listing-form-card-title {
  margin: 0;
}

.major-tenants-block > .add-listing-tenants-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 0;
}

.add-listing-tenants-list .add-listing-tenant-card {
  margin-bottom: 0;
}

.add-listing-tenant-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--add-gap-field-stack) var(--add-gap-columns);
}

@media (min-width: 768px) {
  .add-listing-tenant-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.add-listing-tax-fields {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.75fr) repeat(2, minmax(0, 1.15fr)) minmax(0, 1fr);
  gap: var(--add-gap-columns);
  align-items: start;
}

.add-listing-tax-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-bottom: 0 !important;
}

.add-listing-tax-field .form-control {
  width: 100%;
}

.add-listing-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 1.625rem;
  margin-bottom: var(--add-gap-label-input);
}

.add-listing-field-label-row .form-label {
  margin-bottom: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.add-listing-inline-unit-spacer {
  flex: 0 0 5.75rem;
  width: 5.75rem;
  height: 1.625rem;
}

.add-listing-inline-unit-select {
  /* border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background-color: #f8fafc; */
  color: #292929;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  padding: 0.125rem 1.375rem 0.125rem 0.5rem;
  min-height: 1.625rem;
  height: 1.625rem;
  width: 5.75rem;
  flex: 0 0 5.75rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.375rem center;
  background-size: 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none;
}

.add-listing-inline-unit-select:focus {
  outline: none;
  border-color: #cbd5e1;
}

@media (max-width: 767px) {
  .add-listing-tax-fields {
    grid-template-columns: 1fr;
  }
}

.add-listing-zoning-stack {
  display: flex;
  flex-direction: column;
  gap: var(--add-gap-field-stack);
}

.add-listing-zoning-stack .form-group {
  width: 100%;
}

/* Config dropdown panels (parking, elevator, power, etc.) */
.parking-config,
.Power-config,
.Elevator-config,
.crane-config,
.truck-config {
  position: relative;
}

.add-listing-form .add-listing-config-trigger {
  width: 100%;
  cursor: pointer;
  color: #0f172a;
}

.add-listing-form .add-listing-config-trigger::placeholder {
  color: #94a3b8;
}

.add-listing-form .par-form {
  display: none;
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  z-index: 30;
  width: min(19rem, calc(100vw - 2rem));
  margin: 0;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.add-listing-form .par-form.right-0 {
  left: auto;
  right: 0;
}

.add-listing-form .par-form .exp-grid {
  display: grid;
  grid-template-columns: minmax(5.5rem, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.625rem;
}

.add-listing-form .par-form .exp-grid:last-of-type {
  margin-bottom: 0;
}

.add-listing-form .par-form .exp-grid > label {
  margin: 0;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: #64748b;
}

.add-listing-form .par-form .input-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.add-listing-form .par-form .form-select,
.add-listing-form .par-form .form-control {
  min-height: 2.125rem;
  height: 2.125rem;
  font-size: var(--font-size-sm);
}

.add-listing-form .par-form .park_cnt,
.add-listing-form .par-form .park_price {
  flex: 1 1 4.5rem;
  min-width: 4.5rem;
}

.add-listing-form .par-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

@media (max-width: 767px) {
  .add-listing-form .par-form {
    width: 100%;
    left: 0;
    right: 0;
  }

  .add-listing-form .par-form.right-0 {
    left: 0;
    right: 0;
  }
}

.add-listing-subsection-title--lowercase {
  text-transform: lowercase;
}

.add-listing-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: #3b82f6;
  text-decoration: none;
}

.add-listing-preview-link svg {
  width: 1rem;
  height: 1rem;
}

.add-listing-preview-link:hover {
  text-decoration: underline;
}

.page-admin .add-listing-card .sel-dtls-bg {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: #0f172a;
  margin-bottom: 0.5rem;
}

#propertyForm.add-listing-form .form-group,
.add-listing-form#propertyForm .form-group {
  margin-bottom: 0;
}

.add-listing-form .form-group {
  margin-bottom: 0;
}

.add-listing-form .form-label,
.add-listing-form label.form-label {
  font-size: var(--font-size-sm) !important;
  font-weight: var(--font-weight-medium) !important;
  color: #64748b !important;
  margin-bottom: var(--add-gap-label-input) !important;
  line-height: 1.35 !important;
}

.add-listing-form .form-label .text-red-500,
.add-listing-form label .text-red-500,
.add-listing-form .add-listing-required {
  color: #ef4444 !important;
}

.add-listing-form .error-message {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--font-size-sm);
  line-height: 1.35;
  color: #ef4444 !important;
}

.add-listing-form .error-message.hidden {
  display: none !important;
}

.add-listing-form .form-control.error,
.add-listing-form .form-select.error {
  border-color: #ef4444 !important;
}

.add-listing-form .text-sm {
  font-size: var(--font-size-sm) !important;
  line-height: 1.4 !important;
}

.add-listing-form .form-control,
.add-listing-form .form-select {
  border: 1px solid #e2e8f0 !important;
  /* border-radius: 0.5rem !important; */
  background: #fff !important;
  min-height: 2.375rem;
  height: 2.375rem;
  padding: 0.375rem 0.75rem !important;
  font-size: var(--font-size-md);
  color: #0f172a;
  box-shadow: none !important;
}

.add-listing-form .form-control:focus,
.add-listing-form .form-select:focus,
.add-listing-form .form-control:focus-visible,
.add-listing-form .form-select:focus-visible {
  border-color: #e2e8f0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.add-listing-form .form-select {
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 1rem !important;
  appearance: none;
}

.add-listing-form textarea.form-control {
  min-height: 5.5rem;
  height: auto;
  resize: vertical;
}

.add-listing-map {
  width: 100%;
  height: 22rem;
  min-height: 18rem;
  border-radius: 0.75rem !important;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden;
}

.add-listing-map-wrap {
  margin-top: 0.25rem;
}

.add-listing-address-grid {
  display: flex;
  flex-direction: column;
  gap: var(--add-gap-field-stack);
  margin-bottom: 0;
}

.add-listing-unit-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--add-gap-field-stack) var(--add-gap-columns);
}

@media (min-width: 768px) {
  .add-listing-unit-fields-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .add-listing-unit-field--full {
    grid-column: 1 / -1;
  }
}

.add-listing-address-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--add-gap-columns);
}

@media (min-width: 768px) {
  .add-listing-address-row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .add-listing-address-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.add-listing-country-select {
  font-size: var(--font-size-md);
}

.add-listing-form ::placeholder {
  color: var(--edit-muted);
  opacity: 1;
}

.add-listing-check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-listing-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--add-gap-field-stack) var(--add-gap-columns);
}

.add-listing-form .form-check-input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  border-color: #cbd5e1;
  margin-right: 15px;
}
.form-check{
  padding-left: 0 !important;
}
.add-listing-check-row input

 {
    margin-right: 0px !important;
}
.add-listing-form .form-check-input:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.add-listing-featured-block {
  margin-top: 0.5rem;
}

.add-listing-amenities-block {
  display: flex;
  flex-direction: column;
}

.add-listing-form .add-listing-form-card + .add-listing-amenities-block {
  margin-top: calc(var(--add-gap-section) + 1rem);
}

.add-listing-amenities-header.add-listing-form-card-head {
  margin-top: 0;
  margin-bottom: var(--add-gap-header-body);
}

.add-listing-amenities-header .add-listing-form-card-head-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.add-listing-amenities-header .add-listing-form-card-title {
  margin: 0;
}

/* .add-listing-amenities-body {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  padding: 1.25rem;
} */

.add-listing-amenities-body .amenities-section {
  margin: 0;
}

/* Amenities category cards */
.add-listing-form #div_amenities.add-listing-amenity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--add-gap-field-stack);
}

@media (min-width: 768px) {
  .add-listing-form #div_amenities.add-listing-amenity-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.add-listing-form .add-listing-amenity-card {
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0 !important;
}

.add-listing-amenity-card-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.add-listing-amenity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.add-listing-amenity-icon svg {
  width: 0.75rem;
  height: 0.75rem;
  stroke-width: 1.75;
}

.add-listing-amenity-icon--blue { background: #eff6ff; color: #3b82f6; }
.add-listing-amenity-icon--green { background: #ecfdf5; color: #10b981; }
.add-listing-amenity-icon--purple { background: #f5f3ff; color: #8b5cf6; }
.add-listing-amenity-icon--orange { background: #fff7ed; color: #f97316; }
.add-listing-amenity-icon--teal { background: #f0fdfa; color: #14b8a6; }
.add-listing-amenity-icon--pink { background: #fdf2f8; color: #ec4899; }
.add-listing-amenity-icon--slate { background: #f1f5f9; color: #64748b; }

.add-listing-amenity-title {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: #0f172a;
}

.add-listing-amenity-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem 1rem;
}

.add-listing-amenity-options .add-listing-check-row {
  align-items: flex-start;
  gap: 0.5rem;
}

.add-listing-amenity-options .add-listing-check-row label {
  font-size: var(--font-size-sm) !important;
  font-weight: var(--font-weight-normal) !important;
  color: #475569 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

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

@media (max-width: 479px) {
  .add-listing-form #div_amenities.add-listing-amenity-grid {
    grid-template-columns: 1fr;
  }

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

.add-listing-form #div_amenities .amenity-category:not(.add-listing-amenity-card) {
  margin-bottom: 1.5rem;
}

.add-listing-form #div_amenities .category-title-old,
.add-listing-form #div_amenities .fq-lbel h6 {
  font-size: 0.9375rem !important;
  font-weight: var(--font-weight-semibold) !important;
  color: #0f172a !important;
  margin: 0 0 0.75rem !important;
  background: transparent !important;
  padding: 0 !important;
}

.add-listing-form #div_amenities .fq-lbel .fa {
  display: none;
}

.add-listing-tenant-card {
  border: 1px solid #e8edf3;
  border-radius: 0.75rem;
  background: #f8fafc;
  padding: 1.25rem;
  margin-bottom: 0;
}

.add-listing-tenant-card .btn-remove-tenant,
.add-listing-tenant-card .remove-tenant-row {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: #3b82f6;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
}

.btn-add-listing--sm {
  min-height: 2rem;
  padding: 0.35rem 0.875rem;
  font-size: 0.8125rem;
}

.add-listing-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem 1rem;
  background: var(--surface);
  border-top: none;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

.add-listing-actions-left,
.add-listing-actions-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-add-listing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.4375rem 1.125rem;
  border-radius: 0.5rem;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-add-listing--ghost {
  border: none;
  background: var(--border-light);
  color: var(--color-muted);
}

.btn-add-listing--ghost:hover:not(:disabled) {
  background: var(--text-faint);
}

.btn-add-listing--ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-add-listing--outline {
  border: 1px solid var(--text-faint);
  background: var(--surface);
  color: var(--text-body);
}

.btn-add-listing--outline:hover {
  border-color: var(--text-subtle);
  background: var(--surface-hover);
}

.btn-add-listing--primary {
  border: none;
  background: var(--site-accent);
  color: var(--surface);
}

.btn-add-listing--primary:hover {
  background: var(--sky-dark);
}

.btn-add-listing--light {
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  min-height: 2.25rem;
  padding: 0.375rem 1rem;
}

.btn-add-listing--danger-light {
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #dc2626;
  min-height: 2.25rem;
  padding: 0.375rem 1rem;
}

.feed-nav-add-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  flex-shrink: 0;
}

.feed-nav-add-icon svg {
  width: 1rem;
  height: 1rem;
  color: #fff;
}

.feed-nav-link--add.is-active {
  background: #f1f5f9;
}

.add-listing-upload-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 220px;
  padding: 2rem;
  border: 2px dashed var(--text-faint);
  border-radius: 0.75rem;
  background: var(--surface-hover);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.add-listing-upload-empty:hover {
  border-color: var(--edit-muted);
  background: var(--surface-muted);
}

.add-listing-upload-empty-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--edit-muted);
}

.add-listing-upload-empty-title {
  margin: 0;
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
}

.add-listing-upload-empty-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
  max-width: 28rem;
}

.add-listing-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.add-listing-gallery-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #e2e8f0;
}

.add-listing-gallery-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.add-listing-gallery-hero-actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.15);
  opacity: 0;
  transition: opacity 0.2s;
}

.add-listing-gallery-hero:hover .add-listing-gallery-hero-actions {
  opacity: 1;
}

.add-listing-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.add-listing-gallery-thumb {
  width: 92px;
  height: 92px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
}

.add-listing-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.add-listing-gallery-thumb.is-active {
  border-color: #3b82f6;
}

.add-listing-gallery-thumb--add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #cbd5e1;
  color: #64748b;
}

.add-listing-gallery-thumb--add svg {
  width: 1.5rem;
  height: 1.5rem;
}

.page-admin .add-listing-card #div_amenities .form-check-input:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

@media (max-width: 991.98px) {
  .page-feed.page-admin .feed-container {
    --bs-gutter-x: 0;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .page-feed.page-admin .add-listing-card.form-container {
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
    max-width: none;
  }

  .add-listing-top,
  .add-listing-step-body,
  .add-listing-actions {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .add-listing-step-body {
    padding-top: 1.5rem;
    padding-bottom: 1.75rem;
  }

  .add-listing-step .step-label {
    font-size: var(--font-size-xs);
    max-width: 5rem;
  }

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

  .add-listing-actions-left,
  .add-listing-actions-right {
    justify-content: space-between;
  }

  .add-listing-gallery-thumb {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 575.98px) {
  .add-listing-stepper-steps {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.25rem;
  }

  .add-listing-step {
    flex: 0 0 auto;
    min-width: 4.25rem;
  }

  .add-listing-stepper-track {
    left: 2%;
    right: 2%;
  }
}

/* Add / edit listing — full-width mobile layout */
@media (max-width: 767.98px) {
  .page-feed.page-admin .feed-container {
    --bs-gutter-x: 0;
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
  }

  .page-feed.page-admin .feed-layout {
    gap: 0;
  }

  .page-feed.page-admin .feed-main.add-listing-main {
    margin-top: 0;
    gap: 0;
  }

  .page-feed.page-admin .add-listing-card.form-container {
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
    width: 100%;
    max-width: none;
  }

  .page-feed.page-admin .add-listing-top,
  .page-feed.page-admin .add-listing-step-body,
  .page-feed.page-admin .add-listing-actions {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-feed.page-admin .add-listing-top {
    padding-top: 0.875rem;
    padding-bottom: 0.75rem;
  }

  .page-feed.page-admin .add-listing-form-card {
    padding: 1rem;
    border-radius: 0.625rem;
  }

  .add-listing-form-card-head--split {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .add-listing-step-intro .add-listing-form-card-head--split {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .add-listing-preview-link {
    align-self: flex-start;
  }

  .add-listing-map-wrap {
    border-radius: 0.625rem;
  }

  .add-listing-amenity-grid {
    gap: 0.625rem;
  }

  .add-listing-amenity-card {
    padding: 0.75rem;
  }
}

.modal-content.sa-share-card {
  padding: 25px;
}

/* ── My Listings (card layout) ─────────────────────────────────────────── */
.page-admin .my-listings-page,
.page-admin .my-units-page {
  width: 100%;
}

.my-listings-panel-wrap,
.my-units-panel-wrap {
  padding: 0;
}

.my-listings-panel.add-listing-card.form-container,
.my-units-panel.add-listing-card {
  padding: 28px 32px 24px;
  max-width: none;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.my-listings-panel__header {
  margin-bottom: 20px;
}

.my-listings-panel__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.my-listings-filters {
  margin-bottom: 24px;
}

.my-listings-filters__row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
}

.my-listings-filters__row--secondary {
  margin-top: 10px;
}

.my-listings-filters__item {
  flex: 1 1 0;
  min-width: 0;
}

.my-listings-filters__item--search {
  flex: 1.6 1 0;
}

.my-listings-filters__item--actions {
  flex: 0 0 auto;
}

.my-listings-filters__control {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: var(--font-size-sm);
  background: var(--surface);
  color: var(--text-dark);
  box-sizing: border-box;
}

.my-listings-filters__control::placeholder {
  color: var(--text-subtle);
}

.my-listings-filters__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.my-listings-filters__select:invalid,
.my-listings-filters__select option[value=""] {
  color: var(--text-subtle);
}

.btn-my-listings-check {
  height: 42px;
  padding: 0 28px;
  border: none;
  border-radius: 8px;
  background: var(--site-accent);
  color: var(--surface);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  white-space: nowrap;
}

.btn-my-listings-check:hover {
  background: var(--sky-dark);
}

.btn-my-listings-reset {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.my-listings-grid-wrapper {
  position: relative;
  min-height: 120px;
}

.my-listings-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.my-listing-card {
  position: relative;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding:15px;
  background: var(--surface);
  overflow: visible;
}

.my-listing-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.my-listing-card__id {
  margin: 0;
  font-size: 1.375rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  line-height: 1.3;
}

.my-listing-card__head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.my-listing-card__icon-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: visible;
}

.my-listing-card__icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.my-listing-card__icon-btn:hover:not(:disabled):not(.is-disabled) {
  background: var(--surface-hover);
  color: var(--site-accent);
  border-color: var(--border-accent);
}

.my-listing-card__icon-btn.is-disabled,
.my-listing-card__icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.my-listing-card__icon-btn svg,
.my-listing-card__icon-btn .sa-action-icon {
  width: 16px;
  height: 16px;
  color: inherit;
  stroke: currentColor;
}

.my-listing-card .sa-action-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-subtle);
  transform: none;
  box-shadow: none;
}

.my-listing-card .sa-action-btn:hover {
  background: var(--surface-hover);
  color: var(--site-accent);
  border-color: var(--border-accent);
  transform: none;
  box-shadow: none;
}

.my-listing-card__status {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  text-transform: lowercase;
  line-height: 1.2;
  white-space: nowrap;
}

.my-listing-card__status--published {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.my-listing-card__status--renew,
.my-listing-card__status--review {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
}

.my-listing-card__status--private {
  background: var(--surface-muted);
  color: var(--color-muted);
}

.my-listing-card__address {
  margin: 0 0 14px;
  color: var(--text-dark);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
}

.my-listing-card__details-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  margin-bottom: 10px;
}

.my-listing-card__detail {
  font-size: var(--font-size-sm);
  color: var(--text-dark);
  white-space: nowrap;
}

.my-listing-card__detail-label {
  color: var(--color-muted);
  font-weight: 600;
}

.my-listing-card__detail-value {
  color: var(--text-dark);
  font-weight: var(--font-weight-normal);
}

.my-listing-card__detail-value--type {
  color: var(--site-accent);
}

.my-listing-card__detail-value--purpose {
  color: var(--color-success);
}

.my-listing-card__summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.my-listing-card__line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--text-dark);
  line-height: 1.35;
}

.my-listing-card__line .my-listing-card__detail-label {
  flex: 0 0 auto;
  min-width: 3.75rem;
  color: #777777;
  font-weight: 600;
}

.my-listing-card__line .my-listing-card__detail-value {
  color: var(--text-dark);
  font-weight: var(--font-weight-normal);
}

.my-listing-card__team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.my-listing-card__line--team {
  flex: 1 1 auto;
  min-width: 0;
}

.my-listing-card__foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border-top: none;
}

.my-listing-card__foot-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.my-listing-card__date {
  font-size: var(--font-size-sm);
  color: var(--text-dark);
  font-weight: var(--font-weight-normal);
}

.btn-my-listing-update {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: var(--site-accent);
  color: var(--surface);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.my-listing-card__foot-actions:empty {
  display: none;
}

.btn-my-listing-update:hover:not(:disabled) {
  background: var(--sky-dark);
}

.tag-updated-today {
  font-size: var(--font-size-sm);
  color: var(--color-success);
  font-weight: var(--font-weight-medium);
}

.my-listings-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.my-listings-pagination__summary {
  flex: 1 1 auto;
  min-width: 0;
}

.my-listings-pagination__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

.my-listings-pagination .pagination-info {
  font-size: var(--font-size-sm);
  color: var(--text-subtle);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

.my-listings-pagination .perpage-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.my-listings-pagination .perpage-label {
  font-size: var(--font-size-sm);
  color: var(--text-subtle);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  margin: 0;
}

.my-listings-pagination .perpage-select {
  height: 36px;
  min-width: 72px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-dark);
  background: var(--surface);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.my-listings-pagination .perpage-select:hover {
  border-color: var(--text-faint);
}

.my-listings-pagination .perpage-select:focus {
  outline: none;
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px var(--sky-light);
}

.my-listings-pagination .page-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.my-listings-pagination .page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}

.my-listings-pagination .page-btn:hover:not(:disabled):not(.active) {
  background: var(--surface-hover);
  color: var(--site-accent);
  border-color: var(--border-accent);
}

.my-listings-pagination .page-btn.active {
  background: var(--site-accent);
  color: var(--surface);
  border-color: var(--site-accent);
  cursor: default;
  font-weight: var(--font-weight-semibold);
}

.my-listings-pagination .page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--surface-muted);
}

.my-listings-pagination .page-ellipsis {
  font-size: var(--font-size-sm);
  color: var(--text-subtle);
  padding: 0 2px;
  user-select: none;
}

.my-listings-empty .empty-state {
  padding: 48px 20px;
  text-align: center;
}

/* Units page */
.my-units-panel__back {
  margin-bottom: 8px;
}

.my-units-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.my-units-panel__title {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

.my-units-table-wrap {
  overflow-x: auto;
}

/* Unit form partial / drawer */
.add-listing-form--partial .add-listing-card {
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.add-listing-form--partial .add-listing-actions {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: none;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
  margin: 1.5rem -24px -24px;
  padding: 12px 24px;
  z-index: 2;
}

.button-group-toggle {
  display: flex;
  gap: 10px;
  width: 100%;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.toggle-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--color-muted);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.toggle-btn__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.toggle-btn:hover:not(.active) {
  border-color: var(--text-faint);
  background: var(--surface-hover);
  color: var(--text-body);
}

.toggle-btn.active {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #16a34a;
  font-weight: var(--font-weight-semibold);
  box-shadow: none;
}

.toggle-btn:focus {
  outline: none;
}

.toggle-btn:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .button-group-toggle {
    gap: 8px;
  }

  .toggle-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    gap: 0.375rem;
  }

  .toggle-btn__icon {
    width: 1rem;
    height: 1rem;
  }
}

.my-units-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.my-units-empty {
  padding: 8px 0 4px;
}

.my-units-empty .empty-state {
  padding: 24px 16px;
  text-align: center;
}

/* Units popup — desktop table + mobile stacked rows */
.my-units-popup-data {
  width: 100%;
}

.my-units-mobile-list {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.my-unit-mobile-card {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.my-unit-mobile-row {
  display: grid;
  grid-template-columns: 40% 60%;
  border-bottom: 1px solid var(--border-light);
  align-items: stretch;
}

.my-unit-mobile-row:last-child {
  border-bottom: none;
}

.my-unit-mobile-label {
  padding: 14px 16px;
  background: #e8f1fb;
  color: var(--text-dark);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.45;
  text-align: left;
  border-right: 1px solid #dde4ee;
}

.my-unit-mobile-value {
  padding: 14px 16px;
  background: var(--surface);
  color: var(--text-dark);
  font-size: var(--font-size-sm);
  line-height: 1.45;
  text-align: left;
  word-break: break-word;
}

.my-unit-mobile-row--action .my-unit-mobile-value {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

@media (max-width: 767px) {
  .units-panel__head {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .units-panel__head-right {
    margin-left: auto;
  }

  .units-panel.units-panel--dialog {
    padding: 12px;
  }
}

/* Units modal + drawer */
.units-panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10080;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.units-panel-overlay.open {
  opacity: 1 !important;
  display: block !important;
}

.units-panel,
.units-panel.add-listing-card.form-container {
  position: fixed;
  inset: 32px;
  z-index: 10081;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  opacity: 0;
  transform: scale(0.96);
  transform-origin: center center;
  transition: transform 0.28s ease, opacity 0.22s ease;
  pointer-events: none;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

.units-panel.open,
.units-panel.add-listing-card.form-container.open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Units popup */
.units-panel.units-panel--dialog {
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14);
  padding: 15px;
}

.units-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding-bottom: 14px;
  /* border-bottom: 1px solid var(--border-light); */
}

.units-panel__head-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.units-panel__head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.units-panel__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  line-height: 1.3;
}

.units-panel__count {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: var(--text-dark);
  line-height: 1.4;
  white-space: nowrap;
}

.units-panel__head-right .btn-add-listing--sm {
  gap: 6px;
  white-space: nowrap;
}

.units-panel__head-right .btn-add-listing--sm svg,
.units-panel__head-right .btn-add-listing--sm i {
  width: 14px;
  height: 14px;
}

.units-panel__units-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.units-panel__units-content .my-units-section--popup {
  padding: 0;
  margin: 0;
}

.units-panel__units-content .my-units-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 4px;
}

.units-panel__units-content .my-unit-card {
  margin: 0;
}

.units-panel__units-content .my-units-pagination {
  padding: 0 0 8px;
}

.my-units-empty {
  padding: 8px 0 4px;
}

.units-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.units-panel-header-left {
  flex: 1;
  min-width: 0;
}

.units-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: #0f172a;
  margin-bottom: 10px;
}

.units-panel-title i,
.units-panel-title svg {
  width: 16px;
  height: 16px;
  color: var(--text-dark);
  stroke-width: 1.75;
}

.units-panel-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.units-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.units-meta-chip.chip-id {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
  font-weight: 700;
}

.units-meta-chip.chip-address {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.units-panel-close {
  flex-shrink: 0;
}

.units-panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0;
  background: transparent;
}

.units-panel-body .my-units-section,
.units-panel-body .my-list-section {
  padding: 0;
  margin: 0;
}

.units-panel-body .my-units-panel__back {
  display: none;
}

.units-panel-body .empty-state,
.units-panel__units-content .empty-state {
  padding: 32px 20px;
  text-align: center;
}

.units-panel-body .empty-state i,
.units-panel-body .empty-state svg,
.units-panel__units-content .empty-state i,
.units-panel__units-content .empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.my-units-section.my-list-section {
  padding: 0;
}

.my-units-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}

.my-units-toolbar__left {
  min-width: 0;
}

.my-units-toolbar__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.my-units-toolbar__count {
  margin: 4px 0 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.4;
}

.my-units-section .btn-add-listing--sm {
  gap: 6px;
  white-space: nowrap;
}

.my-units-section .btn-add-listing--sm svg,
.my-units-section .btn-add-listing--sm i {
  width: 14px;
  height: 14px;
}

.my-units-table-card {
  margin: 20px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.my-units-table {
  width: 100%;
  border-collapse: collapse;
}

.my-units-table thead {
  background: #f8fafc;
}

.my-units-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: var(--font-weight-semibold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  border-bottom: 1px solid var(--border-light);
}

.my-units-table th.actions-column {
  text-align: center;
  width: 88px;
}

.my-units-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: var(--font-size-sm);
  vertical-align: middle;
}

.my-units-table tbody tr:last-child td {
  border-bottom: none;
}

.my-units-table tbody tr:hover {
  background: #f8fafc;
}

.my-units-table .id-cell {
  font-weight: var(--font-weight-medium);
  color: var(--text-dark);
}

.my-units-table .price-cell .unit-price {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--site-accent);
}

.my-units-table .no-value {
  color: #cbd5e1;
  font-style: normal;
}

.my-units-table .actions-column {
  text-align: center;
}

.my-units-table .my-listing-card__icon-btn {
  margin: 0 auto;
}

.my-units-page .my-units-toolbar {
  padding: 0 0 20px;
  border-bottom: none;
}

.my-units-page .my-units-table-card {
  margin: 0;
}

.price-cell .unit-price {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: #2563eb;
}

.no-value {
  color: #cbd5e1;
  font-style: italic;
}

.my-units-page .my-units-section {
  padding: 0 0 2rem;
}

.my-units-page .my-units-panel__back {
  margin-bottom: 0.5rem;
}

.my-units-page .add-listing-title-row + .my-units-section .my-units-toolbar {
  padding-top: 0;
}

.units-panel-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 20px;
  color: var(--text-subtle);
  font-size: var(--font-size-sm);
}

.units-loader-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--text-faint);
  border-top-color: var(--site-accent);
  border-radius: 50%;
  animation: grid-spin 0.7s linear infinite;
}

.units-panel-msg {
  padding: 24px;
  text-align: center;
  color: var(--text-subtle);
  font-size: var(--font-size-sm);
}

.units-panel-msg-error {
  color: #dc2626;
}
.add-listing-amenities-block {
  margin-top: 40px !important;
}

/* Unit form — image upload step */
.unit-images-upload {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.unit-images-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 220px;
  padding: 2rem 1.5rem;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f0fdf4;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.unit-images-dropzone:hover,
.unit-images-dropzone.is-dragover {
  border-color: #22c55e;
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.unit-images-dropzone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: #22c55e;
}

.unit-images-dropzone-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.unit-images-dropzone-title {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-body);
}

.unit-images-dropzone-or {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

.btn-unit-images-browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: #22c55e;
  color: #fff;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-unit-images-browse:hover {
  background: #16a34a;
}

.unit-images-dropzone-formats {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.unit-images-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #f0fdf4;
}

.unit-images-info-bar-text {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #166534;
}

.unit-images-info-bar-text strong {
  font-weight: var(--font-weight-semibold);
  color: #15803d;
}

.unit-images-info-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #22c55e;
}

.btn-unit-images-canva {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  min-height: 2rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid #22c55e;
  border-radius: 8px;
  background: #fff;
  color: #16a34a;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-unit-images-canva:hover {
  background: #ecfdf5;
  border-color: #16a34a;
  color: #15803d;
}

.btn-unit-images-canva svg {
  width: 0.875rem;
  height: 0.875rem;
}

.unit-images-existing {
  margin-top: 0.5rem;
}

.unit-images-existing-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.unit-images-existing-title {
  margin: 0;
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
}

.unit-images-existing-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.375rem;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}

.unit-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.unit-image-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.unit-image-card-preview {
  position: relative;
  aspect-ratio: 1;
  background: var(--text-dark);
}

.unit-image-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.unit-image-card-menu {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-muted);
  cursor: default;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.unit-image-card-menu svg {
  width: 1rem;
  height: 1rem;
}

.unit-image-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-top: 1px solid var(--surface-muted);
}

.unit-image-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.unit-image-card-file-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--edit-muted);
}

.unit-image-card-text {
  min-width: 0;
}

.unit-image-card-name {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unit-image-card-details {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: var(--edit-muted);
}

.unit-image-card-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff;
  color: #ef4444;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.unit-image-card-delete:hover {
  background: #fef2f2;
  border-color: #f87171;
}

.unit-image-card-delete svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 640px) {
  .unit-images-info-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-unit-images-canva {
    justify-content: center;
  }

  .unit-images-grid {
    grid-template-columns: 1fr;
  }
}

.unit-form-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 10082;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.unit-form-overlay.open {
  opacity: 1;
}

.unit-form-drawer,
.unit-form-drawer.add-listing-card.form-container {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 720px;
  max-width: 100vw;
  z-index: 10083;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 0.32s ease;
  box-shadow: -6px 0 40px rgba(15, 23, 42, 0.15);
  pointer-events: none;
}

.unit-form-drawer.open,
.unit-form-drawer.add-listing-card.form-container.open {
  transform: translateX(0);
  pointer-events: auto;
}

.unit-form-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.unit-form-header .my-listings-panel__title {
  margin: 0;
  font-size: 1.125rem;
}

.unit-form-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  /* background: var(--page-bg); */
}

.unit-form-body .add-listing-form--partial {
  padding: 16px 24px 24px;
}

.unit-form-body .add-listing-top--drawer {
  padding: 0 0 1rem;
  margin: 0 0 1rem;
}

.unit-form-body .add-listing-stepper .step-label {
  white-space: normal;
  line-height: 1.25;
}

.unit-form-body .add-listing-step-body {
  padding: 0;
}

.unit-form-body .form-container {
  max-width: 100%;
  box-shadow: none;
  margin: 0;
  border: none;
}

.grid-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.grid-loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--text-faint);
  border-top-color: var(--site-accent);
  border-radius: 50%;
  animation: grid-spin 0.7s linear infinite;
}

@keyframes grid-spin {
  to { transform: rotate(360deg); }
}

.my-listing-card.is-dropdown-active {
  z-index: 100;
}

.action-dropdown {
  position: relative;
}

.action-dropdown.open {
  z-index: 1;
}

.action-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
  padding: 4px 0;
  z-index: 200;
}

.action-dropdown.is-flip-up .action-dropdown-menu {
  top: auto;
  bottom: calc(100% + 4px);
}

.action-dropdown.open .action-dropdown-menu {
  display: block;
}

.action-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: var(--font-size-sm);
  color: var(--text-body);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.25;
}

.action-menu-item i,
.action-menu-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.action-menu-item svg {
  stroke-width: 1.75;
}

.action-menu-item span {
  flex: 1 1 auto;
  min-width: 0;
}

.action-menu-item:hover {
  background: var(--surface-hover);
  color: var(--sky-dark);
}

@media (max-width: 992px) {
  .my-listings-pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .my-listings-pagination__controls {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .my-listings-filters__row {
    flex-wrap: wrap;
  }

  .my-listings-filters__item {
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
  }

  .my-listings-filters__item--search,
  .my-listings-filters__item--actions {
    flex: 1 1 100%;
  }

  .my-listing-card__details-row {
    gap: 6px 14px;
  }
}

@media (max-width: 768px) {
  .my-listings-filters__row {
    flex-direction: column;
  }

  .my-listings-filters__item {
    width: 100%;
  }

  .unit-form-drawer {
    width: 100vw;
  }

  .units-panel {
    inset: 0;
    border-radius: 0;
  }
}

/* ── Blog & Event content pages ── */
.content-page-wrap {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.content-page-section {
  padding: 1.5rem 1.75rem 1.75rem;
}

.content-page-head {
  margin-bottom: 1.5rem;
}

.content-page-intro {
  margin: 0.375rem 0 0;
  color: var(--text-muted);
  font-size: var(--font-size-body);
  line-height: 1.55;
}

.content-empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-size-body);
  line-height: 1.55;
  border: 1px dashed #dbe3ee;
  border-radius: 0.875rem;
  background: #f8fafc;
}

.content-blog-list,
.content-event-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-blog-card,
.content-event-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid #eef2f7;
  border-radius: 0.875rem;
  background: #fff;
}

.content-blog-card-media,
.content-event-card-media {
  aspect-ratio: 16 / 10;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #e2e8f0;
}

.content-blog-card-media a,
.content-event-card-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.content-blog-card-media img,
.content-event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-blog-card-body,
.content-event-card-body {
  min-width: 0;
}

.content-blog-card-title,
.content-event-card-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
}

.content-blog-card-title a,
.content-event-card-title a {
  color: var(--text-dark);
  text-decoration: none;
}

.content-blog-card-title a:hover,
.content-event-card-title a:hover {
  color: var(--sky-blue);
}

.content-event-card-meta {
  margin: 0 0 0.625rem;
  font-size: var(--font-size-sm);
  color: #94a3b8;
  line-height: 1.45;
}

.content-event-card-meta-sep {
  margin: 0 0.35rem;
}

.content-blog-card-excerpt,
.content-event-card-excerpt {
  margin: 0 0 0.875rem;
  color: var(--text-muted);
  font-size: var(--font-size-body);
  line-height: 1.55;
}

.content-blog-card-action .btn-more,
.content-event-card-action .btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--sky-blue);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s;
}

.content-blog-card-action .btn-more:hover,
.content-event-card-action .btn-more:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #fff;
}

.page-blogs .feed-section-title,
.page-events .feed-section-title {
  margin: 0;
  font-size: clamp(1.375rem, 2.5vw, 1.6rem);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
}

.content-detail-slider {
  margin-top: 0;
}

.content-detail-section {
  padding: 1.5rem 1.75rem 1.75rem;
}

.content-detail-head {
  margin-bottom: 1.25rem;
}

.content-detail-meta {
  margin: 0 0 0.5rem;
  font-size: var(--font-size-sm);
  color: #94a3b8;
  line-height: 1.45;
}

.content-detail-meta-sep {
  margin: 0 0.35rem;
}

.content-detail-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  line-height: 1.25;
}

.content-flipbook-wrap {
  margin-bottom: 1.25rem;
}

.content-detail-body {
  color: var(--text-dark);
  font-size: var(--font-size-body);
  line-height: 1.65;
}

.content-detail-body p:last-child {
  margin-bottom: 0;
}

.content-detail-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef2f7;
}

.content-detail-pager-item {
  flex: 1 1 220px;
  min-width: 0;
}

.content-detail-pager-item--next {
  margin-left: auto;
  text-align: right;
}

.content-detail-pager-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: var(--font-size-xxs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.content-detail-pager-item a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
}

.content-detail-pager-item a:hover {
  color: var(--sky-blue);
}

.content-detail-pager-item .icon-left-arrow,
.content-detail-pager-item .icon-right-arrow {
  display: none;
}

@media (max-width: 767px) {
  .content-page-section,
  .content-detail-section {
    padding: 1.125rem 1rem 1.25rem;
  }

  .content-blog-card,
  .content-event-card {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .content-blog-card-media,
  .content-event-card-media {
    aspect-ratio: 16 / 9;
  }

  .content-detail-pager-item--next {
    text-align: left;
    margin-left: 0;
  }
}

.page-blog-detail #mybook.booklet,
.page-event-detail #mybook.booklet {
  max-width: 100%;
}

.page-blog-detail .booklet .b-page,
.page-blog-detail .booklet .b-wrap-left,
.page-event-detail .booklet .b-page,
.page-event-detail .booklet .b-wrap-left {
  max-width: 100% !important;
}

.page-blog-detail .book_wrapper img,
.page-blog-detail .book_wrapper iframe,
.page-blog-detail .book_wrapper video,
.page-event-detail .book_wrapper img,
.page-event-detail .book_wrapper iframe,
.page-event-detail .book_wrapper video {
  height: auto;
  object-fit: cover;
  max-width: 100%;
}

.page-blog-detail .content-flipbook-wrap,
.page-event-detail .content-flipbook-wrap {
  overflow-x: auto;
}

/* My Settings */
.page-feed.page-admin .my-settings-card {
  overflow: hidden;
}

.my-settings-top {
  padding: 1.25rem 1.5rem 0;
}

.my-settings-intro {
  margin: 0.375rem 0 1rem;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.my-settings-step {
  padding: 0 0 0.5rem;
}

.my-settings-logo-preview {
  height: 5rem;
  width: auto;
  max-width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  object-fit: contain;
  background: #f8fafc;
  padding: 0.25rem;
}

.my-settings-field-hint {
  margin: 0.375rem 0 0;
  font-size: var(--font-size-xs);
  color: #94a3b8;
  line-height: 1.45;
}

.my-settings-typeahead-wrap {
  position: relative;
}

.my-settings-suggestions {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 12rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.my-settings-suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}

.my-settings-suggestion-item:last-child {
  border-bottom: none;
}

.my-settings-suggestion-item:hover {
  background: #f8fafc;
}

.my-settings-suggestion-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.my-settings-suggestion-avatar--empty {
  background: #e2e8f0;
}

.my-settings-suggestion-title {
  font-size: var(--font-size-sm);
  color: var(--text-dark);
  font-weight: var(--font-weight-medium);
}

.my-settings-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.my-settings-actions {
  margin-top: 0;
}

@media (max-width: 767px) {
  .my-settings-top {
    padding: 1rem 1rem 0;
  }
}

/* My Searches */
.my-searches-page .my-searches-panel {
  padding: 0;
  overflow: hidden;
}

.my-searches-panel__header {
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid #eef2f6;
}

.my-searches-panel__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.my-searches-count {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.45;
}

.my-searches-page .data-grid-wrapper {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.my-searches-empty i,
.my-searches-empty svg {
  width: 3rem;
  height: 3rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.my-searches-empty-cta {
  display: inline-flex;
  margin-top: 1rem;
  text-decoration: none;
}

.btn-icon.btn-delete:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

@media (max-width: 767px) {
  .my-searches-panel__header {
    padding: 1rem 1rem 0.625rem;
  }
}

/* Visited properties */
.visited-page .visited-section {
  padding: 1.25rem 1.5rem 1.5rem;
}

.visited-section__head {
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.visited-section__count {
  margin: 0.25rem 0 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.45;
}

.visited-results-grid {
  margin-top: 0.25rem;
}

.visited-empty i,
.visited-empty svg {
  width: 3rem;
  height: 3rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.visited-empty__cta {
  display: inline-flex;
  margin-top: 1rem;
  text-decoration: none;
}

@media (max-width: 767px) {
  .visited-page .visited-section {
    padding: 1rem;
  }
}

/* Team Listings */
.page-admin .team-listings-page,
.team-listings-page.my-listings-page {
  padding-bottom: 2rem;
}

.team-listings-panel__header {
  margin-bottom: 0.5rem;
}

.team-listings-panel__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.team-listings-count {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.team-listings-page .data-grid-wrapper {
  margin-top: 1rem;
}

.team-listings-filters .my-listings-filters__row--secondary {
  display: flex;
  margin-top: 0.75rem;
}

.team-listings-empty i,
.team-listings-empty svg {
  width: 3rem;
  height: 3rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.btn-confirm-accuracy {
  display: inline-block;
  margin-top: 5px;
  padding: 4px 10px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: #fff;
  background-color: #e57373;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.btn-confirm-accuracy:hover:not(:disabled) {
  background-color: #ef5350;
}

.btn-confirm-accuracy:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.team-listing-card__contact-link {
  color: var(--site-accent);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.team-listing-card__contact-link:hover {
  text-decoration: underline;
}

.team-listing-card__views {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.my-listing-card__line--contact {
  margin-top: 0.15rem;
}

.team-listings-page .my-listings-grid-wrapper {
  margin-top: 0;
}

.add-listing-form-card.mb-4.d_subtypehide.d_industrial.commercial-industrial-section {
  margin-top: 25px;
  margin-bottom: 35px !important;
}